Views
No views yet
challenge profile, 2k clips)1import torch
2from diffusers import WanImageToVideoPipeline
3from diffusers.utils import export_to_video
4from PIL import Image
5
6pipe = WanImageToVideoPipeline.from_pretrained(
7 "Realfencer/IT2V_model",
8 torch_dtype=torch.bfloat16,
9)
10pipe.to("cuda")
11
12image = Image.open("first_frame.png").convert("RGB").resize((832, 480))
13prompt = "your motion prompt"
14
15out = pipe(
16 image=image,
17 prompt=prompt,
18 negative_prompt="low quality, blurry, distorted, flicker, temporal jump, identity drift",
19 width=832,
20 height=480,
21 num_frames=81,
22 guidance_scale=5.0,
23 num_inference_steps=30,
24 generator=torch.Generator(device="cuda").manual_seed(42),
25)
26export_to_video(out.frames[0], "out.mp4", fps=16)training_metadata.json for LoRA hyperparameters and deploy settings.leoma_project/ folder contains the Leoma subnet tooling and fine-tuning scripts used to produce this model (no datasets or secrets).