SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 1711.05139 · 2017

XGAN: Unsupervised Image-to-Image Translation for Many-to-Many Mappings

arXiv · PDF · Open in the Atlas

Code that ran

6 of 11 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, 1 violated it and 0 have no contract verdict; 5 failures of our instrument; 5 no recorded run), measured 2026-11-24; 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/1711.05139.json · badge: /api/ran/1711.05139.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
Leinadh/avatar-image-generator community (classifier label)
classifier basis not recorded on the link
3 ran · 3 no recorded run
Gintasp/xgan community (classifier label)
classifier basis not recorded on the link
3 ran · 2 no recorded run
FunctionStatusWhere it lives
calc_eval_stats Ran
ran; our contract draft was wrong, not the code
Leinadh/avatar-image-generator/losses/utils_loss.py
code served (permissive licence) · get_code("3142cb631c9bb64b")
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 tuple. The image it ran in was not recorded. 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 numpy as np

# Create a small sample activation matrix
# Shape: (2, 4) - 2 samples, 4 dimensions
act = np.array([
    [1.0, 2.0, 3.0, 4.0],
    [5.0, 6.0, 7.0, 8.0]
], dtype=np.float32)

ARGS = {
    "act": act
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple — a tuple output has no array shape of its own; none is stated
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
calc_fid Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
Leinadh/avatar-image-generator/losses/utils_loss.py
code served (permissive licence) · get_code("05eed543ef6ce6e8")
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 float64, ndim 0, dtype family float; no output shape is stated. The image it ran in was not recorded. 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 numpy as np
from scipy import linalg

np.random.seed(0)

# Create small Gaussian statistics for FID calculation
# Using dimension 4 for feature space
feature_dim = 4

# Create mean vectors (1D arrays)
mu1 = np.random.randn(feature_dim).astype(np.float32)
mu2 = np.random.randn(feature_dim).astype(np.float32)

# Create covariance matrices (positive semi-definite)
# Generate via random matrix multiplication to ensure PSD
A1 = np.random.randn(feature_dim, feature_dim).astype(np.float32)
sigma1 = (A1 @ A1.T) + np.eye(feature_dim) * 0.1

A2 = np.random.randn(feature_dim, feature_dim).astype(np.float32)
sigma2 = (A2 @ A2.T) + np.eye(feature_dim) * 0.1

# Default eps parameter
eps = 1e-06

ARGS = {
    "mu1": mu1,
    "sigma1": sigma1,
    "mu2": mu2,
    "sigma2": sigma2,
    "eps": eps,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, scipy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type float64, ndim 0, dtype family float — no output shape is stated: observe_signature.py recorded float ndim 0, which disagrees with the fixture run
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
generate_scatter Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
Leinadh/avatar-image-generator/evaluation/utils_tsne.py
code served (permissive licence) · get_code("3b646c000dea726d")
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 tuple, ndim 1, dtype family float; no output shape is stated. The image it ran in was not recorded. 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 os
import matplotlib
matplotlib.use('Agg')
import matplotlib.pyplot as plt
import seaborn as sns
import numpy as np
import pandas as pd
import tempfile

# Create temporary directory for outputs
temp_dir = tempfile.mkdtemp()

# Create small tsne_results array (2 samples, 2D coordinates)
tsne_results = np.array([
    [1.5, 2.3],
    [3.1, 0.9]
], dtype=np.float32)

# Create dataframe with feature vector info
df_feature_vector_info = pd.DataFrame({
    'name': ['sample_A', 'sample_B']
})

# Define arguments
ARGS = {
    'tsne_results': tsne_results,
    'df_feature_vector_info': df_feature_vector_info,
    'save_image': True,
    'output_dir': temp_dir,
    'save_wandb': False,
    'plot_title': 'Test_tSNE_Scatter'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
PIL, matplotlib, numpy, pandas, seaborn, wandb — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple, ndim 1, dtype family float — a tuple output has no array shape of its own; none is stated
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
grad_reverse Ran
ran; our contract draft was wrong, not the code
Gintasp/xgan/models/cdann.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from henryyu23/das, is pointer only (licence: NONE) · get_code("7d2aba87eb205634")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (Apache-2.0), but get_code serves the stored copy, first harvested from henryyu23/das, and GitHub detected no licence in that repository when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

gradient_penalty Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
Gintasp/xgan/models/cdann.py
code served (permissive licence) · get_code("65b0abd517636e51")
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 0, dtype family float, shape () 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

torch.manual_seed(0)

# The function expects a gradient tensor
# It will:
# 1. View it as (batch_size, -1)
# 2. Call .norm(2, dim=1) on it
# 3. Perform arithmetic operations and .mean()

# Create a small gradient tensor: batch_size=2, flattened_dim=4
# This will be viewed as (2, 4) and norm computed along dim 1
gradient = torch.randn(2, 4, requires_grad=True)

ARGS = {
    "gradient": gradient
}
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 0, dtype family float, shape () — shape () 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
is_file_allowed Ran
ran, violated the contract we drafted
Gintasp/xgan/api.py
code served (permissive licence) · get_code("c6b0acc06c6547fc")
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 bool, ndim 0, dtype family float, shape () 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

ARGS = {
    'filename': 'image.jpg'
}
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 bool, ndim 0, dtype family float, shape () — shape () 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
calc_jaccard_index Not yet run
unverified (harvested, no recorded run)
Leinadh/avatar-image-generator/evaluation/tsne_analysis_baseline/tsne_evaluation_utils/metric.py
code served (permissive licence) · get_code("7bfbf9efb5152dc3")
How it ran

no invocation recorded.

calc_rmse Not yet run
unverified (harvested, no recorded run)
Leinadh/avatar-image-generator/evaluation/tsne_analysis_baseline/tsne_evaluation_utils/metric.py
code served (permissive licence) · get_code("47cdd51b2464098b")
How it ran

no invocation recorded.

face_to_cartoon Not yet run
unverified (harvested, no recorded run)
Gintasp/xgan/api.py
code served (permissive licence) · get_code("e8979936a8178bb3")
How it ran

no invocation recorded.

generate_images Not yet run
unverified (harvested, no recorded run)
Leinadh/avatar-image-generator/evaluation/tsne_analysis_baseline/tsne_evaluation_utils/grid.py
code served (permissive licence) · get_code("f0bfbc2c8bc398bb")
How it ran

no invocation recorded.

get_gradient Not yet run
unverified (harvested, no recorded run)
Gintasp/xgan/models/cdann.py
code served (permissive licence) · get_code("1b003bd652d7598d")
How it ran

no invocation recorded.

Also present in other papers' code

Of 11 samples lifted from this paper's linked repositories, 11 carry a function identity and 0 do not. Of the 11 distinct functions with an identity, 1 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 1 later) and 10 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
grad_reverse 9 other papers
9 later
1802.06901 (2018-02)
Deterministic Non-Autoregressive Neural Sequence Modeling by Iterative Refinement
1812.10352 (2018-12)
Learning Not to Learn: Training Deep Neural Networks with Biased Data
1906.09444 (2019-06)
Retrieving Sequential Information for Non-Autoregressive Neural Machine Translation
and 6 more not named here

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

Repositories linked to this paper

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

Abstract

Style transfer usually refers to the task of applying color and texture information from a specific style image to a given content image while preserving the structure of the latter. Here we tackle the more generic problem of semantic style transfer: given two unpaired collections of images, we aim to learn a mapping between the corpus-level style of each collection, while preserving semantic content shared across the two domains. We introduce XGAN ("Cross-GAN"), a dual adversarial autoencoder, which captures a shared representation of the common domain semantic content in an unsupervised way, while jointly learning the domain-to-domain image translations in both directions. We exploit ideas from the domain adaptation literature and define a semantic consistency loss which encourages the model to preserve semantics in the learned embedding space. We report promising qualitative results for the task of face-to-cartoon translation. The cartoon dataset, CartoonSet, we collected for this purpose is publicly available at google.github.io/cartoonset/ as a new benchmark for semantic style transfer.

For agents

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

get_harvested_code_for_paper("1711.05139")
get_code_for_paper("1711.05139")
have("1711.05139")

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

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

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

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

Connect an agent — have() is free.