Generate audio-driven videos using the Avatar 1.5 model. This version uses the Whisper-large-v3 audio encoder and supports distillation for faster inference.
Key CLI Arguments for Avatar 1.5:
--model_type avatar-v1.5: Specifies the 1.5 model.--use_distill: Required for 1.5 to enable distillation sampling (faster inference).--use_int8: Enables INT8 quantization to reduce VRAM usage (only for 1.5).--stage_1: Set to at2v (Audio-Text-to-Video) or ai2v (Audio-Image-to-Video).--input_json: Path to the input configuration JSON.--num_segments: Number of segments for video continuation.--ref_img_index: Index for reference image (0-24 for consistency, 30 to reduce repeated actions).--mask_frame_range: Frame range for masking (default 3).
Examples:
Single-Audio (Audio-Text-to-Video):
torchrun --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
Single-Audio (Audio-Image-to-Video):
torchrun --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
Multi-Audio (Audio-Image-to-Video):
torchrun --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
torchrun --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