Diffusers How to use joyfox/Wan2.1-I2V-Twerk-Lora with Diffusers:
pip install -U diffusers transformers accelerate
import torch
from diffusers import DiffusionPipeline
# switch to "mps" for apple devices
pipe = DiffusionPipeline.from_pretrained("Wan-AI/Wan2.1-I2V-14B-480P", dtype=torch.bfloat16, device_map="cuda")
pipe.load_lora_weights("joyfox/Wan2.1-I2V-Twerk-Lora")
prompt = "The camera quickly zooms out to cover the entire body of the character, who quickly turns around and dances an electric hip dance"
image = pipe(prompt).images[0]