This repository contains WAN (Wan An) 2.1 models for advanced video generation with cinematic camera control capabilities. WAN 2.1 introduces LoRA adapters for precise camera movement control in generated videos.
Model Description
WAN 2.1 is a video generation model that extends traditional text-to-video capabilities with specialized camera control LoRAs. These LoRA adapters enable cinematic camera movements including rotation, arc shots, and drone perspectives.
Model Components
Total Size
: ~1.3GB
VAE (Variational Autoencoder)
File
:
vae/wan/wan21-vae.safetensors
Size
: 243 MB
High-quality VAE for encoding and decoding video latents
Camera Control LoRAs
Three specialized LoRA models for precise camera movement control (all rank-16, 343MB each):
Simulates aerial drone-style camera perspectives and movements
Hardware Requirements
VRAM
: 12GB+ recommended for base model + LoRA
Disk Space
: 1.3GB
LoRA Overhead
: Minimal (343MB per LoRA)
Memory
: 16GB+ system RAM recommended
Usage
Loading the VAE
from diffusers import AutoencoderKL
vae = AutoencoderKL.from_single_file(
"E:/huggingface/wan-2.1/vae/wan/wan21-vae.safetensors"
)
Basic Video Generation with Camera Control
from diffusers import DiffusionPipeline, AutoencoderKL
import torch
# Load your base video generation pipeline
pipe = DiffusionPipeline.from_pretrained(
"your-base-video-model",
torch_dtype=torch.float16
)
# Load WAN 2.1 VAE
pipe.vae = AutoencoderKL.from_single_file(
"E:/huggingface/wan-2.1/vae/wan/wan21-vae.safetensors"
)
# Load desired camera control LoRA
pipe.load_lora_weights(
"E:/huggingface/wan-2.1/loras/wan/wan21-camera-rotation-rank16-v1.safetensors"
)
pipe.to("cuda")
# Generate video with camera control
video = pipe(
prompt="rotating camera, a beautiful garden with flowers",
num_frames=24,
num_inference_steps=50
).frames[0]
VAE Architecture
: Custom trained for video generation
LoRA Rank
: 16 (balanced between quality and efficiency)
Format
: SafeTensors (secure and efficient)
Compatible With
: Video diffusion models supporting LoRA and custom VAE
Precision
: Standard safetensors format
Combining Multiple LoRAs
# Load multiple camera control LoRAs
pipe.load_lora_weights(
"E:/huggingface/wan-2.1/loras/wan/wan21-camera-rotation-rank16-v1.safetensors",
adapter_name="rotation"
)
pipe.load_lora_weights(
"E:/huggingface/wan-2.1/loras/wan/wan21-camera-drone-rank16-v1.safetensors",
adapter_name="drone"
)
# Set different weights for each LoRA
pipe.set_adapters(["rotation", "drone"], adapter_weights=[0.7, 0.3])
wan-2.1 huggingface.co is an AI model on huggingface.co that provides wan-2.1's model effect (), which can be used instantly with this wangkanai wan-2.1 model. huggingface.co supports a free trial of the wan-2.1 model, and also provides paid use of the wan-2.1. Support call wan-2.1 model through api, including Node.js, Python, http.
wan-2.1 huggingface.co is an online trial and call api platform, which integrates wan-2.1's modeling effects, including api services, and provides a free online trial of wan-2.1, you can try wan-2.1 online for free by clicking the link below.
wangkanai wan-2.1 online free url in huggingface.co:
wan-2.1 is an open source model from GitHub that offers a free installation service, and any user can find wan-2.1 on GitHub to install. At the same time, huggingface.co provides the effect of wan-2.1 install, users can directly use wan-2.1 installed effect in huggingface.co for debugging and trial. It also supports api for free installation.