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

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

2 Nov 2020ICLR 2021 1arXiv:2011.00844archive 2025-07-28

Xingang Pan, Bo Dai, Ziwei Liu, Chen Change Loy, Ping Luo

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. 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.

PaperPDFConference PDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2011.00844")

Code

Syntology Ran 4 of 11 code samples harvested from 1 repository linked to this paper; 7 have no recorded run. Of those that ran: 1 ran · our draft was wrong; 3 ran with no contract checked.

By repository: official repository: 11 samples from 1 repository, 4 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

XingangPan/GAN2Shape officialmentioned in papermentioned on GitHubpytorchMIT report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

11 samples harvested; 4 ran; 0 honoured the contract we drafted; 7 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

1ran · our draft was wrong
3ran
7unverified

Licence: 0 of the 11 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from XingangPan/GAN2Shape. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

conv3x3 XingangPan/GAN2Shape/gan2shape/parsing/resnet.py official repository ran · our draft was wrong MIT (permissive) · fac5364e2f53c6db · report
create_layer_basic XingangPan/GAN2Shape/gan2shape/parsing/resnet.py official repository ran MIT (permissive) · 325b8d54f52e2421 · report
resnet18 XingangPan/GAN2Shape/gan2shape/parsing/resnet_psp.py official repository ran MIT (permissive) · b8f76281c8efae48 · report
resnet34 XingangPan/GAN2Shape/gan2shape/parsing/resnet_psp.py official repository ran MIT (permissive) · 81e6f33194021bdd · report
compute_sc_inv_err XingangPan/GAN2Shape/gan2shape/utils.py official repository unverified MIT (permissive) · 549ced9e98980499 · report
load_yaml XingangPan/GAN2Shape/gan2shape/utils.py official repository unverified MIT (permissive) · c9d96366dfea8bc9 · report
map_func XingangPan/GAN2Shape/gan2shape/model.py official repository unverified MIT (permissive) · 447be7f11315d1d1 · report
mm_normalize XingangPan/GAN2Shape/gan2shape/renderer/utils.py official repository unverified MIT (permissive) · 0c5ab402075cd7d5 · report
rand_posneg_range XingangPan/GAN2Shape/gan2shape/renderer/utils.py official repository unverified MIT (permissive) · 93ba7714c2ce3acc · report
rand_range XingangPan/GAN2Shape/gan2shape/renderer/utils.py official repository unverified MIT (permissive) · 17ad8150640684d6 · report
setup_runtime XingangPan/GAN2Shape/gan2shape/utils.py official repository unverified MIT (permissive) · 8e80041c1e9798b9 · report

Tasks

3D Shape ReconstructionObject

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections