If you find this project helpful, consider buying me a coffee:
Unofficial LatentSync 1.6 implementation for ComfyUI on Windows and WSL 2.0.
This node provides advanced lip-sync capabilities in ComfyUI using ByteDance's LatentSync 1.6 model. It allows you to synchronize video lips with audio input with enhanced clarity and resolution, addressing the blurriness issues found in previous versions.
If you have a previous version of ComfyUI-LatentSyncWrapper installed, you MUST completely remove it before installing version 1.6:
ComfyUI/custom_nodes/ComfyUI-LatentSyncWrapper/Failure to remove the previous version will cause conflicts and prevent proper operation.
Before installing this node, you must install the following in order:
ComfyUI installed and working
FFmpeg installed on your system:
Note: A complete pre-configured checkpoints package is available via Google Drive (recommended), or you can download models individually from HuggingFace repositories.
Only proceed with installation after confirming all prerequisites are installed and working.
cd ComfyUI/custom_nodes
git clone https://github.com/ShmuelRonen/ComfyUI-LatentSyncWrapper.git
cd ComfyUI-LatentSyncWrapper
pip install -r requirements.txt
diffusers>=0.32.2
transformers
huggingface-hub
omegaconf
einops
opencv-python
mediapipe
face-alignment
decord
ffmpeg-python
safetensors
soundfile
DeepCache
Important: LatentSync 1.6 requires manual model downloads because the LatentSync 1.6 models are hosted on a private HuggingFace repository that cannot be automatically accessed. You must download the following models before first use:
Create a vae folder inside your checkpoints directory and download the VAE model:
# Create the vae directory
mkdir checkpoints/vae
Manual download steps:
diffusion_pytorch_model.safetensorsconfig.jsoncheckpoints/vae/ folder (inside the extension directory)Download the main LatentSync 1.6 models:
# Download LatentSync 1.6 models from HuggingFace
# Visit: https://huggingface.co/ByteDance/LatentSync-1.6/tree/main
# Download all files from the repository into checkpoints/ folder
Manual download steps:
checkpoints/ folderAfter downloading models (using either option), your checkpoint directory structure should look like this:
./checkpoints/
|-- .cache/
|-- auxiliary/
|-- vae/
| |-- config.json
| `-- diffusion_pytorch_model.safetensors
|-- whisper/
| `-- tiny.pt
|-- config.json
|-- latentsync_unet.pt (~5GB)
|-- stable_syncnet.pt (~1.6GB)
Make sure all these files are present for proper functionality. The main model files are:
vae/diffusion_pytorch_model.safetensors: The Stable Diffusion VAE model for encoding/decodingvae/config.json: VAE configuration filelatentsync_unet.pt: The primary LatentSync 1.6 model trained at 512×512 resolutionstable_syncnet.pt: The SyncNet model for lip-sync supervisionwhisper/tiny.pt: The Whisper model for audio processingThe processed video will be saved in ComfyUI's output directory.
video_path: Path to input video fileaudio: Audio input from AceNodes audio loaderseed: Random seed for reproducible results (default: 1247)lips_expression: Controls the expressiveness of lip movements (default: 1.5)
inference_steps: Number of denoising steps during inference (default: 20)
This is an unofficial implementation based on:
This project is licensed under the Apache License 2.0 - see the LICENSE file for details.
Python
100.0%
If you find this project helpful, consider buying me a coffee:
Unofficial LatentSync 1.6 implementation for ComfyUI on Windows and WSL 2.0.
This node provides advanced lip-sync capabilities in ComfyUI using ByteDance's LatentSync 1.6 model. It allows you to synchronize video lips with audio input with enhanced clarity and resolution, addressing the blurriness issues found in previous versions.
If you have a previous version of ComfyUI-LatentSyncWrapper installed, you MUST completely remove it before installing version 1.6:
ComfyUI/custom_nodes/ComfyUI-LatentSyncWrapper/Failure to remove the previous version will cause conflicts and prevent proper operation.
Before installing this node, you must install the following in order:
ComfyUI installed and working
FFmpeg installed on your system:
Note: A complete pre-configured checkpoints package is available via Google Drive (recommended), or you can download models individually from HuggingFace repositories.
Only proceed with installation after confirming all prerequisites are installed and working.
cd ComfyUI/custom_nodes
git clone https://github.com/ShmuelRonen/ComfyUI-LatentSyncWrapper.git
cd ComfyUI-LatentSyncWrapper
pip install -r requirements.txt
diffusers>=0.32.2
transformers
huggingface-hub
omegaconf
einops
opencv-python
mediapipe
face-alignment
decord
ffmpeg-python
safetensors
soundfile
DeepCache
Important: LatentSync 1.6 requires manual model downloads because the LatentSync 1.6 models are hosted on a private HuggingFace repository that cannot be automatically accessed. You must download the following models before first use:
Create a vae folder inside your checkpoints directory and download the VAE model:
# Create the vae directory
mkdir checkpoints/vae
Manual download steps:
diffusion_pytorch_model.safetensorsconfig.jsoncheckpoints/vae/ folder (inside the extension directory)Download the main LatentSync 1.6 models:
# Download LatentSync 1.6 models from HuggingFace
# Visit: https://huggingface.co/ByteDance/LatentSync-1.6/tree/main
# Download all files from the repository into checkpoints/ folder
Manual download steps:
checkpoints/ folderAfter downloading models (using either option), your checkpoint directory structure should look like this:
./checkpoints/
|-- .cache/
|-- auxiliary/
|-- vae/
| |-- config.json
| `-- diffusion_pytorch_model.safetensors
|-- whisper/
| `-- tiny.pt
|-- config.json
|-- latentsync_unet.pt (~5GB)
|-- stable_syncnet.pt (~1.6GB)
Make sure all these files are present for proper functionality. The main model files are:
vae/diffusion_pytorch_model.safetensors: The Stable Diffusion VAE model for encoding/decodingvae/config.json: VAE configuration filelatentsync_unet.pt: The primary LatentSync 1.6 model trained at 512×512 resolutionstable_syncnet.pt: The SyncNet model for lip-sync supervisionwhisper/tiny.pt: The Whisper model for audio processingThe processed video will be saved in ComfyUI's output directory.
video_path: Path to input video fileaudio: Audio input from AceNodes audio loaderseed: Random seed for reproducible results (default: 1247)lips_expression: Controls the expressiveness of lip movements (default: 1.5)
inference_steps: Number of denoising steps during inference (default: 20)
This is an unofficial implementation based on:
This project is licensed under the Apache License 2.0 - see the LICENSE file for details.
Python
100.0%