Spatially-Adaptive Multilayer Selection for GAN Inversion and Editing

Gaurav Parmar, Yijun Li, Jingwan Lu, Richard Zhang, Jun-Yan Zhu +1 more
6/16/2022
cs.CVcs.GRcs.LG

Official code: adobe-research/sam_inversion (173 stars, Python, PyTorch, last commit 2023-01-21).

Abstract

Existing GAN inversion and editing methods work well for aligned objects with a clean background, such as portraits and animal faces, but often struggle for more difficult categories with complex scene layouts and object occlusions, such as cars, animals, and outdoor images. We propose a new method to invert and edit such complex images in the latent space of GANs, such as StyleGAN2.

Show full abstract

Our key idea is to explore inversion with a collection of layers, spatially adapting the inversion process to the difficulty of the image. We learn to predict the "invertibility" of different image segments and project each segment into a latent layer. Easier regions can be inverted into an earlier layer in the generator's latent space, while more challenging regions can be inverted into a later feature space. Experiments show that our method obtains better inversion results compared to the recent approaches on complex categories, while maintaining downstream editability. Please refer to our project page at https://www.cs.cmu.edu/~SAMInversion.

View on arXivView PDF

Code Implementations(1)

PyTorch

[CVPR 2022] GAN inversion and editing with spatially-adaptive multiple latent layers

17310PythonJun 15, 20223 years agoNOASSERTION
computer-graphicscomputer-visiondeep-learninggangenerative-adversarial-network+3 more

Similar Papers

Cite this paper

@article{parmar2022spatiallyadaptive,
  title  = {Spatially-Adaptive Multilayer Selection for GAN Inversion and Editing},
  author = {Gaurav Parmar and Yijun Li and Jingwan Lu and Richard Zhang and Jun-Yan Zhu and Krishna Kumar Singh},
  year   = {2022},
  eprint = {2206.08357},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2206.08357}
}

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

Discussion