English

High-fidelity GAN Inversion with Padding Space

Computer Vision and Pattern Recognition 2022-07-28 v2

Abstract

Inverting a Generative Adversarial Network (GAN) facilitates a wide range of image editing tasks using pre-trained generators. Existing methods typically employ the latent space of GANs as the inversion space yet observe the insufficient recovery of spatial details. In this work, we propose to involve the padding space of the generator to complement the latent space with spatial information. Concretely, we replace the constant padding (e.g., usually zeros) used in convolution layers with some instance-aware coefficients. In this way, the inductive bias assumed in the pre-trained model can be appropriately adapted to fit each individual image. Through learning a carefully designed encoder, we manage to improve the inversion quality both qualitatively and quantitatively, outperforming existing alternatives. We then demonstrate that such a space extension barely affects the native GAN manifold, hence we can still reuse the prior knowledge learned by GANs for various downstream applications. Beyond the editing tasks explored in prior arts, our approach allows a more flexible image manipulation, such as the separate control of face contour and facial details, and enables a novel editing manner where users can customize their own manipulations highly efficiently.

Keywords

Cite

@article{arxiv.2203.11105,
  title  = {High-fidelity GAN Inversion with Padding Space},
  author = {Qingyan Bai and Yinghao Xu and Jiapeng Zhu and Weihao Xia and Yujiu Yang and Yujun Shen},
  journal= {arXiv preprint arXiv:2203.11105},
  year   = {2022}
}

Comments

ECCV 2022 camera-ready; Project page: https://ezioby.github.io/padinv/; Code: https://github.com/EzioBy/padinv

R2 v1 2026-06-24T10:20:45.391Z