Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

The source code of CVPR17 'Generative Face Completion'.

License

NotificationsYou must be signed in to change notification settings

Yijunmaverick/GenerativeFaceCompletion

Repository files navigation

Matcaffe implementation of our CVPR17paper on face completion.

In each panel from left to right: original face, masked input, completion result.

Setup

  • We use thecaffe-for-cudnn-v2.5.48. Please referCaffe for more installation details.
  • Basically, you need to first modify theMATLAB_DIR in Makefile.config and then run the following commands for a successful compilation:
make all -j4make matcaffe

Training

  • Follow theDCGAN to prepare the data (CelebA). The only differece is that the face we cropped is of size 128x128. Please modify Line 10 in theircrop_celebA.lua file. We use the standard train&test split of theCelebA dataset.

  • Modify the training data path in ./matlab/FaceCompletion_training/GFC_caffeinit.m file.

  • Download our face parsing modelModel_parsing and put it under ./matlab/FaceCompletion_training/model/ folder.

  • We provide an initialmodel that is only trained with the reconstruction loss, as a good start point for the subsequent GAN training. Please download it and put it under ./matlab/FaceCompletion_training/model/ folder.

  • Run ./matlab/FaceCompletion_training/demo_GFC_training.m for training.

Testing

  • Download our face completion modelModel_G and put it under ./matlab/FaceCompletion_testing/model/ folder.
  • Run ./matlab/FaceCompletion_testing/demo_face128.m for completion. TestImages are from the CelebA test dataset.

Citation

@inproceedings{GFC-CVPR-2017,    author = {Li, Yijun and Liu, Sifei and Yang, Jimei and Yang, Ming-Hsuan},    title = {Generative Face Completion},    booktitle = {IEEE Conference on Computer Vision and Pattern Recognition},    year = {2017}}

Acknowledgement

  • Gratitude goes toSifei Liu for the great help on code.
  • Theupsample layer (unpooling according to the pooling mask) is borrowed from theSegNet.

About

The source code of CVPR17 'Generative Face Completion'.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp