sudo yum update -ysudo yum groupinstall "Development Tools" -y
sudo yum install -y \
git wget unzip cmake \
ffmpeg ffmpeg-devel \
mesa-libGL mesa-libGLU⚠️ CentOS 默认 ffmpeg 可能版本旧,建议用 rpmfusion 或手动编译新版wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
bash Miniconda3-latest-Linux-x86_64.shconda create -n geneface python=3.9 -y
conda activate genefacegit clone https://github.com/wellesley-geography/GeneFacePlusPlus.git
cd GeneFacePlusPlusnvidia-smipip install torch torchvision torchaudio \
--index-url https://download.pytorch.org/whl/cu118pip install -r requirements.txtpthreadssudo yum install -y glibc-staticface_alignment 编译失败conda install -c conda-forge dlibGeneFace++ 需要以下模型:
hubertaudio2motionmotion2videoface_recon示例:
bash scripts/download_pretrained.sh或手动从 HuggingFace / 官方说明下载到:
checkpoints/data/
├── audio.wav
├── ref_image.png
└── pose_video.mp4python inference.py \
--audio data/audio.wav \
--image data/ref_image.png \
--pose data/pose_video.mp4 \
--out output.mp4python train.py --config configs/train.yaml注意:
export NCCL_P2P_DISABLE=1tmux| 问题 | 解决 |
|---|---|
| GLIBC 版本低 | 用 conda 环境 |
| ffmpeg 不支持 | 编译或 rpmfusion |
| CUDA 不识别 | 重装驱动 + 设 PATH |
| 中文路径 | 全部英文路径 |
如果你愿意,我可以:
✅ 给你一份 CentOS 一键安装脚本
✅ 帮你 解决具体报错日志
✅ 教你 只用 CPU 跑轻量版
直接把你的 CentOS 版本和报错贴出来即可。