Text-to-Video
Diffusers
rgba
transparency
htdong commited on
Commit
b252926
·
verified ·
1 Parent(s): 56a59c6

Delete readme.md

Browse files
Files changed (1) hide show
  1. readme.md +0 -151
readme.md DELETED
@@ -1,151 +0,0 @@
1
- <div align="center">
2
-
3
- <h1>
4
- Wan-Alpha
5
- </h1>
6
-
7
- <h3>Wan-Alpha: Video Generation with Stable Transparency via Shiftable RGB-A Distribution Learner</h3>
8
-
9
-
10
-
11
- [![arXiv](https://img.shields.io/badge/arXiv-2509.24979-red)](https://arxiv.org/pdf/2509.24979)
12
- [![Project Page](https://img.shields.io/badge/Project_Page-Link-green)](https://donghaotian123.github.io/Wan-Alpha/)
13
- [![🤗 HuggingFace](https://img.shields.io/badge/%F0%9F%A4%97%20HuggingFace-Model-orange)](https://huggingface.co/htdong/Wan-Alpha)
14
- [![ComfyUI](https://img.shields.io/badge/ComfyUI-Version-blue)](https://huggingface.co/htdong/Wan-Alpha_ComfyUI)
15
- [![🤗 HuggingFace](https://img.shields.io/badge/%F0%9F%A4%97%20HuggingFace-Model_v2.0-yellow)](https://huggingface.co/htdong/Wan-Alpha)
16
-
17
-
18
- </div>
19
-
20
- <img src="assets/teaser.png" alt="Wan-Alpha Qualitative Results" style="max-width: 100%; height: auto;">
21
-
22
- >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.
23
-
24
- ---
25
-
26
- ### 🔥 News
27
-
28
- * **[2025.11.26]** Released Wan-Alpha v2.0, the Wan2.1-14B-T2V–adapted weights and inference code are now open-sourced.
29
- * **[2025.11.26]** We update our paper on [arXiv](https://arxiv.org/pdf/2509.24979).
30
- * **[2025.09.30]** Our technical report is available on [arXiv](https://arxiv.org/pdf/2509.24979).
31
- * **[2025.09.30]** Released Wan-Alpha v1.0, the Wan2.1-14B-T2V–adapted weights and inference code are now open-sourced.
32
-
33
- ---
34
-
35
- ### 📝 To-Do List
36
-
37
- - [x] **Paper**: Available on [arXiv](https://arxiv.org/pdf/2509.24979).
38
- - [x] **Inference Code**: Released inference pipeline for Wan-Alpha.
39
- - [x] **Model Weights**: Released checkpoints for Wan-Alpha v1.0 and v2.0.
40
- - [ ] **Image-to-Video**: Release Wan-Alpha-I2V model weights.
41
- - [ ] **Dataset**: Open-source the VAE and T2V training dataset.
42
- - [ ] **Training Code (VAE&T2V)**: Release training scripts for the VAE and text-to-RGBA video generation.
43
-
44
-
45
- ### 🌟 Showcase
46
-
47
- ##### Text-to-Video Generation with Alpha Channel
48
-
49
- <!-- | Prompt | Preview Video | Alpha Video |
50
- | :---: | :---: | :---: |
51
- | "Medium shot. A little girl holds a bubble wand and blows out colorful bubbles that float and pop in the air. The background of this video is transparent. Realistic style." |
52
- <div style="display: flex; gap: 10px;">
53
- <img src="girl.gif" alt="..." style="flex: 1; min-width: 200px;">
54
- </div> |
55
- <div style="display: flex; gap: 10px;">
56
- <img src="girl_pha.gif" alt="..." style="flex: 1; min-width: 200px;">
57
- </div> | -->
58
- | Prompt | Preview Video | Alpha Video |
59
- | :---: | :---: | :---: |
60
- | "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;"/> |
61
-
62
- ##### For more results, please visit [Our Website](https://donghaotian123.github.io/Wan-Alpha/)
63
-
64
- ### 🚀 Quick Start
65
-
66
- ##### 1. Environment Setup
67
- ```bash
68
- # Clone the project repository
69
- git clone https://github.com/WeChatCV/Wan-Alpha.git
70
- cd Wan-Alpha
71
-
72
- # Create and activate Conda environment
73
- conda create -n Wan-Alpha python=3.11 -y
74
- conda activate Wan-Alpha
75
-
76
- # Install dependencies
77
- pip install -r requirements.txt
78
- ```
79
-
80
- ##### 2. Model Download
81
- Download [Wan2.1-T2V-14B](https://huggingface.co/Wan-AI/Wan2.1-T2V-14B)
82
-
83
- Download [Lightx2v-T2V-14B](https://huggingface.co/Kijai/WanVideo_comfy/blob/main/Lightx2v/lightx2v_T2V_14B_cfg_step_distill_v2_lora_rank64_bf16.safetensors)
84
-
85
- Download [Wan-Alpha VAE](https://huggingface.co/htdong/Wan-Alpha)
86
-
87
- ### 🧪 Usage
88
- You can test our model through:
89
- ```bash
90
- torchrun --nproc_per_node=8 --master_port=29501 generate_dora_lightx2v_mask.py --size 832*480\
91
- --ckpt_dir "path/to/your/Wan-2.1/Wan2.1-T2V-14B" \
92
- --dit_fsdp --t5_fsdp --ulysses_size 8 \
93
- --vae_lora_checkpoint "path/to/your/decoder.bin" \
94
- --lora_path "path/to/your/t2v.safetensors" \
95
- --lightx2v_path "path/to/your/lightx2v_T2V_14B_cfg_step_distill_v2_lora_rank64_bf16.safetensors" \
96
- --sample_guide_scale 1.0 \
97
- --frame_num 81 \
98
- --sample_steps 4 \
99
- --lora_ratio 1.0 \
100
- --lora_prefix "" \
101
- --alpha_shift_mean 0.05 \
102
- --cache_path_mask "path/to/your/gauss_mask" \
103
- --prompt_file ./data/prompt.txt \
104
- --output_dir ./output
105
- ```
106
- 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`.
107
-
108
- 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.
109
-
110
- **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.
111
-
112
- ```bash
113
- # An example of prompt.
114
- This video has a transparent background. Close-up shot. A colorful parrot flying. Realistic style.
115
- ```
116
-
117
- ### 🔨 Official ComfyUI Version
118
-
119
- Coming soon...
120
-
121
-
122
- ### 🤝 Acknowledgements
123
-
124
- This project is built upon the following excellent open-source projects:
125
- * [DiffSynth-Studio](https://github.com/modelscope/DiffSynth-Studio) (training/inference framework)
126
- * [Wan2.1](https://github.com/Wan-Video/Wan2.1) (base video generation model)
127
- * [LightX2V](https://github.com/ModelTC/LightX2V) (inference acceleration)
128
- * [WanVideo_comfy](https://huggingface.co/Kijai/WanVideo_comfy) (inference acceleration)
129
-
130
- We sincerely thank the authors and contributors of these projects.
131
-
132
-
133
- ### ✏ Citation
134
-
135
- If you find our work helpful for your research, please consider citing our paper:
136
-
137
- ```bibtex
138
- @misc{dong2025wanalpha,
139
- title={Video Generation with Stable Transparency via Shiftable RGB-A Distribution Learner},
140
- author={Haotian Dong and Wenjing Wang and Chen Li and Di Lin},
141
- year={2025},
142
- eprint={2509.24979},
143
- archivePrefix={arXiv},
144
- primaryClass={cs.CV},
145
- url={https://arxiv.org/abs/2509.24979},
146
- }
147
- ```
148
-
149
- ### 📬 Contact Us
150
-
151
- If you have any questions or suggestions, feel free to reach out via [GitHub Issues](https://github.com/WeChatCV/Wan-Alpha/issues) . We look forward to your feedback!