Cseti commited on
Commit
8f1c4a1
1 Parent(s): a1f7b48

Create README.md

Browse files
Files changed (1) hide show
  1. README.md +29 -0
README.md ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model:
3
+ - THUDM/CogVideoX-5b
4
+ tags:
5
+ - LoRA
6
+ ---
7
+ You can use the finetuned model for inference with the following code:
8
+ import torch
9
+ from diffusers import CogVideoXPipeline
10
+ from diffusers import export_to_video
11
+
12
+ ```python
13
+ import torch
14
+ from diffusers import CogVideoXPipeline
15
+ from diffusers import export_to_video
16
+
17
+ pipe = CogVideoXPipeline.from_pretrained(
18
+ "THUDM/CogVideoX-5b", torch_dtype=torch.bfloat16
19
+ ).to("cuda")
20
+
21
+ pipe.load_lora_weights("my-awesome-name/my-awesome-lora", adapter_name=["cogvideox-lora"])
22
+ pipe.set_adapters(["cogvideox-lora"], [1.0])
23
+
24
+ video = pipe("<my-awesome-prompt>").frames[0]
25
+ export_to_video(video, "output.mp4", fps=8)
26
+
27
+ ```
28
+
29
+ This CogVideoX LoRA is created as part of a fan project for research purposes only and is not intended for commercial use. It is based on Wallace and Gromit film clips, which are protected by copyright. Users utilize the model at their own risk. Users are obligated to comply with copyright laws and applicable regulations. The Product has been developed for non-commercial purposes, and it is not my intention to infringe on any copyright. I assume no responsibility for any damages or legal consequences arising from the use of the Product.