Downloads Β· 30 days
252
16% of all-time downloads
htdong/Wan-Alpha-v2.0
Wan-Alpha-v2.0 is a text-to-video model from htdong. Use it when you need video from a text prompt. It is set up for diffusers. The card lists the license as apache-2.0.
Downloads Β· 30 days
252
16% of all-time downloads
All-time downloads
1.6K
Public
Repo size
966 MB
Likes
12
Public
Click a slice to open those files.
.bin636 MB Β· 66%
From the Hugging Face model README
Qualitative results of video generation using Wan-Alpha-v2.0. Our model successfully generates various scenes with accurate and clearly rendered transparency. Notably, it can synthesize diverse semi-transparent objects, glowing effects, and fine-grained details such as hair.
| Prompt | Preview Video | Alpha Video |
|---|---|---|
| "The background of this video is transparent. It features a beige, woven rattan hanging chair with soft seat and back cushions. Realistic style. Medium shot." | <img src="assets/squirrel.gif" width="320" height="180" style="object-fit:contain; display:block; margin:auto;"/> | <img src="assets/squirrel_pha.gif" width="320" height="180" style="object-fit:contain; display:block; margin:auto;"/> |
# Clone the project repository
git clone https://github.com/WeChatCV/Wan-Alpha.git
cd Wan-Alpha
# Create and activate Conda environment
conda create -n Wan-Alpha python=3.11 -y
conda activate Wan-Alpha
# Install dependencies
pip install -r requirements.txt
Download Wan2.1-T2V-14B
Download Lightx2v-T2V-14B
Download Wan-Alpha VAE
You can test our model through:
torchrun --nproc_per_node=8 --master_port=29501 generate_dora_lightx2v_mask.py --size 832*480\
--ckpt_dir "path/to/your/Wan-2.1/Wan2.1-T2V-14B" \
--dit_fsdp --t5_fsdp --ulysses_size 8 \
--vae_lora_checkpoint "path/to/your/decoder.bin" \
--lora_path "path/to/your/t2v.safetensors" \
--lightx2v_path "path/to/your/lightx2v_T2V_14B_cfg_step_distill_v2_lora_rank64_bf16.safetensors" \
--sample_guide_scale 1.0 \
--frame_num 81 \
--sample_steps 4 \
--lora_ratio 1.0 \
--lora_prefix "" \
--alpha_shift_mean 0.05 \
--cache_path_mask "path/to/your/gauss_mask" \
--prompt_file ./data/prompt.txt \
--output_dir ./output
You can specify the weights of Wan2.1-T2V-14B with --ckpt_dir, LightX2V-T2V-14B with --lightx2v_path, Wan-Alpha-VAE with --vae_lora_checkpoint, and Wan-Alpha-T2V with --lora_path. Finally, you can find the rendered RGBA videos with a checkerboard background and PNG frames at --output_dir.
You can use gen_gaussian_mask.py to generate a Gaussian mask from an existing alpha video. Alternatively, you can directly create a Gaussian ellipse video, which can be either static or dynamic (e.g., moving from left to right). Note that alpha_shift_mean is a fixed parameter.
Prompt Writing Tip: You need to specify that the background of the video is transparent, the visual style, the shot type (such as close-up, medium shot, wide shot, or extreme close-up), and a description of the main subject. Prompts support both Chinese and English input.
# An example of prompt.
This video has a transparent background. Close-up shot. A colorful parrot flying. Realistic style.
Coming soon...
This project is built upon the following excellent open-source projects:
We sincerely thank the authors and contributors of these projects.
If you find our work helpful for your research, please consider citing our paper:
@misc{dong2025wanalpha,
title={Video Generation with Stable Transparency via Shiftable RGB-A Distribution Learner},
author={Haotian Dong and Wenjing Wang and Chen Li and Jing Lyu and Di Lin},
year={2025},
eprint={2509.24979},
archivePrefix={arXiv},
primaryClass={cs.CV},
url={https://arxiv.org/abs/2509.24979},
}
If you have any questions or suggestions, feel free to reach out via GitHub Issues . We look forward to your feedback!