first-order-model学习笔记(一):环境配置

由于该项目依赖的库比较旧,下载完源码后,最好建立独立的Interpreter。需要安装的库有face-alignment,numpy版本可以用1.20.1,skimage对应的包名有点难找,叫做scikit-image,可以用0.18.1,笔记本上配置的torch版本可以用1.60+cpu。

运行demo.py前需要设置好参数,如:--config config/vox-256.yaml --driving_video resources/videos/00.mp4 --source_image resources/images/01.jpg --checkpoint checkpoints/vox-cpk.pth.tar --relative --adapt_scale

如果要利用cpu进行测试,参数为:--config config/vox-256.yaml --driving_video resources/videos/00.mp4 --source_image resources/images/01.jpg --checkpoint checkpoints/vox-cpk.pth.tar --relative --adapt_scale --cpu

如果报错:

imageio.core.fetching.NeedDownloadError: Need ffmpeg exe. You can obtain it with either:
  - install using conda: conda install ffmpeg -c conda-forge
  - download using the command: imageio_download_bin ffmpeg
  - download by calling (in Python): imageio.plugins.ffmpeg.download()

尝试:

>>

猜你喜欢

转载自blog.csdn.net/dragon_T1985/article/details/114868974