git clone https://github.com/yerfor/GeneFacePlusPlus.git
cd GeneFacePlusPlusconda create -n geneface python=3.9 -y
conda activate geneface根据你的 CUDA 版本选择(示例 CUDA 11.8):
pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu118无显卡可用 CPU 版本(慢):
pip install torch torchvision torchaudiopip install -r requirements.txt⚠️ Windows 注意点:
pywin32 通常已装nvcc 报错,可忽略(推理可不编译)face_alignment 可能需先装:pip install face_alignment官方提供模型(例:GeneFace++ base):
# 在项目根目录
mkdir -p checkpoints从 README 或 HuggingFace 下载:
genefacepp_base.pth放到:
checkpoints/.wav.mp4python inference.py \
--a2m_model_path checkpoints/genefacepp_base.pth \
--audio_path inputs/audio.wav \
--video_path inputs/ref.mp4 \
--out_path outputs/result.mp4inference.py 为准)librosa 报错conda install ffmpeg/ 或 \\batch_size--cpu 模式(极慢)如果你在 Windows 上踩坑较多,强烈建议:
如果你愿意,我可以:
你现在是卡在哪一步了?