Encoding in Style: a StyleGAN Encoder for Image-to-Image Translation

Elad Richardson, Yuval Alaluf, Or Patashnik, Yotam Nitzan, Yaniv Azar +2 more
8/3/2020
1,315 citations
cs.CV

Official code: eladrich/pixel2style2pixel (3,352 stars, Jupyter Notebook, MIT, last commit 2022-10-01).

Abstract

We present a generic image-to-image translation framework, pixel2style2pixel (pSp). Our pSp framework is based on a novel encoder network that directly generates a series of style vectors which are fed into a pretrained StyleGAN generator, forming the extended W+ latent space.

Show full abstract

We first show that our encoder can directly embed real images into W+, with no additional optimization. Next, we propose utilizing our encoder to directly solve image-to-image translation tasks, defining them as encoding problems from some input domain into the latent domain. By deviating from the standard invert first, edit later methodology used with previous StyleGAN encoders, our approach can handle a variety of tasks even when the input image is not represented in the StyleGAN domain. We show that solving translation tasks through StyleGAN significantly simplifies the training process, as no adversary is required, has better support for solving tasks without pixel-to-pixel correspondence, and inherently supports multi-modal synthesis via the resampling of styles. Finally, we demonstrate the potential of our framework on a variety of facial image-to-image translation tasks, even when compared to state-of-the-art solutions designed specifically for a single task, and further show that it can be extended beyond the human facial domain.

View on arXivView PDF

Code Implementations(1)

MIT

Official Implementation for "Encoding in Style: a StyleGAN Encoder for Image-to-Image Translation" (CVPR 2021) presenting the pixel2style2pixel (pSp) framework

3,352573Jupyter Notebook, PythonOct 1, 20204 years agoMIT
cvpr2021generative-adversarial-networkimage-translationpixel2style2pixelpsp-framework+3 more

Similar Papers

Cite this paper

@article{richardson2020encoding,
  title  = {Encoding in Style: a StyleGAN Encoder for Image-to-Image Translation},
  author = {Elad Richardson and Yuval Alaluf and Or Patashnik and Yotam Nitzan and Yaniv Azar and Stav Shapiro and Daniel Cohen-Or},
  year   = {2020},
  eprint = {2008.00951},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2008.00951}
}

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/2008.00951.svg)](https://codeofpaper.com/paper/2008.00951)

Discussion