查看驱动:
nvidia-smiGeneFace++ 常用:
✅ 推荐组合(最稳):
安装后确认:
nvcc -V推荐:
下载:
https://docs.conda.io/en/latest/miniconda.html
创建环境:
conda create -n geneface python=3.9
conda activate geneface在 geneface 环境中运行:
pip install torch==2.0.1+cu118 torchvision==0.15.2+cu118 --extra-index-url https://download.pytorch.org/whl/cu118验证:
import torch
print(torch.cuda.is_available())True 才继续git clone https://github.com/liuvv23/GeneFacePlusPlus.git
cd GeneFacePlusPluspip install -r requirements.txt⚠️ Windows 常见报错:
pyaudio 装不上 → 可跳过numba 版本冲突 → 固定:pip install numba==0.57.1Windows 最简单方式:
conda install ffmpeg或下载:
https://ffmpeg.org/download.html
pip install face-alignmentpip install diffusers==0.19.3pip install audiosepGeneFace++ 需要预训练模型:
官方 HuggingFace:
https://huggingface.co/spaces/Geneface/GenefacePlusPlus
下载后放到:
GeneFacePlusPlus/checkpoints/常见模型:
genefacepp_mainaudio2motionmotion2video⚠️ Windows 不支持 Linux shell 脚本,要改命令
python inference.py \
--a2m_model_path checkpoints/audio2motion \
--m2v_model_path checkpoints/motion2video \
--audio_path examples/audio.wav \
--source_video examples/source.mp4 \
--out_video output.mp4用:
examples/audio.wav不要:
examples\audio.wav在代码开头加:
import torch
torch.multiprocessing.set_start_method('spawn', force=True)降低:
--batch_size 1如果你只是想用 GeneFace++ 出视频:
✅ 直接用:
你可以告诉我:
1️⃣ 你是 A卡还是N卡
2️⃣ 想做 真人驱动 / 二次元
3️⃣ 卡在哪一步(贴报错)
我可以直接帮你改命令或排错。