Papers › PandA: Unsupervised Learning of Parts and Appearances in the Feature Maps of GANs

PandA: Unsupervised Learning of Parts and Appearances in the Feature Maps of GANs

31 May 2022arXiv:2206.00048archive 2025-07-28

James Oldfield, Christos Tzelepis, Yannis Panagakis, Mihalis A. Nicolaou, Ioannis Patras

Recent advances in the understanding of Generative Adversarial Networks (GANs) have led to remarkable progress in visual editing and synthesis tasks, capitalizing on the rich semantics that are embedded in the latent spaces of pre-trained GANs. However, existing methods are often tailored to specific GAN architectures and are limited to either discovering global semantic directions that do not facilitate localized control, or require some form of supervision through manually provided regions or segmentation masks. In this light, we present an architecture-agnostic approach that jointly discovers factors representing spatial parts and their appearances in an entirely unsupervised fashion. These factors are obtained by applying a semi-nonnegative tensor factorization on the feature maps, which in turn enables context-aware local image editing with pixel-level control. In addition, we show that the discovered appearance factors correspond to saliency maps that localize concepts of interest, without using any labels. Experiments on a wide range of GAN architectures and datasets show that, in comparison to the state of the art, our method is far more efficient in terms of training time and, most importantly, provides much more accurate localized control. Our code is available at: https://github.com/james-oldfield/PandA.

PaperPDFCodeCode 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="2206.00048")

Code

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

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

james-oldfield/panda officialmentioned in papermentioned on GitHubpytorchApache-2.0 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

14 samples harvested; 5 ran; 0 honoured the contract we drafted; 9 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.

4ran · our draft was wrong
1ran
9unverified

Licence: 0 of the 14 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 james-oldfield/PandA. “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.

construct_heatmap james-oldfield/PandA/networks/stylegan3/avg_spectra.py official repository ran Apache-2.0 (permissive) · 260d293a46551cc2 · report
sn_embedding james-oldfield/PandA/networks/biggan/model.py official repository ran · our draft was wrong Apache-2.0 (permissive) · abed13633552f3d0 · report
snconv2d james-oldfield/PandA/networks/biggan/model.py official repository ran · our draft was wrong Apache-2.0 (permissive) · b76bf7615e32c07d · report
snlinear james-oldfield/PandA/networks/biggan/model.py official repository ran · our draft was wrong Apache-2.0 (permissive) · de3577618251b913 · report
url_to_filename james-oldfield/PandA/networks/biggan/file_utils.py official repository ran · our draft was wrong fingerprinted Apache-2.0 (permissive) · 5eff22fa0a651276 · report
build_tf_to_pytorch_map james-oldfield/PandA/networks/biggan/convert_tf_to_pytorch.py official repository unverified Apache-2.0 (permissive) · ce9a06f7562fa6ed · report
cached_path james-oldfield/PandA/networks/biggan/file_utils.py official repository unverified Apache-2.0 (permissive) · 1f71e3eff559cc72 · report
convert_to_images james-oldfield/PandA/networks/biggan/utils.py official repository unverified Apache-2.0 (permissive) · a57f16b653411188 · report
extract_batch_norm_stats james-oldfield/PandA/networks/biggan/convert_tf_to_pytorch.py official repository unverified Apache-2.0 (permissive) · a3d3c599a0b72c6e · report
filename_to_url james-oldfield/PandA/networks/biggan/file_utils.py official repository unverified Apache-2.0 (permissive) · c5ba2abfbf6a9dfa · report
load_tf_weights_in_biggan james-oldfield/PandA/networks/biggan/convert_tf_to_pytorch.py official repository unverified Apache-2.0 (permissive) · afde54833fdbaac2 · report
mapRange james-oldfield/PandA/utils.py official repository unverified Apache-2.0 (permissive) · de4a9b04038c13d9 · report
one_hot_from_int james-oldfield/PandA/networks/biggan/utils.py official repository unverified Apache-2.0 (permissive) · 2baf0e56dad23fd6 · report
truncated_noise_sample james-oldfield/PandA/networks/biggan/utils.py official repository unverified Apache-2.0 (permissive) · 02045c1b6525805b · report

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