Skip to content

manhntm3/FaceShifter-Pytorch

Repository files navigation

FaceShifter

This is my reimplement of FaceShifter - a new SOTA in FaceSwapping using Deep Neural Network

Datasets

I planed to train on three different datasets that was reported in the paper: CelebA, FFHQ and VGGFace.

Preprocessing

I used FFHQ's script to detect and cropping faces in the images. In VGGFace, a large number of face has very small size and low resolution, thus I decided to only keep face crop images with size larger than a constant (i.e: h,w > 96).

Script:

Training:

python train.py

Testing:

python test.py

Generate visualization:

python demo_image.py

alt text

References:

https://github.com/taotaonice/FaceShifter

https://github.com/mindslab-ai/faceshifter

https://github.com/taesungp/contrastive-unpaired-translation

https://github.com/TreB1eN/InsightFace_Pytorch

@article{li2019faceshifter,
  title={Faceshifter: Towards high fidelity and occlusion aware face swapping},
  author={Li, Lingzhi and Bao, Jianmin and Yang, Hao and Chen, Dong and Wen, Fang},
  journal={arXiv preprint arXiv:1912.13457},
  year={2019}
}

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published