内容简介:The Project is real time application in opencv using first order modelcreate virual environment:activate virtual environment:
Real time Image Animation
The Project is real time application in opencv using first order model
Steps to setup
Step 1: Create virtual environment
create virual environment: pip install virtualenv
activate virtual environment: virtualenv env
Step 2: Activate virtual environment
For windows: env/Script/activate
For Linux: source env/bin/activate
Step 3 : Install required modules
Install modules: pip install -r requirements.txt
Install pytorch and torchvision: pip install torch===1.0.0 torchvision===0.2.1 -f https://download.pytorch.org/whl/cu100/torch_stable.html
Step 4 : Download cascade file ,weights and model and save in folder named extract
gdown --id 1wCzJP1XJNB04vEORZvPjNz6drkXm5AUK
On Linux machine: unzip checkpoints.zip
If on windows platfrom unzip checkpoints.zip using unzipping software like 7zip.
Delete zip file: rm checkpoints.zip
Step 5 : Run the project
Run application from live camera: python image_animation.py -i path_to_input_file -c path_to_checkpoint
Example: python .\image_animation.py -i .\Inputs\Monalisa.png -c .\checkpoints\vox-cpk.pth.tar
Run application from video file: python image_animation.py -i path_to_input_file -c path_to_checkpoint -v path_to_video_file
Example: python .\image_animation.py -i .\Inputs\Monalisa.png -c .\checkpoints\vox-cpk.pth.tar -v .\video_input\test1.mp4
TODO:
Tkinter version
Need work on face alignments
Future plans adding deepfake voice and merging with video
Credits
@InProceedings{Siarohin_2019_NeurIPS, author={Siarohin, Aliaksandr and Lathuilière, Stéphane and Tulyakov, Sergey and Ricci, Elisa and Sebe, Nicu}, title={First Order Motion Model for Image Animation}, booktitle = {Conference on Neural Information Processing Systems (NeurIPS)}, month = {December}, year = {2019}, url = {https://github.com/AliaksandrSiarohin/first-order-model} }
-
Original Project
If you like this project give your support to original author of this project by giving github star to author's project
-
video explanation to the project
-
try project on google colab
For any valueable feedback feel free to contact me on linkedin
以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持 码农网
猜你喜欢:本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们。
离散数学及其应用
Kenneth H.Rosen / 机械工业出版社 / 2012-11 / 99.00元
本书是介绍离散数学理论和方法的经典教材,已经成为采用率最高的离散数学教材,被美国众多名校用作教材,获得了极大的成功。中文版也已被国内大学广泛采用为教材。作者参考使用教师和学生的反馈,并结合自身对教育的洞察,对第7版做了大量的改进,使其成为更有效的教学工具。. 本书可作为1至2个学期的离散数学课入门教材,适用于数学,计算机科学。计算机工程.信息技术等专业的学生。 本书特点 实例:书中有8......一起来看看 《离散数学及其应用》 这本书的介绍吧!