ComfyUI Extension
ComfyUI-HighSync-Wrapper
HighSync lip-sync nodes for ComfyUI with native audio processing, returning processed frames and encoded mp4 output.
magicwang1111/ComfyUI-HighSync-Wrapper
Nodes—
On cloudLocal install
Stars0
Updated3 months ago
Readme
ComfyUI HighSync Wrapper
HighSync lip-sync nodes for ComfyUI. This wrapper uses ComfyUI IMAGE frames plus native AUDIO, runs the HighSync pipeline in-process, and returns processed frames, audio, output fps, and an encoded mp4 path.
Nodes
HighSync Download Models: checks or downloads the required model files intoD:/ComfyUI/models/highsync.HighSync Model Loader: loads and caches the VAE, UNets, scheduler, and Whisper audio processor.HighSync LipSync: simple node forIMAGE + AUDIOinput.HighSync LipSync Advanced: exposes inference steps, CFG scale, seed, chunk size, denoising, trimming, and intermediate-output options.
Model Layout
The default model directory is:
D:/ComfyUI/models/highsync
It must contain:
denoising_unet-500.pth
reference_unet-500.pth
sd-vae-ft-mse/
sd-image-variations-diffusers/
audio_processor/whisper_tiny.pt
Use HighSync Download Models with download=True, or download saeed-5959/high_sync from Hugging Face into that folder.
Usage
- Install
requirements.txtinto the same Python environment that runs ComfyUI. - Restart ComfyUI.
- Use VideoHelperSuite or another loader to provide video frames as
IMAGEand audio asAUDIO. - Connect
HighSync Model LoadertoHighSync LipSync.
The wrapper converts video frames to 25fps and audio to mono 16kHz for HighSync inference. The returned frame rate is always 25 in this v1 implementation.
Notes
max_frames=0means process all available frames after 25fps conversion.denoise_audio=Falseis the default because the officialdenoiserpackage pins older Hydra/OmegaConf versions than current ComfyUI environments. To enable it, install the package without pulling its old dependencies:pip install --no-deps denoiser==0.1.5.- When
denoise_audio=True, the official denoiser is loaded lazily and cached. The final mp4 still uses the adjusted original audio track to preserve voice quality. - DeepFace/TensorFlow are optional. The runtime tries DeepFace if it is already installed, otherwise it falls back to OpenCV Haar face detection.
- Outputs are written under
ComfyUI/output/highsync/<task_id>/final.mp4.