High-Fidelity GAN Inversion for Image Attribute Editing

Tengfei Wang, Yong Zhang, Yanbo Fan, Jue Wang, Qifeng Chen
9/14/2021
cs.CV

Official code: Tengfei-Wang/HFGI (474 stars, Jupyter Notebook, PyTorch, last commit 2022-09-29).

Abstract

We present a novel high-fidelity generative adversarial network (GAN) inversion framework that enables attribute editing with image-specific details well-preserved (e.g., background, appearance, and illumination). We first analyze the challenges of high-fidelity GAN inversion from the perspective of lossy data compression.

Show full abstract

With a low bit-rate latent code, previous works have difficulties in preserving high-fidelity details in reconstructed and edited images. Increasing the size of a latent code can improve the accuracy of GAN inversion but at the cost of inferior editability. To improve image fidelity without compromising editability, we propose a distortion consultation approach that employs a distortion map as a reference for high-fidelity reconstruction. In the distortion consultation inversion (DCI), the distortion map is first projected to a high-rate latent map, which then complements the basic low-rate latent code with more details via consultation fusion. To achieve high-fidelity editing, we propose an adaptive distortion alignment (ADA) module with a self-supervised training scheme, which bridges the gap between the edited and inversion images. Extensive experiments in the face and car domains show a clear improvement in both inversion and editing quality.

View on arXivView PDF

Code Implementations(1)

Tengfei-Wang/HFGIOfficial100%
PyTorch

CVPR 2022 HFGI: High-Fidelity GAN Inversion for Image Attribute Editing

47450Jupyter Notebook, PythonSep 13, 20214 years ago
computer-visiondeep-learninggangan-inversionimage-editing+3 more

Similar Papers

Cite this paper

@article{wang2021highfidelity,
  title  = {High-Fidelity GAN Inversion for Image Attribute Editing},
  author = {Tengfei Wang and Yong Zhang and Yanbo Fan and Jue Wang and Qifeng Chen},
  year   = {2021},
  eprint = {2109.06590},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2109.06590}
}

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

Discussion