kaylode / facemask-removal

Facemask Inpainting on Synthesis Portrait
34 stars 12 forks source link
deep-learning facemask gan generative-adversarial-network image-inpainting pytorch

FaceMask Removal (FaceMask Inpainting)

Environments

CelebA data preparation:

Training steps:

Train facemask segmentation

python train.py segm --resume=<resume checkpoint>

Train facemask inpainting

python train.py facemask --resume=<resume checkpoint>

Results (100,000 iterations with batch size = 2):

screen screen

Inpainting results on Masked CelebA-512 (from left to right: FaceMasked - Segmented - Inpainted - Ground Truth)

screen screen

Free-Form Inpainting results on Places365-256 (from left to right: Ground Truth - Masked - Inpainted )

Paper References:

Code References