| Component | Minimum | Tested On |
|---|---|---|
| GPU | NVIDIA 4GB VRAM | RTX 2000 Ada 8GB |
| CUDA Driver | 11.7+ | 12.8 |
| RAM | 8GB+ | 16GB |
| Disk Space | ~20GB | G: drive |
| OS | Windows 10/11 | Windows 11 |
- Anaconda installed (used from
G:\anaconda) - Git installed
- Python 3.10 — do NOT use 3.11+ (MMlab packages require 3.10)
G:\anaconda\Scripts\conda.exe create -n musetalk python=3.10 -ycd G:\
git clone https://github.com/TMElyralab/MuseTalk.git
cd MuseTalkUse the CUDA 11.8 build — it works fine with CUDA 12.x drivers.
G:\anaconda\envs\musetalk\Scripts\pip.exe install torch==2.0.1 torchvision==0.15.2 torchaudio==2.0.2 --index-url https://download.pytorch.org/whl/cu118Download from BtbN GitHub Releases:
- Download
ffmpeg-master-latest-win64-gpl.zip - Extract to
G:\ffmpeg - Add
G:\ffmpeg\binto your system PATH
G:\anaconda\envs\musetalk\Scripts\pip.exe install -r requirements.txtG:\anaconda\envs\musetalk\Scripts\pip.exe install mmengine
G:\anaconda\envs\musetalk\Scripts\pip.exe install mmcv==2.0.1 -f https://download.openmmlab.com/mmcv/dist/cu118/torch2.0.0/index.html
G:\anaconda\envs\musetalk\Scripts\pip.exe install chumpy --no-build-isolation
G:\anaconda\envs\musetalk\Scripts\pip.exe install mmdet==3.1.0 mmpose==1.1.0# Upgrade huggingface_hub temporarily for download
G:\anaconda\envs\musetalk\Scripts\pip.exe install -U "huggingface_hub[hf_xet]"
# Set mirror for faster downloads (optional)
set HF_ENDPOINT=https://hf-mirror.com
# Download all weights
G:\anaconda\envs\musetalk\Scripts\hf.exe download TMElyralab/MuseTalk --local-dir models
G:\anaconda\envs\musetalk\Scripts\hf.exe download stabilityai/sd-vae-ft-mse config.json diffusion_pytorch_model.bin --local-dir models/sd-vae
G:\anaconda\envs\musetalk\Scripts\hf.exe download openai/whisper-tiny --local-dir models/whisper
G:\anaconda\envs\musetalk\Scripts\hf.exe download yzd-v/DWPose dw-ll_ucoco_384.pth --local-dir models/dwpose
G:\anaconda\envs\musetalk\Scripts\hf.exe download ByteDance/LatentSync latentsync_syncnet.pt --local-dir models/syncnet
G:\anaconda\envs\musetalk\Scripts\hf.exe download ManyOtherFunctions/face-parse-bisent 79999_iter.pth resnet18-5c106cde.pth --local-dir models/face-parse-bisent
# Downgrade huggingface_hub back (required by transformers==4.39.2)
G:\anaconda\envs\musetalk\Scripts\pip.exe install huggingface_hub==0.30.2copy models\musetalk\musetalk.json models\musetalk\config.json# Run this once in Python
from huggingface_hub import hf_hub_download
import shutil
path = hf_hub_download(repo_id='camenduru/facexlib', filename='s3fd-619a316812.pth', cache_dir='G:/tmp_hf_cache')
shutil.copy(path, r'G:\MuseTalk\musetalk\utils\face_detection\detection\sfd\s3fd.pth')In musetalk/utils/preprocessing.py lines 80 and 135, replace Japanese brackets:
# Change this:
f"Total frame:「{len(frames)}」 ..."
# To this:
f"Total frame:[{len(frames)}] ..."cd G:\MuseTalk
G:\anaconda\envs\musetalk\python.exe -m scripts.inference --inference_config configs\inference\test.yaml --ffmpeg_path "G:\\ffmpeg\\bin"Edit configs/inference/test.yaml to set your video and audio paths:
task_0:
video_path: "data/video/your_video.mp4"
audio_path: "data/audio/your_audio.wav"cd G:\MuseTalk
G:\anaconda\envs\musetalk\python.exe app.py --ffmpeg_path "G:\\ffmpeg\\bin" --use_float16Open browser at: http://127.0.0.1:7860
--use_float16is recommended — reduces VRAM usage and speeds up inference.
- Audio must be
.wav— convert with:ffmpeg -i input.mp3 output.wav - Short input videos work fine — MuseTalk loops them to match audio length
- First run is slow — face landmark extraction is cached after the first run on a video
- bbox_shift — adjust if lip sync looks off (negative = move mouth box up, positive = down)