Views
No views yet

Stand-In is a lightweight, plug-and-play framework for identity-preserving video generation. By training only 1% additional parameters compared to the base video generation model, we achieve state-of-the-art results in both Face Similarity and Naturalness, outperforming various full-parameter training methods. Moreover, Stand-In can be seamlessly integrated into other tasks such as subject-driven video generation, pose-controlled video generation, video stylization, and face swapping.
| Reference Image | Prompt | Generated Video |
|---|---|---|
| "In a corridor where the walls ripple like water, a woman reaches out to touch the flowing surface, causing circles of ripples to spread. The camera moves from a medium shot to a close-up, capturing her curious expression as she sees her distorted reflection." | ||
| "A young man dressed in traditional attire draws the long sword from his waist and begins to wield it. The blade flashes with light as he moves—his eyes sharp, his actions swift and powerful, with his flowing robes dancing in the wind." |
| Reference Image | Prompt | Generated Video |
|---|---|---|
| "A chibi-style boy speeding on a skateboard, holding a detective novel in one hand. The background features city streets, with trees, streetlights, and billboards along the roads." |
| Reference Image | LoRA | Generated Video |
|---|---|---|
| Ghibli LoRA |
| Reference Video | Identity | Generated Video |
|---|---|---|
| Reference Pose | First Frame | Generated Video |
|---|---|---|
Stand-In_Wan2.1-T2V-14B_153M_v1.0。1# Clone the project repository
2git clone https://github.com/WeChatCV/Stand-In.git
3cd Stand-In
4
5# Create and activate Conda environment
6conda create -n Stand-In python=3.11 -y
7conda activate Stand-In
8
9# Install dependencies
10pip install -r requirements.txt
11
12# (Optional) Install Flash Attention for faster inference
13# Note: Make sure your GPU and CUDA version are compatible with Flash Attention
14pip install flash-attn --no-build-isolationcheckpoints directory.python download_models.pywan2.1-T2V-14B (base text-to-video model)antelopev2 (face recognition model)Stand-In (our Stand-In model)Note: If you already have thewan2.1-T2V-14B modellocally, you can manually edit thedownload_model.pyscript to comment out the relevant download code and place the model in thecheckpoints/wan2.1-T2V-14Bdirectory.
infer.py script for standard identity-preserving text-to-video generation.1python infer.py \
2 --prompt "A man sits comfortably at a desk, facing the camera as if talking to a friend or family member on the screen. His gaze is focused and gentle, with a natural smile. The background is his carefully decorated personal space, with photos and a world map on the wall, conveying a sense of intimate and modern communication." \
3 --ip_image "test/input/lecun.jpg" \
4 --output "test/output/lecun.mp4"infer_with_lora.py script to load one or more community LoRA models alongside Stand-In.1python infer_with_lora.py \
2 --prompt "A man sits comfortably at a desk, facing the camera as if talking to a friend or family member on the screen. His gaze is focused and gentle, with a natural smile. The background is his carefully decorated personal space, with photos and a world map on the wall, conveying a sense of intimate and modern communication." \
3 --ip_image "test/input/lecun.jpg" \
4 --output "test/output/lecun.mp4" \
5 --lora_path "path/to/your/lora.safetensors" \
6 --lora_scale 1.01@article{xue2025standin,
2 title={Stand-In: A Lightweight and Plug-and-Play Identity Control for Video Generation},
3 author={Bowen Xue and Qixin Yan and Wenjing Wang and Hao Liu and Chen Li},
4 journal={arXiv preprint arXiv:2508.07901},
5 year={2025},
6}