Publication | Open Access
Encoding in Style: a StyleGAN Encoder for Image-to-Image Translation
64
Citations
33
References
2021
Year
Unknown Venue
Image AnalysisMachine LearningEngineeringGenerative Adversarial NetworkLatent DomainStylegan DomainPsp FrameworkGenerative ModelsComputational ImagingComputer ScienceStyle TransferGenerative AiDeep LearningStylegan EncoderComputer VisionSynthetic Image Generation
pixel2style2pixel is a generic image‑to‑image translation framework that uses an encoder to map images directly into a StyleGAN latent space for translation tasks. The framework employs a novel encoder that generates style vectors fed into a pretrained StyleGAN generator, creating an extended W+ latent space and enabling direct translation without prior inversion. Experiments show the encoder embeds real images into W+ without optimization, simplifies training by removing adversarial loss, supports tasks without pixel‑to‑pixel correspondence, enables multi‑modal synthesis via style resampling, and outperforms task‑specific state‑of‑the‑art on facial translation while generalizing beyond human faces. Code is available at https://github.com/eladrich/pixel2style2pixel.
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 $\mathcal{W} + $ latent space. We first show that our encoder can directly embed real images into $\mathcal{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. Code is available at https://github.com/eladrich/pixel2style2pixel.
| Year | Citations | |
|---|---|---|
Page 1
Page 1