Interpreting the Latent Space of GANs for Semantic Face Editing

Yujun Shen, Jinjin Gu, Xiaoou Tang, Bolei Zhou
7/25/2019
1,288 citations
cs.CV

No official code found. Best implementation: genforce/interfacegan (1,560 stars, Python, MIT, last commit 2022-02-09).

Abstract

Despite the recent advance of Generative Adversarial Networks (GANs) in high-fidelity image synthesis, there lacks enough understanding of how GANs are able to map a latent code sampled from a random distribution to a photo-realistic image. Previous work assumes the latent space learned by GANs follows a distributed representation but observes the vector arithmetic phenomenon.

Show full abstract

In this work, we propose a novel framework, called InterFaceGAN, for semantic face editing by interpreting the latent semantics learned by GANs. In this framework, we conduct a detailed study on how different semantics are encoded in the latent space of GANs for face synthesis. We find that the latent code of well-trained generative models actually learns a disentangled representation after linear transformations. We explore the disentanglement between various semantics and manage to decouple some entangled semantics with subspace projection, leading to more precise control of facial attributes. Besides manipulating gender, age, expression, and the presence of eyeglasses, we can even vary the face pose as well as fix the artifacts accidentally generated by GAN models. The proposed method is further applied to achieve real image manipulation when combined with GAN inversion methods or some encoder-involved models. Extensive results suggest that learning to synthesize faces spontaneously brings a disentangled and controllable facial attribute representation.

View on arXivView PDF

Code Implementations(1)

MIT

[CVPR 2020] Interpreting the Latent Space of GANs for Semantic Face Editing

1,560278PythonJul 26, 20194 years agoMIT

Similar Papers

Cite this paper

@article{shen2019interpreting,
  title  = {Interpreting the Latent Space of GANs for Semantic Face Editing},
  author = {Yujun Shen and Jinjin Gu and Xiaoou Tang and Bolei Zhou},
  year   = {2019},
  eprint = {1907.10786},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1907.10786}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/1907.10786.svg)](https://codeofpaper.com/paper/1907.10786)

Discussion