Skip to main content
QUICK REVIEW

[Paper Review] Image Processing Using Multi-Code GAN Prior

Jinjin Gu, Yujun Shen|arXiv (Cornell University)|Dec 15, 2019
Generative Adversarial Networks and Image SynthesisComputer Science69 references11 citations
TL;DR

This paper proposes mGANprior, a novel GAN inversion method that uses multiple latent codes and adaptive channel fusion to reconstruct real images with significantly improved fidelity. By over-parameterizing the latent space, the approach enables high-quality image reconstruction, outperforming single-code baselines and unlocking diverse applications like super-resolution, colorization, and inpainting using pre-trained GANs without retraining.

ABSTRACT

Despite the success of Generative Adversarial Networks (GANs) in image synthesis, applying trained GAN models to real image processing remains challenging. Previous methods typically invert a target image back to the latent space either by back-propagation or by learning an additional encoder. However, the reconstructions from both of the methods are far from ideal. In this work, we propose a novel approach, called mGANprior, to incorporate the well-trained GANs as effective prior to a variety of image processing tasks. In particular, we employ multiple latent codes to generate multiple feature maps at some intermediate layer of the generator, then compose them with adaptive channel importance to recover the input image. Such an over-parameterization of the latent space significantly improves the image reconstruction quality, outperforming existing competitors. The resulting high-fidelity image reconstruction enables the trained GAN models as prior to many real-world applications, such as image colorization, super-resolution, image inpainting, and semantic manipulation. We further analyze the properties of the layer-wise representation learned by GAN models and shed light on what knowledge each layer is capable of representing.

Motivation & Objective

  • To address the poor reconstruction quality of existing GAN inversion methods that rely on a single latent code.
  • To enable pre-trained GANs to serve as effective priors for diverse real-world image processing tasks.
  • To improve image reconstruction fidelity by over-parameterizing the latent space using multiple codes.
  • To analyze how different layers in a GAN generator encode semantic and perceptual knowledge.
  • To demonstrate the generalization of the method across in-domain and out-of-domain images.

Proposed method

  • The method employs multiple latent codes to generate multiple feature maps at an intermediate layer of the generator.
  • These feature maps are adaptively combined using learnable channel weights to reconstruct the input image.
  • The reconstruction loss is minimized via end-to-end optimization of the multiple latent codes and channel weights.
  • The approach is applied across different layers of the generator to analyze layer-wise representation capacity.
  • The method is evaluated on image restoration tasks such as super-resolution, colorization, and inpainting using pre-trained PGGAN models.
  • Ablation studies compare performance across different layers and GAN architectures to identify optimal feature composition layers.

Experimental results

Research questions

  • RQ1Can multiple latent codes significantly improve image reconstruction quality compared to single-code inversion in GANs?
  • RQ2How does the choice of intermediate layer in the generator affect reconstruction fidelity and semantic content?
  • RQ3Can mGANprior effectively reconstruct images with domain gaps relative to the GAN’s training data?
  • RQ4What kind of knowledge (e.g., low-level details vs. high-level semantics) is encoded in different layers of a trained GAN generator?
  • RQ5To what extent can mGANprior enable downstream image processing tasks without fine-tuning or architectural changes?

Key findings

  • mGANprior achieves state-of-the-art reconstruction performance, outperforming existing GAN inversion methods and Deep Image Prior (DIP) on both center crop and random crop image restoration tasks.
  • The method achieves PSNR of 21.19 dB and 22.11 dB for inpainting on center and random crops, respectively, with the 4th layer yielding the best results.
  • For image colorization, the 8th layer achieves the highest AuC score of 90.02%, indicating superior performance in low-level color reconstruction.
  • When inverting a bedroom image with a GAN trained on faces (CelebA-HQ), single-code inversion fails to reconstruct the correct content, while mGANprior successfully generates a bedroom image using multiple codes.
  • The 4th layer provides sufficient representation for bedroom reconstruction, while other domains (e.g., faces, churches) require the 8th layer, indicating layer-dependent semantic abstraction.
  • Feature composition at higher layers leads to better reconstruction quality, as these layers encode more detailed content information.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.