User-Controllable Latent Transformer for StyleGAN Image Layout Editing

Yuki Endo
8/26/2022
cs.CVcs.GR
transformer-attention

Official code: endo-yuki-t/UserControllableLT (278 stars, MIT, last commit 2023-06-01).

Abstract

Latent space exploration is a technique that discovers interpretable latent directions and manipulates latent codes to edit various attributes in images generated by generative adversarial networks (GANs). However, in previous work, spatial control is limited to simple transformations (e.g., translation and rotation), and it is laborious to identify appropriate latent directions and adjust their parameters.

Show full abstract

In this paper, we tackle the problem of editing the StyleGAN image layout by annotating the image directly. To do so, we propose an interactive framework for manipulating latent codes in accordance with the user inputs. In our framework, the user annotates a StyleGAN image with locations they want to move or not and specifies a movement direction by mouse dragging. From these user inputs and initial latent codes, our latent transformer based on a transformer encoder-decoder architecture estimates the output latent codes, which are fed to the StyleGAN generator to obtain a result image. To train our latent transformer, we utilize synthetic data and pseudo-user inputs generated by off-the-shelf StyleGAN and optical flow models, without manual supervision. Quantitative and qualitative evaluations demonstrate the effectiveness of our method over existing methods.

View on arXivView PDF

Code Implementations(1)

MIT

PyTorch implementation of ``User-Controllable Latent Transformer for StyleGAN Image Layout Editing'' [Computer Graphics Forum (Proc. of Pacific Graphics 2022)]

27829Aug 26, 20223 years agoMIT

Similar Papers

Cite this paper

@article{endo2022usercontrollable,
  title  = {User-Controllable Latent Transformer for StyleGAN Image Layout Editing},
  author = {Yuki Endo},
  year   = {2022},
  eprint = {2208.12408},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2208.12408}
}

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

Discussion