由于该项目依赖的库比较旧,下载完源码后,最好建立独立的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 insta
本文档详细记录了配置first-order-model项目的过程,包括建立独立的Interpreter,安装特定版本的库如face-alignment(1.20.1)、scikit-image(0.18.1)和torch(1.60+cpu)。运行时需要设置参数,如配置文件、视频和图片路径。遇到问题如FFmpeg版本不兼容时,提供了下载旧版本FFmpeg的链接和存放路径。此外,还提到了在Colab上在线调试的选项以及项目源代码、checkpoints和非英语支持的讨论链接。
订阅专栏 解锁全文
1797

被折叠的 条评论
为什么被折叠?



