Windows + WSL2(Ubuntu)
官方环境基本完美兼容,踩坑最少
原生 Windows + Conda
能跑,但部分依赖(尤其是音频/渲染)容易出问题
以管理员 PowerShell 执行:
wsl --install安装 Ubuntu(默认 22.04)
sudo apt update
sudo apt install -y git ffmpeg build-essentialwget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
bash Miniconda3-latest-Linux-x86_64.sh重启终端或:
source ~/.bashrcconda create -n geneface python=3.9
conda activate geneface以 CUDA 11.8 为例:
pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu118git clone https://github.com/void-jiang/GeneFacePlusPlus.git
cd GeneFacePlusPluspip install -r requirements.txt如报错:
pip install -r requirements.txt --no-cache-dirdata/, checkpoints/ 目录放好python inference.py --config configs/xxx.yamlconda install ffmpeg
pip install torch torchvision torchaudio
pip install -r requirements.txt⚠️ 常见问题:
numba 与 Windows 不兼容pyrender 无 GUI 易崩| 问题 | 解决 |
|---|---|
| CUDA not available | 确认驱动 + PyTorch CUDA 匹配 |
| ffmpeg 找不到 | 装系统 ffmpeg 并加入 PATH |
| 模型加载慢 | 用 SSD + 16G 内存以上 |
| 显存爆炸 | 降低 batch / 分辨率 |
如果你愿意,我可以:
你现在是 只想跑官方 demo,还是做自己的数字人?