Downloads · 30 days
0
wangkanai/wan25-fp8-i2v-loras
wan25-fp8-i2v-loras is a image-to-video model from wangkanai. Use it for the image-to-video task on the model card, and read the license before you ship it in a product. It is set up for diffusers. The card lists the license as other.
This repository contains Low-Rank Adaptation (LoRA) models for the WAN 2.5 image-to-video generation system in FP8 precision format. These LoRAs provide specialized enhancements for camera control, lighting adjustment…
Downloads · 30 days
0
Access
Public
Updated Oct 28, 2025
Repo size
—
Likes
4
Public
Click a slice to open those files.
.md12.5 KB · 89%
From the Hugging Face model README
This repository contains Low-Rank Adaptation (LoRA) models for the WAN 2.5 image-to-video generation system in FP8 precision format. These LoRAs provide specialized enhancements for camera control, lighting adjustment, motion control, and quality improvement in generated videos from static images.
WAN 2.5 Image-to-Video LoRAs are adapter models that enhance the base WAN 2.5 model for animating static images into dynamic videos. These LoRAs provide specialized capabilities:
FP8 Precision: These LoRAs use 8-bit floating point format for:
Current Status: Repository structure prepared, model files pending
wan25-fp8-loras/
└── loras/
└── wan/
├── camera/ # Camera control LoRAs (pending)
├── lighting/ # Lighting enhancement LoRAs (pending)
├── quality/ # Quality improvement LoRAs (pending)
└── style/ # Style transfer LoRAs (pending)
Expected File Structure (when populated):
loras/wan/
├── camera/
│ ├── camera_pan.safetensors (~50-200 MB)
│ ├── camera_zoom.safetensors (~50-200 MB)
│ └── camera_orbit.safetensors (~50-200 MB)
├── lighting/
│ ├── lighting_cinematic.safetensors (~50-200 MB)
│ ├── lighting_natural.safetensors (~50-200 MB)
│ └── lighting_dramatic.safetensors (~50-200 MB)
├── quality/
│ ├── quality_detail.safetensors (~50-200 MB)
│ └── quality_coherence.safetensors (~50-200 MB)
└── style/
├── style_anime.safetensors (~50-200 MB)
└── style_realistic.safetensors (~50-200 MB)
Total Estimated Size: 0.5 - 2 GB (depending on number of LoRAs)
from diffusers import DiffusionPipeline
import torch
# Load base WAN 2.5 model
pipe = DiffusionPipeline.from_pretrained(
"E:/huggingface/wan25-base", # Path to base WAN model
torch_dtype=torch.float8_e4m3fn,
variant="fp8"
)
# Load camera control LoRA
pipe.load_lora_weights(
"E:/huggingface/wan25-fp8-loras/loras/wan/camera",
weight_name="camera_pan.safetensors",
adapter_name="camera_pan"
)
# Set LoRA scale (0.0 to 1.0)
pipe.set_adapters(["camera_pan"], adapter_weights=[0.8])
# Generate video with camera pan effect
prompt = "A sweeping pan across a mountain landscape at sunset"
video = pipe(
prompt=prompt,
num_frames=120,
height=720,
width=1280,
guidance_scale=7.5,
num_inference_steps=50
).frames[0]
# Save video
import imageio
imageio.mimsave("output_video.mp4", video, fps=24)
# Load multiple LoRAs for combined effects
pipe.load_lora_weights(
"E:/huggingface/wan25-fp8-loras/loras/wan/camera",
weight_name="camera_pan.safetensors",
adapter_name="camera"
)
pipe.load_lora_weights(
"E:/huggingface/wan25-fp8-loras/loras/wan/lighting",
weight_name="lighting_cinematic.safetensors",
adapter_name="lighting"
)
pipe.load_lora_weights(
"E:/huggingface/wan25-fp8-loras/loras/wan/quality",
weight_name="quality_detail.safetensors",
adapter_name="quality"
)
# Set weights for each LoRA
pipe.set_adapters(
["camera", "lighting", "quality"],
adapter_weights=[0.8, 0.7, 0.6]
)
# Generate with combined effects
prompt = "Cinematic camera pan through a detailed futuristic cityscape"
video = pipe(prompt=prompt, num_frames=120).frames[0]
# Gradually increase LoRA effect during generation
def generate_with_dynamic_lora(pipe, prompt, lora_schedule):
"""
lora_schedule: dict mapping frame ranges to LoRA weights
Example: {(0, 40): 0.3, (40, 80): 0.7, (80, 120): 0.5}
"""
frames = []
for frame_range, weight in lora_schedule.items():
start, end = frame_range
pipe.set_adapters(["camera_pan"], adapter_weights=[weight])
frame_chunk = pipe(
prompt=prompt,
num_frames=end - start,
guidance_scale=7.5
).frames[0]
frames.extend(frame_chunk)
return frames
# Example: Start subtle, peak in middle, fade out
schedule = {
(0, 40): 0.3, # Subtle effect
(40, 80): 0.8, # Strong effect
(80, 120): 0.4 # Fade out
}
video = generate_with_dynamic_lora(pipe, "Mountain landscape pan", schedule)
# Enable memory-efficient attention
pipe.enable_xformers_memory_efficient_attention()
# Use CPU offloading for limited VRAM
pipe.enable_model_cpu_offload()
# Reduce batch size for multiple LoRAs
pipe.enable_sequential_cpu_offload()
# Faster inference (reduced quality)
video = pipe(
prompt=prompt,
num_inference_steps=30, # Reduced from 50
guidance_scale=6.0 # Reduced from 7.5
)
# Higher quality (slower)
video = pipe(
prompt=prompt,
num_inference_steps=75, # Increased
guidance_scale=8.5 # Increased
)
Unload Unused LoRAs: Free memory between generations
pipe.unload_lora_weights()
Cache Frequently Used: Keep common LoRAs loaded
Test Individually: Verify each LoRA before combining
Document Weights: Track successful weight combinations
Version Control: Note which LoRAs work well together
License Type: Other (WAN-specific license)
This repository contains LoRA adapters for the WAN 2.5 model. Usage is governed by the WAN model license terms.
Usage Restrictions:
Attribution: When using these LoRAs, please credit:
If you use these WAN 2.5 LoRAs in your research or projects, please cite:
@software{wan25_fp8_loras,
title={WAN 2.5 FP8 LoRA Collection},
author={WAN Contributors},
year={2025},
url={https://huggingface.co/wan25-fp8-loras},
note={Low-Rank Adaptation models for WAN 2.5 video generation}
}
For the base WAN model, cite:
@software{wan25,
title={WAN 2.5: Video Generation Model},
author={WAN Research Team},
year={2025},
url={https://huggingface.co/WAN/wan25}
}
E:/huggingface/wan25-base - Base WAN 2.5 modelE:/huggingface/wan25-vae - WAN 2.5 VAE componentsE:/huggingface/flux-dev-fp8 - FLUX.1 image generation modelsimage-to-video (accurate for I2V LoRAs)text-to-video from previous version, kept image-to-video, lora, video-generationFor questions, issues, or contributions:
Repository Status: Structure prepared, awaiting model files
Last Updated: 2025-10-28
Maintained By: WAN LoRA Collection Team