推荐方案:Windows + WSL2(Ubuntu)
最接近官方环境,兼容性最好,强烈推荐
备选:
wsl --install安装 Ubuntu 20.04 / 22.04
git clone https://github.com/liangchen666/GeneFacePlusPlus.git
cd GeneFacePlusPlusconda create -n geneface python=3.9
conda activate genefacepip install -r requirements.txt常见依赖:
⚠️ 注意:
conda create -n geneface python=3.9
conda activate geneface
pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu118
pip install -r requirements.txt| 问题 | 解决 |
|---|---|
| face-alignment 报错 | 降低 dlib 版本 |
| ffmpeg 找不到 | 安装并加入 PATH |
| 路径问题 | 把 \ 改成 / |
| 中文路径 | 全部用英文路径 |
GeneFace++ 需要:
官方提供:
python inference.py \
--audio example.wav \
--model_path checkpoints/xxx✅ 最稳:WSL2 Ubuntu
⚠️ 能跑:纯 Windows
❌ 不建议:原生 CMD
如果你愿意,可以告诉我:
我可以给你更精确的命令和版本搭配。