Papers › Rewriting Geometric Rules of a GAN

Rewriting Geometric Rules of a GAN

28 Jul 2022arXiv:2207.14288archive 2025-07-28

Sheng-Yu Wang, David Bau, Jun-Yan Zhu

Deep generative models make visual content creation more accessible to novice users by automating the synthesis of diverse, realistic content based on a collected dataset. However, the current machine learning approaches miss a key element of the creative process -- the ability to synthesize things that go far beyond the data distribution and everyday experience. To begin to address this issue, we enable a user to "warp" a given model by editing just a handful of original model outputs with desired geometric changes. Our method applies a low-rank update to a single model layer to reconstruct edited examples. Furthermore, to combat overfitting, we propose a latent space augmentation method based on style-mixing. Our method allows a user to create a model that synthesizes endless objects with defined geometric changes, enabling the creation of a new generative model without the burden of curating a large-scale dataset. We also demonstrate that edited models can be composed to achieve aggregated effects, and we present an interactive interface to enable users to create new models through composition. Empirical measurements on multiple test cases suggest the advantage of our method against recent GAN fine-tuning methods. Finally, we showcase several applications using the edited models, including latent space interpolation and image editing.

PaperPDFCodeCode Syntology ran

In Syntology View this paper on Syntology: its repositories, every harvested function with whether it ran, its licence and the call to fetch it.

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="2207.14288")

Code

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

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

peterwang512/ganwarping 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

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

9ran
5unverified

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 peterwang512/ganwarping. “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.

double_threshold_hysteresis peterwang512/ganwarping/evaluation/chamfer_evaluator.py official repository ran fingerprinted MIT (permissive) · 3c4d5221760e1639 · report
edge_predict peterwang512/ganwarping/evaluation/chamfer_evaluator.py official repository ran MIT (permissive) · a863abfc6030da1b · report
fspecial_gauss peterwang512/ganwarping/lib/quality_assess.py official repository ran MIT (permissive) · 4b1b60cde93137bd · report
get_transform peterwang512/ganwarping/datasets/base_dataset.py official repository ran MIT (permissive) · 1a099aed69e16116 · report
mls_affine_deformation_1pt peterwang512/ganwarping/lib/mls.py official repository ran MIT (permissive) · e2b9823fa3580f26 · report
mls_similarity_deformation peterwang512/ganwarping/lib/mls.py official repository ran MIT (permissive) · 8c4d44d0f576b44b · report
mse peterwang512/ganwarping/lib/quality_assess.py official repository ran MIT (permissive) · f96cfe5e20ab9852 · report
non_maximum_suppression peterwang512/ganwarping/evaluation/chamfer_evaluator.py official repository ran fingerprinted MIT (permissive) · f377d184b49df220 · report
psnr peterwang512/ganwarping/lib/quality_assess.py official repository ran MIT (permissive) · af4bf9f37117d224 · report
ganspace_edit peterwang512/ganwarping/ganspace_edit.py official repository unverified MIT (permissive) · 3d1c086af5cfb609 · report
generate peterwang512/ganwarping/sample.py official repository unverified MIT (permissive) · c0d08a481f4674ea · report
get_params peterwang512/ganwarping/datasets/base_dataset.py official repository unverified MIT (permissive) · d80e86b2b7fb857b · report
load_model peterwang512/ganwarping/ganspace_edit.py official repository unverified MIT (permissive) · 39a9a2e448bc9caf · report
mls_affine_deformation peterwang512/ganwarping/lib/mls.py official repository unverified MIT (permissive) · bd54d6319eb06e4f · report

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

Test

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