https://github.com/bytedance/lynx
Lynx: Towards High-Fidelity Personalized Video Generation
https://github.com/bytedance/lynx
Last synced: about 1 month ago
JSON representation
Lynx: Towards High-Fidelity Personalized Video Generation
- Host: GitHub
- URL: https://github.com/bytedance/lynx
- Owner: bytedance
- License: apache-2.0
- Created: 2025-09-26T02:11:10.000Z (about 1 month ago)
- Default Branch: main
- Last Pushed: 2025-09-26T19:25:33.000Z (about 1 month ago)
- Last Synced: 2025-09-26T21:22:18.486Z (about 1 month ago)
- Language: Python
- Homepage: https://byteaigc.github.io/Lynx/
- Size: 12 MB
- Stars: 13
- Watchers: 0
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- ai-game-devtools - Lynx - Fidelity Personalized Video Generation. |[arXiv](https://arxiv.org/abs/2509.15496) | | Video | (<span id="video">Video</span> / <span id="tool">LLM (LLM & Tool)</span>)
README
# Lynx: Towards High-Fidelity Personalized Video Generation
Shen Sang*
Tiancheng Zhi*
Tianpei Gu
Jing Liu
Linjie Luo
Intelligent Creation, ByteDance
* Equal Contribution
[](https://arxiv.org/abs/2509.15496)
[](https://byteaigc.github.io/Lynx/)
[](https://huggingface.co/ByteDance/lynx)

Lynx is a high-fidelity video generation model for personalized video synthesis from a single input image. Built on a Diffusion Transformer (DiT) foundation model with lightweight ID-adapters and Ref-adapters for identity preservation and spatial detail enhancement.
## Installation
### Dependencies
Tested on CUDA 12.4
```bash
conda create -n lynx python=3.10
conda activate lynx
pip install -r requirements.txt
# For lynx full model, flash attention is required
pip install flash_attn==2.7.4.post1 # flash attention 3 is also supported, will be faster
```
### Model Download
- Base model: Download from [Wan-AI/Wan2.1-T2V-14B-Diffusers](https://huggingface.co/Wan-AI/Wan2.1-T2V-14B-Diffusers), place it at `models/Wan2.1-T2V-14B-Diffusers`
- Lynx: Download `lynx_full` from [ByteDance/lynx](https://huggingface.co/ByteDance/lynx), place it at `models/lynx_full`
- Lynx-lite: Download `lynx_lite` from [ByteDance/lynx](https://huggingface.co/ByteDance/lynx), place it at `models/lynx_lite`
## Full Model
Complete version with all advanced features and best performance.
### Usage
**Run a simple single-GPU inference:**
```bash
python infer.py --subject_image demo/subjects/demo_subject.png --prompt "A person carves a pumpkin on a porch in the evening. The camera captures their upper body as they draw a face with a marker, carefully cut along the lines, then lift the lid with both hands. Their face lights up with excitement as they peek inside." --seed 42
python infer.py --subject_image demo/subjects/demo_subject.png --prompt demo/prompts/demo_prompt.txt --seed 42
```
## Lite Model
Lightweight model with fewer parameters (no Ref-adapter), tailored for efficient 24fps (121-frame) video generation.
### Usage
**Run a simple single-GPU inference:**
```bash
python infer_lite.py --subject_image demo/subjects/demo_subject.png --prompt "A person carves a pumpkin on a porch in the evening. The camera captures their upper body as they draw a face with a marker, carefully cut along the lines, then lift the lid with both hands. Their face lights up with excitement as they peek inside." --seed 42
python infer_lite.py --subject_image demo/subjects/demo_subject.png --prompt demo/prompts/demo_prompt.txt --seed 42
```
## License
```
Copyright 2025 Bytedance Ltd. and/or its affiliates
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
```
## Citation
If you find this code useful for your research, please cite us via the BibTeX below.
```BibTeX
@article{sang2025lynx,
title = {Lynx: Towards High-Fidelity Personalized Video Generation},
author = {Sang, Shen and Zhi, Tiancheng and Gu, Tianpei and Liu, Jing and Luo, Linjie},
journal = {arXiv preprint arXiv:2509.15496},
year = {2025}
}
```