SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2005.01703 · 2020

Transforming and Projecting Images into Class-conditional Generative Networks

arXiv · PDF · Open in the Atlas

Code that ran

3 of 10 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 0 violated it and 3 have no contract verdict; 0 failures of our instrument; 7 no recorded run), measured 2026-11-22; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2005.01703.json · badge: /api/ran/2005.01703.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
minyoungg/pix2latent canonical (classifier label)
classifier basis: census
3 ran · 7 no recorded run
FunctionStatusWhere it lives
l1_loss Ran
ran on a synthesized input
minyoungg/pix2latent/pix2latent/loss_functions.py
code served (permissive licence) · get_code("39175c94bd9a0052")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 2, dtype family float; no output shape is stated. It ran in syntology-harvest-sandbox:v5-deps (sha256:6a292aa1aed1) at 2026-09-27T00:55:27Z. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

# Create small tensors for out and target
# Using distinct shapes: out is (2, 4), target is (2, 3) to show they could differ
out = torch.randn(2, 4)
target = torch.randn(2, 4)

ARGS = {
    "out": out,
    "target": target,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 2, dtype family float — no output shape is stated: no later run recorded an output shape for this sample (observed_output and metamorphic_properties carry none; shape_contract and output_contract record ndim only)
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image syntology-harvest-sandbox:v5-deps (sha256:6a292aa1aed1); not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
l2_loss Ran
ran on a synthesized input
minyoungg/pix2latent/pix2latent/loss_functions.py
code served (permissive licence) · get_code("21522a921f8fca95")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 2, dtype family float, shape (2, 4) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import numpy as np

torch.manual_seed(0)

# The l2_loss function takes two parameters: out and target
# It computes (target - out) ** 2
# Both should be tensors that support subtraction and squaring
# We'll create small tensors with distinct shapes to allow probing

out = torch.randn(2, 4)
target = torch.randn(2, 4)

ARGS = {
    "out": out,
    "target": target,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 2, dtype family float, shape (2, 4) — shape (2, 4) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
normal Ran
ran on a synthesized input
minyoungg/pix2latent/pix2latent/distribution.py
code served (permissive licence) · get_code("acf89c8da2fe2d27")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned function. It ran in syntology-harvest-sandbox:v5-deps (sha256:6a292aa1aed1) at 2026-09-27T00:55:27Z. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

ARGS = {
    "sigma": 2.0
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type function — a function output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a function output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image syntology-harvest-sandbox:v5-deps (sha256:6a292aa1aed1); not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
biggan_components Not yet run
unverified (harvested, no recorded run)
minyoungg/pix2latent/pix2latent/edit/ganspace.py
code served (permissive licence) · get_code("f2384e7f825228b6")
How it ran

no invocation recorded.

get_parent_wnid Not yet run
unverified (harvested, no recorded run)
minyoungg/pix2latent/pix2latent/utils/imagenet_tools.py
code served (permissive licence) · get_code("9bf59f9ed8ed8ce9")
How it ran

no invocation recorded.

invertibility_loss Not yet run
unverified (harvested, no recorded run)
minyoungg/pix2latent/pix2latent/loss_functions.py
code served (permissive licence) · get_code("1fbe849c025411da")
How it ran

no invocation recorded.

query_subclass_by_name Not yet run
unverified (harvested, no recorded run)
minyoungg/pix2latent/pix2latent/utils/imagenet_tools.py
code served (permissive licence) · get_code("cdea1a80f0191468")
How it ran

no invocation recorded.

split_vars Not yet run
unverified (harvested, no recorded run)
minyoungg/pix2latent/pix2latent/variable_manager.py
code served (permissive licence) · get_code("00aea9ce5a18f142")
How it ran

no invocation recorded.

synset_to_wnid Not yet run
unverified (harvested, no recorded run)
minyoungg/pix2latent/pix2latent/utils/imagenet_tools.py
code served (permissive licence) · get_code("804c96254cedeea4")
How it ran

no invocation recorded.

truncated_clamp_normal Not yet run
unverified (harvested, no recorded run)
minyoungg/pix2latent/pix2latent/distribution.py
code served (permissive licence) · get_code("8fa48d1f1c0f625a")
How it ran

no invocation recorded.

Also present in other papers' code

Of 10 samples lifted from this paper's linked repositories, 10 carry a function identity and 0 do not. Of the 10 distinct functions with an identity, 3 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 3 later) and 7 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

FunctionAlso present inEarliest-datedOthers named
invertibility_loss 1 other paper
1 later
2207.02774 (2022-07)
Local Relighting of Real Scenes
l1_loss 1 other paper
1 later
2207.02774 (2022-07)
Local Relighting of Real Scenes
l2_loss 1 other paper
1 later
2207.02774 (2022-07)
Local Relighting of Real Scenes

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-22.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

We present a method for projecting an input image into the space of a class-conditional generative neural network. We propose a method that optimizes for transformation to counteract the model biases in generative neural networks. Specifically, we demonstrate that one can solve for image translation, scale, and global color transformation, during the projection optimization to address the object-center bias and color bias of a Generative Adversarial Network. This projection process poses a difficult optimization problem, and purely gradient-based optimizations fail to find good solutions. We describe a hybrid optimization strategy that finds good projections by estimating transformations and class parameters. We show the effectiveness of our method on real images and further demonstrate how the corresponding projections lead to better editability of these images.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2005.01703")
get_code_for_paper("2005.01703")
have("2005.01703")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2005.01703.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2005.01703.svg)](https://syntology.ai/paper/2005.01703)

Connect an agent — have() is free.