Domain Embedded Multi-model Generative Adversarial Networks for Image-based Face Inpainting

Xian Zhang, Xin Wang, Bin Kong, Youbing Yin, Qi Song, Siwei Lyu, Jiancheng Lv, Canghong Shi, Xiaojie LiarXiv 2020

TL;DR

This paper introduces DEGNet, a novel generative adversarial network for face inpainting that embeds domain-specific face information (like masks and landmarks) into a latent space. This approach allows for more structurally consistent and visually realistic completions, especially for large missing regions, outperforming existing methods on benchmark datasets.

What Problem Does This Paper Address?

Face inpainting, the task of filling in missing parts of an image, is particularly challenging for human faces. Traditional methods often focus on generating high-resolution textures but fail to capture the intricate structural and semantic relationships inherent in faces. This leads to common artifacts like asymmetrical features, mismatched textures, and unnatural-looking results, especially when large portions of the face are missing. The paper aims to address this by explicitly incorporating prior knowledge about face structure and appearance into the inpainting process.

Methods

The core of the proposed method, DEGNet, lies in its "Domain Embedded Generator" and "Multi-model Discriminator."

  • Domain Embedding Network: This module takes a cropped face image and extracts crucial domain information: face masks, face part images, and face landmarks. These are then encoded into a latent variable space using a Variational Auto-Encoder (VAE). This latent representation acts as a guide, encoding the "face domain knowledge."
  • Domain Embedded Generator: This generator takes the embedded latent variable and combines it with the non-face parts' textures from the cropped image to reconstruct the complete face. A Fully Convolutional Network (FCN) is used as the generator, with the embedded latent variable being concatenated into its feature maps.
  • Multi-model Discriminator: Instead of a single discriminator, DEGNet employs two:
  • Global Discriminator: Ensures the overall spatial consistency of the generated image with real images.
  • Patch Discriminator: Focuses on the local details, ensuring that smaller patches of the generated image are also realistic and consistent. This dual approach helps achieve both global coherence and fine-grained detail.

The VAE component is trained with reconstruction losses for the face mask, part, and landmarks, along with a latent classifier loss to enforce a standard normal distribution on the latent space. The generator's loss includes a weighted reconstruction loss that prioritizes foreground regions and adversarial losses from both discriminators.

Datasets

The paper uses two widely recognized face datasets for training and evaluation:

  • CelebA: A large-scale dataset of celebrity faces.
  • CelebA-HQ: A high-quality version of CelebA, providing more detailed images.

The authors follow standard splits for training, validation, and testing.

Key Insights and Ideas

  • Explicit Face Domain Knowledge is Crucial: The paper strongly advocates that simply generating high-resolution textures isn't enough for face inpainting. Explicitly encoding and utilizing structural information (like landmarks and masks) is key to achieving realistic and harmoniously structured faces.
  • Latent Space as a "Face Blueprint": By embedding face-specific information into a latent variable, the VAE acts as a learned "blueprint" of facial structure and semantics, guiding the generator to produce more plausible completions.
  • Dual Discriminators for Comprehensive Realism: The combination of a global discriminator for overall structure and a patch discriminator for local details provides a more robust adversarial training signal, leading to higher quality results.
  • Side Face Inpainting is a Harder Problem: The paper highlights that inpainting faces from side profiles is significantly more challenging due to the greater amount of missing information and the difficulty in learning subtle facial features. Their method shows promising results even in this difficult scenario.

Key Results

  • State-of-the-Art Performance: DEGNet achieves state-of-the-art results on both CelebA and CelebA-HQ datasets, outperforming previous methods in terms of PSNR, SSIM, and NCC metrics.
  • Superior Qualitative Results: Visually, DEGNet produces sharper, more natural faces with consistent structures and appearance, avoiding the common artifacts seen in other methods (e.g., asymmetrical eyes, blurry boundaries).
  • Effective for Large Missing Regions: The method demonstrates particular strength in inpainting large cropped regions, where traditional methods often struggle.
  • Good Performance on Side Faces: DEGNet shows competitive performance on the challenging side face inpainting task, producing more symmetrical and natural results compared to others.

Limitations and Future Work

  • Computational Cost: While not explicitly detailed as a limitation, the multi-component architecture (VAE, Generator, two Discriminators) suggests a potentially higher computational cost for training and inference compared to simpler models.
  • Generalizability to Other Domains: The current work focuses specifically on face inpainting. While the core idea of domain embedding could be generalized, its effectiveness on non-face images is not explored.
  • Future Work: The authors suggest that their method could be easily applied to other image editing tasks, implying a broader potential for their domain embedding approach. Further exploration into different domain embeddings or more complex generator/discriminator architectures could also be future directions.

Summary updated

BibTeX
@misc{zhang2020domain,
  author = {Xian Zhang and Xin Wang and Bin Kong and Youbing Yin and Qi Song and Siwei Lyu and Jiancheng Lv and Canghong Shi and Xiaojie Li},
  title = {{Domain Embedded Multi-model Generative Adversarial Networks for Image-based Face Inpainting}},
  year = {2020},
  eprint = {2002.02909},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2002.02909},
}
Figure