GeneFace++ 是 GeneFace 的升级版,用于从音频生成说话人脸视频,特点是:
最稳方案:Windows + WSL2(Ubuntu)
不推荐纯原生 Windows(conda + CUDA 很容易炸)
| 方案 | 稳定性 | 难度 | 推荐度 |
|---|---|---|---|
| WSL2 + Ubuntu | ⭐⭐⭐⭐⭐ | 中 | ✅ 强烈推荐 |
| 原生 Windows | ⭐⭐ | 高 | ❌ |
| 云服务器 | ⭐⭐⭐⭐ | 低 | ✅ |
wsl --install安装 Ubuntu 20.04 / 22.04
验证:
nvidia-smisudo apt update
sudo apt install -y build-essential git ffmpegconda create -n geneface python=3.9
conda activate genefacegit clone https://github.com/yerfor/GeneFacePlusPlus.git
cd GeneFacePlusPluspip install torch torchvision --index-url https://download.pytorch.org/whl/cu118pip install -r requirements.txt⚠️ 常见坑:
pytorch3d 很难装→ 用预编译版:
pip install pytorch3d -f https://dl.fbaipublicfiles.com/pytorch3d/packaging/wheels/py39_cu118_pyt201/download.html官方提供:
genefacepp_pretrainedbash scripts/download_pretrained.sh或手动下载后放入:
checkpoints/python inference.py \
--a audio.wav \
--o output.mp4或使用官方 demo:
bash demos/run_demo.shWSL 文件在:
\\wsl$\Ubuntu\home\user\GeneFacePlusPlusnvidia-smi 能出sudo apt install ffmpeg✅ 直接用:
GeneFace++如果你愿意,我可以:
你现在是「想自己跑」还是「先试试效果」?