Views
No views yet
[!IMPORTANT] This is an experimental checkpoint and its poor generalization is well-known.
1from diffusers import CogVideoXTransformer3DModel, DiffusionPipeline
2from diffusers.utils import export_to_video
3import torch
4
5transformer = CogVideoXTransformer3DModel.from_pretrained(
6 "finetrainers/crush-smol-v0", torch_dtype=torch.bfloat16
7)
8pipeline = DiffusionPipeline.from_pretrained(
9 "THUDM/CogVideoX-5b", transformer=transformer, torch_dtype=torch.bfloat16
10).to("cuda")
11
12prompt = """
13DIFF_crush A thick burger is placed on a dining table, and a large metal cylinder descends from above, crushing the burger as if it were under a hydraulic press. The bulb is crushed, leaving a pile of debris around it.
14"""
15negative_prompt = "inconsistent motion, blurry motion, worse quality, degenerate outputs, deformed outputs"
16
17video = pipeline(
18 prompt=prompt,
19 negative_prompt=negative_prompt,
20 num_frames=81,
21 height=512,
22 width=768,
23 num_inference_steps=50
24).frames[0]
25export_to_video(video, "output.mp4", fps=25)1from diffusers import DiffusionPipeline
2from diffusers.utils import export_to_video
3import torch
4
5pipeline = DiffusionPipeline.from_pretrained("THUDM/CogVideoX-5b", torch_dtype=torch.bfloat16).to("cuda")
6pipeline.load_lora_weights("finetrainers/cakeify-v0", weight_name="extracted_crush_smol_lora_64.safetensors")
7
8prompt = """
9DIFF_crush A thick burger is placed on a dining table, and a large metal cylinder descends from above, crushing the burger as if it were under a hydraulic press. The bulb is crushed, leaving a pile of debris around it.
10"""
11negative_prompt = "inconsistent motion, blurry motion, worse quality, degenerate outputs, deformed outputs"
12
13video = pipeline(
14 prompt=prompt,
15 negative_prompt=negative_prompt,
16 num_frames=81,
17 height=512,
18 width=768,
19 num_inference_steps=50
20).frames[0]
21export_to_video(video, "output_lora.mp4", fps=25)