WeChatCV/Wan-Alpha

[CVPR 2026 Highlight] High-Quality Text-to-Video Generation with Alpha Channel

Wan‑Alpha (CVPR 2026 Highlight) – Video Generation with Stable Transparency

What it is – Wan‑Alpha is an open‑source research project that extends the Wan2.1 text‑to‑video diffusion model to generate RGBA videos (i.e., video frames with an explicit alpha channel). The core idea, described in the CVPR 2026 paper “Video Generation with Stable Transparency via Shiftable RGB‑A Distribution Learner,” is to learn a shiftable distribution over RGB‑A values so that the model can produce clean, semi‑transparent objects, glowing effects, and fine‑grained details such as hair.

Key components

  • Wan‑Alpha v1.0 / v2.0 – pretrained diffusion checkpoints that output RGBA video.
  • Wan‑Alpha VAE – a dedicated variational auto‑encoder for encoding/decoding the RGBA latent space.
  • Training scripts for both the VAE and the text‑to‑video (T2V) model, plus the associated training dataset (open‑sourced on Hugging Face).
  • Inference pipeline – a command‑line script (generate_dora_lightx2v_mask.py) that ties together the base Wan2.1‑T2V‑14B model, LightX2V acceleration, the Wan‑Alpha VAE, and optional Gaussian‑mask handling.
  • ComfyUI integration (planned) for a graphical workflow.

Why it matters – Most existing text‑to‑video generators output only opaque RGB frames, which limits compositing and downstream graphics work. Wan‑Alpha provides a ready‑to‑use model that directly outputs an alpha channel, enabling:

  • Easy overlay of generated clips onto arbitrary backgrounds.
  • Creation of assets for games, AR/VR, and visual effects pipelines.
  • Research on transparent‑object synthesis and video‑level alpha consistency.

Quick‑Start Guide

  1. Clone & set up

    git clone https://github.com/WeChatCV/Wan-Alpha.git
    cd Wan-Alpha
    conda create -n wan-alpha python=3.11 -y
    conda activate wan-alpha
    pip install -r requirements.txt
    
  2. Download model weights (via the Hugging Face links in the README)

    • Base text‑to‑video model: Wan2.1‑T2V‑14B
    • LightX2V acceleration checkpoint
    • Wan‑Alpha v1.0 or v2.0 checkpoint
    • Corresponding VAE checkpoint (Wan‑Alpha‑VAE.bin)
  3. Run inference

    torchrun --nproc_per_node=8 --master_port=29501 \
      generate_dora_lightx2v_mask.py \
      --size 832*480 \
      --ckpt_dir path/to/Wan2.1‑T2V‑14B \
      --dit_fsdp --t5_fsdp --ulysses_size 8 \
      --vae_lora_checkpoint path/to/decoder.bin \
      --lora_path path/to/t2v.safetensors \
      --lightx2v_path path/to/lightx2v_T2V_14B.safetensors \
      --sample_guide_scale 1.0 \
      --frame_num 81 \
      --sample_steps 4 \
      --lora_ratio 1.0 \
      --alpha_shift_mean 0.05 \
      --prompt_file ./data/prompt.txt \
      --output_dir ./output
    

    The script writes RGBA video frames (PNG with alpha) and a preview video with a checkerboard background to ./output.

  4. Prompt style – Include a clear statement that the background should be transparent, describe the visual style, shot type, and main subject. Both English and Chinese are supported.

    This video has a transparent background. Close‑up shot. A colorful parrot flying. Realistic style.
    

Training (for researchers)

  • VAE – Use train_vae.py with the provided CSV metadata, deepspeed stage‑2, and LoRA rank 128. The README notes that an empty‑text cache is required before training.
  • Text‑to‑Video (T2V) – Dataset is available on Google Drive or Hugging Face (htdong/Wan-Alpha-dataset). Training follows a two‑stage pipeline: first cache the data with prepare_trans_alpha_mask.py, then run train_gauss_ellipse.py with LoRA‑based fine‑tuning of the diffusion backbone.
  • Scripts are heavily parallelised (8 GPUs) and rely on accelerate/deepspeed for mixed‑precision and gradient‑checkpointing.

Resources & Links

  • Paper: arXiv 2509.24979 (PDF) – full technical details.
  • Project page: https://donghaotian123.github.io/Wan-Alpha/
  • Model hubs: Hugging Face repositories for v1.0, v2.0, and VAE checkpoints.
  • Related codebases: DiffSynth‑Studio (training framework), Wan2.1 (base video model), LightX2V (inference acceleration).

Citation

@InProceedings{Dong_2026_CVPR,
  author    = {Dong, Haotian and Wang, Wenjing and Li, Chen and Lyu, Jing and Lin, Di},
  title     = {Video Generation with Stable Transparency via Shiftable RGB‑A Distribution Learner},
  booktitle = {Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR)},
  month     = {June},
  year      = {2026},
  pages     = {1885-1894}
}

Bottom line – Wan‑Alpha delivers the first publicly released diffusion model that natively outputs transparent video, complete with pretrained weights, training code, and a ready‑to‑run inference script, making it a valuable tool for both creative developers and vision researchers.

Related

  • Project
  • Project
  • Project
  • Dispatch
  • Project