
Wang, Xu, Li et al., AlphaAnything (Tsinghua University, ByteDance, Peking University)
Share this post:
AlphaAnything: Open Source RGBA Layer AI for VFX
Published on October 23, 2026 by researchers from Tsinghua University, ByteDance, and Peking University, AlphaAnything (WLuLi/AlphaAnything) teaches existing RGB image generators to output true RGBA layers with a real alpha channel. It extracts a described object from a photo as a transparent layer, including glass, liquid, fabric, and feathers, or generates a new transparent element from text. You can test the image to RGBA extraction free in the embedded browser demo below with zero login.
Studio availability. Try the public Hugging Face demo below; AlphaAnything is not part of a paid AI FILMS Studio plan (use BEN2 Background Remover in the image workspace for example instead).
Try AlphaAnything Live
Upload an image, describe the object to extract in one detailed sentence, and press Extract RGBA. The demo shows the result on a checkerboard so you can see the transparency, and gives you the RGBA file to download. Open Advanced Settings to change the step count, the guidance scale, and the seed.
The demo runs the Apache 2.0 Qwen-Image-Edit-2511 adapter on shared ZeroGPU hardware with a fixed 180 second reservation. The default of 50 steps gives the cleanest edges. Drop to 20 or 30 steps for a faster test.
Why Native Alpha Matters for Compositing
Most AI image tools give you a flat RGB picture, and a background remover then cuts the subject out with a hard or soft mask. That works for a person on a plain wall. It fails on a wine glass, a veil, smoke, or a splash, where the background must show through the object at partial opacity.
AlphaAnything predicts that partial opacity directly. The output is a layer a compositor can drop over any plate, with the glass still clear and the shadows of the bowl still soft. The project page shows full scenes built from 26 separate generated layers.
Method figure by Wang, Xu, Li et al. (AlphaAnything project)
Earlier RGBA methods first train a new transparency aware VAE by reconstruction, which adds a training stage and can change how the base model decodes color.
AlphaAnything skips that stage. It inserts LoRA modules into the generator's transformer and attaches an alpha branch to the frozen RGB VAE decoder, so the color output stays identical to the original model.
Architecture and Technical Design
The design has three parts. The LoRA teaches the transformer to produce a latent that also carries opacity. The alpha decoder branch reads features from the frozen RGB decoder and turns them into the alpha channel.
The feature sharing runs one way only, from RGB to alpha. The authors state that this lets opacity supervision shape the latent while it guarantees that, for any fixed latent, the RGB decoding is the same as the pretrained decoder.
The third part is the Endpoint Aware Alpha Loss (EA Loss). It derives opacity supervision from the foreground and background weights used in compositing. It supports exact fully transparent and fully opaque values, continuous partial transparency, and extra weight on small local alpha errors.
The main branch of the checkpoint repository holds retrained image to RGBA adapters. About 5% of their training pairs are synthetic background extraction pairs. The exact checkpoints from the paper sit on the paper revision.
Checkpoints, Hardware, and License Matrix
| Checkpoint | Base model | Task | License |
|---|---|---|---|
qwen_image_edit_2511_i2rgba |
Qwen-Image-Edit-2511 | Image to RGBA (the demo) | Apache 2.0 |
qwen_image_2512_t2rgba |
Qwen-Image-2512 | Text to RGBA | Apache 2.0 |
flux2_klein_base_9b_i2rgba |
FLUX.2 Klein Base 9B or Klein 9B (4 step) | Image to RGBA | FLUX Non-Commercial |
flux2_klein_base_9b_t2rgba |
FLUX.2 Klein Base 9B or Klein 9B (4 step) | Text to RGBA | FLUX Non-Commercial |
Each checkpoint folder holds a transformer LoRA, an alpha decoder file, and its own license. For commercial film work, use the two Qwen adapters under Apache 2.0. The FLUX.2 Klein adapters follow the FLUX Non-Commercial License of their base model.
Hardware needs follow the base model, because the adapters are small. The Qwen-Image family is a 20 billion parameter model, so plan for a high memory GPU or CPU offloading. The FLUX.2 Klein 9B adapters can run on the 4 step distilled Klein 9B for faster inference on a smaller card.
Parameter Reference
| Parameter | Demo default | Range | Filmmaker notes |
|---|---|---|---|
| Object description | Empty | One detailed sentence | Name the material and the transparent parts |
| Inference steps | 50 | 4 to 50 | Fewer steps lose fine edges first |
| Guidance scale | 4.0 | 1.0 to 8.0 | Higher values follow the text more closely |
| Seed | 42 | Any integer | Change it if the mask misses a part |
| Base model (local) | Qwen-Image-Edit-2511 | Qwen or FLUX.2 Klein | Pick Qwen for commercial work |
The extraction prompt on the project page is a good model to copy. It begins "Extract the object described by the text, preserving fine details and transparency", then describes the glass, the drink, the ice, and the reflections.
Write the description the same way in the demo. Name the object, its material, its transparent parts, and its position in the frame, such as "the clear wine glass on the right, including its translucent bowl and slender stem".
Live demo interface by akhaliq on Hugging Face
Local Python and CLI Setup
Load the LoRA and the alpha decoder together through the official repository. Loading only the LoRA in Diffusers gives an RGB image with no alpha channel.
git clone https://github.com/WLuLi/AlphaAnything.git
cd AlphaAnything
pip install -r requirements.txt
hf download WLuLi/AlphaAnything --local-dir alphaanything/checkpoints
Generate a transparent element from text with the 4 step FLUX.2 Klein 9B path:
python scripts/flux2_klein/infer_t2rgba.py \
--checkpoint alphaanything/checkpoints/flux2_klein_base_9b_t2rgba \
--base-model black-forest-labs/FLUX.2-klein-9B \
--prompt "A thin column of grey smoke curling upward, isolated on a transparent background." \
--output-dir outputs/smoke \
--num-inference-steps 4 --guidance-scale 1.0 --seed 42
To reproduce the paper exactly, download the paper revision instead:
hf download WLuLi/AlphaAnything --revision paper --local-dir alphaanything/checkpoints
The image to RGBA scripts for the Qwen adapters are listed in the inference section of the repository README.
Filmmaker Production Playbook
Use AlphaAnything to build element libraries for compositing. Extract props from production stills, such as a glass on a bar, a lamp, or a curtain, and keep them as RGBA layers for matte painting and set extension. Generate smoke wisps, dust, and paper scraps from text for motion graphics and title sequences.
For people and hair on moving footage, a video matting model still fits better. Compare PixelMatte, CorridorKey 2.0, and BRIA RMBG 3.0. For layered design work with text, see Ming-Image-0.2-Design.
Inside the Studio, the background remover page lists the cutout models you can use today, and the image workspace generates the plates you composite your layers over.
Known Limitations and FAQ
Does AlphaAnything work on video? No. All four checkpoints are image models. Extract a hero frame, or use a video matting model for moving shots.
Can I sell work made with the demo? The demo uses the Qwen-Image-Edit-2511 adapter under Apache 2.0, which allows commercial use. Check the license of the base model you run locally, because the FLUX.2 Klein adapters are non commercial.
Why does my extraction include part of the background? The description controls what counts as the object. Describe the object's edges and transparent parts more precisely, raise the step count, or try a new seed.
Is there a published quality benchmark? The paper reports competitive quality on text to RGBA and image to RGBA tasks across several backbones, plus ablations of the shared latent design and EA Loss. Read the arXiv paper for the full tables.
Related Reading
- PixelMatte: Open Source Pixel Space Image Matting
- Ming-Image-0.2-Design: Open Source RGBA Image AI
- BRIA RMBG 3.0: Open Source VFX Background Removal
- CorridorKey 2.0: Open Source Green Screen VFX Keying
- Compare the cutout models on the Background Remover page.
Sources
Continue Reading
Video & LipSync
- Video Generator
- Text to Video
- Image to Video
- Start-End Frame to Video
- Draw to Video
- Motion Control
- Video Enhancer
- Video Upscaler
- Video Extend
- Video to Video LipSync
- Audio to Video LipSync
- Image to Video LipSync
- Video FaceSwap
- Seedance 2.5
- WAN 3.0
- Seedance 2
- FLUX 3
- Minimax H3
- Vidu Q3 Pro
- Grok Imagine Video 1.5
- Gemini Omni
- Google Veo 3.1
- Kling 3.0 Pro
- Luma Ray 3.2
- LTX 2.3
- Happy Horse 1.1
- Kling 3.0 Motion
- ByteDance Upscaler
- InfiniteTalk
- InsightFace
Image & Edit
- AI Character
- AI Actor
- Art Generator
- Text to Image
- Image to Image
- LoRA Image to Image
- Draw to Edit
- Image LoRA Training
- Remove Background
- Image Enhancer
- MidJourney 8.0
- Krea 2
- OpenAI GPT Image 2.0
- Nano Banana Pro Ultra
- Nano Banana 2 Lite
- Nano Banana Pro
- Minimax Image
- Clarity Pro
- Z-Image Turbo LoRA
- Krea 2 Turbo LoRA
- Z-Image LoRA Trainer
- Qwen Image LoRA Trainer
- Background Erase Network 2 (BEN2)



