在CentOS下部署GeneFace Plus Plus可参考以下步骤:
sudo yum update -y
sudo yum groupinstall "Development Tools"
,sudo yum install -y cmake git wget python3 python3-devel
conda create -n geneface python=3.9
,conda activate geneface
git clone https://github.com/yerfor/GeneFacePlusPlus.git
,然后cd GeneFacePlusPlus
mkdir build && cd build
,cmake ..
,make -j$(nproc)
,sudo make install
~/.bashrc
或~/.bash_profile
,添加export PATH=$PATH:/path/to/GeneFacePlusPlus/build/bin
,export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/path/to/GeneFacePlusPlus/build/lib
,然后运行source ~/.bashrc
export PYTHONPATH=$PYTHONPATH:./python
,python inference/genefacepp_infer.py --a2m_ckpt=checkpoints/audio2motion_vae --head_ckpt=checkpoints/motion2video_nerf/may_head --torso_ckpt=checkpoints/motion2video_nerf/may_torso --drv_aud=data/raw/val_wavs/example.wav --out_name=demo_output.mp4
具体步骤可能因版本不同有所差异,建议参考GeneFace++ GitHub仓库中的README文件获取准确信息。