Skip to content

Updated the code to support Video2Video lip sync video generation - #26

Open
AIExplorerIn404Island wants to merge 2 commits into
Soul-AILab:mainfrom
AIExplorerIn404Island:main
Open

Updated the code to support Video2Video lip sync video generation#26
AIExplorerIn404Island wants to merge 2 commits into
Soul-AILab:mainfrom
AIExplorerIn404Island:main

Conversation

@AIExplorerIn404Island

Copy link
Copy Markdown

I have added the code to support video2video lip sync. Now with this code user can pass input video and audio and do the lip sync.

Changes are in -
modified: flash_talk/configs/infer_params.yaml
modified: flash_talk/inference.py
modified: flash_talk/infinite_talk/utils/multitalk_utils.py
modified: flash_talk/src/pipeline/flash_talk_pipeline.py
modified: generate_video.py

How to use the video2video inference

CUDA_VISIBLE_DEVICES=0

CUDA_VISIBLE_DEVICES=$CUDA_VISIBLE_DEVICES python generate_video.py
--ckpt_dir models/SoulX-FlashTalk-14B
--wav2vec_dir models/chinese-wav2vec2-base
--input_prompt "A person is talking. Only the foreground characters are moving, the background remains static."
--cond_video examples/video.mp4
--audio_path examples/cantonese_16k.wav
--audio_encode_mode stream

just pass --cond_video examples/video.mp4 arg instead of --cond_image

Both --cond_image, --cond_video would work with this code.

flash_talk/configs/infer_params.yaml has different settings to generate HD/higher quality output which can be discarded, and default settings can be used to speed up the inference.

Thanks

AIExplorer25 and others added 2 commits February 20, 2026 19:53
Added support for video2video lip sync, allowing users to pass input video and audio for lip synchronization. Updated several files and provided usage instructions for the new feature.
@rohit7044

Copy link
Copy Markdown

Results are pretty bad. I tried it with a 56 second video of 256x256 dimension. No lip-sync!

@AIExplorer25

Copy link
Copy Markdown

256x256 dimension wont work, keep the params proper. I m getting pretty good output.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants