Cseti commited on
Commit
8465fa5
1 Parent(s): 16c3445

Create README.md

Browse files
Files changed (1) hide show
  1. README.md +58 -0
README.md ADDED
@@ -0,0 +1,58 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model:
3
+ - THUDM/CogVideoX-5b
4
+ tags:
5
+ - LoRA
6
+ - cogvideo
7
+ ---
8
+ This CogVideoX LoRA is created as part of a <b>fan project</b> for <b>research purposes</b> only and is <b>not</b> intended for commercial use. It is based on the TV series called Arcane 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 model 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 model.
9
+
10
+ <u><b>Important Notes:</u></b>
11
+
12
+ - Despite the LoRA started to learn the appearance of the main characters it still doesn't able to reproduce them accurately. So don't expect to see your beloved characters.
13
+ - For the best quality do not use quantization (like fp8) or sage attention
14
+
15
+ <u><b>Compatibility:</u></b>
16
+ - CogVideoX 1.0 (It does not work with CogVideox 1.5 models)
17
+
18
+ <u><b>ID Token / Trigger word(s):</b></u>
19
+
20
+ Use these in your prompt helps providing the style. See example prompt below.
21
+ - csetiarcane
22
+
23
+
24
+ <u><b>Inference:</u></b>
25
+
26
+ You can use the finetuned model for inference with the following code:
27
+
28
+ ```python
29
+ import torch
30
+ from diffusers import CogVideoXPipeline
31
+ from diffusers import export_to_video
32
+
33
+ pipe = CogVideoXPipeline.from_pretrained(
34
+ "THUDM/CogVideoX-5b", torch_dtype=torch.bfloat16
35
+ ).to("cuda")
36
+
37
+ pipe.load_lora_weights("Cseti/CogVideoX1.0-LoRA-Arcane", adapter_name=["cogvideox-lora"])
38
+ pipe.set_adapters(["cogvideox-lora"], [1.0])
39
+
40
+ video = pipe("walgro1. The scene begins with a close-up of Gromit’s face, his expressive eyes filling the frame. His brow furrows slightly, ears perked forward in concentration. The soft lighting highlights the subtle details of his fur, every strand catching the warm sunlight filtering in from a nearby window. His dark, round nose twitches ever so slightly, sensing something in the air, and his gaze darts to the side, following an unseen movement. The camera lingers on Gromit’s face, capturing the subtleties of his expression—a quirked eyebrow and a knowing look that suggests he’s piecing together something clever. His silent, thoughtful demeanor speaks volumes as he watches the scene unfold with quiet intensity. The background remains out of focus, drawing all attention to the sharp intelligence in his eyes and the slight tilt of his head. In the claymation style of Wallace and Gromit.").frames[0]
41
+ export_to_video(video, "output.mp4", fps=8)
42
+
43
+ ```
44
+ <u><b>Acknowledgment:</b></u>
45
+
46
+ - Thank you for the [CogVideo team](https://github.com/a-r-r-o-w/cogvideox-factory) for making these great models available
47
+ - Thank you for A-R-R-O-W for his [CogVideoX-Factory](https://github.com/a-r-r-o-w/cogvideox-factory) that helps us making CogVideo LoRAs more easier.
48
+ - Thank you for Kijai for his great [ComfyUI integration](https://github.com/kijai/ComfyUI-CogVideoXWrapper)
49
+
50
+
51
+ <u><b>Examples:</b></u>
52
+
53
+ <b>Prompt:</b> "walgro1. Gromit sits quietly in a cozy living room, the soft glow of a nearby lamp casting warm light across the room. The camera starts with a close-up of his thoughtful expression, his eyes darting toward the side, observing the subtle movement of something off-screen. A clock ticks rhythmically on the wall behind him, creating a steady backdrop to the otherwise silent room.
54
+ The camera slowly pulls back to reveal the setting: a tidy space with bookshelves filled with old volumes, a comfortable armchair in the corner, and a small coffee table in the center, where a half-finished jigsaw puzzle lies scattered. The atmosphere is calm, almost serene, as Gromit glances toward the puzzle, his curiosity piqued."
55
+ <video width="720" height="480" controls>
56
+ <source src="https://huggingface.co/Cseti/CogVideoX-LoRA-Wallace_and_Gromit/resolve/main/WalGro_withLoRA_0000.mp4" type="video/mp4">
57
+ Your browser does not support the video tag.
58
+ </video>