bubbliiiing commited on
Commit
17459c7
·
1 Parent(s): c2f3949

Update Reamde

Browse files
Files changed (2) hide show
  1. README.md +14 -2
  2. README_en.md +403 -0
README.md CHANGED
@@ -36,7 +36,7 @@ tags:
36
  | Wan2.2-Fun-A14B-InP | 64.0 GB | [🤗Link](https://huggingface.co/alibaba-pai/Wan2.2-Fun-A14B-InP) | [😄Link](https://modelscope.cn/models/PAI/Wan2.2-Fun-A14B-InP) | Wan2.2-Fun-14B文图生视频权重,以多分辨率训练,支持首尾图预测。 |
37
  | Wan2.2-Fun-A14B-Control | 64.0 GB | [🤗Link](https://huggingface.co/alibaba-pai/Wan2.2-Fun-A14B-Control) | [😄Link](https://modelscope.cn/models/PAI/Wan2.2-Fun-A14B-Control)| Wan2.2-Fun-14B视频控制权重,支持不同的控制条件,如Canny、Depth、Pose、MLSD等,同时支持使用轨迹控制。支持多分辨率(512,768,1024)的视频预测,支持多分辨率(512,768,1024)的视频预测,以81帧、每秒16帧进行训练,支持多语言预测 |
38
  | Wan2.2-Fun-A14B-Control-Camera | 64.0 GB | [🤗Link](https://huggingface.co/alibaba-pai/Wan2.2-Fun-A14B-Control-Camera) | [😄Link](https://modelscope.cn/models/PAI/Wan2.2-Fun-A14B-Control-Camera)| Wan2.2-Fun-14B相机镜头控制权重。支持多分辨率(512,768,1024)的视频预测,支持多分辨率(512,768,1024)的视频预测,以81帧、每秒16帧进行训练,支持多语言预测 |
39
- | Wan2.2-VACE-Fun-A14B | 64.0 GB | [🤗Link](https://huggingface.co/alibaba-pai/Wan2.2-VACE-Fun-A14B) | [😄Link](https://modelscope.cn/models/PAI/Wan2.2-VACE-Fun-A14B)| 以VACE方案训练的Wan2.2控制权重,支持不同的控制条件,如Canny、Depth、Pose、MLSD、轨迹控制等。支持通过主体指定生视频。支持多分辨率(512,768,1024)的视频预测,支持多分辨率(512,768,1024)的视频预测,以81帧、每秒16帧进行训练,支持多语言预测 |
40
 
41
  # 视频作品
42
 
@@ -198,6 +198,7 @@ Generic Control Video (Canny, Pose, Depth, etc.) and Trajectory Control:
198
  </table>
199
 
200
  ### Wan2.2-VACE-Fun-A14B
 
201
  Generic Control Video + Reference Image:
202
  <table border="0" style="width: 100%; text-align: left; margin-top: 20px;">
203
  <tr>
@@ -224,6 +225,16 @@ Generic Control Video + Reference Image:
224
  </table>
225
 
226
  <table border="0" style="width: 100%; text-align: left; margin-top: 20px;">
 
 
 
 
 
 
 
 
 
 
227
  <tr>
228
  <td>
229
  <image src="https://pai-aigc-photog.oss-cn-hangzhou.aliyuncs.com/wan_fun/asset_Wan2_2/v1.0/ref_1.png" width="100%" controls autoplay loop></image>
@@ -380,11 +391,12 @@ webui支持文生视频、图生视频、视频生视频和普通控制生视频
380
  - CogVideo: https://github.com/THUDM/CogVideo/
381
  - EasyAnimate: https://github.com/aigc-apps/EasyAnimate
382
  - Wan2.1: https://github.com/Wan-Video/Wan2.1/
383
- - Wan2.1: https://github.com/Wan-Video/Wan2.2/
384
  - ComfyUI-KJNodes: https://github.com/kijai/ComfyUI-KJNodes
385
  - ComfyUI-EasyAnimateWrapper: https://github.com/kijai/ComfyUI-EasyAnimateWrapper
386
  - ComfyUI-CameraCtrl-Wrapper: https://github.com/chaojie/ComfyUI-CameraCtrl-Wrapper
387
  - CameraCtrl: https://github.com/hehao13/CameraCtrl
 
388
 
389
  # 许可证
390
  本项目采用 [Apache License (Version 2.0)](https://github.com/modelscope/modelscope/blob/master/LICENSE).
 
36
  | Wan2.2-Fun-A14B-InP | 64.0 GB | [🤗Link](https://huggingface.co/alibaba-pai/Wan2.2-Fun-A14B-InP) | [😄Link](https://modelscope.cn/models/PAI/Wan2.2-Fun-A14B-InP) | Wan2.2-Fun-14B文图生视频权重,以多分辨率训练,支持首尾图预测。 |
37
  | Wan2.2-Fun-A14B-Control | 64.0 GB | [🤗Link](https://huggingface.co/alibaba-pai/Wan2.2-Fun-A14B-Control) | [😄Link](https://modelscope.cn/models/PAI/Wan2.2-Fun-A14B-Control)| Wan2.2-Fun-14B视频控制权重,支持不同的控制条件,如Canny、Depth、Pose、MLSD等,同时支持使用轨迹控制。支持多分辨率(512,768,1024)的视频预测,支持多分辨率(512,768,1024)的视频预测,以81帧、每秒16帧进行训练,支持多语言预测 |
38
  | Wan2.2-Fun-A14B-Control-Camera | 64.0 GB | [🤗Link](https://huggingface.co/alibaba-pai/Wan2.2-Fun-A14B-Control-Camera) | [😄Link](https://modelscope.cn/models/PAI/Wan2.2-Fun-A14B-Control-Camera)| Wan2.2-Fun-14B相机镜头控制权重。支持多分辨率(512,768,1024)的视频预测,支持多分辨率(512,768,1024)的视频预测,以81帧、每秒16帧进行训练,支持多语言预测 |
39
+ | Wan2.2-VACE-Fun-A14B | 64.0 GB | [🤗Link](https://huggingface.co/alibaba-pai/Wan2.2-VACE-Fun-A14B) | [😄Link](https://modelscope.cn/models/PAI/Wan2.2-VACE-Fun-A14B)| 以VACE方案训练的Wan2.2控制权重,基础模型为Wan2.2-T2V-A14B,支持不同的控制条件,如Canny、Depth、Pose、MLSD、轨迹控制等。支持通过主体指定生视频。支持多分辨率(512,768,1024)的视频预测,支持多分辨率(512,768,1024)的视频预测,以81帧、每秒16帧进行训练,支持多语言预测 |
40
 
41
  # 视频作品
42
 
 
198
  </table>
199
 
200
  ### Wan2.2-VACE-Fun-A14B
201
+
202
  Generic Control Video + Reference Image:
203
  <table border="0" style="width: 100%; text-align: left; margin-top: 20px;">
204
  <tr>
 
225
  </table>
226
 
227
  <table border="0" style="width: 100%; text-align: left; margin-top: 20px;">
228
+ <tr>
229
+ <td>
230
+ Reference Image
231
+ </td>
232
+ <td>
233
+ Prompt-1
234
+ </td>
235
+ <td>
236
+ Prompt-2
237
+ </td>
238
  <tr>
239
  <td>
240
  <image src="https://pai-aigc-photog.oss-cn-hangzhou.aliyuncs.com/wan_fun/asset_Wan2_2/v1.0/ref_1.png" width="100%" controls autoplay loop></image>
 
391
  - CogVideo: https://github.com/THUDM/CogVideo/
392
  - EasyAnimate: https://github.com/aigc-apps/EasyAnimate
393
  - Wan2.1: https://github.com/Wan-Video/Wan2.1/
394
+ - Wan2.2: https://github.com/Wan-Video/Wan2.2/
395
  - ComfyUI-KJNodes: https://github.com/kijai/ComfyUI-KJNodes
396
  - ComfyUI-EasyAnimateWrapper: https://github.com/kijai/ComfyUI-EasyAnimateWrapper
397
  - ComfyUI-CameraCtrl-Wrapper: https://github.com/chaojie/ComfyUI-CameraCtrl-Wrapper
398
  - CameraCtrl: https://github.com/hehao13/CameraCtrl
399
+ - VACE: https://github.com/ali-vilab/VACE
400
 
401
  # 许可证
402
  本项目采用 [Apache License (Version 2.0)](https://github.com/modelscope/modelscope/blob/master/LICENSE).
README_en.md ADDED
@@ -0,0 +1,403 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ language:
4
+ - en
5
+ - zh
6
+ pipeline_tag: text-to-video
7
+ library_name: diffusers
8
+ tags:
9
+ - video
10
+ - video-generation
11
+ ---
12
+
13
+
14
+ # Wan-Fun
15
+
16
+ 😊 Welcome!
17
+
18
+ [![Hugging Face Spaces](https://img.shields.io/badge/%F0%9F%A4%97%20Hugging%20Face-Spaces-yellow)](https://huggingface.co/spaces/alibaba-pai/Wan2.1-Fun-1.3B-InP)
19
+
20
+ [![Github](https://img.shields.io/badge/🎬%20Code-Github-blue)](https://github.com/aigc-apps/VideoX-Fun)
21
+
22
+ [English](./README_en.md) | [简体中文](./README.md)
23
+
24
+ # Table of Contents
25
+ - [Table of Contents](#table-of-contents)
26
+ - [Model zoo](#model-zoo)
27
+ - [Video Result](#video-result)
28
+ - [Quick Start](#quick-start)
29
+ - [How to use](#how-to-use)
30
+ - [Reference](#reference)
31
+ - [License](#license)
32
+
33
+ # Model zoo
34
+
35
+ | Name | Storage Size | Hugging Face | Model Scope | Description |
36
+ |--|--|--|--|--|
37
+ | Wan2.2-Fun-A14B-InP | 64.0 GB | [🤗Link](https://huggingface.co/alibaba-pai/Wan2.2-Fun-A14B-InP) | [😄Link](https://modelscope.cn/models/PAI/Wan2.2-Fun-A14B-InP) | Wan2.2-Fun-14B text-to-video generation weights, trained at multiple resolutions, supports start-end image prediction. |
38
+ | Wan2.2-Fun-A14B-Control | 64.0 GB | [🤗Link](https://huggingface.co/alibaba-pai/Wan2.2-Fun-A14B-Control) | [😄Link](https://modelscope.cn/models/PAI/Wan2.2-Fun-A14B-Control)| Wan2.2-Fun-14B video control weights, supporting various control conditions such as Canny, Depth, Pose, MLSD, etc., and trajectory control. Supports multi-resolution (512, 768, 1024) video prediction at 81 frames, trained at 16 frames per second, with multilingual prediction support. |
39
+ | Wan2.2-Fun-A14B-Control-Camera | 64.0 GB | [🤗Link](https://huggingface.co/alibaba-pai/Wan2.2-Fun-A14B-Control-Camera) | [😄Link](https://modelscope.cn/models/PAI/Wan2.2-Fun-A14B-Control-Camera)| Wan2.2-Fun-14B camera lens control weights. Supports multi-resolution (512, 768, 1024) video prediction, trained with 81 frames at 16 FPS, supports multilingual prediction. |
40
+ | Wan2.2-VACE-Fun-A14B | 64.0 GB | [🤗Link](https://huggingface.co/alibaba-pai/Wan2.2-VACE-Fun-A14B) | [😄Link](https://modelscope.cn/models/PAI/Wan2.2-VACE-Fun-A14B) | Control weights for Wan2.2 trained using the VACE scheme (based on the base model Wan2.2-T2V-A14B), supporting various control conditions such as Canny, Depth, Pose, MLSD, trajectory control, etc. It supports video generation by specifying the subject. It supports multi-resolution (512, 768, 1024) video prediction, and is trained with 81 frames at 16 FPS. It also supports multi-language prediction. |
41
+
42
+ # Video Result
43
+
44
+ ### Wan2.2-Fun-A14B-InP
45
+
46
+ <table border="0" style="width: 100%; text-align: left; margin-top: 20px;">
47
+ <tr>
48
+ <td>
49
+ <video src="https://pai-aigc-photog.oss-cn-hangzhou.aliyuncs.com/wan_fun/asset_Wan2_2/v1.0/inp_1.mp4" width="100%" controls autoplay loop></video>
50
+ </td>
51
+ <td>
52
+ <video src="https://pai-aigc-photog.oss-cn-hangzhou.aliyuncs.com/wan_fun/asset_Wan2_2/v1.0/inp_2.mp4" width="100%" controls autoplay loop></video>
53
+ </td>
54
+ <td>
55
+ <video src="https://pai-aigc-photog.oss-cn-hangzhou.aliyuncs.com/wan_fun/asset_Wan2_2/v1.0/inp_3.mp4" width="100%" controls autoplay loop></video>
56
+ </td>
57
+ <td>
58
+ <video src="https://pai-aigc-photog.oss-cn-hangzhou.aliyuncs.com/wan_fun/asset_Wan2_2/v1.0/inp_4.mp4" width="100%" controls autoplay loop></video>
59
+ </td>
60
+ </tr>
61
+ </table>
62
+
63
+ <table border="0" style="width: 100%; text-align: left; margin-top: 20px;">
64
+ <tr>
65
+ <td>
66
+ <video src="https://pai-aigc-photog.oss-cn-hangzhou.aliyuncs.com/wan_fun/asset_Wan2_2/v1.0/inp_5.mp4" width="100%" controls autoplay loop></video>
67
+ </td>
68
+ <td>
69
+ <video src="https://pai-aigc-photog.oss-cn-hangzhou.aliyuncs.com/wan_fun/asset_Wan2_2/v1.0/inp_6.mp4" width="100%" controls autoplay loop></video>
70
+ </td>
71
+ <td>
72
+ <video src="https://pai-aigc-photog.oss-cn-hangzhou.aliyuncs.com/wan_fun/asset_Wan2_2/v1.0/inp_7.mp4" width="100%" controls autoplay loop></video>
73
+ </td>
74
+ <td>
75
+ <video src="https://pai-aigc-photog.oss-cn-hangzhou.aliyuncs.com/wan_fun/asset_Wan2_2/v1.0/inp_8.mp4" width="100%" controls autoplay loop></video>
76
+ </td>
77
+ </tr>
78
+ </table>
79
+
80
+ ### Wan2.2-Fun-A14B-Control
81
+
82
+ Generic Control Video + Reference Image:
83
+ <table border="0" style="width: 100%; text-align: left; margin-top: 20px;">
84
+ <tr>
85
+ <td>
86
+ Reference Image
87
+ </td>
88
+ <td>
89
+ Control Video
90
+ </td>
91
+ <td>
92
+ Wan2.2-Fun-14B-Control
93
+ </td>
94
+ <tr>
95
+ <td>
96
+ <image src="https://pai-aigc-photog.oss-cn-hangzhou.aliyuncs.com/wan_fun/asset_Wan2_2/v1.0/8.png" width="100%" controls autoplay loop></image>
97
+ </td>
98
+ <td>
99
+ <video src="https://pai-aigc-photog.oss-cn-hangzhou.aliyuncs.com/wan_fun/asset_Wan2_2/v1.0/pose.mp4" width="100%" controls autoplay loop></video>
100
+ </td>
101
+ <td>
102
+ <video src="https://pai-aigc-photog.oss-cn-hangzhou.aliyuncs.com/wan_fun/asset_Wan2_2/v1.0/14b_ref.mp4" width="100%" controls autoplay loop></video>
103
+ </td>
104
+ <tr>
105
+ </table>
106
+
107
+ Generic Control Video (Canny, Pose, Depth, etc.) and Trajectory Control:
108
+ <table border="0" style="width: 100%; text-align: left; margin-top: 20px;">
109
+ <tr>
110
+ <td>
111
+ <video src="https://pai-aigc-photog.oss-cn-hangzhou.aliyuncs.com/wan_fun/asset_Wan2_2/v1.0/guiji.mp4" width="100%" controls autoplay loop></video>
112
+ </td>
113
+ <td>
114
+ <video src="https://pai-aigc-photog.oss-cn-hangzhou.aliyuncs.com/wan_fun/asset_Wan2_2/v1.0/guiji_out.mp4" width="100%" controls autoplay loop></video>
115
+ </td>
116
+ <tr>
117
+ </table>
118
+
119
+ <table border="0" style="width: 100%; text-align: left; margin-top: 20px;">
120
+ <tr>
121
+ <td>
122
+ <video src="https://pai-aigc-photog.oss-cn-hangzhou.aliyuncs.com/wan_fun/asset_Wan2_2/v1.0/pose.mp4" width="100%" controls autoplay loop></video>
123
+ </td>
124
+ <td>
125
+ <video src="https://pai-aigc-photog.oss-cn-hangzhou.aliyuncs.com/wan_fun/asset_Wan2_2/v1.0/canny.mp4" width="100%" controls autoplay loop></video>
126
+ </td>
127
+ <td>
128
+ <video src="https://pai-aigc-photog.oss-cn-hangzhou.aliyuncs.com/wan_fun/asset_Wan2_2/v1.0/depth.mp4" width="100%" controls autoplay loop></video>
129
+ </td>
130
+ <tr>
131
+ <td>
132
+ <video src="https://pai-aigc-photog.oss-cn-hangzhou.aliyuncs.com/wan_fun/asset_Wan2_2/v1.0/pose_out.mp4" width="100%" controls autoplay loop></video>
133
+ </td>
134
+ <td>
135
+ <video src="https://pai-aigc-photog.oss-cn-hangzhou.aliyuncs.com/wan_fun/asset_Wan2_2/v1.0/canny_out.mp4" width="100%" controls autoplay loop></video>
136
+ </td>
137
+ <td>
138
+ <video src="https://pai-aigc-photog.oss-cn-hangzhou.aliyuncs.com/wan_fun/asset_Wan2_2/v1.0/depth_out.mp4" width="100%" controls autoplay loop></video>
139
+ </td>
140
+ </tr>
141
+ </table>
142
+
143
+ ### Wan2.2-Fun-A14B-Control-Camera
144
+
145
+ <table border="0" style="width: 100%; text-align: left; margin-top: 20px;">
146
+ <tr>
147
+ <td>
148
+ Pan Up
149
+ </td>
150
+ <td>
151
+ Pan Left
152
+ </td>
153
+ <td>
154
+ Pan Right
155
+ </td>
156
+ <td>
157
+ Zoom In
158
+ </td>
159
+ <tr>
160
+ <td>
161
+ <video src="https://pai-aigc-photog.oss-cn-hangzhou.aliyuncs.com/wan_fun/asset_Wan2_2/v1.0/Pan_Up.mp4" width="100%" controls autoplay loop></video>
162
+ </td>
163
+ <td>
164
+ <video src="https://pai-aigc-photog.oss-cn-hangzhou.aliyuncs.com/wan_fun/asset_Wan2_2/v1.0/Pan_Left.mp4" width="100%" controls autoplay loop></video>
165
+ </td>
166
+ <td>
167
+ <video src="https://pai-aigc-photog.oss-cn-hangzhou.aliyuncs.com/wan_fun/asset_Wan2_2/v1.0/Pan_Right.mp4" width="100%" controls autoplay loop></video>
168
+ </td>
169
+ <td>
170
+ <video src="https://pai-aigc-photog.oss-cn-hangzhou.aliyuncs.com/wan_fun/asset_Wan2_2/v1.0/Zoom_In.mp4" width="100%" controls autoplay loop></video>
171
+ </td>
172
+ <tr>
173
+ <td>
174
+ Pan Down
175
+ </td>
176
+ <td>
177
+ Pan Up + Pan Left
178
+ </td>
179
+ <td>
180
+ Pan Up + Pan Right
181
+ </td>
182
+ <td>
183
+ Zoom Out
184
+ </td>
185
+ <tr>
186
+ <td>
187
+ <video src="https://pai-aigc-photog.oss-cn-hangzhou.aliyuncs.com/wan_fun/asset_Wan2_2/v1.0/Pan_Down.mp4" width="100%" controls autoplay loop></video>
188
+ </td>
189
+ <td>
190
+ <video src="https://pai-aigc-photog.oss-cn-hangzhou.aliyuncs.com/wan_fun/asset_Wan2_2/v1.0/Pan_UL.mp4" width="100%" controls autoplay loop></video>
191
+ </td>
192
+ <td>
193
+ <video src="https://pai-aigc-photog.oss-cn-hangzhou.aliyuncs.com/wan_fun/asset_Wan2_2/v1.0/Pan_UR.mp4" width="100%" controls autoplay loop></video>
194
+ </td>
195
+ <td>
196
+ <video src="https://pai-aigc-photog.oss-cn-hangzhou.aliyuncs.com/wan_fun/asset_Wan2_2/v1.0/Zoom_Out.mp4" width="100%" controls autoplay loop></video>
197
+ </td>
198
+ </tr>
199
+ </table>
200
+
201
+ ### Wan2.2-VACE-Fun-A14B
202
+
203
+ Generic Control Video + Reference Image:
204
+ <table border="0" style="width: 100%; text-align: left; margin-top: 20px;">
205
+ <tr>
206
+ <td>
207
+ Reference Image
208
+ </td>
209
+ <td>
210
+ Control Video
211
+ </td>
212
+ <td>
213
+ Wan2.2-VACE-Fun-14B
214
+ </td>
215
+ <tr>
216
+ <td>
217
+ <image src="https://pai-aigc-photog.oss-cn-hangzhou.aliyuncs.com/wan_fun/asset_Wan2_2/v1.0/8.png" width="100%" controls autoplay loop></image>
218
+ </td>
219
+ <td>
220
+ <video src="https://pai-aigc-photog.oss-cn-hangzhou.aliyuncs.com/wan_fun/asset_Wan2_2/v1.0/pose.mp4" width="100%" controls autoplay loop></video>
221
+ </td>
222
+ <td>
223
+ <video src="https://pai-aigc-photog.oss-cn-hangzhou.aliyuncs.com/wan_fun/asset_Wan2_2/v1.0/14b_vace_ref.mp4" width="100%" controls autoplay loop></video>
224
+ </td>
225
+ <tr>
226
+ </table>
227
+
228
+ <table border="0" style="width: 100%; text-align: left; margin-top: 20px;">
229
+ <tr>
230
+ <td>
231
+ Reference Image
232
+ </td>
233
+ <td>
234
+ Prompt-1
235
+ </td>
236
+ <td>
237
+ Prompt-2
238
+ </td>
239
+ <tr>
240
+ <td>
241
+ <image src="https://pai-aigc-photog.oss-cn-hangzhou.aliyuncs.com/wan_fun/asset_Wan2_2/v1.0/ref_1.png" width="100%" controls autoplay loop></image>
242
+ <image src="https://pai-aigc-photog.oss-cn-hangzhou.aliyuncs.com/wan_fun/asset_Wan2_2/v1.0/8.png" width="100%" controls autoplay loop></image>
243
+ </td>
244
+ <td>
245
+ <video src="https://pai-aigc-photog.oss-cn-hangzhou.aliyuncs.com/wan_fun/asset_Wan2_2/v1.0/14b_vace_subjects.mp4" width="100%" controls autoplay loop></video>
246
+ </td>
247
+ <td>
248
+ <video src="https://pai-aigc-photog.oss-cn-hangzhou.aliyuncs.com/wan_fun/asset_Wan2_2/v1.0/14b_vace_subjects_2.mp4" width="100%" controls autoplay loop></video>
249
+ </td>
250
+ <tr>
251
+ </table>
252
+
253
+ # Quick Start
254
+ ### 1. Cloud usage: AliyunDSW/Docker
255
+ #### a. From AliyunDSW
256
+ DSW has free GPU time, which can be applied once by a user and is valid for 3 months after applying.
257
+
258
+ Aliyun provide free GPU time in [Freetier](https://free.aliyun.com/?product=9602825&crowd=enterprise&spm=5176.28055625.J_5831864660.1.e939154aRgha4e&scm=20140722.M_9974135.P_110.MO_1806-ID_9974135-MID_9974135-CID_30683-ST_8512-V_1), get it and use in Aliyun PAI-DSW to start CogVideoX-Fun within 5min!
259
+
260
+ [![DSW Notebook](https://pai-aigc-photog.oss-cn-hangzhou.aliyuncs.com/easyanimate/asset/dsw.png)](https://gallery.pai-ml.com/#/preview/deepLearning/cv/cogvideox_fun)
261
+
262
+ #### b. From ComfyUI
263
+ Our ComfyUI is as follows, please refer to [ComfyUI README](comfyui/README.md) for details.
264
+ ![workflow graph](https://pai-aigc-photog.oss-cn-hangzhou.aliyuncs.com/cogvideox_fun/asset/v1/cogvideoxfunv1_workflow_i2v.jpg)
265
+
266
+ #### c. From docker
267
+ If you are using docker, please make sure that the graphics card driver and CUDA environment have been installed correctly in your machine.
268
+
269
+ Then execute the following commands in this way:
270
+ ```
271
+ # pull image
272
+ docker pull mybigpai-public-registry.cn-beijing.cr.aliyuncs.com/easycv/torch_cuda:cogvideox_fun
273
+
274
+ # enter image
275
+ docker run -it -p 7860:7860 --network host --gpus all --security-opt seccomp:unconfined --shm-size 200g mybigpai-public-registry.cn-beijing.cr.aliyuncs.com/easycv/torch_cuda:cogvideox_fun
276
+
277
+ # clone code
278
+ git clone https://github.com/aigc-apps/VideoX-Fun.git
279
+
280
+ # enter VideoX-Fun's dir
281
+ cd VideoX-Fun
282
+
283
+ # download weights
284
+ mkdir models/Diffusion_Transformer
285
+ mkdir models/Personalized_Model
286
+
287
+ # Please use the hugginface link or modelscope link to download the model.
288
+ # CogVideoX-Fun
289
+ # https://huggingface.co/alibaba-pai/CogVideoX-Fun-V1.1-5b-InP
290
+ # https://modelscope.cn/models/PAI/CogVideoX-Fun-V1.1-5b-InP
291
+
292
+ # Wan
293
+ # https://huggingface.co/alibaba-pai/Wan2.1-Fun-V1.1-14B-InP
294
+ # https://modelscope.cn/models/PAI/Wan2.1-Fun-V1.1-14B-InP
295
+ # https://huggingface.co/alibaba-pai/Wan2.2-Fun-A14B-InP
296
+ # https://modelscope.cn/models/PAI/Wan2.2-Fun-A14B-InP
297
+ ```
298
+
299
+ ### 2. Local install: Environment Check/Downloading/Installation
300
+ #### a. Environment Check
301
+ We have verified this repo execution on the following environment:
302
+
303
+ The detailed of Windows:
304
+ - OS: Windows 10
305
+ - python: python3.10 & python3.11
306
+ - pytorch: torch2.2.0
307
+ - CUDA: 11.8 & 12.1
308
+ - CUDNN: 8+
309
+ - GPU: Nvidia-3060 12G & Nvidia-3090 24G
310
+
311
+ The detailed of Linux:
312
+ - OS: Ubuntu 20.04, CentOS
313
+ - python: python3.10 & python3.11
314
+ - pytorch: torch2.2.0
315
+ - CUDA: 11.8 & 12.1
316
+ - CUDNN: 8+
317
+ - GPU:Nvidia-V100 16G & Nvidia-A10 24G & Nvidia-A100 40G & Nvidia-A100 80G
318
+
319
+ We need about 60GB available on disk (for saving weights), please check!
320
+
321
+ #### b. Weights
322
+ We'd better place the [weights](#model-zoo) along the specified path:
323
+
324
+ **Via ComfyUI**:
325
+ Put the models into the ComfyUI weights folder `ComfyUI/models/Fun_Models/`:
326
+ ```
327
+ 📦 ComfyUI/
328
+ ├── 📂 models/
329
+ │ └── 📂 Fun_Models/
330
+ │ ├── 📂 CogVideoX-Fun-V1.1-2b-InP/
331
+ │ ├── 📂 CogVideoX-Fun-V1.1-5b-InP/
332
+ │ ├── 📂 Wan2.1-Fun-14B-InP
333
+ │ └── 📂 Wan2.1-Fun-1.3B-InP/
334
+ ```
335
+
336
+ **Run its own python file or UI interface**:
337
+ ```
338
+ 📦 models/
339
+ ├── 📂 Diffusion_Transformer/
340
+ │ ├── 📂 CogVideoX-Fun-V1.1-2b-InP/
341
+ │ ├── 📂 CogVideoX-Fun-V1.1-5b-InP/
342
+ │ ├── 📂 Wan2.1-Fun-14B-InP
343
+ │ └── 📂 Wan2.1-Fun-1.3B-InP/
344
+ ├── 📂 Personalized_Model/
345
+ │ └── your trained trainformer model / your trained lora model (for UI load)
346
+ ```
347
+
348
+ # How to Use
349
+
350
+ <h3 id="video-gen">1. Generation</h3>
351
+
352
+ #### a. GPU Memory Optimization
353
+ Since Wan2.1 has a very large number of parameters, we need to consider memory optimization strategies to adapt to consumer-grade GPUs. We provide `GPU_memory_mode` for each prediction file, allowing you to choose between `model_cpu_offload`, `model_cpu_offload_and_qfloat8`, and `sequential_cpu_offload`. This solution is also applicable to CogVideoX-Fun generation.
354
+
355
+ - `model_cpu_offload`: The entire model is moved to the CPU after use, saving some GPU memory.
356
+ - `model_cpu_offload_and_qfloat8`: The entire model is moved to the CPU after use, and the transformer model is quantized to float8, saving more GPU memory.
357
+ - `sequential_cpu_offload`: Each layer of the model is moved to the CPU after use. It is slower but saves a significant amount of GPU memory.
358
+
359
+ `qfloat8` may slightly reduce model performance but saves more GPU memory. If you have sufficient GPU memory, it is recommended to use `model_cpu_offload`.
360
+
361
+ #### b. Using ComfyUI
362
+ For details, refer to [ComfyUI README](https://github.com/aigc-apps/VideoX-Fun/tree/main/comfyui)。
363
+
364
+ #### c. Running Python Files
365
+ - **Step 1**: Download the corresponding [weights](#model-zoo) and place them in the `models` folder.
366
+ - **Step 2**: Use different files for prediction based on the weights and prediction goals. This library currently supports CogVideoX-Fun, Wan2.1, Wan2.1-Fun and Wan2.2. Different models are distinguished by folder names under the `examples` folder, and their supported features vary. Use them accordingly. Below is an example using CogVideoX-Fun:
367
+ - **Text-to-Video**:
368
+ - Modify `prompt`, `neg_prompt`, `guidance_scale`, and `seed` in the file `examples/cogvideox_fun/predict_t2v.py`.
369
+ - Run the file `examples/cogvideox_fun/predict_t2v.py` and wait for the results. The generated videos will be saved in the folder `samples/cogvideox-fun-videos`.
370
+ - **Image-to-Video**:
371
+ - Modify `validation_image_start`, `validation_image_end`, `prompt`, `neg_prompt`, `guidance_scale`, and `seed` in the file `examples/cogvideox_fun/predict_i2v.py`.
372
+ - `validation_image_start` is the starting image of the video, and `validation_image_end` is the ending image of the video.
373
+ - Run the file `examples/cogvideox_fun/predict_i2v.py` and wait for the results. The generated videos will be saved in the folder `samples/cogvideox-fun-videos_i2v`.
374
+ - **Video-to-Video**:
375
+ - Modify `validation_video`, `validation_image_end`, `prompt`, `neg_prompt`, `guidance_scale`, and `seed` in the file `examples/cogvideox_fun/predict_v2v.py`.
376
+ - `validation_video` is the reference video for video-to-video generation. You can use the following demo video: [Demo Video](https://pai-aigc-photog.oss-cn-hangzhou.aliyuncs.com/cogvideox_fun/asset/v1/play_guitar.mp4).
377
+ - Run the file `examples/cogvideox_fun/predict_v2v.py` and wait for the results. The generated videos will be saved in the folder `samples/cogvideox-fun-videos_v2v`.
378
+ - **Controlled Video Generation (Canny, Pose, Depth, etc.)**:
379
+ - Modify `control_video`, `validation_image_end`, `prompt`, `neg_prompt`, `guidance_scale`, and `seed` in the file `examples/cogvideox_fun/predict_v2v_control.py`.
380
+ - `control_video` is the control video extracted using operators such as Canny, Pose, or Depth. You can use the following demo video: [Demo Video](https://pai-aigc-photog.oss-cn-hangzhou.aliyuncs.com/cogvideox_fun/asset/v1.1/pose.mp4).
381
+ - Run the file `examples/cogvideox_fun/predict_v2v_control.py` and wait for the results. The generated videos will be saved in the folder `samples/cogvideox-fun-videos_v2v_control`.
382
+ - **Step 3**: If you want to integrate other backbones or Loras trained by yourself, modify `lora_path` and relevant paths in `examples/{model_name}/predict_t2v.py` or `examples/{model_name}/predict_i2v.py` as needed.
383
+
384
+ #### d. Using the Web UI
385
+ The web UI supports text-to-video, image-to-video, video-to-video, and controlled video generation (Canny, Pose, Depth, etc.). This library currently supports CogVideoX-Fun, Wan2.1, and Wan2.1-Fun. Different models are distinguished by folder names under the `examples` folder, and their supported features vary. Use them accordingly. Below is an example using CogVideoX-Fun:
386
+
387
+ - **Step 1**: Download the corresponding [weights](#model-zoo) and place them in the `models` folder.
388
+ - **Step 2**: Run the file `examples/cogvideox_fun/app.py` to access the Gradio interface.
389
+ - **Step 3**: Select the generation model on the page, fill in `prompt`, `neg_prompt`, `guidance_scale`, and `seed`, click "Generate," and wait for the results. The generated videos will be saved in the `sample` folder.
390
+
391
+ # Reference
392
+ - CogVideo: https://github.com/THUDM/CogVideo/
393
+ - EasyAnimate: https://github.com/aigc-apps/EasyAnimate
394
+ - Wan2.1: https://github.com/Wan-Video/Wan2.1/
395
+ - Wan2.2: https://github.com/Wan-Video/Wan2.2/
396
+ - ComfyUI-KJNodes: https://github.com/kijai/ComfyUI-KJNodes
397
+ - ComfyUI-EasyAnimateWrapper: https://github.com/kijai/ComfyUI-EasyAnimateWrapper
398
+ - ComfyUI-CameraCtrl-Wrapper: https://github.com/chaojie/ComfyUI-CameraCtrl-Wrapper
399
+ - CameraCtrl: https://github.com/hehao13/CameraCtrl
400
+ - VACE: https://github.com/ali-vilab/VACE
401
+
402
+ # License
403
+ This project is licensed under the [Apache License (Version 2.0)](https://github.com/modelscope/modelscope/blob/master/LICENSE).