High-fidelity GAN Inversion with Padding Space

Autor: Bai, Qingyan, Xu, Yinghao, Zhu, Jiapeng, Xia, Weihao, Yang, Yujiu, Shen, Yujun
Rok vydání: 2022
Předmět:
Druh dokumentu: Working Paper
Popis: 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.
Comment: ECCV 2022 camera-ready; Project page: https://ezioby.github.io/padinv/; Code: https://github.com/EzioBy/padinv
Databáze: arXiv