ReStyle: A Residual-Based StyleGAN Encoder via Iterative Refinement

Yuval Alaluf, Or Patashnik, Daniel Cohen-Or
4/6/2021
391 citations
cs.CV

Official code: yuval-alaluf/restyle-encoder (1,048 stars, Python, MIT, last commit 2022-10-01).

Abstract

Recently, the power of unconditional image synthesis has significantly advanced through the use of Generative Adversarial Networks (GANs). The task of inverting an image into its corresponding latent code of the trained GAN is of utmost importance as it allows for the manipulation of real images, leveraging the rich semantics learned by the network.

Show full abstract

Recognizing the limitations of current inversion approaches, in this work we present a novel inversion scheme that extends current encoder-based inversion methods by introducing an iterative refinement mechanism. Instead of directly predicting the latent code of a given real image using a single pass, the encoder is tasked with predicting a residual with respect to the current estimate of the inverted latent code in a self-correcting manner. Our residual-based encoder, named ReStyle, attains improved accuracy compared to current state-of-the-art encoder-based methods with a negligible increase in inference time. We analyze the behavior of ReStyle to gain valuable insights into its iterative nature. We then evaluate the performance of our residual encoder and analyze its robustness compared to optimization-based inversion and state-of-the-art encoders.

View on arXivView PDF

Code Implementations(1)

MIT

Official Implementation for "ReStyle: A Residual-Based StyleGAN Encoder via Iterative Refinement" (ICCV 2021) https://arxiv.org/abs/2104.02699

1,048150Python, Jupyter NotebookApr 6, 20214 years agoMIT
generative-adversarial-networksiccv2021iterative-refinementstyleganstylegan-encoder

Similar Papers

Cite this paper

@article{alaluf2021restyle,
  title  = {ReStyle: A Residual-Based StyleGAN Encoder via Iterative Refinement},
  author = {Yuval Alaluf and Or Patashnik and Daniel Cohen-Or},
  year   = {2021},
  eprint = {2104.02699},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2104.02699}
}

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

Discussion