Do 2D GANs Know 3D Shape? Unsupervised 3D shape reconstruction from 2D Image GANs

Xingang Pan, Bo Dai, Ziwei Liu, Chen Change Loy, Ping Luo
11/2/2020
cs.CV

Official code: XingangPan/GAN2Shape (573 stars, Python, MIT, last commit 2023-07-04).

Abstract

Natural images are projections of 3D objects on a 2D image plane. While state-of-the-art 2D generative models like GANs show unprecedented quality in modeling the natural image manifold, it is unclear whether they implicitly capture the underlying 3D object structures.

Show full abstract

And if so, how could we exploit such knowledge to recover the 3D shapes of objects in the images? To answer these questions, in this work, we present the first attempt to directly mine 3D geometric cues from an off-the-shelf 2D GAN that is trained on RGB images only. Through our investigation, we found that such a pre-trained GAN indeed contains rich 3D knowledge and thus can be used to recover 3D shape from a single 2D image in an unsupervised manner. The core of our framework is an iterative strategy that explores and exploits diverse viewpoint and lighting variations in the GAN image manifold. The framework does not require 2D keypoint or 3D annotations, or strong assumptions on object shapes (e.g. shapes are symmetric), yet it successfully recovers 3D shapes with high precision for human faces, cats, cars, and buildings. The recovered 3D shapes immediately allow high-quality image editing like relighting and object rotation. We quantitatively demonstrate the effectiveness of our approach compared to previous methods in both 3D shape reconstruction and face rotation. Our code is available at https://github.com/XingangPan/GAN2Shape.

View on arXivView PDF

Code Implementations(1)

MIT

Code for GAN2Shape (ICLR2021 oral)

57398Python, CudaNov 2, 20203 years agoMIT
3d-reconstructiondeep-learninggangenerative-adversarial-networkinverse-graphics

Similar Papers

Cite this paper

@article{pan2020gans,
  title  = {Do 2D GANs Know 3D Shape? Unsupervised 3D shape reconstruction from 2D Image GANs},
  author = {Xingang Pan and Bo Dai and Ziwei Liu and Chen Change Loy and Ping Luo},
  year   = {2020},
  eprint = {2011.00844},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2011.00844}
}

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

Discussion