hanzhn commited on
Commit
938fa5d
·
verified ·
1 Parent(s): ae5437b

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +671 -3
README.md CHANGED
@@ -1,3 +1,671 @@
1
- ---
2
- license: apache-2.0
3
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ language:
4
+ - en
5
+ - zh
6
+ tags:
7
+ - video generation
8
+ ---
9
+ # Wan2.1
10
+
11
+ <p align="center">
12
+ <img src="assets/logo.png" width="400"/>
13
+ <p>
14
+
15
+ <p align="center">
16
+ 💜 <a href="https://wan.video"><b>Wan</b></a> &nbsp&nbsp | &nbsp&nbsp 🖥️ <a href="https://github.com/Wan-Video/Wan2.1">GitHub</a> &nbsp&nbsp | &nbsp&nbsp🤗 <a href="https://huggingface.co/Wan-AI/">Hugging Face</a>&nbsp&nbsp | &nbsp&nbsp🤖 <a href="https://modelscope.cn/organization/Wan-AI">ModelScope</a>&nbsp&nbsp | &nbsp&nbsp 📑 <a href="https://arxiv.org/abs/2503.20314">Technical Report</a> &nbsp&nbsp | &nbsp&nbsp 📑 <a href="https://wan.video/welcome?spm=a2ty_o02.30011076.0.0.6c9ee41eCcluqg">Blog</a> &nbsp&nbsp | &nbsp&nbsp💬 <a href="https://gw.alicdn.com/imgextra/i2/O1CN01tqjWFi1ByuyehkTSB_!!6000000000015-0-tps-611-1279.jpg">WeChat Group</a>&nbsp&nbsp | &nbsp&nbsp 📖 <a href="https://discord.gg/AKNgpMK4Yj">Discord</a>&nbsp&nbsp
17
+ <br>
18
+
19
+ -----
20
+
21
+ [**Wan: Open and Advanced Large-Scale Video Generative Models**](https://arxiv.org/abs/2503.20314) <be>
22
+
23
+ In this repository, we present **Wan2.1**, a comprehensive and open suite of video foundation models that pushes the boundaries of video generation. **Wan2.1** offers these key features:
24
+ - 👍 **SOTA Performance**: **Wan2.1** consistently outperforms existing open-source models and state-of-the-art commercial solutions across multiple benchmarks.
25
+ - 👍 **Supports Consumer-grade GPUs**: The T2V-1.3B model requires only 8.19 GB VRAM, making it compatible with almost all consumer-grade GPUs. It can generate a 5-second 480P video on an RTX 4090 in about 4 minutes (without optimization techniques like quantization). Its performance is even comparable to some closed-source models.
26
+ - 👍 **Multiple Tasks**: **Wan2.1** excels in Text-to-Video, Image-to-Video, Video Editing, Text-to-Image, and Video-to-Audio, advancing the field of video generation.
27
+ - 👍 **Visual Text Generation**: **Wan2.1** is the first video model capable of generating both Chinese and English text, featuring robust text generation that enhances its practical applications.
28
+ - 👍 **Powerful Video VAE**: **Wan-VAE** delivers exceptional efficiency and performance, encoding and decoding 1080P videos of any length while preserving temporal information, making it an ideal foundation for video and image generation.
29
+
30
+ ## Video Demos
31
+
32
+ <div align="center">
33
+ <video src="https://github.com/user-attachments/assets/4aca6063-60bf-4953-bfb7-e265053f49ef" width="70%" poster=""> </video>
34
+ </div>
35
+
36
+ ## 🔥 Latest News!!
37
+
38
+ * May 14, 2025: 👋 We introduce **Wan2.1** [VACE](https://github.com/ali-vilab/VACE), an all-in-one model for video creation and editing, along with its [inference code](#run-vace), [weights](#model-download), and [technical report](https://arxiv.org/abs/2503.07598)!
39
+ * Apr 17, 2025: 👋 We introduce **Wan2.1** [FLF2V](#run-first-last-frame-to-video-generation) with its inference code and weights!
40
+ * Mar 21, 2025: 👋 We are excited to announce the release of the **Wan2.1** [technical report](https://files.alicdn.com/tpsservice/5c9de1c74de03972b7aa657e5a54756b.pdf). We welcome discussions and feedback!
41
+ * Mar 3, 2025: 👋 **Wan2.1**'s T2V and I2V have been integrated into Diffusers ([T2V](https://huggingface.co/docs/diffusers/main/en/api/pipelines/wan#diffusers.WanPipeline) | [I2V](https://huggingface.co/docs/diffusers/main/en/api/pipelines/wan#diffusers.WanImageToVideoPipeline)). Feel free to give it a try!
42
+ * Feb 27, 2025: 👋 **Wan2.1** has been integrated into [ComfyUI](https://comfyanonymous.github.io/ComfyUI_examples/wan/). Enjoy!
43
+ * Feb 25, 2025: 👋 We've released the inference code and weights of **Wan2.1**.
44
+
45
+ ## Community Works
46
+ If your work has improved **Wan2.1** and you would like more people to see it, please inform us.
47
+ - [Phantom](https://github.com/Phantom-video/Phantom) has developed a unified video generation framework for single and multi-subject references based on **Wan2.1-T2V-1.3B**. Please refer to [their examples](https://github.com/Phantom-video/Phantom).
48
+ - [UniAnimate-DiT](https://github.com/ali-vilab/UniAnimate-DiT), based on **Wan2.1-14B-I2V**, has trained a Human image animation model and has open-sourced the inference and training code. Feel free to enjoy it!
49
+ - [CFG-Zero](https://github.com/WeichenFan/CFG-Zero-star) enhances **Wan2.1** (covering both T2V and I2V models) from the perspective of CFG.
50
+ - [TeaCache](https://github.com/ali-vilab/TeaCache) now supports **Wan2.1** acceleration, capable of increasing speed by approximately 2x. Feel free to give it a try!
51
+ - [DiffSynth-Studio](https://github.com/modelscope/DiffSynth-Studio) provides more support for **Wan2.1**, including video-to-video, FP8 quantization, VRAM optimization, LoRA training, and more. Please refer to [their examples](https://github.com/modelscope/DiffSynth-Studio/tree/main/examples/wanvideo).
52
+
53
+
54
+ ## 📑 Todo List
55
+ - Wan2.1 Text-to-Video
56
+ - [x] Multi-GPU Inference code of the 14B and 1.3B models
57
+ - [x] Checkpoints of the 14B and 1.3B models
58
+ - [x] Gradio demo
59
+ - [x] ComfyUI integration
60
+ - [x] Diffusers integration
61
+ - [ ] Diffusers + Multi-GPU Inference
62
+ - Wan2.1 Image-to-Video
63
+ - [x] Multi-GPU Inference code of the 14B model
64
+ - [x] Checkpoints of the 14B model
65
+ - [x] Gradio demo
66
+ - [x] ComfyUI integration
67
+ - [x] Diffusers integration
68
+ - [ ] Diffusers + Multi-GPU Inference
69
+ - Wan2.1 First-Last-Frame-to-Video
70
+ - [x] Multi-GPU Inference code of the 14B model
71
+ - [x] Checkpoints of the 14B model
72
+ - [x] Gradio demo
73
+ - [ ] ComfyUI integration
74
+ - [ ] Diffusers integration
75
+ - [ ] Diffusers + Multi-GPU Inference
76
+ - Wan2.1 VACE
77
+ - [x] Multi-GPU Inference code of the 14B and 1.3B models
78
+ - [x] Checkpoints of the 14B and 1.3B models
79
+ - [x] Gradio demo
80
+ - [x] ComfyUI integration
81
+ - [ ] Diffusers integration
82
+ - [ ] Diffusers + Multi-GPU Inference
83
+
84
+ ## Quickstart
85
+
86
+ #### Installation
87
+ Clone the repo:
88
+ ```sh
89
+ git clone https://github.com/Wan-Video/Wan2.1.git
90
+ cd Wan2.1
91
+ ```
92
+
93
+ Install dependencies:
94
+ ```sh
95
+ # Ensure torch >= 2.4.0
96
+ pip install -r requirements.txt
97
+ ```
98
+
99
+
100
+ #### Model Download
101
+
102
+ | Models | Download Link | Notes |
103
+ |--------------|---------------------------------------------------------------------------------------------------------------------------------------------------------|-------------------------------|
104
+ | T2V-14B | 🤗 [Huggingface](https://huggingface.co/Wan-AI/Wan2.1-T2V-14B) 🤖 [ModelScope](https://www.modelscope.cn/models/Wan-AI/Wan2.1-T2V-14B) | Supports both 480P and 720P
105
+ | I2V-14B-720P | 🤗 [Huggingface](https://huggingface.co/Wan-AI/Wan2.1-I2V-14B-720P) 🤖 [ModelScope](https://www.modelscope.cn/models/Wan-AI/Wan2.1-I2V-14B-720P) | Supports 720P
106
+ | I2V-14B-480P | 🤗 [Huggingface](https://huggingface.co/Wan-AI/Wan2.1-I2V-14B-480P) 🤖 [ModelScope](https://www.modelscope.cn/models/Wan-AI/Wan2.1-I2V-14B-480P) | Supports 480P
107
+ | T2V-1.3B | 🤗 [Huggingface](https://huggingface.co/Wan-AI/Wan2.1-T2V-1.3B) 🤖 [ModelScope](https://www.modelscope.cn/models/Wan-AI/Wan2.1-T2V-1.3B) | Supports 480P
108
+ | FLF2V-14B | 🤗 [Huggingface](https://huggingface.co/Wan-AI/Wan2.1-FLF2V-14B-720P) 🤖 [ModelScope](https://www.modelscope.cn/models/Wan-AI/Wan2.1-FLF2V-14B-720P) | Supports 720P
109
+ | VACE-1.3B | 🤗 [Huggingface](https://huggingface.co/Wan-AI/Wan2.1-VACE-1.3B) 🤖 [ModelScope](https://www.modelscope.cn/models/Wan-AI/Wan2.1-VACE-1.3B) | Supports 480P
110
+ | VACE-14B | 🤗 [Huggingface](https://huggingface.co/Wan-AI/Wan2.1-VACE-14B) 🤖 [ModelScope](https://www.modelscope.cn/models/Wan-AI/Wan2.1-VACE-14B) | Supports both 480P and 720P
111
+
112
+ > 💡Note:
113
+ > * The 1.3B model is capable of generating videos at 720P resolution. However, due to limited training at this resolution, the results are generally less stable compared to 480P. For optimal performance, we recommend using 480P resolution.
114
+ > * For the first-last frame to video generation, we train our model primarily on Chinese text-video pairs. Therefore, we recommend using Chinese prompt to achieve better results.
115
+
116
+
117
+ Download models using huggingface-cli:
118
+ ``` sh
119
+ pip install "huggingface_hub[cli]"
120
+ huggingface-cli download Wan-AI/Wan2.1-T2V-14B --local-dir ./Wan2.1-T2V-14B
121
+ ```
122
+
123
+ Download models using modelscope-cli:
124
+ ``` sh
125
+ pip install modelscope
126
+ modelscope download Wan-AI/Wan2.1-T2V-14B --local_dir ./Wan2.1-T2V-14B
127
+ ```
128
+ #### Run Text-to-Video Generation
129
+
130
+ This repository supports two Text-to-Video models (1.3B and 14B) and two resolutions (480P and 720P). The parameters and configurations for these models are as follows:
131
+
132
+ <table>
133
+ <thead>
134
+ <tr>
135
+ <th rowspan="2">Task</th>
136
+ <th colspan="2">Resolution</th>
137
+ <th rowspan="2">Model</th>
138
+ </tr>
139
+ <tr>
140
+ <th>480P</th>
141
+ <th>720P</th>
142
+ </tr>
143
+ </thead>
144
+ <tbody>
145
+ <tr>
146
+ <td>t2v-14B</td>
147
+ <td style="color: green;">✔️</td>
148
+ <td style="color: green;">✔️</td>
149
+ <td>Wan2.1-T2V-14B</td>
150
+ </tr>
151
+ <tr>
152
+ <td>t2v-1.3B</td>
153
+ <td style="color: green;">✔️</td>
154
+ <td style="color: red;">❌</td>
155
+ <td>Wan2.1-T2V-1.3B</td>
156
+ </tr>
157
+ </tbody>
158
+ </table>
159
+
160
+
161
+ ##### (1) Without Prompt Extension
162
+
163
+ To facilitate implementation, we will start with a basic version of the inference process that skips the [prompt extension](#2-using-prompt-extention) step.
164
+
165
+ - Single-GPU inference
166
+
167
+ ``` sh
168
+ python generate.py --task t2v-14B --size 1280*720 --ckpt_dir ./Wan2.1-T2V-14B --prompt "Two anthropomorphic cats in comfy boxing gear and bright gloves fight intensely on a spotlighted stage."
169
+ ```
170
+
171
+ If you encounter OOM (Out-of-Memory) issues, you can use the `--offload_model True` and `--t5_cpu` options to reduce GPU memory usage. For example, on an RTX 4090 GPU:
172
+
173
+ ``` sh
174
+ python generate.py --task t2v-1.3B --size 832*480 --ckpt_dir ./Wan2.1-T2V-1.3B --offload_model True --t5_cpu --sample_shift 8 --sample_guide_scale 6 --prompt "Two anthropomorphic cats in comfy boxing gear and bright gloves fight intensely on a spotlighted stage."
175
+ ```
176
+
177
+ > 💡Note: If you are using the `T2V-1.3B` model, we recommend setting the parameter `--sample_guide_scale 6`. The `--sample_shift parameter` can be adjusted within the range of 8 to 12 based on the performance.
178
+
179
+
180
+ - Multi-GPU inference using FSDP + xDiT USP
181
+
182
+ We use FSDP and [xDiT](https://github.com/xdit-project/xDiT) USP to accelerate inference.
183
+
184
+ * Ulysess Strategy
185
+
186
+ If you want to use [`Ulysses`](https://arxiv.org/abs/2309.14509) strategy, you should set `--ulysses_size $GPU_NUMS`. Note that the `num_heads` should be divisible by `ulysses_size` if you wish to use `Ulysess` strategy. For the 1.3B model, the `num_heads` is `12` which can't be divided by 8 (as most multi-GPU machines have 8 GPUs). Therefore, it is recommended to use `Ring Strategy` instead.
187
+
188
+ * Ring Strategy
189
+
190
+ If you want to use [`Ring`](https://arxiv.org/pdf/2310.01889) strategy, you should set `--ring_size $GPU_NUMS`. Note that the `sequence length` should be divisible by `ring_size` when using the `Ring` strategy.
191
+
192
+ Of course, you can also combine the use of `Ulysses` and `Ring` strategies.
193
+
194
+
195
+ ``` sh
196
+ pip install "xfuser>=0.4.1"
197
+ torchrun --nproc_per_node=8 generate.py --task t2v-14B --size 1280*720 --ckpt_dir ./Wan2.1-T2V-14B --dit_fsdp --t5_fsdp --ulysses_size 8 --prompt "Two anthropomorphic cats in comfy boxing gear and bright gloves fight intensely on a spotlighted stage."
198
+ ```
199
+
200
+
201
+ ##### (2) Using Prompt Extension
202
+
203
+ Extending the prompts can effectively enrich the details in the generated videos, further enhancing the video quality. Therefore, we recommend enabling prompt extension. We provide the following two methods for prompt extension:
204
+
205
+ - Use the Dashscope API for extension.
206
+ - Apply for a `dashscope.api_key` in advance ([EN](https://www.alibabacloud.com/help/en/model-studio/getting-started/first-api-call-to-qwen) | [CN](https://help.aliyun.com/zh/model-studio/getting-started/first-api-call-to-qwen)).
207
+ - Configure the environment variable `DASH_API_KEY` to specify the Dashscope API key. For users of Alibaba Cloud's international site, you also need to set the environment variable `DASH_API_URL` to 'https://dashscope-intl.aliyuncs.com/api/v1'. For more detailed instructions, please refer to the [dashscope document](https://www.alibabacloud.com/help/en/model-studio/developer-reference/use-qwen-by-calling-api?spm=a2c63.p38356.0.i1).
208
+ - Use the `qwen-plus` model for text-to-video tasks and `qwen-vl-max` for image-to-video tasks.
209
+ - You can modify the model used for extension with the parameter `--prompt_extend_model`. For example:
210
+ ```sh
211
+ DASH_API_KEY=your_key python generate.py --task t2v-14B --size 1280*720 --ckpt_dir ./Wan2.1-T2V-14B --prompt "Two anthropomorphic cats in comfy boxing gear and bright gloves fight intensely on a spotlighted stage" --use_prompt_extend --prompt_extend_method 'dashscope' --prompt_extend_target_lang 'zh'
212
+ ```
213
+
214
+ - Using a local model for extension.
215
+
216
+ - By default, the Qwen model on HuggingFace is used for this extension. Users can choose Qwen models or other models based on the available GPU memory size.
217
+ - For text-to-video tasks, you can use models like `Qwen/Qwen2.5-14B-Instruct`, `Qwen/Qwen2.5-7B-Instruct` and `Qwen/Qwen2.5-3B-Instruct`.
218
+ - For image-to-video or first-last-frame-to-video tasks, you can use models like `Qwen/Qwen2.5-VL-7B-Instruct` and `Qwen/Qwen2.5-VL-3B-Instruct`.
219
+ - Larger models generally provide better extension results but require more GPU memory.
220
+ - You can modify the model used for extension with the parameter `--prompt_extend_model` , allowing you to specify either a local model path or a Hugging Face model. For example:
221
+
222
+ ``` sh
223
+ python generate.py --task t2v-14B --size 1280*720 --ckpt_dir ./Wan2.1-T2V-14B --prompt "Two anthropomorphic cats in comfy boxing gear and bright gloves fight intensely on a spotlighted stage" --use_prompt_extend --prompt_extend_method 'local_qwen' --prompt_extend_target_lang 'zh'
224
+ ```
225
+
226
+
227
+ ##### (3) Running with Diffusers
228
+
229
+ You can easily inference **Wan2.1**-T2V using Diffusers with the following command:
230
+ ``` python
231
+ import torch
232
+ from diffusers.utils import export_to_video
233
+ from diffusers import AutoencoderKLWan, WanPipeline
234
+ from diffusers.schedulers.scheduling_unipc_multistep import UniPCMultistepScheduler
235
+
236
+ # Available models: Wan-AI/Wan2.1-T2V-14B-Diffusers, Wan-AI/Wan2.1-T2V-1.3B-Diffusers
237
+ model_id = "Wan-AI/Wan2.1-T2V-14B-Diffusers"
238
+ vae = AutoencoderKLWan.from_pretrained(model_id, subfolder="vae", torch_dtype=torch.float32)
239
+ flow_shift = 5.0 # 5.0 for 720P, 3.0 for 480P
240
+ scheduler = UniPCMultistepScheduler(prediction_type='flow_prediction', use_flow_sigmas=True, num_train_timesteps=1000, flow_shift=flow_shift)
241
+ pipe = WanPipeline.from_pretrained(model_id, vae=vae, torch_dtype=torch.bfloat16)
242
+ pipe.scheduler = scheduler
243
+ pipe.to("cuda")
244
+
245
+ prompt = "A cat and a dog baking a cake together in a kitchen. The cat is carefully measuring flour, while the dog is stirring the batter with a wooden spoon. The kitchen is cozy, with sunlight streaming through the window."
246
+ negative_prompt = "Bright tones, overexposed, static, blurred details, subtitles, style, works, paintings, images, static, overall gray, worst quality, low quality, JPEG compression residue, ugly, incomplete, extra fingers, poorly drawn hands, poorly drawn faces, deformed, disfigured, misshapen limbs, fused fingers, still picture, messy background, three legs, many people in the background, walking backwards"
247
+
248
+ output = pipe(
249
+ prompt=prompt,
250
+ negative_prompt=negative_prompt,
251
+ height=720,
252
+ width=1280,
253
+ num_frames=81,
254
+ guidance_scale=5.0,
255
+ ).frames[0]
256
+ export_to_video(output, "output.mp4", fps=16)
257
+ ```
258
+ > 💡Note: Please note that this example does not integrate Prompt Extension and distributed inference. We will soon update with the integrated prompt extension and multi-GPU version of Diffusers.
259
+
260
+
261
+ ##### (4) Running local gradio
262
+
263
+ ``` sh
264
+ cd gradio
265
+ # if one uses dashscope’s API for prompt extension
266
+ DASH_API_KEY=your_key python t2v_14B_singleGPU.py --prompt_extend_method 'dashscope' --ckpt_dir ./Wan2.1-T2V-14B
267
+
268
+ # if one uses a local model for prompt extension
269
+ python t2v_14B_singleGPU.py --prompt_extend_method 'local_qwen' --ckpt_dir ./Wan2.1-T2V-14B
270
+ ```
271
+
272
+
273
+
274
+ #### Run Image-to-Video Generation
275
+
276
+ Similar to Text-to-Video, Image-to-Video is also divided into processes with and without the prompt extension step. The specific parameters and their corresponding settings are as follows:
277
+ <table>
278
+ <thead>
279
+ <tr>
280
+ <th rowspan="2">Task</th>
281
+ <th colspan="2">Resolution</th>
282
+ <th rowspan="2">Model</th>
283
+ </tr>
284
+ <tr>
285
+ <th>480P</th>
286
+ <th>720P</th>
287
+ </tr>
288
+ </thead>
289
+ <tbody>
290
+ <tr>
291
+ <td>i2v-14B</td>
292
+ <td style="color: green;">❌</td>
293
+ <td style="color: green;">✔️</td>
294
+ <td>Wan2.1-I2V-14B-720P</td>
295
+ </tr>
296
+ <tr>
297
+ <td>i2v-14B</td>
298
+ <td style="color: green;">✔️</td>
299
+ <td style="color: red;">❌</td>
300
+ <td>Wan2.1-T2V-14B-480P</td>
301
+ </tr>
302
+ </tbody>
303
+ </table>
304
+
305
+
306
+ ##### (1) Without Prompt Extension
307
+
308
+ - Single-GPU inference
309
+ ```sh
310
+ python generate.py --task i2v-14B --size 1280*720 --ckpt_dir ./Wan2.1-I2V-14B-720P --image examples/i2v_input.JPG --prompt "Summer beach vacation style, a white cat wearing sunglasses sits on a surfboard. The fluffy-furred feline gazes directly at the camera with a relaxed expression. Blurred beach scenery forms the background featuring crystal-clear waters, distant green hills, and a blue sky dotted with white clouds. The cat assumes a naturally relaxed posture, as if savoring the sea breeze and warm sunlight. A close-up shot highlights the feline's intricate details and the refreshing atmosphere of the seaside."
311
+ ```
312
+
313
+ > 💡For the Image-to-Video task, the `size` parameter represents the area of the generated video, with the aspect ratio following that of the original input image.
314
+
315
+
316
+ - Multi-GPU inference using FSDP + xDiT USP
317
+
318
+ ```sh
319
+ pip install "xfuser>=0.4.1"
320
+ torchrun --nproc_per_node=8 generate.py --task i2v-14B --size 1280*720 --ckpt_dir ./Wan2.1-I2V-14B-720P --image examples/i2v_input.JPG --dit_fsdp --t5_fsdp --ulysses_size 8 --prompt "Summer beach vacation style, a white cat wearing sunglasses sits on a surfboard. The fluffy-furred feline gazes directly at the camera with a relaxed expression. Blurred beach scenery forms the background featuring crystal-clear waters, distant green hills, and a blue sky dotted with white clouds. The cat assumes a naturally relaxed posture, as if savoring the sea breeze and warm sunlight. A close-up shot highlights the feline's intricate details and the refreshing atmosphere of the seaside."
321
+ ```
322
+
323
+ ##### (2) Using Prompt Extension
324
+
325
+
326
+ The process of prompt extension can be referenced [here](#2-using-prompt-extention).
327
+
328
+ Run with local prompt extension using `Qwen/Qwen2.5-VL-7B-Instruct`:
329
+ ```
330
+ python generate.py --task i2v-14B --size 1280*720 --ckpt_dir ./Wan2.1-I2V-14B-720P --image examples/i2v_input.JPG --use_prompt_extend --prompt_extend_model Qwen/Qwen2.5-VL-7B-Instruct --prompt "Summer beach vacation style, a white cat wearing sunglasses sits on a surfboard. The fluffy-furred feline gazes directly at the camera with a relaxed expression. Blurred beach scenery forms the background featuring crystal-clear waters, distant green hills, and a blue sky dotted with white clouds. The cat assumes a naturally relaxed posture, as if savoring the sea breeze and warm sunlight. A close-up shot highlights the feline's intricate details and the refreshing atmosphere of the seaside."
331
+ ```
332
+
333
+ Run with remote prompt extension using `dashscope`:
334
+ ```
335
+ DASH_API_KEY=your_key python generate.py --task i2v-14B --size 1280*720 --ckpt_dir ./Wan2.1-I2V-14B-720P --image examples/i2v_input.JPG --use_prompt_extend --prompt_extend_method 'dashscope' --prompt "Summer beach vacation style, a white cat wearing sunglasses sits on a surfboard. The fluffy-furred feline gazes directly at the camera with a relaxed expression. Blurred beach scenery forms the background featuring crystal-clear waters, distant green hills, and a blue sky dotted with white clouds. The cat assumes a naturally relaxed posture, as if savoring the sea breeze and warm sunlight. A close-up shot highlights the feline's intricate details and the refreshing atmosphere of the seaside."
336
+ ```
337
+
338
+
339
+ ##### (3) Running with Diffusers
340
+
341
+ You can easily inference **Wan2.1**-I2V using Diffusers with the following command:
342
+ ``` python
343
+ import torch
344
+ import numpy as np
345
+ from diffusers import AutoencoderKLWan, WanImageToVideoPipeline
346
+ from diffusers.utils import export_to_video, load_image
347
+ from transformers import CLIPVisionModel
348
+
349
+ # Available models: Wan-AI/Wan2.1-I2V-14B-480P-Diffusers, Wan-AI/Wan2.1-I2V-14B-720P-Diffusers
350
+ model_id = "Wan-AI/Wan2.1-I2V-14B-720P-Diffusers"
351
+ image_encoder = CLIPVisionModel.from_pretrained(model_id, subfolder="image_encoder", torch_dtype=torch.float32)
352
+ vae = AutoencoderKLWan.from_pretrained(model_id, subfolder="vae", torch_dtype=torch.float32)
353
+ pipe = WanImageToVideoPipeline.from_pretrained(model_id, vae=vae, image_encoder=image_encoder, torch_dtype=torch.bfloat16)
354
+ pipe.to("cuda")
355
+
356
+ image = load_image(
357
+ "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/diffusers/astronaut.jpg"
358
+ )
359
+ max_area = 720 * 1280
360
+ aspect_ratio = image.height / image.width
361
+ mod_value = pipe.vae_scale_factor_spatial * pipe.transformer.config.patch_size[1]
362
+ height = round(np.sqrt(max_area * aspect_ratio)) // mod_value * mod_value
363
+ width = round(np.sqrt(max_area / aspect_ratio)) // mod_value * mod_value
364
+ image = image.resize((width, height))
365
+ prompt = (
366
+ "An astronaut hatching from an egg, on the surface of the moon, the darkness and depth of space realised in "
367
+ "the background. High quality, ultrarealistic detail and breath-taking movie-like camera shot."
368
+ )
369
+ negative_prompt = "Bright tones, overexposed, static, blurred details, subtitles, style, works, paintings, images, static, overall gray, worst quality, low quality, JPEG compression residue, ugly, incomplete, extra fingers, poorly drawn hands, poorly drawn faces, deformed, disfigured, misshapen limbs, fused fingers, still picture, messy background, three legs, many people in the background, walking backwards"
370
+
371
+ output = pipe(
372
+ image=image,
373
+ prompt=prompt,
374
+ negative_prompt=negative_prompt,
375
+ height=height, width=width,
376
+ num_frames=81,
377
+ guidance_scale=5.0
378
+ ).frames[0]
379
+ export_to_video(output, "output.mp4", fps=16)
380
+
381
+ ```
382
+ > 💡Note: Please note that this example does not integrate Prompt Extension and distributed inference. We will soon update with the integrated prompt extension and multi-GPU version of Diffusers.
383
+
384
+
385
+ ##### (4) Running local gradio
386
+
387
+ ```sh
388
+ cd gradio
389
+ # if one only uses 480P model in gradio
390
+ DASH_API_KEY=your_key python i2v_14B_singleGPU.py --prompt_extend_method 'dashscope' --ckpt_dir_480p ./Wan2.1-I2V-14B-480P
391
+
392
+ # if one only uses 720P model in gradio
393
+ DASH_API_KEY=your_key python i2v_14B_singleGPU.py --prompt_extend_method 'dashscope' --ckpt_dir_720p ./Wan2.1-I2V-14B-720P
394
+
395
+ # if one uses both 480P and 720P models in gradio
396
+ DASH_API_KEY=your_key python i2v_14B_singleGPU.py --prompt_extend_method 'dashscope' --ckpt_dir_480p ./Wan2.1-I2V-14B-480P --ckpt_dir_720p ./Wan2.1-I2V-14B-720P
397
+ ```
398
+
399
+
400
+ #### Run First-Last-Frame-to-Video Generation
401
+
402
+ First-Last-Frame-to-Video is also divided into processes with and without the prompt extension step. Currently, only 720P is supported. The specific parameters and corresponding settings are as follows:
403
+ <table>
404
+ <thead>
405
+ <tr>
406
+ <th rowspan="2">Task</th>
407
+ <th colspan="2">Resolution</th>
408
+ <th rowspan="2">Model</th>
409
+ </tr>
410
+ <tr>
411
+ <th>480P</th>
412
+ <th>720P</th>
413
+ </tr>
414
+ </thead>
415
+ <tbody>
416
+ <tr>
417
+ <td>flf2v-14B</td>
418
+ <td style="color: green;">❌</td>
419
+ <td style="color: green;">✔️</td>
420
+ <td>Wan2.1-FLF2V-14B-720P</td>
421
+ </tr>
422
+ </tbody>
423
+ </table>
424
+
425
+
426
+ ##### (1) Without Prompt Extension
427
+
428
+ - Single-GPU inference
429
+ ```sh
430
+ python generate.py --task flf2v-14B --size 1280*720 --ckpt_dir ./Wan2.1-FLF2V-14B-720P --first_frame examples/flf2v_input_first_frame.png --last_frame examples/flf2v_input_last_frame.png --prompt "CG animation style, a small blue bird takes off from the ground, flapping its wings. The bird’s feathers are delicate, with a unique pattern on its chest. The background shows a blue sky with white clouds under bright sunshine. The camera follows the bird upward, capturing its flight and the vastness of the sky from a close-up, low-angle perspective."
431
+ ```
432
+
433
+ > 💡Similar to Image-to-Video, the `size` parameter represents the area of the generated video, with the aspect ratio following that of the original input image.
434
+
435
+
436
+ - Multi-GPU inference using FSDP + xDiT USP
437
+
438
+ ```sh
439
+ pip install "xfuser>=0.4.1"
440
+ torchrun --nproc_per_node=8 generate.py --task flf2v-14B --size 1280*720 --ckpt_dir ./Wan2.1-FLF2V-14B-720P --first_frame examples/flf2v_input_first_frame.png --last_frame examples/flf2v_input_last_frame.png --dit_fsdp --t5_fsdp --ulysses_size 8 --prompt "CG animation style, a small blue bird takes off from the ground, flapping its wings. The bird’s feathers are delicate, with a unique pattern on its chest. The background shows a blue sky with white clouds under bright sunshine. The camera follows the bird upward, capturing its flight and the vastness of the sky from a close-up, low-angle perspective."
441
+ ```
442
+
443
+ ##### (2) Using Prompt Extension
444
+
445
+
446
+ The process of prompt extension can be referenced [here](#2-using-prompt-extention).
447
+
448
+ Run with local prompt extension using `Qwen/Qwen2.5-VL-7B-Instruct`:
449
+ ```
450
+ python generate.py --task flf2v-14B --size 1280*720 --ckpt_dir ./Wan2.1-FLF2V-14B-720P --first_frame examples/flf2v_input_first_frame.png --last_frame examples/flf2v_input_last_frame.png --use_prompt_extend --prompt_extend_model Qwen/Qwen2.5-VL-7B-Instruct --prompt "CG animation style, a small blue bird takes off from the ground, flapping its wings. The bird’s feathers are delicate, with a unique pattern on its chest. The background shows a blue sky with white clouds under bright sunshine. The camera follows the bird upward, capturing its flight and the vastness of the sky from a close-up, low-angle perspective."
451
+ ```
452
+
453
+ Run with remote prompt extension using `dashscope`:
454
+ ```
455
+ DASH_API_KEY=your_key python generate.py --task flf2v-14B --size 1280*720 --ckpt_dir ./Wan2.1-FLF2V-14B-720P --first_frame examples/flf2v_input_first_frame.png --last_frame examples/flf2v_input_last_frame.png --use_prompt_extend --prompt_extend_method 'dashscope' --prompt "CG animation style, a small blue bird takes off from the ground, flapping its wings. The bird’s feathers are delicate, with a unique pattern on its chest. The background shows a blue sky with white clouds under bright sunshine. The camera follows the bird upward, capturing its flight and the vastness of the sky from a close-up, low-angle perspective."
456
+ ```
457
+
458
+
459
+ ##### (3) Running local gradio
460
+
461
+ ```sh
462
+ cd gradio
463
+ # use 720P model in gradio
464
+ DASH_API_KEY=your_key python flf2v_14B_singleGPU.py --prompt_extend_method 'dashscope' --ckpt_dir_720p ./Wan2.1-FLF2V-14B-720P
465
+ ```
466
+
467
+
468
+ #### Run VACE
469
+
470
+ [VACE](https://github.com/ali-vilab/VACE) now supports two models (1.3B and 14B) and two main resolutions (480P and 720P).
471
+ The input supports any resolution, but to achieve optimal results, the video size should fall within a specific range.
472
+ The parameters and configurations for these models are as follows:
473
+
474
+ <table>
475
+ <thead>
476
+ <tr>
477
+ <th rowspan="2">Task</th>
478
+ <th colspan="2">Resolution</th>
479
+ <th rowspan="2">Model</th>
480
+ </tr>
481
+ <tr>
482
+ <th>480P(~81x480x832)</th>
483
+ <th>720P(~81x720x1280)</th>
484
+ </tr>
485
+ </thead>
486
+ <tbody>
487
+ <tr>
488
+ <td>VACE</td>
489
+ <td style="color: green; text-align: center; vertical-align: middle;">✔️</td>
490
+ <td style="color: green; text-align: center; vertical-align: middle;">✔️</td>
491
+ <td>Wan2.1-VACE-14B</td>
492
+ </tr>
493
+ <tr>
494
+ <td>VACE</td>
495
+ <td style="color: green; text-align: center; vertical-align: middle;">✔️</td>
496
+ <td style="color: red; text-align: center; vertical-align: middle;">❌</td>
497
+ <td>Wan2.1-VACE-1.3B</td>
498
+ </tr>
499
+ </tbody>
500
+ </table>
501
+
502
+ In VACE, users can input text prompt and optional video, mask, and image for video generation or editing. Detailed instructions for using VACE can be found in the [User Guide](https://github.com/ali-vilab/VACE/blob/main/UserGuide.md).
503
+ The execution process is as follows:
504
+
505
+ ##### (1) Preprocessing
506
+
507
+ User-collected materials needs to be preprocessed into VACE-recognizable inputs, including `src_video`, `src_mask`, `src_ref_images`, and `prompt`.
508
+ For R2V (Reference-to-Video Generation), you may skip this preprocessing, but for V2V (Video-to-Video Editing) and MV2V (Masked Video-to-Video Editing) tasks, additional preprocessing is required to obtain video with conditions such as depth, pose or masked regions.
509
+ For more details, please refer to [vace_preproccess](https://github.com/ali-vilab/VACE/blob/main/vace/vace_preproccess.py).
510
+
511
+ ##### (2) cli inference
512
+
513
+ - Single-GPU inference
514
+ ```sh
515
+ python generate.py --task vace-1.3B --size 832*480 --ckpt_dir ./Wan2.1-VACE-1.3B --src_ref_images examples/girl.png,examples/snake.png --prompt "在一个欢乐而充满节日气氛的场景中,穿着鲜艳红色春服的小女孩正与她的可爱卡通蛇嬉戏。她的春服上绣着金色吉祥图案,散发着喜庆的气息,脸上洋溢着灿烂的笑容。蛇身呈现出亮眼的绿色,形状圆润,宽大的眼睛让它显得既友善又幽默。小女孩欢快地用手轻轻抚摸着蛇的头部,共同享受着这温馨的时刻。周围五彩斑斓的灯笼和彩带装饰着环境,阳光透过洒在她们身上,营造出一个充满友爱与幸福的新年氛围。"
516
+ ```
517
+
518
+ - Multi-GPU inference using FSDP + xDiT USP
519
+
520
+ ```sh
521
+ torchrun --nproc_per_node=8 generate.py --task vace-14B --size 1280*720 --ckpt_dir ./Wan2.1-VACE-14B --dit_fsdp --t5_fsdp --ulysses_size 8 --src_ref_images examples/girl.png,examples/snake.png --prompt "在一个欢乐而充满节日气氛的场景中,穿着鲜艳红色春服的小女孩正与她的可爱卡通蛇嬉戏。她的春服上绣着金色吉祥图案,散发着喜庆的气息,脸上洋溢着灿烂的笑容。蛇身呈现出亮眼的绿色,形状圆润,宽大的眼睛让它显得既友善又幽默。小女孩欢快地用手轻轻抚摸着蛇的头部,共同享受着这温馨的时刻。周围五彩斑斓的灯笼和彩带装饰着环境,阳光透过洒在她们身上,营造出一个充满友爱与幸福的新年氛围。"
522
+ ```
523
+
524
+ ##### (3) Running local gradio
525
+ - Single-GPU inference
526
+ ```sh
527
+ python gradio/vace.py --ckpt_dir ./Wan2.1-VACE-1.3B
528
+ ```
529
+
530
+ - Multi-GPU inference using FSDP + xDiT USP
531
+ ```sh
532
+ python gradio/vace.py --mp --ulysses_size 8 --ckpt_dir ./Wan2.1-VACE-14B/
533
+ ```
534
+
535
+ #### Run Text-to-Image Generation
536
+
537
+ Wan2.1 is a unified model for both image and video generation. Since it was trained on both types of data, it can also generate images. The command for generating images is similar to video generation, as follows:
538
+
539
+ ##### (1) Without Prompt Extension
540
+
541
+ - Single-GPU inference
542
+ ```sh
543
+ python generate.py --task t2i-14B --size 1024*1024 --ckpt_dir ./Wan2.1-T2V-14B --prompt '一个朴素端庄的美人'
544
+ ```
545
+
546
+ - Multi-GPU inference using FSDP + xDiT USP
547
+
548
+ ```sh
549
+ torchrun --nproc_per_node=8 generate.py --dit_fsdp --t5_fsdp --ulysses_size 8 --base_seed 0 --frame_num 1 --task t2i-14B --size 1024*1024 --prompt '一个朴素端庄的美人' --ckpt_dir ./Wan2.1-T2V-14B
550
+ ```
551
+
552
+ ##### (2) With Prompt Extention
553
+
554
+ - Single-GPU inference
555
+ ```sh
556
+ python generate.py --task t2i-14B --size 1024*1024 --ckpt_dir ./Wan2.1-T2V-14B --prompt '一个朴素端庄的美人' --use_prompt_extend
557
+ ```
558
+
559
+ - Multi-GPU inference using FSDP + xDiT USP
560
+ ```sh
561
+ torchrun --nproc_per_node=8 generate.py --dit_fsdp --t5_fsdp --ulysses_size 8 --base_seed 0 --frame_num 1 --task t2i-14B --size 1024*1024 --ckpt_dir ./Wan2.1-T2V-14B --prompt '一个朴素端庄的美人' --use_prompt_extend
562
+ ```
563
+
564
+
565
+ ## Manual Evaluation
566
+
567
+ ##### (1) Text-to-Video Evaluation
568
+
569
+ Through manual evaluation, the results generated after prompt extension are superior to those from both closed-source and open-source models.
570
+
571
+ <div align="center">
572
+ <img src="assets/t2v_res.jpg" alt="" style="width: 80%;" />
573
+ </div>
574
+
575
+
576
+ ##### (2) Image-to-Video Evaluation
577
+
578
+ We also conducted extensive manual evaluations to evaluate the performance of the Image-to-Video model, and the results are presented in the table below. The results clearly indicate that **Wan2.1** outperforms both closed-source and open-source models.
579
+
580
+ <div align="center">
581
+ <img src="assets/i2v_res.png" alt="" style="width: 80%;" />
582
+ </div>
583
+
584
+
585
+ ## Computational Efficiency on Different GPUs
586
+
587
+ We test the computational efficiency of different **Wan2.1** models on different GPUs in the following table. The results are presented in the format: **Total time (s) / peak GPU memory (GB)**.
588
+
589
+
590
+ <div align="center">
591
+ <img src="assets/comp_effic.png" alt="" style="width: 80%;" />
592
+ </div>
593
+
594
+ > The parameter settings for the tests presented in this table are as follows:
595
+ > (1) For the 1.3B model on 8 GPUs, set `--ring_size 8` and `--ulysses_size 1`;
596
+ > (2) For the 14B model on 1 GPU, use `--offload_model True`;
597
+ > (3) For the 1.3B model on a single 4090 GPU, set `--offload_model True --t5_cpu`;
598
+ > (4) For all testings, no prompt extension was applied, meaning `--use_prompt_extend` was not enabled.
599
+
600
+ > 💡Note: T2V-14B is slower than I2V-14B because the former samples 50 steps while the latter uses 40 steps.
601
+
602
+
603
+ -------
604
+
605
+ ## Introduction of Wan2.1
606
+
607
+ **Wan2.1** is designed on the mainstream diffusion transformer paradigm, achieving significant advancements in generative capabilities through a series of innovations. These include our novel spatio-temporal variational autoencoder (VAE), scalable training strategies, large-scale data construction, and automated evaluation metrics. Collectively, these contributions enhance the model’s performance and versatility.
608
+
609
+
610
+ ##### (1) 3D Variational Autoencoders
611
+ We propose a novel 3D causal VAE architecture, termed **Wan-VAE** specifically designed for video generation. By combining multiple strategies, we improve spatio-temporal compression, reduce memory usage, and ensure temporal causality. **Wan-VAE** demonstrates significant advantages in performance efficiency compared to other open-source VAEs. Furthermore, our **Wan-VAE** can encode and decode unlimited-length 1080P videos without losing historical temporal information, making it particularly well-suited for video generation tasks.
612
+
613
+
614
+ <div align="center">
615
+ <img src="assets/video_vae_res.jpg" alt="" style="width: 80%;" />
616
+ </div>
617
+
618
+
619
+ ##### (2) Video Diffusion DiT
620
+
621
+ **Wan2.1** is designed using the Flow Matching framework within the paradigm of mainstream Diffusion Transformers. Our model's architecture uses the T5 Encoder to encode multilingual text input, with cross-attention in each transformer block embedding the text into the model structure. Additionally, we employ an MLP with a Linear layer and a SiLU layer to process the input time embeddings and predict six modulation parameters individually. This MLP is shared across all transformer blocks, with each block learning a distinct set of biases. Our experimental findings reveal a significant performance improvement with this approach at the same parameter scale.
622
+
623
+ <div align="center">
624
+ <img src="assets/video_dit_arch.jpg" alt="" style="width: 80%;" />
625
+ </div>
626
+
627
+
628
+ | Model | Dimension | Input Dimension | Output Dimension | Feedforward Dimension | Frequency Dimension | Number of Heads | Number of Layers |
629
+ |--------|-----------|-----------------|------------------|-----------------------|---------------------|-----------------|------------------|
630
+ | 1.3B | 1536 | 16 | 16 | 8960 | 256 | 12 | 30 |
631
+ | 14B | 5120 | 16 | 16 | 13824 | 256 | 40 | 40 |
632
+
633
+
634
+
635
+ ##### Data
636
+
637
+ We curated and deduplicated a candidate dataset comprising a vast amount of image and video data. During the data curation process, we designed a four-step data cleaning process, focusing on fundamental dimensions, visual quality and motion quality. Through the robust data processing pipeline, we can easily obtain high-quality, diverse, and large-scale training sets of images and videos.
638
+
639
+ ![figure1](assets/data_for_diff_stage.jpg "figure1")
640
+
641
+
642
+ ##### Comparisons to SOTA
643
+ We compared **Wan2.1** with leading open-source and closed-source models to evaluate the performance. Using our carefully designed set of 1,035 internal prompts, we tested across 14 major dimensions and 26 sub-dimensions. We then compute the total score by performing a weighted calculation on the scores of each dimension, utilizing weights derived from human preferences in the matching process. The detailed results are shown in the table below. These results demonstrate our model's superior performance compared to both open-source and closed-source models.
644
+
645
+ ![figure1](assets/vben_vs_sota.png "figure1")
646
+
647
+
648
+ ## Citation
649
+ If you find our work helpful, please cite us.
650
+
651
+ ```
652
+ @article{wan2025,
653
+ title={Wan: Open and Advanced Large-Scale Video Generative Models},
654
+ author={Ang Wang and Baole Ai and Bin Wen and Chaojie Mao and Chen-Wei Xie and Di Chen and Feiwu Yu and Haiming Zhao and Jianxiao Yang and Jianyuan Zeng and Jiayu Wang and Jingfeng Zhang and Jingren Zhou and Jinkai Wang and Jixuan Chen and Kai Zhu and Kang Zhao and Keyu Yan and Lianghua Huang and Mengyang Feng and Ningyi Zhang and Pandeng Li and Pingyu Wu and Ruihang Chu and Ruili Feng and Shiwei Zhang and Siyang Sun and Tao Fang and Tianxing Wang and Tianyi Gui and Tingyu Weng and Tong Shen and Wei Lin and Wei Wang and Wei Wang and Wenmeng Zhou and Wente Wang and Wenting Shen and Wenyuan Yu and Xianzhong Shi and Xiaoming Huang and Xin Xu and Yan Kou and Yangyu Lv and Yifei Li and Yijing Liu and Yiming Wang and Yingya Zhang and Yitong Huang and Yong Li and You Wu and Yu Liu and Yulin Pan and Yun Zheng and Yuntao Hong and Yupeng Shi and Yutong Feng and Zeyinzi Jiang and Zhen Han and Zhi-Fan Wu and Ziyu Liu},
655
+ journal = {arXiv preprint arXiv:2503.20314},
656
+ year={2025}
657
+ }
658
+ ```
659
+
660
+ ## License Agreement
661
+ The models in this repository are licensed under the Apache 2.0 License. We claim no rights over the your generated contents, granting you the freedom to use them while ensuring that your usage complies with the provisions of this license. You are fully accountable for your use of the models, which must not involve sharing any content that violates applicable laws, causes harm to individuals or groups, disseminates personal information intended for harm, spreads misinformation, or targets vulnerable populations. For a complete list of restrictions and details regarding your rights, please refer to the full text of the [license](LICENSE.txt).
662
+
663
+
664
+ ## Acknowledgements
665
+
666
+ We would like to thank the contributors to the [SD3](https://huggingface.co/stabilityai/stable-diffusion-3-medium), [Qwen](https://huggingface.co/Qwen), [umt5-xxl](https://huggingface.co/google/umt5-xxl), [diffusers](https://github.com/huggingface/diffusers) and [HuggingFace](https://huggingface.co) repositories, for their open research.
667
+
668
+
669
+
670
+ ## Contact Us
671
+ If you would like to leave a message to our research or product teams, feel free to join our [Discord](https://discord.gg/AKNgpMK4Yj) or [WeChat groups](https://gw.alicdn.com/imgextra/i2/O1CN01tqjWFi1ByuyehkTSB_!!6000000000015-0-tps-611-1279.jpg)!