Views
No views yet
transformers and diffusers. Here's an example of how to load and use the LoRA:1from diffusers import StableDiffusionPipeline
2
3# Load the base WAN 2.1 model
4pipe = StableDiffusionPipeline.from_pretrained("Wan-AI/Wan2.1-T2V-14B")
5
6# Load your LoRA weights (replace with your LoRA's path or Huggingface repo)
7pipe.load_lora_weights("path/to/your/lora")
8
9# Generate content with the LoRA applied
10output = pipe("A description of the image or video you want to generate").images[0]
11output.save("output.png") # Adjust based on the output type (e.g., video)
12
13# The trigger word for this LoRA is "Claydoh." I like to use "Claydoh," "a Claydoh," "Claydoh style," etc. This LoRA was achieved with ~2000 steps at roughly the 38th epoch using the same dataset I created in Blender for my FLUX Claydoh LoRA. Enjoy!