farazBhatti / moving_faces

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Alive_Images

This repository uses code from first order model and openCV to generate alive photos.

Install modules

pip3 install -r requirements.txt

Inference

Download pretrained model here.. You only need to down "vox-adv-cpk.pth.tar"

Extract model and put it in "checkpoints" dir.

python3 demo.py  --config config/vox-adv-256.yaml --driving_video driving_video/short.mp4 --source_image source_image/friends.jpeg --checkpoint checkpoints/vox-adv-cpk.pth.tar --relative --adapt_scale

Select face in the image

Final result

To do

  • Apply multiple faces reenactment

Acknowledgment

About


Languages

Language:Python 99.5%Language:Dockerfile 0.5%