在Windows顺利安装GeneFace++可参考以下步骤:
conda create -n geneface python=3.9
,然后激活虚拟环境conda activate geneface
。pip install -r requirements.txt
。git clone https://github.com/yerfor/GeneFacePlusPlus.git
,将项目克隆到本地。export PYTHONPATH=$(pwd):$PYTHONPATH
,然后运行示例脚本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
。此外,安装过程中可能需要安装CUDA等硬件加速库以支持GPU运算,具体可参考官方文档。