GeneFace++ 依赖:
但:
✅ 建议:
GeneFace++ 很多脚本:
python preprocess.py在 CentOS 上容易:
python 是 2.7✅ 正确做法:
python3 -V
which python3
python3 -m venv venv
source venv/bin/activateCentOS 常见错误:
pip install torch 装了 CPU 版✅ 解决:
pip install torch torchvision --index-url https://download.pytorch.org/whl/cu118查看是否成功:
import torch
print(torch.cuda.is_available())GeneFace++ 依赖:
CentOS 常见报错:
OSError: libsndfile.so.1: cannot open shared object file✅ 解决:
sudo yum install ffmpeg libsndfile或:
conda install ffmpegCentOS 老 gcc 会编译失败:
error: ‘xxx’ was not declared in this scope✅ 解决:
sudo yum install gcc-c++ make或升级 gcc:
scl enable devtoolset-11 bashdocker run -it --gpus all pytorch/pytorch:2.1.0-cuda11.8-cudnn8-devel进去后再:
git clone https://github.com/KindXiaoming/gene-face-plus-plus
pip install -r requirements.txt你可以直接把 具体报错贴出来(最后 20–30 行就行),我可以:
你现在是 CentOS 几?GPU 有没有?