Welcome to the new version of CaltechAUTHORS. Login is currently restricted to library staff. If you notice any issues, please email coda@library.caltech.edu
Published December 21, 2022 | public
Report

Near Perfect GAN Inversion

Abstract

To edit a real photo using Generative Adversarial Networks (GANs), we need a GAN inversion algorithm to identify the latent vector that perfectly reproduces it. Unfortunately, whereas existing inversion algorithms can synthesize images similar to real photos, they cannot generate the identical clones needed in most applications. Here, we derive an algorithm that achieves near perfect reconstructions of photos. Rather than relying on encoder- or optimization-based methods to find an inverse mapping on a fixed generator G(⋅), we derive an approach to locally adjust G(⋅) to more optimally represent the photos we wish to synthesize. This is done by locally tweaking the learned mapping G(⋅) s.t. ‖x−G(z)‖<ϵ, with x the photo we wish to reproduce, z the latent vector, ‖⋅‖ an appropriate metric, and ϵ>0 a small scalar. We show that this approach can not only produce synthetic images that are indistinguishable from the real photos we wish to replicate, but that these images are readily editable. We demonstrate the effectiveness of the derived algorithm on a variety of datasets including human faces, animals, and cars, and discuss its importance for diversity and inclusion.

Additional details

Created:
August 20, 2023
Modified:
October 24, 2023