kIDAa commited on
Commit
1ae41a2
1 Parent(s): db58b92

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +47 -3
README.md CHANGED
@@ -1,3 +1,47 @@
1
- ---
2
- license: apache-2.0
3
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ ---
4
+ # ExVideo
5
+
6
+ ExVideo is a post-tuning technique aimed at enhancing the capability of video generation models. We have extended CogVideoX-5B to generate videos up to 129 frames long.
7
+
8
+ This is our second publicly released model, incorporating LoRA into the structure of CogVideoX-5B.
9
+
10
+
11
+ * [Project Page](https://ecnu-cilab.github.io/ExVideoProjectPage/)
12
+ * [Source Code](https://github.com/modelscope/DiffSynth-Studio)
13
+ * [Technical report](https://arxiv.org/abs/2406.14130)
14
+
15
+ ## Usages
16
+
17
+ ```python
18
+ from diffsynth import ModelManager, CogVideoPipeline, save_video, download_models
19
+ import torch
20
+
21
+
22
+ download_models(["CogVideoX-5B", "ExVideo-CogVideoX-LoRA-129f-v1"])
23
+ model_manager = ModelManager(torch_dtype=torch.bfloat16)
24
+ model_manager.load_models([
25
+ "models/CogVideo/CogVideoX-5b/text_encoder",
26
+ "models/CogVideo/CogVideoX-5b/transformer",
27
+ "models/CogVideo/CogVideoX-5b/vae/diffusion_pytorch_model.safetensors",
28
+ ])
29
+ model_manager.load_lora("models/lora/ExVideo-CogVideoX-LoRA-129f-v1.safetensors")
30
+ pipe = CogVideoPipeline.from_model_manager(model_manager)
31
+
32
+ torch.manual_seed(6)
33
+ video = pipe(
34
+ prompt="an astronaut riding a horse on Mars.",
35
+ height=480, width=720, num_frames=129,
36
+ cfg_scale=7.0, num_inference_steps=100,
37
+ )
38
+ save_video(video, "video_with_lora.mp4", fps=8, quality=5)
39
+ ```
40
+
41
+ Please refer to [DiffSynth](https://github.com/modelscope/DiffSynth-Studio) for more information.
42
+
43
+ ## Examples
44
+
45
+ Prompt: an astronaut riding a horse on Mars.
46
+
47
+ <video src="videos/demo.mp4" controls="controls"></video>