Skip to content

PyTorch Implementation of our paper 'Unmasking Your Expression: Expression-Conditioned GAN for Masked Face Inpainting' (CVPRW'23).

Notifications You must be signed in to change notification settings

SridharSola/ECGAN

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ECGAN

This is the repository for our work 'Unmaksing Your Expression: Expression-Conditioned GAN for Masked Face Inpainting' presented at the 5th Workshop on Affective Behaviour Analysis in the Wild part of CVPR2023 Workshops. The paper is available here. Alternatively, you can watch this short video presentation. To view the code in a notebook, check out this Colab file.

Abstract. As face masks continue to be a part of our daily lives, the challenge of reconstructing occluded faces remains relevant. While several approaches have been proposed for removing masks from neutral facial images, few have explored the use of facial expressions as a dominant feature for reconstruction of expressive faces. To address this gap, we propose an expression-conditioned GAN (ECGAN) for reconstructing masked faces with a specified expression. Our approach leverages both the binary segmentation map of the mask and an expression label to generate high-quality images. To train our ECGAN in a supervised manner, we synthesize masked images using the RAFDB dataset to create non-masked-masked pairs of images for training. We evaluate of our approach on the RAFDB test set, demonstrating its effectiveness in generating realistic images that convincingly belong to the given expression class. This is further highlighted by comparing it to a baseline model and a state of-the-art approach without expression-input.

The starter code for our conditioned GAN (vanilla UNet, loss, train, and test functions) are taken from this project.

TL;DR
ECGAN takes in a masked image, its mask binary segmentation, and an expression class, and returns an unmasked image with the expression as shown:

About

PyTorch Implementation of our paper 'Unmasking Your Expression: Expression-Conditioned GAN for Masked Face Inpainting' (CVPRW'23).

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages