GeneFace++ 是一个 音频驱动的 2D 人脸说话视频生成模型,特点是:
| 项目 | 选择 |
|---|---|
| 系统 | Windows 10 / 11 |
| Python | 3.9 |
| CUDA | 11.8 |
| PyTorch | 2.0+ |
| 显卡 | RTX 3060 及以上(显存 ≥ 8GB) |
| 环境 | Conda |
conda create -n genefacepp python=3.9 -y
conda activate genefaceppgit clone https://github.com/yerfor/GeneFacePP.git
cd GeneFacePPpip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu118验证:
python -c "import torch; print(torch.cuda.is_available())"Truepip install -r requirements.txt✅ 解决方案:
pip install fvcore iopath
pip install face-alignment如果 pytorch3d 卡住:
pip install pytorch3d -f https://dl.fbaipublicfiles.com/pytorch3d/packaging/wheels/py39_cu118_pyt200/download.htmlGeneFace++ 需要 3 个模型:
mkdir -p checkpoints下载地址(README 中):
genefacepp_pretrainedhubertface3d或使用 HuggingFace:
git lfs install
git clone https://huggingface.co/yerfor/GeneFacePPtest_audio.wav (16kHz, mono)ref_face.jpgpython inference.py \
--audio_path test_audio.wav \
--img_path ref_face.jpg \
--checkpoint_path checkpoints/genefacepp_pretrained \
--out_path output.mp4✅ 成功后你会得到:
| 问题 | 解决方案 |
|---|---|
| CUDA out of memory | 降低 --resolution 或换 GPU |
| 找不到 3DMM | 下载 face3d 模型 |
| 音频不清晰 | 确保 16kHz mono |
| 视频闪烁 | 正常现象,GeneFace++ 已优化 |
✅ 不想配环境?
✅ 只想跑一次?
你可以直接说:
我可以直接给你定制部署方案。