Downloads · 30 days
35
12% of all-time downloads
shauray/Mcgregor_WanLora
Mcgregor_WanLora is a text-to-video model from shauray. Use it when you need video from a text prompt. It is set up for diffusers. The card lists the license as apache-2.0.
Downloads · 30 days
35
12% of all-time downloads
All-time downloads
304
Public
Repo size
307 MB
Likes
0
Public
Click a slice to open those files.
.safetensors307 MB · 100%
From the Hugging Face model README
You should use conor to trigger the video generation.
pip install git+https://github.com/huggingface/diffusers.git
import torch
from diffusers.utils import export_to_video
from diffusers import AutoencoderKLWan, WanPipeline
from diffusers.schedulers.scheduling_unipc_multistep import UniPCMultistepScheduler
# Available models: Wan-AI/Wan2.1-T2V-14B-Diffusers, Wan-AI/Wan2.1-T2V-1.3B-Diffusers
model_id = "Wan-AI/Wan2.1-T2V-14B-Diffusers"
vae = AutoencoderKLWan.from_pretrained(model_id, subfolder="vae", torch_dtype=torch.float32)
pipe = WanPipeline.from_pretrained(model_id, vae=vae, torch_dtype=torch.bfloat16)
flow_shift = 5.0 # 5.0 for 720P, 3.0 for 480P
pipe.scheduler = UniPCMultistepScheduler.from_config(pipe.scheduler.config, flow_shift=flow_shift)
pipe.to("cuda")
pipe.load_lora_weights("shauray/Mcgregor_WanLora")
pipe.enable_model_cpu_offload() #for low-vram environments
prompt = "conor a man walking through a bar"
output = pipe(
prompt=prompt,
height=480,
width=720,
num_frames=81,
guidance_scale=5.0,
).frames[0]
export_to_video(output, "output.mp4", fps=16)
Weights for this model are available in Safetensors format.
Download them in the Files & versions tab.