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:
1. Visit: https://huggingface.co/stabilityai/sd-vae-ft-mse/tree/main
2. Download only these 2 files:
- diffusion_pytorch_model.safetensors
- config.json
3. Place them in checkpoints/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:
1. Ensure you have access to the private HuggingFace repository
2. Visit: https://huggingface.co/ByteDance/LatentSync-1.6/tree/main
3. Download all files from the repository
4. Place them directly in the checkpoints/ folder
After 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/decoding
- vae/config.json: VAE configuration file
- latentsync_unet.pt: The primary LatentSync 1.6 model trained at 512×512 resolution
- stable_syncnet.pt: The SyncNet model for lip-sync supervision
- whisper/tiny.pt: The Whisper model for audio processing
The 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: - LatentSync 1.6 by ByteDance Research - ComfyUI
This project is licensed under the Apache License 2.0 - see the LICENSE file for details.
$ claude mcp add ComfyUI-LatentSyncWrapper \
-- python -m otcore.mcp_server <graph>