Views
No views yet


1git clone --single-branch --branch main https://github.com/meituan-longcat/LongCat-Video
2cd LongCat-Video1# create conda environment
2conda create -n longcat-video python=3.10
3conda activate longcat-video
4
5# install torch (configure according to your CUDA version)
6pip install torch==2.6.0+cu124 torchvision==0.21.0+cu124 torchaudio==2.6.0 --index-url https://download.pytorch.org/whl/cu124
7
8# install flash-attn-2
9pip install ninja
10pip install psutil
11pip install packaging
12pip install flash_attn==2.7.4.post1
13
14# install other requirements
15pip install -r requirements.txt
16
17# install longcat-video-avatar requirements
18conda install -c conda-forge librosa
19conda install -c conda-forge ffmpeg
20pip install -r requirements_avatar.txt| Models | Description | Download Link |
|---|---|---|
| LongCat-Video | foundational video generation | 🤗 Huggingface |
| LongCat-Video-Avatar-1.5 | single- and multi-character audio-driven video generation | 🤗 Huggingface |
1pip install "huggingface_hub[cli]"
2huggingface-cli download meituan-longcat/LongCat-Video --local-dir ./weights/LongCat-Video
3huggingface-cli download meituan-longcat/LongCat-Video-Avatar-1.5 --local-dir ./weights/LongCat-Video-Avatar-1.5
- Lip synchronization accuracy: Audio CFG works optimally between 3–5. Increase the audio CFG value for better synchronization.
- Prompt Enhancement: Longer, more descriptive prompts yield better consistency and naturalness than short ones. We recommend including rich details such as character appearance, actions, and scene context (e.g., "A young woman with long black hair is speaking and smiling, wearing a white blouse, sitting in a bright café") for best results.
- Mitigate repeated actions: Setting the reference image index(--ref_img_index, default to 10) between 0 and 24 ensures better consistency; setting it to 30 helps reduce repeated actions. Additionally, increasing the mask frame range (--mask_frame_range, default to 3) can further help mitigate repeated actions, but excessively large values may introduce artifacts.
- Super resolution: Our model is compatible with both 480P and 720P, which can be controlled via --resolution.
- Dual-Audio Modes: Merge mode (set audio_type to para) requires two audio clips of equal length, and the resulting audio is obtained by summing the two clips; Concatenation mode (set audio_type to add) does not require equal-length inputs, and the resulting audio is formed by sequentially concatenating the two clips with silence padding for any gaps, where by default person1 speaks first and person2 speaks afterward.
- Model versions:
--model_type avatar-v1.0uses wav2vec2 audio encoder (default);--model_type avatar-v1.5uses Whisper-large-v3 audio encoder for better lip sync quality.- Distillation mode: Add
--use_distillto enable distillation sampling (fewer steps, faster inference). This is required when using--model_type avatar-v1.5.- INT8 quantization: Add
--use_int8to load the INT8 quantized DiT model for reduced VRAM usage. Only supported with--model_type avatar-v1.5.
1# Audio-Text-to-Video
2torchrun --nproc_per_node=2 run_demo_avatar_single_audio_to_video.py --context_parallel_size=2 --checkpoint_dir=./weights/LongCat-Video-Avatar-1.5 --stage_1=at2v --input_json=assets/avatar/single_example_1.json --use_distill --model_type avatar-v1.5 --use_int8
3
4# Audio-Image-to-Video
5torchrun --nproc_per_node=2 run_demo_avatar_single_audio_to_video.py --context_parallel_size=2 --checkpoint_dir=./weights/LongCat-Video-Avatar-1.5 --stage_1=ai2v --input_json=assets/avatar/single_example_1.json --use_distill --model_type avatar-v1.5 --use_int8
6
7# Audio-Text-to-Video and Video-Continuation
8torchrun --nproc_per_node=2 run_demo_avatar_single_audio_to_video.py --context_parallel_size=2 --checkpoint_dir=./weights/LongCat-Video-Avatar-1.5 --stage_1=at2v --input_json=assets/avatar/single_example_1.json --num_segments=5 --ref_img_index=10 --mask_frame_range=3 --use_distill --model_type avatar-v1.5 --use_int8
9
10# Audio-Image-to-Video and Video-Continuation
11torchrun --nproc_per_node=2 run_demo_avatar_single_audio_to_video.py --context_parallel_size=2 --checkpoint_dir=./weights/LongCat-Video-Avatar-1.5 --stage_1=ai2v --input_json=assets/avatar/single_example_1.json --num_segments=5 --ref_img_index=10 --mask_frame_range=3 --use_distill --model_type avatar-v1.5 --use_int81# Audio-Image-to-Video
2torchrun --nproc_per_node=2 run_demo_avatar_multi_audio_to_video.py --context_parallel_size=2 --checkpoint_dir=./weights/LongCat-Video-Avatar-1.5 --input_json=assets/avatar/multi_example_1.json --use_distill --model_type avatar-v1.5 --use_int8
3
4# Audio-Image-to-Video and Video-Continuation
5torchrun --nproc_per_node=2 run_demo_avatar_multi_audio_to_video.py --context_parallel_size=2 --checkpoint_dir=./weights/LongCat-Video-Avatar-1.5 --input_json=assets/avatar/multi_example_1.json --num_segments=5 --ref_img_index=10 --mask_frame_range=3 --use_distill --model_type avatar-v1.5 --use_int8@misc{meituanlongcatteam2025longcatvideoavatar15technicalreport,
title={LongCat-Video-Avatar 1.5 Technical Report},
author={Meituan LongCat Team},
year={2026},
eprint={},
archivePrefix={arXiv},
primaryClass={cs.CV},
url={},
}