hysts HF staff commited on
Commit
94867b2
1 Parent(s): 2fdcabf
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. .gitattributes +4 -0
  2. README.md +401 -0
  3. assets/gif/03b401c825a2479eaf7b1b3252683a4b_0000000_rank_02-01-0116-001024.gif +3 -0
  4. assets/gif/03b401c825a2479eaf7b1b3252683a4b_0_rank_02-01-0664-001024.gif +3 -0
  5. assets/gif/03b401c825a2479eaf7b1b3252683a4b_3_02_00_0110_rank_02-00-1009-001024.gif +3 -0
  6. assets/gif/0ba38f2f287f446dac8de87291073e0c_3_rank_02-01-0118-000000.gif +3 -0
  7. assets/gif/293fdf76aa404971b1fbb66baf9cbaac_1_02_00_0123_rank_02-00-0288-001024.gif +3 -0
  8. assets/gif/3e89356e6bd3470aaf3900b1b34c3ec2_0_rank_02-01-0126-000000.gif +3 -0
  9. assets/gif/3e89356e6bd3470aaf3900b1b34c3ec2_1_02_00_0020_rank_02-00-0303-001024.gif +3 -0
  10. assets/gif/426a7bee22034a88872dc8277ddbbf06_0_02_01_0023_rank_02-01-1090-001024.gif +3 -0
  11. assets/gif/6fd21439fce644afa3a2e9b057956d0f_0000000_rank_02-01-0159-001024.gif +3 -0
  12. assets/gif/6fd21439fce644afa3a2e9b057956d0f_3_02_01_0153_rank_02-01-1183-001024.gif +3 -0
  13. assets/gif/7716d91802614bf9a99174c05bd08f32_3_02_01_0157_rank_02-01-1199-001024.gif +3 -0
  14. assets/gif/a15bb09862b74b3c983a54b379912f81_0_02_00_0055.gif +3 -0
  15. assets/gif/a15bb09862b74b3c983a54b379912f81_0_02_00_0055_rank_02-01-0443-001024.gif +3 -0
  16. assets/gif/ac10af0b1c524b778aff60be5b7ecc4f_0000000_rank_02-00-0179-001024.gif +3 -0
  17. assets/gif/ac10af0b1c524b778aff60be5b7ecc4f_0_02_01_0170_rank_02-01-1251-001024.gif +3 -0
  18. assets/gif/ac10af0b1c524b778aff60be5b7ecc4f_2_02_00_0065_rank_02-00-1256-001024.gif +3 -0
  19. assets/gif/airship_0_rank_02-00-000000_rank_02-00-0653-001024.gif +3 -0
  20. assets/gif/airship_0_rank_02-00-0095-001024.gif +3 -0
  21. assets/gif/airship_1_rank_02-01-000000_rank_02-00-1428-001024.gif +3 -0
  22. assets/gif/ast_rank_02-00-0773-001024.gif +3 -0
  23. assets/gif/b307dad96c3d440e80514b1b3f3be5fd_1_02_00_0068_rank_02-01-0495-001024.gif +3 -0
  24. assets/gif/b307dad96c3d440e80514b1b3f3be5fd_1_rank_02-00-0068-000000.gif +3 -0
  25. assets/gif/b307dad96c3d440e80514b1b3f3be5fd_1_rank_02-00-0175-000000.gif +3 -0
  26. assets/gif/bf19a66dca0a47799923c47249982ffd_0000000_rank_02-01-0960-001024.gif +3 -0
  27. assets/gif/bike_rank_02-01-0007-001024.gif +3 -0
  28. assets/gif/d82ed4ad01034243ba88eaf9311c1edf_3_02_01_0193.gif +3 -0
  29. assets/gif/dragon2_rank_02-00-0021-001024.gif +3 -0
  30. assets/gif/dragon2_rank_02-01-0794-001024.gif +3 -0
  31. assets/gif/e3733444344741f1970cf2e92e617182_1_02_00_0199.gif +3 -0
  32. assets/gif/indian_rank_02-00-0800-001024.gif +3 -0
  33. assets/gif/laoshu3_rank_02-00-0812-001024.gif +3 -0
  34. assets/gif/laoshu_rank_02-01-0810-001024.gif +3 -0
  35. assets/gif/panda_rank_02-01-0007-009999.gif +3 -0
  36. assets/gif/robot1_rank_02-00-0009-009999.gif +3 -0
  37. assets/gif/robot1_rank_02-01-0009-009999.gif +3 -0
  38. assets/image/Fig_twostage.png +3 -0
  39. assets/image/fig1_overview.jpg +3 -0
  40. assets/videos/08a5a4d7e2fe44a8bb2cf4df198e20dc_0_02_00_0111.gif +3 -0
  41. assets/videos/08a5a4d7e2fe44a8bb2cf4df198e20dc_2_02_01_0113.gif +3 -0
  42. assets/videos/0ba38f2f287f446dac8de87291073e0c_0_02_00_0008.mp4 +3 -0
  43. assets/videos/293fdf76aa404971b1fbb66baf9cbaac_2_02_00_0017.gif +3 -0
  44. assets/videos/426a7bee22034a88872dc8277ddbbf06_3_02_01_0026.gif +3 -0
  45. assets/videos/5274db5c33274e5ab27c12cdbed57ada_2_02_00_0140.gif +3 -0
  46. assets/videos/87d8dd92a04d41c38c79b85dcc84f810_0_02_00_0158.gif +3 -0
  47. assets/videos/87d8dd92a04d41c38c79b85dcc84f810_3_02_00_0161.gif +3 -0
  48. assets/videos/a15bb09862b74b3c983a54b379912f81_0_02_00_0055.gif +3 -0
  49. assets/videos/a15bb09862b74b3c983a54b379912f81_3_02_00_0058.gif +3 -0
  50. assets/videos/ac10af0b1c524b778aff60be5b7ecc4f_1_02_00_0064.gif +3 -0
.gitattributes CHANGED
@@ -33,3 +33,7 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
 
 
 
 
 
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
+ *.png filter=lfs diff=lfs merge=lfs -text
37
+ *.gif filter=lfs diff=lfs merge=lfs -text
38
+ *.jpg filter=lfs diff=lfs merge=lfs -text
39
+ *.mp4 filter=lfs diff=lfs merge=lfs -text
README.md ADDED
@@ -0,0 +1,401 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ backbone:
3
+ - diffusion
4
+ domain:
5
+ - multi-modal
6
+ frameworks:
7
+ - pytorch
8
+ license: cc-by-nc-nd-4.0
9
+ metrics:
10
+ - realism
11
+ - image-video similarity
12
+ studios:
13
+ - damo/Image-to-Video
14
+ tags:
15
+ - image2video generation
16
+ - diffusion model
17
+ - 图到视频
18
+ - 图生视频
19
+ - 图片生成视频
20
+ - 生成
21
+ tasks:
22
+ - image-to-video
23
+ widgets:
24
+ - examples:
25
+ - inputs:
26
+ - data: XXX/test.jpg.
27
+ name: image_path
28
+ name: 1
29
+ title: 示例1
30
+ inferencespec:
31
+ cpu: 4
32
+ gpu: 1
33
+ gpu_memory: 15000
34
+ memory: 32000
35
+ inputs:
36
+ - name: image_path
37
+ title: 图片的路径
38
+ type: str
39
+ validator:
40
+ max_words: /
41
+ task: image-to-video
42
+ ---
43
+
44
+ # Image-to-Video
45
+
46
+ 本项目**MS-Image2Video**旨在解决根据输入图像生成高清视频任务。**MS-Image2Video**由达摩院研发的高清视频生成基础模型,其核心部分包含两个阶段,分别解决语义一致性和清晰度的问题,参数量共计约37亿,模型经过在大规模视频和图像数据混合预训练,并在少量精品数据上微调得到,该数据分布广泛、类别多样化,模型对不同的数据均有良好的泛化性。项目于现有的视频生成模型,**MS-Image2Video**在清晰度、质感、语义、时序连续性等方面均具有明显的优势。
47
+
48
+ 此外,**MS-Image2Video**的许多设计理念继承于我们已经公开的工作**VideoComposer**,您可以参考我们的[VideoComposer](https://videocomposer.github.io)和本项目的Github代码库了解详细细节
49
+
50
+ The **MS-Image2Video** project aims to address the task of generating high-definition videos based on input images. Developed by Alibaba Cloud, the **MS-Image2Video** is a fundamental model for generating high-definition videos. Its core components consist of two stages that address the issues of semantic consistency and clarity, totaling approximately 3.7 billion parameters. The model is pre-trained on a large-scale mix of video and image data and fine-tuned on a small number of high-quality data sets with a wide range of distributions and diverse categories. The model demonstrates good generalization capabilities for different data types. Compared to existing video generation models, **MS-Image2Video** has significant advantages in terms of clarity, texture, semantics, and temporal continuity.
51
+
52
+ Additionally, many of the design concepts for **MS-Image2Video** are inherited from our publicly available work, **VideoComposer**. For detailed information, please refer to our [VideoComposer](https://videocomposer.github.io) and the Github code repository for this project.
53
+
54
+ <center>
55
+ <p align="center">
56
+ <img src="assets/image/Fig_twostage.png" style="max-width: none;"/>
57
+ <br/>
58
+ Fig.1 MS-Image2Video
59
+ <p>
60
+ </center>
61
+
62
+ ## 模型介绍 (Introduction)
63
+
64
+ **MS-Image2Video**建立在Stable Diffusion之上,如图Fig.2所示,通过专门设计的时空UNet在隐空间中进行时空建模并通过解码器重建出最终视频。为能够生成720P视频,我们将**MS-Image2Video**分为两个阶段,第一阶段保证语义一致性但低分辨率,第二阶段通过DDIM逆运算并在新的VLDM上进行去噪以提高视频分辨率以及同时提升时间和空间上的一致性。通过在模型、训练和数据上的联合优化,本项目主要具有以下几个特点:
65
+
66
+ - 高清&宽屏,可以直接生成720P(1280*720)分辨率的视频,且相比于现有的开源项目,不仅分辨率得到有效提高,其生产的宽屏视频可以适合更多的场景
67
+ - 无水印,模型通过我们内部大规模无水印视频/图像训练,并在高质量数据微调得到,生成的无水印视频可适用更多视频平台,减少许多限制
68
+ - 连续性,通过特定训练和推理策略,在视频的细节生成的稳定性上(时间和空间维度)有明显提高
69
+ - 质感好,通过收集特定的风格的视频数据训练,使得生成的模型在质感得到明显提升,可以生成科技感、电影色、卡通风格和素描等类型视频
70
+
71
+ 以下为生成的部分案例:
72
+
73
+ **MS-Image2Video** is built on Stable Diffusion, as shown in Fig.2, and uses a specially designed spatiotemporal UNet to perform spatiotemporal modeling in the latent space, and then reconstructs the final video through the decoder. In order to generate 720P videos, **MS-Image2Video** is divided into two stages. The first stage guarantees semantic consistency but with low resolution, while the second stage uses the DDIM inverse operation and applies denoising on a new VLDM to improve the resolution and spatiotemporal consistency of the video. Through joint optimization of the model, training, and data, this project has the following characteristics:
74
+
75
+ - High-definition & widescreen, can directly generate 720P (1280*720) resolution videos, and compared to existing open source projects, not only is the resolution effectively improved, but the widescreen videos it produces can also be suitable for more scenarios.
76
+ - No watermark, the model is trained on a large-scale watermark-free video/image dataset internally and fine-tuned on high-quality data, generating watermark-free videos that can be applied to more video platforms and reducing many restrictions.
77
+ - Continuity, through specific training and inference strategies, there is a significant improvement in the stability of detail generation in videos (in the time and space dimensions).
78
+ - Good texture, by collecting specific style video data for training, the generated model has a significant improvement in texture and can generate technology, film color, cartoon style, sketch and other types of videos.
79
+
80
+
81
+ Below are some examples generated by the model:
82
+
83
+ <center>
84
+ <p align="center">
85
+ <img src="assets/image/fig1_overview.jpg"/>
86
+ <br/>
87
+ Fig.2 VLDM
88
+ <p>
89
+ </center>
90
+
91
+ **为方便展示,本页面展示为低分辨率GIF格式,但是GIF会下降视频质量,720P的视频效果可以参下面对应的视频链接**
92
+
93
+ **For display purposes, this page shows low-resolution GIF format. However, GIF format may reduce video quality. For specific effects, please refer to the video link below.**
94
+
95
+ <center>
96
+ <table><center>
97
+ <tr>
98
+ <td ><center>
99
+ <img src="assets/gif/dragon2_rank_02-00-0021-001024.gif"/>
100
+ </center></td>
101
+ <td ><center>
102
+ <img src="assets/gif/laoshu_rank_02-01-0810-001024.gif"/>
103
+ </center></td>
104
+ </tr>
105
+ <tr>
106
+ <td ><center>
107
+ <a href="https://cloud.video.taobao.com/play/u/null/p/1/e/6/t/1/424319402790.mp4">HQ Video</a>
108
+ </center></td>
109
+ <td ><center>
110
+ <a href="https://cloud.video.taobao.com/play/u/null/p/1/e/6/t/1/423628044217.mp4">HQ Video</a>
111
+ </center></td>
112
+ </tr>
113
+ <tr>
114
+ <td ><center>
115
+ <img src="assets/gif/ac10af0b1c524b778aff60be5b7ecc4f_2_02_00_0065_rank_02-00-1256-001024.gif"/>
116
+ </center></td>
117
+ <td ><center>
118
+ <img src="assets/gif/ast_rank_02-00-0773-001024.gif"/>
119
+ </center></td>
120
+ </tr>
121
+ <tr>
122
+ <td ><center>
123
+ <a href="https://cloud.video.taobao.com/play/u/null/p/1/e/6/t/1/423965629168.mp4">HQ Video</a>
124
+ </center></td>
125
+ <td ><center>
126
+ <a href="https://cloud.video.taobao.com/play/u/null/p/1/e/6/t/1/423969933887.mp4">HQ Video</a>
127
+ </center></td>
128
+ </tr>
129
+ <tr>
130
+ <td ><center>
131
+ <img src="assets/gif/e3733444344741f1970cf2e92e617182_1_02_00_0199.gif"/>
132
+ </center></td>
133
+ <td ><center>
134
+ <img src="assets/gif/b307dad96c3d440e80514b1b3f3be5fd_1_rank_02-00-0068-000000.gif"/>
135
+ </center></td>
136
+ </tr>
137
+ <tr>
138
+ <td ><center>
139
+ <a href="https://cloud.video.taobao.com/play/u/null/p/1/e/6/t/1/423966661082.mp4">HQ Video</a>
140
+ </center></td>
141
+ <td ><center>
142
+ <a href="https://cloud.video.taobao.com/play/u/null/p/1/e/6/t/1/424613631285.mp4">HQ Video</a>
143
+ </center></td>
144
+ </tr>
145
+ <tr>
146
+ <td ><center>
147
+ <img src="assets/gif/robot1_rank_02-01-0009-009999.gif"/>
148
+ </center></td>
149
+ <td ><center>
150
+ <img src="assets/gif/d82ed4ad01034243ba88eaf9311c1edf_3_02_01_0193.gif"/>
151
+ </center></td>
152
+ </tr>
153
+ <tr>
154
+ <td ><center>
155
+ <a href="https://cloud.video.taobao.com/play/u/null/p/1/e/6/t/1/424612211915.mp4">HQ Video</a>
156
+ </center></td>
157
+ <td ><center>
158
+ <a href="https://cloud.video.taobao.com/play/u/null/p/1/e/6/t/1/424613123188.mp4">HQ Video</a>
159
+ </center></td>
160
+ </tr>
161
+ <tr>
162
+ <td ><center>
163
+ <img src="assets/gif/airship_0_rank_02-00-000000_rank_02-00-0653-001024.gif"/>
164
+ </center></td>
165
+ <td ><center>
166
+ <img src="assets/gif/airship_1_rank_02-01-000000_rank_02-00-1428-001024.gif"/>
167
+ </center></td>
168
+ </tr>
169
+ <tr>
170
+ <td ><center>
171
+ <a href="https://cloud.video.taobao.com/play/u/null/p/1/e/6/t/1/424616459162.mp4">HQ Video</a>
172
+ </center></td>
173
+ <td ><center>
174
+ <a href="https://cloud.video.taobao.com/play/u/null/p/1/e/6/t/1/424614735831.mp4">HQ Video</a>
175
+ </center></td>
176
+ </tr>
177
+ <tr>
178
+ <td ><center>
179
+ <img src="assets/gif/0ba38f2f287f446dac8de87291073e0c_3_rank_02-01-0118-000000.gif"/>
180
+ </center></td>
181
+ <td ><center>
182
+ <img src="assets/gif/03b401c825a2479eaf7b1b3252683a4b_3_02_00_0110_rank_02-00-1009-001024.gif"/>
183
+ </center></td>
184
+ </tr>
185
+ <tr>
186
+ <td ><center>
187
+ <a href="https://cloud.video.taobao.com/play/u/null/p/1/e/6/t/1/424617591002.mp4">HQ Video</a>
188
+ </center></td>
189
+ <td ><center>
190
+ <a href="https://cloud.video.taobao.com/play/u/null/p/1/e/6/t/1/423631572030.mp4">HQ Video</a>
191
+ </center></td>
192
+ </tr>
193
+ <tr>
194
+ <td ><center>
195
+ <img src="assets/gif/3e89356e6bd3470aaf3900b1b34c3ec2_0_rank_02-01-0126-000000.gif"/>
196
+ </center></td>
197
+ <td ><center>
198
+ <img src="assets/gif/6fd21439fce644afa3a2e9b057956d0f_0000000_rank_02-01-0159-001024.gif"/>
199
+ </center></td>
200
+ </tr>
201
+ <tr>
202
+ <td ><center>
203
+ <a href="https://cloud.video.taobao.com/play/u/null/p/1/e/6/t/1/423629092176.mp4">HQ Video</a>
204
+ </center></td>
205
+ <td ><center>
206
+ <a href="https://cloud.video.taobao.com/play/u/null/p/1/e/6/t/1/424616071017.mp4">HQ Video</a>
207
+ </center></td>
208
+ </tr>
209
+ <tr>
210
+ <td ><center>
211
+ <img src="assets/gif/293fdf76aa404971b1fbb66baf9cbaac_1_02_00_0123_rank_02-00-0288-001024.gif"/>
212
+ </center></td>
213
+ <td ><center>
214
+ <img src="assets/gif/426a7bee22034a88872dc8277ddbbf06_0_02_01_0023_rank_02-01-1090-001024.gif"/>
215
+ </center></td>
216
+ </tr>
217
+ <tr>
218
+ <td ><center>
219
+ <a href="https://cloud.video.taobao.com/play/u/null/p/1/e/6/t/1/424317682762.mp4">HQ Video</a>
220
+ </center></td>
221
+ <td ><center>
222
+ <a href="https://cloud.video.taobao.com/play/u/null/p/1/e/6/t/1/424313138794.mp4">HQ Video</a>
223
+ </center></td>
224
+ </tr>
225
+ <tr>
226
+ <td ><center>
227
+ <img src="assets/gif/a15bb09862b74b3c983a54b379912f81_0_02_00_0055_rank_02-01-0443-001024.gif"/>
228
+ </center></td>
229
+ <td ><center>
230
+ <img src="assets/gif/7716d91802614bf9a99174c05bd08f32_3_02_01_0157_rank_02-01-1199-001024.gif"/>
231
+ </center></td>
232
+ </tr>
233
+ <tr>
234
+ <td ><center>
235
+ <a href="https://cloud.video.taobao.com/play/u/null/p/1/e/6/t/1/423631376023.mp4">HQ Video</a>
236
+ </center></td>
237
+ <td ><center>
238
+ <a href="https://cloud.video.taobao.com/play/u/null/p/1/e/6/t/1/424616459198.mp4">HQ Video</a>
239
+ </center></td>
240
+ </tr>
241
+ <tr>
242
+ <td ><center>
243
+ <img src="assets/gif/indian_rank_02-00-0800-001024.gif"/>
244
+ </center></td>
245
+ <td ><center>
246
+ <img src="assets/gif/bike_rank_02-01-0007-001024.gif"/>
247
+ </center></td>
248
+ </tr>
249
+ <tr>
250
+ <td ><center>
251
+ <a href="https://cloud.video.taobao.com/play/u/null/p/1/e/6/t/1/424314646086.mp4">HQ Video</a>
252
+ </center></td>
253
+ <td ><center>
254
+ <a href="https://cloud.video.taobao.com/play/u/null/p/1/e/6/t/1/424610479196.mp4">HQ Video</a>
255
+ </center></td>
256
+ </tr>
257
+ <tr>
258
+ <td ><center>
259
+ <img src="assets/gif/panda_rank_02-01-0007-009999.gif"/>
260
+ </center></td>
261
+ <td ><center>
262
+ <img src="assets/gif/bf19a66dca0a47799923c47249982ffd_0000000_rank_02-01-0960-001024.gif"/>
263
+ </center></td>
264
+ </tr>
265
+ <tr>
266
+ <td ><center>
267
+ <a href="https://cloud.video.taobao.com/play/u/null/p/1/e/6/t/1/424321438157.mp4">HQ Video</a>
268
+ </center></td>
269
+ <td ><center>
270
+ <a href="https://cloud.video.taobao.com/play/u/null/p/1/e/6/t/1/424614283086.mp4">HQ Video</a>
271
+ </center></td>
272
+ </tr>
273
+ </table>
274
+ </center>
275
+
276
+
277
+ ### 依赖项 (Dependency)
278
+
279
+
280
+ 首先你需要确定你的系统安装了*ffmpeg*命令,如果没有,可以通过以下命令来安装:
281
+
282
+ First, you need to ensure that your system has installed the ffmpeg command. If it is not installed, you can install it using the following command:
283
+
284
+ ```bash
285
+ sudo apt-get update && apt-get install ffmpeg libsm6 libxext6 -y
286
+ ```
287
+
288
+
289
+ 其次,本**MS-Image2Video**项目适配ModelScope代码库,以下是本项目需要安装的部分依赖项。
290
+
291
+ The **MS-Image2Video** project is compatible with the ModelScope codebase, and the following are some of the dependencies that need to be installed for this project.
292
+
293
+
294
+ ```bash
295
+ pip install modelscope==1.4.2
296
+ pip install -U xformers
297
+ pip install torch==2.0.1
298
+ pip install open_clip_torch>=2.0.2
299
+ pip install opencv-python-headless
300
+ pip install opencv-python
301
+ pip install einops>=0.4
302
+ pip install rotary-embedding-torch
303
+ pip install fairscale
304
+ pip install scipy
305
+ pip install imageio
306
+ pip install pytorch-lightning
307
+ ```
308
+
309
+
310
+ ### 快速使用 (Inference)
311
+
312
+ 关于更多的尝试,请关注我们将公开的技术报告和开源代码。
313
+
314
+ For more experiments, please stay tuned for our upcoming technical report and open-source code release.
315
+
316
+
317
+ ### 代码范例 (Code example)
318
+ ```python
319
+ from modelscope.pipelines import pipeline
320
+ from modelscope.outputs import OutputKeys
321
+
322
+ pipe = pipeline("image-to-video", 'damo/Image-to-Video')
323
+
324
+ # IMG_PATH: your image path (url or local file)
325
+ output_video_path = pipe(IMG_PATH, output_video='./output.mp4')[OutputKeys.OUTPUT_VIDEO]
326
+ print(output_video_path)
327
+ ```
328
+
329
+
330
+ ### 模型局限 (Limitation)
331
+
332
+
333
+ 本**MS-Image2Video**项目的模型在处理以下情况会存在局限性:
334
+ - 小目标生成能力有限,在生成较小目标的时候,会存在一定的错误
335
+ - 快速运动目标生成能力有限,当生成快速运动目标时,会存在一定的假象
336
+ - 生成速度较慢,生成高清视频会明显导致生成速度减慢
337
+
338
+ 此外,我们研究也发现,生成的视频空间上的质量和时序上的变化速度在一定程度上存在互斥现象,在本项目我们选择了其折中的模型,兼顾两则的平衡。
339
+
340
+
341
+ The model of the **MS-Image2Video** project has limitations in the following scenarios:
342
+ - Limited ability to generate small objects: There may be some errors when generating smaller objects.
343
+ - Limited ability to generate fast-moving objects: There may be some artifacts when generating fast-moving objects.
344
+ - Slow generation speed: Generating high-definition videos significantly slows down the generation speed.
345
+
346
+ Additionally, our research has found that there is a trade-off between the spatial quality and temporal variability of the generated videos. In this project, we have chosen a model that strikes a balance between the two.
347
+
348
+
349
+ *如果您正在尝试使用我们的模型,我们建议您首先在使用第一阶段得到满意的符合语义的视频之后,再尝试第二阶段的调整(因为该过程比较耗时),这样可以提高您的使用效率,更容易得到更好的结果。*
350
+
351
+ *If you are trying to use our model, we recommend that you first focus on obtaining satisfactory semantic-consistent videos using the first stage before attempting adjustments in the second stage (as this process can be time-consuming). This approach will improve your efficiency and increase the likelihood of achieving better results.*
352
+
353
+
354
+ ## 训练数据介绍 (Training Data)
355
+
356
+ 我们训练数据主要来源来源广泛,具备以下几个属性:
357
+
358
+ - 混合训练,模型有按照视频图像比7:1训练模型,以此保证视频生成质量
359
+ - 类别分布广,数据数十亿的总体量涵盖人、动物、机车、科幻、场景等等绝大多数的实际数据
360
+ - 来源分布广,数据来源于开源数据、视频网站以及其他内部数据,具有多分辨率、长宽比等
361
+ - 精品数据构建,为了提升模型生成的质量,我们构建了约20w的精品数据对预训练模型进行微调
362
+
363
+ Our training data mainly comes from various sources and has the following attributes:
364
+
365
+ - Mixed training: The model is trained with a 7:1 ratio of video to image to ensure the quality of video generation.
366
+ - Wide class distribution: The data set covers most real-world categories, including people, animals, locomotives, science fiction, scenes, etc. with a total volume of billions of data points.
367
+ - Wide source distribution: The data comes from open-source data, video websites, and other internal sources, with varying resolutions and aspect ratios.
368
+ - High-quality data construction: To improve the quality of the model-generated videos, we constructed approximately 200,000 high-quality data pairs for fine-tuning the pre-training model.
369
+
370
+
371
+ 相关的技术文档正在撰写中,欢迎及时关注。
372
+
373
+ The relevant technical report is currently being written, and we welcome you to stay tuned for updates.
374
+
375
+
376
+ ## 相关论文以及引用信息 (Reference)
377
+ ```
378
+ @article{videocomposer2023,
379
+ title={VideoComposer: Compositional Video Synthesis with Motion Controllability},
380
+ author={Wang, Xiang* and Yuan, Hangjie* and Zhang, Shiwei* and Chen, Dayou* and Wang, Jiuniu and Zhang, Yingya and Shen, Yujun and Zhao, Deli and Zhou, Jingren},
381
+ journal={arXiv preprint arXiv:2306.02018},
382
+ year={2023}
383
+ }
384
+
385
+ @inproceedings{videofusion2023,
386
+ title={VideoFusion: Decomposed Diffusion Models for High-Quality Video Generation},
387
+ author={Luo, Zhengxiong and Chen, Dayou and Zhang, Yingya and Huang, Yan and Wang, Liang and Shen, Yujun and Zhao, Deli and Zhou, Jingren and Tan, Tieniu},
388
+ booktitle={Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition},
389
+ year={2023}
390
+ }
391
+ ```
392
+
393
+ ## 使用协议 (License Agreement)
394
+ 我们的代码和模型权重仅可用于个人/学术研究,暂不支持商用。
395
+
396
+ Our code and model weights are only available for personal/academic research use and are currently not supported for commercial use.
397
+
398
+ ## 联系我们 (Contact Us)
399
+ 如果你想联系我们的算法/产品同学, 或者想加入我们的算法团队(实习/正式), 欢迎发邮件至: <yingya.zyy@alibaba-inc.com>。
400
+
401
+ If you would like to contact us, or join our team (internship/formal), please feel free to email us at <yingya.zyy@alibaba-inc.com>.
assets/gif/03b401c825a2479eaf7b1b3252683a4b_0000000_rank_02-01-0116-001024.gif ADDED

Git LFS Details

  • SHA256: 618123b9e7d27bd648ac7f7e5d9785e590aeb83da418c6efabc72a3721c9e3ef
  • Pointer size: 132 Bytes
  • Size of remote file: 3.01 MB
assets/gif/03b401c825a2479eaf7b1b3252683a4b_0_rank_02-01-0664-001024.gif ADDED

Git LFS Details

  • SHA256: ee2fee401a129ec4b29219451e4e04b584652e01b40f82d25862f88915877923
  • Pointer size: 132 Bytes
  • Size of remote file: 3.04 MB
assets/gif/03b401c825a2479eaf7b1b3252683a4b_3_02_00_0110_rank_02-00-1009-001024.gif ADDED

Git LFS Details

  • SHA256: 18921e655f82fdb935410ab5637fe933ee8662e8cdc4970fa2f0ceedfe577f22
  • Pointer size: 132 Bytes
  • Size of remote file: 3.89 MB
assets/gif/0ba38f2f287f446dac8de87291073e0c_3_rank_02-01-0118-000000.gif ADDED

Git LFS Details

  • SHA256: 1b6aa53c717b3e55734ac0a8c5f192585dd69719176fcc0e05e34006c6531989
  • Pointer size: 132 Bytes
  • Size of remote file: 3.5 MB
assets/gif/293fdf76aa404971b1fbb66baf9cbaac_1_02_00_0123_rank_02-00-0288-001024.gif ADDED

Git LFS Details

  • SHA256: ede8a25736255a0975cf74363230ed481df7f02bf35de5fa8010a0601de4c6dc
  • Pointer size: 132 Bytes
  • Size of remote file: 2.92 MB
assets/gif/3e89356e6bd3470aaf3900b1b34c3ec2_0_rank_02-01-0126-000000.gif ADDED

Git LFS Details

  • SHA256: a6f40da7215268690d39f4704599f8df54647a058d60491738d7126106490c7b
  • Pointer size: 132 Bytes
  • Size of remote file: 3.36 MB
assets/gif/3e89356e6bd3470aaf3900b1b34c3ec2_1_02_00_0020_rank_02-00-0303-001024.gif ADDED

Git LFS Details

  • SHA256: 9d2d74f38652c312be621195a61e800889d9239011314b423f31591ba60a7eaf
  • Pointer size: 132 Bytes
  • Size of remote file: 3.9 MB
assets/gif/426a7bee22034a88872dc8277ddbbf06_0_02_01_0023_rank_02-01-1090-001024.gif ADDED

Git LFS Details

  • SHA256: 49aa283543cc4cfa30f7b8fcc3ee53294b1d59c8b8422883fb4b8757d860932d
  • Pointer size: 132 Bytes
  • Size of remote file: 2.96 MB
assets/gif/6fd21439fce644afa3a2e9b057956d0f_0000000_rank_02-01-0159-001024.gif ADDED

Git LFS Details

  • SHA256: 29642952e13e99f3b40cf4b1668fd55393fe00e00db20cc3d10783096b19d71f
  • Pointer size: 132 Bytes
  • Size of remote file: 3.62 MB
assets/gif/6fd21439fce644afa3a2e9b057956d0f_3_02_01_0153_rank_02-01-1183-001024.gif ADDED

Git LFS Details

  • SHA256: 39b64dbfa10afb603ce1df9336773274e66751a820c44d6d5b041aa8f518b17b
  • Pointer size: 132 Bytes
  • Size of remote file: 4.06 MB
assets/gif/7716d91802614bf9a99174c05bd08f32_3_02_01_0157_rank_02-01-1199-001024.gif ADDED

Git LFS Details

  • SHA256: 70635cbb61b8ef6e7bd904c8d3384c95722f191ad2ab1123be2a732be4374df0
  • Pointer size: 132 Bytes
  • Size of remote file: 3.78 MB
assets/gif/a15bb09862b74b3c983a54b379912f81_0_02_00_0055.gif ADDED

Git LFS Details

  • SHA256: 17a38fe8eafad5eaae6f24d24e0d652c4943dbad8bcf3ea0f7ac026af658dd8c
  • Pointer size: 132 Bytes
  • Size of remote file: 3.64 MB
assets/gif/a15bb09862b74b3c983a54b379912f81_0_02_00_0055_rank_02-01-0443-001024.gif ADDED

Git LFS Details

  • SHA256: 3e0ae2b175d1e06937eb70dc418ea9b61b5548522dcff37aef66f0ab0ae4e1a3
  • Pointer size: 132 Bytes
  • Size of remote file: 3.68 MB
assets/gif/ac10af0b1c524b778aff60be5b7ecc4f_0000000_rank_02-00-0179-001024.gif ADDED

Git LFS Details

  • SHA256: 04e61be686c4c05dd7179e955035495c8e964c31b85625f8c447f67774297a36
  • Pointer size: 132 Bytes
  • Size of remote file: 3 MB
assets/gif/ac10af0b1c524b778aff60be5b7ecc4f_0_02_01_0170_rank_02-01-1251-001024.gif ADDED

Git LFS Details

  • SHA256: e76a00174b1551222af683e7068beb3b851a0a283d2d4c131911f0d135e3b7d0
  • Pointer size: 132 Bytes
  • Size of remote file: 3.21 MB
assets/gif/ac10af0b1c524b778aff60be5b7ecc4f_2_02_00_0065_rank_02-00-1256-001024.gif ADDED

Git LFS Details

  • SHA256: 11e40451cf2330bec72d8fc45f536bcb5101d4a7f44b62dbd049c9b36b97ce63
  • Pointer size: 132 Bytes
  • Size of remote file: 2.86 MB
assets/gif/airship_0_rank_02-00-000000_rank_02-00-0653-001024.gif ADDED

Git LFS Details

  • SHA256: db085b0066068d74b7c4cc3f1012caeec8a320cbbfbd5c4295369c46c7bc701b
  • Pointer size: 132 Bytes
  • Size of remote file: 3.55 MB
assets/gif/airship_0_rank_02-00-0095-001024.gif ADDED

Git LFS Details

  • SHA256: ece9673dccbbd29f0c631aa02aff09cfa4e18b3035ef7188b4ebd4e8c43b3987
  • Pointer size: 132 Bytes
  • Size of remote file: 3.14 MB
assets/gif/airship_1_rank_02-01-000000_rank_02-00-1428-001024.gif ADDED

Git LFS Details

  • SHA256: ba245f5fb506f17b9aa99ec5574d4980999f789e41b5362a3659775c9a9f31fa
  • Pointer size: 132 Bytes
  • Size of remote file: 2.77 MB
assets/gif/ast_rank_02-00-0773-001024.gif ADDED

Git LFS Details

  • SHA256: 2a12c88a0e475fe4d860622a089664192ca236097911e13b0ba955549bd1489a
  • Pointer size: 132 Bytes
  • Size of remote file: 3.89 MB
assets/gif/b307dad96c3d440e80514b1b3f3be5fd_1_02_00_0068_rank_02-01-0495-001024.gif ADDED

Git LFS Details

  • SHA256: 4b384790c8e634586541a4381e0151262d2d2b03fdfaaf16bb7db907d3cdfe69
  • Pointer size: 132 Bytes
  • Size of remote file: 4.54 MB
assets/gif/b307dad96c3d440e80514b1b3f3be5fd_1_rank_02-00-0068-000000.gif ADDED

Git LFS Details

  • SHA256: 65b7e3641ba80e18d782233feab29950abe473b15de3f79ba07ae836080d964d
  • Pointer size: 132 Bytes
  • Size of remote file: 4.73 MB
assets/gif/b307dad96c3d440e80514b1b3f3be5fd_1_rank_02-00-0175-000000.gif ADDED

Git LFS Details

  • SHA256: 52fb3d4191be5abefa1a895f34cc545c05b144d8ac08a352d40021c87dc9962f
  • Pointer size: 132 Bytes
  • Size of remote file: 4.81 MB
assets/gif/bf19a66dca0a47799923c47249982ffd_0000000_rank_02-01-0960-001024.gif ADDED

Git LFS Details

  • SHA256: db25e324dcafe3e02d0df4802453e558058d28b62fd5e44ad12d5bee81ddc3f8
  • Pointer size: 132 Bytes
  • Size of remote file: 3.76 MB
assets/gif/bike_rank_02-01-0007-001024.gif ADDED

Git LFS Details

  • SHA256: 35fecc2f03b0bf0d0737a5e5e3ff6cf7b3a74eed93edcbf755d5988ee20d8fc6
  • Pointer size: 132 Bytes
  • Size of remote file: 4.69 MB
assets/gif/d82ed4ad01034243ba88eaf9311c1edf_3_02_01_0193.gif ADDED

Git LFS Details

  • SHA256: a9223b086aa4afbc64fd7e5a09089d5d1358055f8cf66cc714869f7937f0ca59
  • Pointer size: 132 Bytes
  • Size of remote file: 3.9 MB
assets/gif/dragon2_rank_02-00-0021-001024.gif ADDED

Git LFS Details

  • SHA256: 1d645cf6d8c02755db962a3427647d1bc8eeb8881b0bf849dea207286f618833
  • Pointer size: 132 Bytes
  • Size of remote file: 3.45 MB
assets/gif/dragon2_rank_02-01-0794-001024.gif ADDED

Git LFS Details

  • SHA256: 05d32cd2f4ba2173e4a6039b4a6889bf1515b51b7988a106be709eb3b71c8d4e
  • Pointer size: 132 Bytes
  • Size of remote file: 3.43 MB
assets/gif/e3733444344741f1970cf2e92e617182_1_02_00_0199.gif ADDED

Git LFS Details

  • SHA256: 9c13b8fa0285f2c24d409b0c297b2b0e462138fc574d3f3129b2cd12f7ecc54a
  • Pointer size: 132 Bytes
  • Size of remote file: 4.03 MB
assets/gif/indian_rank_02-00-0800-001024.gif ADDED

Git LFS Details

  • SHA256: daa75a25bfd814e289420636a5ce9824ed13f150b6a9b8634653e3c11f1eac89
  • Pointer size: 132 Bytes
  • Size of remote file: 5.05 MB
assets/gif/laoshu3_rank_02-00-0812-001024.gif ADDED

Git LFS Details

  • SHA256: 7884251b71dea45a19d31d10f206eb0ecb70b33caa8e2d094de35a6e973349e0
  • Pointer size: 132 Bytes
  • Size of remote file: 3.31 MB
assets/gif/laoshu_rank_02-01-0810-001024.gif ADDED

Git LFS Details

  • SHA256: f3495b7abe1a6fb6d9387242bad9204ae68db7999d598b4c8b8c416956c71daa
  • Pointer size: 132 Bytes
  • Size of remote file: 2.86 MB
assets/gif/panda_rank_02-01-0007-009999.gif ADDED

Git LFS Details

  • SHA256: f6cb810fe5c3133b73cb2875b996f17291683a3617b631c08737f1cb8ad51b97
  • Pointer size: 132 Bytes
  • Size of remote file: 3.71 MB
assets/gif/robot1_rank_02-00-0009-009999.gif ADDED

Git LFS Details

  • SHA256: 84ab33678d48651d511538e6473f84d02f4a6d23792d2d9224f244f9e3ac288f
  • Pointer size: 132 Bytes
  • Size of remote file: 4.45 MB
assets/gif/robot1_rank_02-01-0009-009999.gif ADDED

Git LFS Details

  • SHA256: cd4854ece046031510fb54fe4bafab798ab5037c63a7d5bc9850428bed53b00a
  • Pointer size: 132 Bytes
  • Size of remote file: 4.36 MB
assets/image/Fig_twostage.png ADDED

Git LFS Details

  • SHA256: 5f3ab2681f8682bc6e38be0b5d7f12dcfb0c21c2a77a3956faefd0b7812c2d37
  • Pointer size: 132 Bytes
  • Size of remote file: 2.58 MB
assets/image/fig1_overview.jpg ADDED

Git LFS Details

  • SHA256: 2d42f2ac4a41e983b68bc142a1aca143e22fccd96a0b65805a5f2550ef2817c1
  • Pointer size: 131 Bytes
  • Size of remote file: 326 kB
assets/videos/08a5a4d7e2fe44a8bb2cf4df198e20dc_0_02_00_0111.gif ADDED

Git LFS Details

  • SHA256: 9753928cb8231ba59a2069422dcccfc84ad1b248bbb07004ebfe6667b02392e1
  • Pointer size: 132 Bytes
  • Size of remote file: 4.16 MB
assets/videos/08a5a4d7e2fe44a8bb2cf4df198e20dc_2_02_01_0113.gif ADDED

Git LFS Details

  • SHA256: 71020f6383785e84119c9ba65afbed7b0a1b8c3bf32bd7cb06b95d7d25776ad2
  • Pointer size: 132 Bytes
  • Size of remote file: 3.82 MB
assets/videos/0ba38f2f287f446dac8de87291073e0c_0_02_00_0008.mp4 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:349452b4cbbdfc4239ebbb70100e7d2304fa01f6b7ff666af055f0452949d2be
3
+ size 388586
assets/videos/293fdf76aa404971b1fbb66baf9cbaac_2_02_00_0017.gif ADDED

Git LFS Details

  • SHA256: 258a63ec6b55e3c084db3b4144117dc61757ddc5645c27d8869ba42abb98eed8
  • Pointer size: 132 Bytes
  • Size of remote file: 2.93 MB
assets/videos/426a7bee22034a88872dc8277ddbbf06_3_02_01_0026.gif ADDED

Git LFS Details

  • SHA256: fa32271d30ba4ab25c82ce0e1bceaf2fb01021408a1011f3153948c927b2e36a
  • Pointer size: 132 Bytes
  • Size of remote file: 3.39 MB
assets/videos/5274db5c33274e5ab27c12cdbed57ada_2_02_00_0140.gif ADDED

Git LFS Details

  • SHA256: ac897ef84b95db3d9b6d240263920a04ef4f635f9aae3d1af176384b33c3ad8e
  • Pointer size: 132 Bytes
  • Size of remote file: 3.21 MB
assets/videos/87d8dd92a04d41c38c79b85dcc84f810_0_02_00_0158.gif ADDED

Git LFS Details

  • SHA256: 4645cba366f01540e724158fd4a3a08c7640054b54ce0c7b5bbf0392826c5ad2
  • Pointer size: 132 Bytes
  • Size of remote file: 3.85 MB
assets/videos/87d8dd92a04d41c38c79b85dcc84f810_3_02_00_0161.gif ADDED

Git LFS Details

  • SHA256: db66a589c86afd13b2d72f5141c133b39ab8f813bd5e7fd870148e1eea1163f9
  • Pointer size: 132 Bytes
  • Size of remote file: 4.15 MB
assets/videos/a15bb09862b74b3c983a54b379912f81_0_02_00_0055.gif ADDED

Git LFS Details

  • SHA256: 9386037bd7ce8d52a1d599621c86dd4d3e4855d11dd80c0f340d0a79a7f8bd9a
  • Pointer size: 132 Bytes
  • Size of remote file: 3.64 MB
assets/videos/a15bb09862b74b3c983a54b379912f81_3_02_00_0058.gif ADDED

Git LFS Details

  • SHA256: 70e84ad3df64cece60838df7a71b4317c9aa32e3f81a816bd97336b6c206b33a
  • Pointer size: 132 Bytes
  • Size of remote file: 3.77 MB
assets/videos/ac10af0b1c524b778aff60be5b7ecc4f_1_02_00_0064.gif ADDED

Git LFS Details

  • SHA256: 61cc0055f7ee576b8b22563a262825c6a3765b315f1faa9ce0b1516e63e6a439
  • Pointer size: 132 Bytes
  • Size of remote file: 3.24 MB