Skip to main content
QUICK REVIEW

[Paper Review] Mask-Guided Portrait Editing with Conditional GANs

Shuyang Gu, Jianmin Bao|arXiv (Cornell University)|May 24, 2019
Generative Adversarial Networks and Image SynthesisComputer Science44 references9 citations
TL;DR

This paper proposes a mask-guided conditional GAN framework for high-quality, diverse, and controllable portrait editing by learning disentangled facial component embeddings (eyes, mouth, hair, skin/nose) from face masks. The method enables end-to-end generation of realistic faces, local editing (e.g., changing hair color or shape), face swapping with hair transfer, and data augmentation for face parsing, outperforming prior methods in diversity and realism while boosting face parsing accuracy by 0.8%.

ABSTRACT

Portrait editing is a popular subject in photo manipulation. The Generative Adversarial Network (GAN) advances the generating of realistic faces and allows more face editing. In this paper, we argue about three issues in existing techniques: diversity, quality, and controllability for portrait synthesis and editing. To address these issues, we propose a novel end-to-end learning framework that leverages conditional GANs guided by provided face masks for generating faces. The framework learns feature embeddings for every face component (e.g., mouth, hair, eye), separately, contributing to better correspondences for image translation, and local face editing. With the mask, our network is available to many applications, like face synthesis driven by mask, face Swap+ (including hair in swapping), and local manipulation. It can also boost the performance of face parsing a bit as an option of data augmentation.

Motivation & Objective

  • To address the limitations in existing portrait editing methods related to diversity, image quality (especially in skin and hair details), and controllability.
  • To enable precise, component-level editing of facial attributes such as shape, color, and texture using a provided face mask.
  • To develop a generalizable framework that supports multiple applications, including mask-to-face synthesis, face swapping with hair transfer, and data augmentation for face parsing.
  • To improve the realism and fidelity of generated faces under extreme conditions (e.g., large poses, poor lighting, glasses) through mask-guided generation.

Proposed method

  • The framework uses a three-part end-to-end architecture: a local embedding sub-network with five auto-encoders for separate facial components (left eye, right eye, mouth, skin & nose, hair).
  • A mask-guided generative sub-network recombines learned component embeddings with a target face mask to produce foreground face images, ensuring component-wise correspondence (e.g., mouth-to-mouth).
  • A background fusion sub-network combines the generated foreground with a background image using the target mask to produce a natural, complete portrait.
  • The face mask is used as conditional input in all three sub-networks to enforce geometric and semantic consistency during generation.
  • Component-level editing is achieved by modifying the target mask or replacing embeddings from source images, enabling local appearance transfer (e.g., changing hair color or adding beards).
  • The framework supports data augmentation for face parsing by generating synthetic training images using masks from the Helen dataset and source images from CelebA.

Experimental results

Research questions

  • RQ1Can a conditional GAN framework guided by facial masks achieve higher diversity and realism in portrait synthesis compared to existing GAN-based methods?
  • RQ2To what extent can mask-guided learning improve controllability in local facial component editing (e.g., shape, color, texture)?
  • RQ3Can the proposed framework generate high-fidelity faces under extreme conditions such as large poses, poor lighting, or occlusions (e.g., glasses)?
  • RQ4Does the synthetic data generated by this framework improve the performance of downstream face parsing models?

Key findings

  • The proposed framework achieves state-of-the-art performance in mask-to-face synthesis, outperforming prior methods in both diversity and image quality, especially in fine details like skin texture and hair.
  • The model enables effective local editing: users can modify facial component shapes (e.g., making eyes larger or mouth wider) and transfer appearances (e.g., changing hair color or adding beards) via mask or embedding manipulation.
  • The framework supports face swap+ by enabling explicit hair component transfer, a capability absent in traditional face swap methods.
  • The model generates realistic results even under extreme conditions, such as large poses, extreme illumination, and occluded faces (e.g., glasses), when the mask correctly segments the components.
  • Synthetic images generated using the framework improved face parsing accuracy by 0.8% when added to the Helen dataset training set, demonstrating its utility as a data augmentation tool.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.