faceswap的安装和基本使用记录


https://github.com/deepfakes/faceswap

https://faceswap.dev/

修改等

.condarc
channels:
- https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
- https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/
- https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge/
- https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/msys2/
show_channel_urls: true

安装是在线安装,因为被qiang,安装过程中可能会出现各种各样错误配合手动。

需要安装conda,也可以选择miniconda。

安装好后的图标,如下

比如:
Tensorflow raised an unknown error. This is most likely caused by a failure to launch cuDNN which can occur for some GPU/Tensorflow combinations. You should enable `allow_growth` to attempt to resolve this issue
您应该启用“allow\ u growth”来尝试解决此问题

02/09/2021 16:55:13 CRITICAL An unexpected crash has occurred. Crash report written to 'D:\Program Files (x86)\faceswap\crash_report.2021.02.09.165511698101.log'. You MUST provide this file if seeking assistance. Please verify you are running the latest version of faceswap before reporting

基本使用:

提取切片
排序
清除无关
合并多个alignments
训练
转换
合成
需安装
conda uninstall ffmpeg
conda install ffmpeg

python tools.py effmpeg -a gen-vid -i 输入图片文件夹 -o 输出文件名 -fps 帧率 

Eg.1:
python tools.py effmpeg -a gen-vid -i C:\Users\KASPAR\Desktop\1\outputdir -o C:\Users\KASPAR\Desktop\1\outputdir\123.mp4 -tps 24

python tools.py effmpeg -a gen-vid -i 输入图片文件夹 -o 输出文件名 -fps 帧率 

Eg.2:

python tools.py effmpeg -a gen-vid -i C:\Users\Administrator\Desktop\a\testoutput -o C:\Users\Administrator\Desktop\a\123.mp4 -fps 24
~需要混音
python tools.py effmpeg -a gen-vid -i 输入图片文件夹 -o 输出文件名 -fps 帧率 -m -r 原视频路径

Eg.3:

python tools.py effmpeg -a gen-vid -i C:\Users\Administrator\Desktop\a\testoutput -o C:\Users\Administrator\Desktop\a\123.mp4 -fps 24 -m -r C:\Users\Administrator\Desktop\a\a.mp4
python tools.py effmpeg -i cage.mp4 -o input -s 00:0148 -e 00:0156

总结:效果还是很好的,但需要大量时间去训练,训练的模型直接影响到替换效果。并且模型唯一。


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM