GeneFace++ 是音频驱动的说话人脸生成项目(基于 NeRF / 3D 表征),官方仓库:
⚠️ 注意:
这是最接近官方环境、成功率最高的方式。
wsl --install安装 Ubuntu 20.04 / 22.04
sudo apt update
sudo apt install -y python3.9 python3.9-venv gitpython3.9 -m venv geneface
source geneface/bin/activatepip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu118git clone https://github.com/liangchen666/GeneFacePlusPlus
cd GeneFacePlusPlus
pip install -r requirements.txtconda create -n geneface python=3.9
conda activate geneface安装 PyTorch:
pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu118安装项目依赖:
pip install -r requirements.txt解决:
pip install pytorch3d -f https://dl.fbaipublicfiles.com/pytorch3d/packaging/wheels/py39_cu118_pyt2.0.0/wheel.htmlconda install -c conda-forge ffmpeg
pip install opencv-python-headlessC:\xxxGeneFace++ 需要:
python preprocess.py \
--video_path demo.mp4 \
--audio_path demo.wavpython inference.py \
--audio_path test.wav \
--model_path checkpoints/geneface++.pth✅ 不想训练,只想生成视频:
✅ 不想折腾环境:
| 方式 | 稳定性 | 推荐度 |
|---|---|---|
| WSL2 | ⭐⭐⭐⭐⭐ | ✅ 最推荐 |
| 纯 Windows | ⭐⭐ | ⚠️ 能跑但坑多 |
| Colab | ⭐⭐⭐⭐ | ✅ 不想配置选这个 |
如果你愿意,我可以:
你现在是训练还是推理?显卡是什么?