GenerativeFaceCompletion
The source code of CVPR17 'Generative Face Completion'.
Install / Use
/learn @Yijunmaverick/GenerativeFaceCompletionREADME
GenerativeFaceCompletion
Matcaffe implementation of our CVPR17 paper on face completion.
<img src='face_completion.png' width=800> In each panel from left to right: original face, masked input, completion result.Setup
- We use the caffe-for-cudnn-v2.5.48. Please refer Caffe for more installation details.
- Basically, you need to first modify the MATLAB_DIR in Makefile.config and then run the following commands for a successful compilation:
make all -j4
make matcaffe
Training
-
Follow the DCGAN to prepare the data (CelebA). The only differece is that the face we cropped is of size 128x128. Please modify Line 10 in their crop_celebA.lua file. We use the standard train&test split of the CelebA dataset.
-
Modify the training data path in ./matlab/FaceCompletion_training/GFC_caffeinit.m file.
-
Download our face parsing model Model_parsing and put it under ./matlab/FaceCompletion_training/model/ folder.
-
We provide an initial model 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 model Model_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
Related Skills
node-connect
347.0kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
107.8kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
347.0kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
347.0kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
