Skip to main content
QUICK REVIEW

[Paper Review] RSGAN: Face Swapping and Editing using Face and Hair Representation in Latent Spaces

Ryota Natsume, Tatsuya Yatagawa|arXiv (Cornell University)|Apr 10, 2018
Face recognition and analysisComputer Science15 references43 citations
TL;DR

RSGAN introduces region-separable VAEs (face and hair) plus a GAN to swap faces and edit attributes in latent space, enabling robust face swapping and flexible editing without per-pair fine-tuning.

ABSTRACT

In this paper, we present an integrated system for automatically generating and editing face images through face swapping, attribute-based editing, and random face parts synthesis. The proposed system is based on a deep neural network that variationally learns the face and hair regions with large-scale face image datasets. Different from conventional variational methods, the proposed network represents the latent spaces individually for faces and hairs. We refer to the proposed network as region-separative generative adversarial network (RSGAN). The proposed network independently handles face and hair appearances in the latent spaces, and then, face swapping is achieved by replacing the latent-space representations of the faces, and reconstruct the entire face image with them. This approach in the latent space robustly performs face swapping even for images which the previous methods result in failure due to inappropriate fitting or the 3D morphable models. In addition, the proposed system can further edit face-swapped images with the same network by manipulating visual attributes or by composing them with randomly generated face or hair parts.

Motivation & Objective

  • Motivate a unified system for automatic face swapping and appearance editing.
  • Propose a region-separative GAN that learns separate latent spaces for face and hair regions.
  • Enable face swapping by exchanging latent representations and reconstructing the full image.
  • Support attribute-based editing and random part synthesis within the same network.
  • Demonstrate robustness across varying poses, lighting, and expressions while avoiding per-pair fine-tuning.

Proposed method

  • Two VAEs (separator networks) encode face and hair appearances into separate latent spaces (z_f, z_h).
  • One GAN-based composer network reconstructs the full image from the paired latent codes.
  • Training uses three reconstruction losses for face, hair, and full image with a background mask to emphasize foreground details.
  • KL divergence losses regularize latent spaces; adversarial losses from global and patch discriminators guide realism.
  • A classifier network estimates visual attributes from input images to enable attribute-conditioned editing.
  • During face swapping, latent codes from two inputs are combined as x′ = G(z_xf, z_cf, z_xh, z_ch).
  • Optional gradient-domain stitching can be applied to refine hair/background consistency (RSGAN-GD).
  • The dataset is built from CelebA by segmenting face/hair regions and extracting patches for training.

Experimental results

Research questions

  • RQ1Can separating face and hair latent representations improve robustness and quality of face swapping across variations in pose, lighting, and expression?
  • RQ2Can the same latent-space framework support attribute-based editing and random part synthesis without extra per-pair fine-tuning?
  • RQ3How does region-separable modeling affect identity preservation and swap consistency compared to prior methods?
  • RQ4What is the impact of using variational latent spaces versus non-variational encoders for these tasks?

Key findings

  • RSGAN achieves natural-looking face-swapped results across diverse poses and lighting conditions.
  • Visual attributes can be edited by manipulating corresponding latent codes, enabling targeted changes to face or hair without cross-effect.
  • Random sampling of face or hair latent spaces allows generation of new appearances while preserving the other region.
  • RSGAN demonstrates competitive swap consistency and improves over several baseline generative models in the reported metrics, though a specialized 3DMM-based method may retain higher identity fidelity in some cases.

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.