SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 1912.04958 · 2019

Analyzing and Improving the Image Quality of StyleGAN

Tero Karras, Miika Aittala, Nvidia Samuli, Laine Nvidia, Nvidia Janne, Hellsten Nvidia

arXiv · PDF · Open in the Atlas

Code that ran

68 of 92 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; 6 honoured the contract we drafted, 6 violated it and 32 have no contract verdict; 24 failures of our instrument; 24 no recorded run), measured 2026-11-23; 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/1912.04958.json · badge: /api/ran/1912.04958.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
Uemuet/-gan canonical (classifier label)
classifier basis: classifier_2025
0 ran · 1 no recorded run
DaVran369/face canonical (classifier label)
classifier basis: classifier_2025
0 ran · 1 no recorded run
NVlabs/stylegan2 canonical (classifier label)
classifier basis: classifier_2025
0 ran · 1 no recorded run
alekseynp/stylegan2-pytorch community (classifier label)
classifier basis not recorded on the link
10 ran · 1 no recorded run
tomguluson92/StyleGAN2_PyTorch community (classifier label)
classifier basis not recorded on the link
7 ran · 2 no recorded run
christophmeyer/stylegan2-tf2 community (classifier label)
classifier basis not recorded on the link
7 ran · 2 no recorded run
EmptySamurai/pytorch-reconet community (classifier label)
classifier basis not recorded on the link
6 ran · 0 no recorded run
simplerick/stylegan2_pytorch community (classifier label)
classifier basis not recorded on the link
5 ran · 1 no recorded run
Di-Is/stylegan2-ada-pytorch community (classifier label)
classifier basis: plan_row
5 ran · 0 no recorded run
claim-berlin/3d_stylegan_circle_of_willis extension (classifier label)
classifier basis: classifier_2025
3 ran · 1 no recorded run
lucidrains/stylegan2-pytorch community (classifier label)
classifier basis not recorded on the link
3 ran · 0 no recorded run
Bakikii/stylegan2-pytorch23 reimplementation (classifier label)
classifier basis: classifier_2025
3 ran · 0 no recorded run
rosinality/stylegan2-pytorch reimplementation (classifier label)
classifier basis: classifier_2025
3 ran · 0 no recorded run
mbbrodie/stylegan2 reimplementation (classifier label)
classifier basis: classifier_2025
3 ran · 0 no recorded run
manicman1999/StyleGAN2-Tensorflow-2.0 community (classifier label)
classifier basis not recorded on the link
3 ran · 0 no recorded run
phymhan/stylegan2-pytorch extension (classifier label)
classifier basis: classifier_2025
2 ran · 0 no recorded run
kerryvernebegeman/Kerry-Verne-Begeman community (classifier label)
classifier basis not recorded on the link
2 ran · 0 no recorded run
tjwei/stylegan2_workshop community (classifier label)
classifier basis not recorded on the link
1 ran · 7 no recorded run
nekitmm/StyleGan2 community (classifier label)
classifier basis not recorded on the link
1 ran · 1 no recorded run
mhuse/StyleGAN2LatentspaceInterpolation extension (classifier label)
classifier basis: classifier_2025
1 ran · 1 no recorded run
spacegoing/stylegan2 extension (classifier label)
classifier basis: classifier_2025
1 ran · 1 no recorded run
cwvisuals/FleshDigressions extension (classifier label)
classifier basis: classifier_2025
1 ran · 0 no recorded run
JCBrouwer/maua-stylegan2 extension (classifier label)
classifier basis: classifier_2025
1 ran · 0 no recorded run
Ajasra/TattooStyleGAN2 reimplementation (classifier label)
classifier basis: classifier_2025
0 ran · 1 no recorded run
xx88xx/stylegan2ky reimplementation (classifier label)
classifier basis: classifier_2025
0 ran · 1 no recorded run
FunctionStatusWhere it lives
D_logistic Ran
ran on a synthesized input
simplerick/stylegan2_pytorch/loss.py
code served (permissive licence) · get_code("8bacd060ce9aa706")
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
import torch.nn.functional as F

torch.manual_seed(0)

# Create small tensors for real and fake logits
# These are outputs from a discriminator, typically shape (batch_size,)
real_logits = torch.randn(2, 1)
fake_logits = torch.randn(2, 1)

ARGS = {
    "real_logits": real_logits,
    "fake_logits": fake_logits,
}
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
D_logistic_r1 Ran
ran on a synthesized input
tomguluson92/StyleGAN2_PyTorch/loss/loss.py
code served (permissive licence) · get_code("3afef538049c0b44")
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 1, dtype family float, shape (2,) 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 torch.nn as nn
from torch.autograd import Variable, grad

torch.manual_seed(0)

# Build a minimal discriminator that takes an image and outputs logits
class MinimalDiscriminator(nn.Module):
    def __init__(self):
        super().__init__()
        # Simple network: conv layer to reduce spatial dims, then linear
        self.conv = nn.Conv2d(3, 8, kernel_size=3, padding=1)
        self.pool = nn.AdaptiveAvgPool2d((1, 1))
        self.fc = nn.Linear(8, 1)
    
    def forward(self, x):
        # x shape: (batch, 3, height, width)
        x = self.conv(x)
        x = self.pool(x)
        x = x.view(x.size(0), -1)
        x = self.fc(x)
        return x

# Create a minimal discriminator
D = MinimalDiscriminator()

# Create a small real image batch: (batch_size=2, channels=3, height=4, width=4)
real_img = torch.randn(2, 3, 4, 4, requires_grad=False)

ARGS = {
    'real_img': real_img,
    'D': D,
    'gamma': 10.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 Tensor, ndim 1, dtype family float, shape (2,) — shape (2,) 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
D_logistic_r2 Ran
ran on a synthesized input
tomguluson92/StyleGAN2_PyTorch/loss/loss.py
code served (permissive licence) · get_code("b8884c80b0981815")
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, 2) 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 torch.nn as nn
import torch.nn.functional as F
from torch.autograd import Variable, grad

torch.manual_seed(0)

# Build a minimal discriminator that takes an image and outputs a score
class MinimalDiscriminator(nn.Module):
    def __init__(self):
        super().__init__()
        self.conv1 = nn.Conv2d(3, 8, kernel_size=3, padding=1)
        self.fc = nn.Linear(8 * 4 * 4, 1)
    
    def forward(self, x):
        # x shape: (batch, 3, 4, 4)
        x = F.relu(self.conv1(x))
        # x shape: (batch, 8, 4, 4)
        x = x.view(x.size(0), -1)
        # x shape: (batch, 128)
        x = self.fc(x)
        # x shape: (batch, 1)
        return x

# Create fake and real images
# Shape: (batch_size=2, channels=3, height=4, width=4)
fake_img = torch.randn(2, 3, 4, 4)
real_img = torch.randn(2, 3, 4, 4)

# Create discriminator
D = MinimalDiscriminator()

# Create arguments dict
ARGS = {
    "fake_img": fake_img,
    "real_img": real_img,
    "D": D,
    "gamma": 10.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 Tensor, ndim 2, dtype family float, shape (2, 2) — shape (2, 2) 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
DiffAugment Ran
ran; our contract draft was wrong, not the code
Di-Is/stylegan2-ada-pytorch/stylegan2_pytorch/diff_augment.py
code served (permissive licence) · get_code("737fe4ff1cef5f47")
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 4, dtype family float, shape (2, 3, 4, 5) 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)

# Create a small input tensor: (batch_size=2, channels=3, height=4, width=5)
x = torch.randn(2, 3, 4, 5, dtype=torch.float32)

# Define arguments for DiffAugment
ARGS = {
    'x': x,
    'types': ['color', 'translation', 'cutout']
}
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 4, dtype family float, shape (2, 3, 4, 5) — shape (2, 3, 4, 5) 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
DiffAugment Ran
ran; our contract draft was wrong, not the code
lucidrains/stylegan2-pytorch/stylegan2_pytorch/diff_augment.py
code served (permissive licence) · get_code("688410c911dd9bc7")
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 4, dtype family float, shape (2, 3, 4, 5) 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 random

torch.manual_seed(0)
random.seed(0)

# Create a small batch of image tensors
# Shape: (batch_size, channels, height, width) = (2, 3, 4, 5)
x = torch.randn(2, 3, 4, 5, dtype=torch.float32)

# Define types of augmentations to apply
# Testing with a few different augmentation types
types = ['brightness', 'contrast', 'cutout', 'translation']

ARGS = {
    'x': x,
    'types': types
}
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 4, dtype family float, shape (2, 3, 4, 5) — shape (2, 3, 4, 5) 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
G_logistic_ns Ran
ran on a synthesized input
simplerick/stylegan2_pytorch/loss.py
code served (permissive licence) · get_code("3ad4567c3a15de09")
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
import torch.nn.functional as F

torch.manual_seed(0)

# The function G_logistic_ns takes fake_logits as input
# It applies F.logsigmoid to it and takes the mean
# So fake_logits should be a tensor

fake_logits = torch.randn(2, 4)

ARGS = {
    "fake_logits": fake_logits,
}
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
G_map Ran
ran on a synthesized input
nekitmm/StyleGan2/stylegan2.py
code served (permissive licence) · get_code("f11bcd77ae7e45cd")
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 Functional. 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 tensorflow as tf
import tensorflow.keras as K
import tensorflow.keras.layers as L

ARGS = {
    'ndims': 4,
    'nlayers': 3
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
tensorflow — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Functional — a Functional output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Functional output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not 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
all_gather Ran
ran on a synthesized input
alekseynp/stylegan2-pytorch/distributed.py
code served (permissive licence) · get_code("ed03ba54397adbe4")
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 list, ndim 1, dtype family float; no output shape is stated. The image it ran in was not recorded. The code mentions cuda, and the harness aliases cuda to the CPU for every sample; whether this run needed that is 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 torch
import pickle

torch.manual_seed(0)

# The function all_gather takes one parameter: data
# It should be something that can be pickled and unpickled
# We'll use a simple dictionary containing a tensor and some other data

data = {
    'tensor': torch.randn(2, 4),
    'value': 42,
    'string': 'test'
}

ARGS = {
    'data': data
}
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 list, ndim 1, dtype family float — a list 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
calc_fid Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
alekseynp/stylegan2-pytorch/fid.py
pointer only (licence: MIT); the stored copy get_code serves, from seasonSH/LiftedGAN, is pointer only (licence: NONE) · get_code("e6c1de4697e7ed81")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from seasonSH/LiftedGAN, 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.

cast_list Ran
ran, violated the contract we drafted
Bakikii/stylegan2-pytorch23/stylegan2_pytorch/stylegan2_pytorch.py
pointer only (licence: GPL-3.0) · get_code("cbe94318d8c3dd02")
How it ran

The body of this sample is withheld: GPL-3.0, as GitHub detects it on this paper's repository, Bakikii/stylegan2-pytorch23, is not in the permissive set Syntology serves inline. 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.

circular_interpolation Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
cwvisuals/FleshDigressions/aydao_flesh_digressions.py
pointer only (licence: NOASSERTION) · get_code("b80de22ba51da829")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, cwvisuals/FleshDigressions (NOASSERTION). 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.

combine_contexts Ran
ran; our contract draft was wrong, not the code
Di-Is/stylegan2-ada-pytorch/stylegan2_pytorch/stylegan2_pytorch.py
pointer only (licence: MIT); the stored copy get_code serves, from idsia/fpainter, is pointer only (licence: NOASSERTION) · get_code("85f67e8fb251251f")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from idsia/fpainter, and GitHub could not classify the licence of that repository (NOASSERTION). 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.

compute_prd Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
claim-berlin/3d_stylegan_circle_of_willis/MedicalNet/evaluation.py
pointer only (licence: NOASSERTION) · get_code("b83c9dfb41ea1c2a")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, claim-berlin/3d_stylegan_circle_of_willis (NOASSERTION). 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.

convert_conv Ran
ran; our contract draft was wrong, not the code
rosinality/stylegan2-pytorch/convert_weight.py
code served (permissive licence) · get_code("7fe245a7216ae67b")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Sonnet 4.5, prompt python_fixture_v1) and returned dict. 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 torch
import numpy as np

torch.manual_seed(0)

# Create a stand-in class for vars that mimics TensorFlow variable behavior
class MockTFVariable:
    def __init__(self, numpy_array):
        self._value = numpy_array
    
    def value(self):
        return self
    
    def eval(self):
        return self._value

class MockVarsDict:
    def __init__(self):
        self.data = {}
    
    def __getitem__(self, key):
        return self.data[key]
    
    def __setitem__(self, key, value):
        self.data[key] = value

# Create mock vars dictionary
vars_dict = MockVarsDict()

# Create weight tensor with shape (H, W, C_in, C_out) for TensorFlow convention
# Using distinct dimensions: height=3, width=5, in_channels=2, out_channels=4
weight_np = np.random.randn(3, 5, 2, 4).astype(np.float32)
vars_dict['conv_layer/weight'] = MockTFVariable(weight_np)

# Create bias tensor with shape (C_out,)
bias_np = np.random.randn(4).astype(np.float32)
vars_dict['conv_layer/bias'] = MockTFVariable(bias_np)

ARGS = {
    'vars': vars_dict,
    'source_name': 'conv_layer',
    'target_name': 'model.conv',
    'bias': True,
    'start': 0
}
Setup block drafted by
a language model, Claude Sonnet 4.5, prompt python_fixture_v1
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not 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
convert_modconv Ran
ran; our contract draft was wrong, not the code
rosinality/stylegan2-pytorch/convert_weight.py
code served (permissive licence) · get_code("1c7cd5abc48bcf75")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Sonnet 4.5, prompt python_fixture_v1) and returned dict. 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 torch
import numpy as np

torch.manual_seed(0)

# Create a stand-in class that mimics TensorFlow variable behavior
class TFVariable:
    def __init__(self, data):
        self.data = data
    
    def value(self):
        return self
    
    def eval(self):
        return self.data

# Create mock variables dictionary with the required keys
# The function expects TensorFlow-style variables with .value().eval() chain

# weight shape: (H, W, in_channels, out_channels) in TensorFlow format
weight_data = np.random.randn(3, 3, 5, 7).astype(np.float32)

# mod_weight shape: (in_features, out_features) in TensorFlow format
mod_weight_data = np.random.randn(6, 5).astype(np.float32)

# mod_bias shape: (out_features,)
mod_bias_data = np.random.randn(5).astype(np.float32)

# noise_strength: scalar
noise_data = np.array(0.5, dtype=np.float32)

# bias shape: (out_channels,)
bias_data = np.random.randn(7).astype(np.float32)

vars_dict = {
    'source_layer/weight': TFVariable(weight_data),
    'source_layer/mod_weight': TFVariable(mod_weight_data),
    'source_layer/mod_bias': TFVariable(mod_bias_data),
    'source_layer/noise_strength': TFVariable(noise_data),
    'source_layer/bias': TFVariable(bias_data)
}

ARGS = {
    'vars': vars_dict,
    'source_name': 'source_layer',
    'target_name': 'target_layer',
    'flip': True
}
Setup block drafted by
a language model, Claude Sonnet 4.5, prompt python_fixture_v1
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not 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
convert_torgb Ran
ran; our contract draft was wrong, not the code
rosinality/stylegan2-pytorch/convert_weight.py
code served (permissive licence) · get_code("96b279b9ef818d94")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Sonnet 4.5, prompt python_fixture_v1) and returned dict. 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 torch
import numpy as np

torch.manual_seed(0)

class MockTensorValue:
    def __init__(self, array):
        self.array = array
    
    def value(self):
        return self
    
    def eval(self):
        return self.array

# Create mock variables dictionary
# The function expects vars to have keys like 'source_name/weight', 'source_name/mod_weight', etc.
# Each value should have .value().eval() methods that return numpy arrays

# Define shapes based on typical StyleGAN ToRGB layer:
# - weight: (H, W, in_channels, out_channels) = (1, 1, 5, 3) for RGB output
# - mod_weight: (in_channels, style_dim) = (5, 7)
# - mod_bias: (in_channels,) = (5,)
# - bias: (out_channels,) = (3,) for RGB

weight_array = np.random.randn(1, 1, 5, 3).astype(np.float32)
mod_weight_array = np.random.randn(5, 7).astype(np.float32)
mod_bias_array = np.random.randn(5).astype(np.float32)
bias_array = np.random.randn(3).astype(np.float32)

vars_dict = {
    'my_source/weight': MockTensorValue(weight_array),
    'my_source/mod_weight': MockTensorValue(mod_weight_array),
    'my_source/mod_bias': MockTensorValue(mod_bias_array),
    'my_source/bias': MockTensorValue(bias_array)
}

source_name = 'my_source'
target_name = 'my_target'

ARGS = {
    'vars': vars_dict,
    'source_name': source_name,
    'target_name': target_name
}
Setup block drafted by
a language model, Claude Sonnet 4.5, prompt python_fixture_v1
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not 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
crop_to_rectangular Ran
ran on a synthesized input
christophmeyer/stylegan2-tf2/preprocessing/dataset.py
code served (permissive licence) · get_code("842b4512e2f900b8")
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 ndarray, ndim 3, dtype family float, shape (4, 4, 3) 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 numpy as np

# Test case 1: 3D image (HxWxC) where W > H
image_3d_wide = np.random.rand(4, 6, 3).astype(np.float32)

# Test case 2: 2D image (HxW) where H > W
image_2d_tall = np.random.rand(7, 5).astype(np.float32)

# Test case 3: Square image
image_square = np.random.rand(5, 5, 3).astype(np.float32)

ARGS = {
    "image": image_3d_wide
}
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 ndarray, ndim 3, dtype family float, shape (4, 4, 3) — shape (4, 4, 3) 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
d_logistic_loss Ran
ran; our contract draft was wrong, not the code
phymhan/stylegan2-pytorch/train_aegan.py
code served (permissive licence) · get_code("3651db4e5ae8d189")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Sonnet 4.5, prompt python_fixture_v1) 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)

# Create predictions from discriminator for real and fake samples
# These are typically logits (unbounded real values)
# Shape: (batch_size,) or (batch_size, 1) - using (batch_size,) for simplicity
real_pred = torch.randn(2)  # batch size 2
fake_pred = torch.randn(2)  # batch size 2

ARGS = {
    'real_pred': real_pred,
    'fake_pred': fake_pred
}
Setup block drafted by
a language model, Claude Sonnet 4.5, prompt python_fixture_v1
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
data_sampler Ran
ran; our contract draft was wrong, not the code
phymhan/stylegan2-pytorch/train_aegan.py
code served (permissive licence) · get_code("dbb756dcd778f52f")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Sonnet 4.5, prompt python_fixture_v1) and returned RandomSampler. 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 torch
from torch.utils import data

torch.manual_seed(0)

# Create a simple dataset
class SimpleDataset(data.Dataset):
    def __init__(self, size=10):
        self.size = size
        self.data = torch.randn(size, 4)
        self.labels = torch.randint(0, 2, (size,))
    
    def __len__(self):
        return self.size
    
    def __getitem__(self, idx):
        return self.data[idx], self.labels[idx]

dataset = SimpleDataset(size=10)
shuffle = True
distributed = False

ARGS = {
    'dataset': dataset,
    'shuffle': shuffle,
    'distributed': distributed
}
Setup block drafted by
a language model, Claude Sonnet 4.5, prompt python_fixture_v1
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type RandomSampler — a RandomSampler output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a RandomSampler output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not 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
default Ran
ran, violated the contract we drafted
claim-berlin/3d_stylegan_circle_of_willis/stylegan2_pytorch.py
pointer only (licence: NOASSERTION) · get_code("feab88ece44cfb43")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, claim-berlin/3d_stylegan_circle_of_willis (NOASSERTION). 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.

default Ran
ran, violated the contract we drafted
Bakikii/stylegan2-pytorch23/stylegan2_pytorch/stylegan2_pytorch.py
pointer only (licence: GPL-3.0) · get_code("d4a98e207f6dc8d9")
How it ran

The body of this sample is withheld: GPL-3.0, as GitHub detects it on this paper's repository, Bakikii/stylegan2-pytorch23, is not in the permissive set Syntology serves inline. 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.

disc_logistic_loss_r1 Ran
ran on a synthesized input
christophmeyer/stylegan2-tf2/model/training.py
code served (permissive licence) · get_code("0b6b64ce27b6f5d8")
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 EagerTensor, 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 tensorflow as tf
import numpy as np

class Config:
    def __init__(self, gamma=10.0):
        self.gamma = gamma

# Create small fake and real scores
batch_size = 2
fake_scores = tf.constant(np.random.randn(batch_size).astype(np.float32))
real_scores = tf.constant(np.random.randn(batch_size).astype(np.float32))

# Create discriminator real score gradients with shape [batch, height, width, channels]
# This matches the reduction axes [1, 2, 3] used in the function
disc_real_score_gradients = tf.constant(np.random.randn(2, 4, 3, 5).astype(np.float32))

# Create config with gamma parameter
cfg = Config(gamma=10.0)

ARGS = {
    "fake_scores": fake_scores,
    "real_scores": real_scores,
    "cfg": cfg,
    "disc_real_score_gradients": disc_real_score_gradients
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, tensorflow — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type EagerTensor, 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
exists Ran
ran, violated the contract we drafted
Di-Is/stylegan2-ada-pytorch/stylegan2_pytorch/stylegan2_pytorch.py
pointer only (licence: MIT); the stored copy get_code serves, from ThomasMrY/VCT, is pointer only (licence: NONE) · get_code("aa5486a3650902d8")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from ThomasMrY/VCT, 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.

extract_features Ran
ran on a synthesized input
alekseynp/stylegan2-pytorch/calc_inception.py
code served (permissive licence) · get_code("826a4bfd8b5cb2fc")
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 (6, 8) 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 torch.nn as nn

torch.manual_seed(0)

# Create a minimal inception model that returns a tuple with a tensor
class MiniInception(nn.Module):
    def __init__(self):
        super().__init__()
        # Simple conv layer to process input
        self.conv = nn.Conv2d(3, 8, kernel_size=3, padding=1)
        self.pool = nn.AdaptiveAvgPool2d((1, 1))
    
    def forward(self, x):
        # x shape: (batch, 3, H, W)
        x = self.conv(x)  # (batch, 8, H, W)
        x = self.pool(x)  # (batch, 8, 1, 1)
        # Return as tuple with first element being the feature tensor
        return (x,)

# Create a data loader - list of batches (just image tensors)
# The function iterates over loader and treats each item as img
batch_size = 2
num_batches = 3
image_height = 4
image_width = 4
num_channels = 3

loader = [
    torch.randn(batch_size, num_channels, image_height, image_width)
    for _ in range(num_batches)
]

# Create the inception model
inception = MiniInception()

# Set device to CPU
device = 'cpu'

ARGS = {
    'loader': loader,
    'inception': inception,
    'device': device
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch, tqdm — 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 (6, 8) — shape (6, 8) 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
fraction Ran
ran on a synthesized input
EmptySamurai/pytorch-reconet/ffmpeg_tools.py
code served (permissive licence) · get_code("3a70fcd4a1ef51b5")
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 float, 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 = {
    's': '3/4'
}
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 float, 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
gen_logistic_non_sat_loss Ran
ran on a synthesized input
christophmeyer/stylegan2-tf2/model/training.py
code served (permissive licence) · get_code("86c7a1518eea5484")
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 EagerTensor, 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 tensorflow as tf
import numpy as np

# Set seed for reproducibility
tf.random.set_seed(0)
np.random.seed(0)

# Create a small tensor of fake scores
# Shape: (2,) - batch size 2, single score per sample
fake_scores = tf.constant([0.5, -0.3], dtype=tf.float32)

ARGS = {
    "fake_scores": fake_scores
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, tensorflow — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type EagerTensor, 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
generate_zs_from_seeds Ran
ran; our contract draft was wrong, not the code
mhuse/StyleGAN2LatentspaceInterpolation/run_generator.py
pointer only (licence: NOASSERTION) · get_code("93402ab39ef7bf7f")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, mhuse/StyleGAN2LatentspaceInterpolation (NOASSERTION). 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.

get_lr Ran
ran, honoured the contract we drafted
mbbrodie/stylegan2/projector.py
code served (permissive licence) · get_code("ea6c82ed6a138df9")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Sonnet 4.5, prompt python_fixture_v1) and returned float, 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 math

# The function get_lr takes:
# - t: a float representing the current time/progress (typically between 0 and 1)
# - initial_lr: a float representing the initial learning rate
# - rampdown: a float representing the rampdown fraction (default 0.25)
# - rampup: a float representing the rampup fraction (default 0.05)

ARGS = {
    't': 0.3,
    'initial_lr': 0.001,
    'rampdown': 0.25,
    'rampup': 0.05
}
Setup block drafted by
a language model, Claude Sonnet 4.5, prompt python_fixture_v1
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type float, 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
get_module_from_obj_name Ran
ran on a synthesized input
tomguluson92/StyleGAN2_PyTorch/utils/utils.py
code served (permissive licence) · get_code("854f44ea3c707948")
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 re
import importlib
import sys
import types
from typing import Any, List, Tuple, Union

# Test case 1: A valid object name that can be resolved
obj_name_1 = "numpy.ndarray"

# Test case 2: Another valid object name
obj_name_2 = "torch.nn.Module"

# Test case 3: An object name with multiple levels
obj_name_3 = "collections.defaultdict"

# We'll use the first one as the primary test case
ARGS = {
    "obj_name": "numpy.ndarray"
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — 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
get_noise_range Ran
ran; our contract draft was wrong, not the code
JCBrouwer/maua-stylegan2/generate_audiovisual.py
pointer only (licence: NONE) · get_code("f7c472870e1621ff")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, JCBrouwer/maua-stylegan2 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.

get_obj_from_module Ran
ran on a synthesized input
tomguluson92/StyleGAN2_PyTorch/utils/utils.py
code served (permissive licence) · get_code("8d54fc5b205e0566")
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 int, ndim 0, dtype family int, 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 types
import sys

# Create a simple module with some nested attributes
class DummySubModule:
    def __init__(self):
        self.value = 42

class DummyModule:
    def __init__(self):
        self.submodule = DummySubModule()
        self.direct_attr = "hello"

# Create an actual types.ModuleType instance
dummy_module = types.ModuleType('dummy_module')
dummy_module.submodule = DummySubModule()
dummy_module.direct_attr = "hello"

ARGS = {
    'module': dummy_module,
    'obj_name': 'submodule.value'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type int, ndim 0, dtype family int, 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
get_template_from_path Ran
ran on a synthesized input
tjwei/stylegan2_workshop/dnnlib/submission/submit.py
code served (permissive licence) · get_code("1f61e80b10011e25")
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 str. 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 torch

ARGS = {
    "path": "C:\\Users\\Documents\\file.txt"
}
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 str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not 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
grid Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
simplerick/stylegan2_pytorch/misc.py
code served (permissive licence) · get_code("fa6245afd0bd3943")
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 ndarray, ndim 3, dtype family float, shape (8, 12, 1) 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 numpy as np

# Create a small batch of images with shape (n_batch, height, width, channels)
# Using distinct sizes: batch=2, height=4, width=3, channels=1
array = np.random.rand(2, 4, 3, 1).astype(np.float32)

ARGS = {
    "array": array,
    "ncols": 8
}
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 ndarray, ndim 3, dtype family float, shape (8, 12, 1) — shape (8, 12, 1) 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
grouped_conv2d Ran
ran on a synthesized input
christophmeyer/stylegan2-tf2/model/layers.py
code served (permissive licence) · get_code("3009b511634a89fb")
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 EagerTensor, ndim 4, dtype family float, shape (2, 4, 4, 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 tensorflow as tf
import numpy as np

# Set random seed for reproducibility
tf.random.set_seed(0)

# Create small test tensors
# inputs shape: (batch, height, width, channels) for NHWC format
# or (batch, channels, height, width) for NCHW format
# We'll use NHWC format (data_format='NHWC')
batch_size = 2
height = 4
width = 4
input_channels = 8
num_groups = 2
filters_per_group = 2

# inputs: (batch=2, height=4, width=4, channels=8)
inputs = tf.random.normal((batch_size, height, width, input_channels), dtype=tf.float32)

# filters shape: (kernel_height, kernel_width, input_channels_per_group, output_channels)
# For grouped conv: input_channels_per_group = input_channels / num_groups
# filters: (3, 3, 4, 4) - kernel 3x3, 4 input channels per group, 4 output channels total
kernel_h = 3
kernel_w = 3
input_channels_per_group = input_channels // num_groups
output_channels = 4

filters = tf.random.normal(
    (kernel_h, kernel_w, input_channels_per_group, output_channels), 
    dtype=tf.float32
)

data_format = 'NHWC'

ARGS = {
    'inputs': inputs,
    'filters': filters,
    'data_format': data_format
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, tensorflow — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type EagerTensor, ndim 4, dtype family float, shape (2, 4, 4, 4) — shape (2, 4, 4, 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
is_empty Ran
ran, violated the contract we drafted
Bakikii/stylegan2-pytorch23/stylegan2_pytorch/stylegan2_pytorch.py
pointer only (licence: GPL-3.0) · get_code("78d64d6c6d3e642a")
How it ran

The body of this sample is withheld: GPL-3.0, as GitHub detects it on this paper's repository, Bakikii/stylegan2-pytorch23, is not in the permissive set Syntology serves inline. 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.

is_square Ran
ran on a synthesized input
kerryvernebegeman/Kerry-Verne-Begeman/train_resnet.py
code served (permissive licence) · get_code("a691acff20d5a466")
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 math

def is_square(n):
    return n == int(math.sqrt(n) + 0.5) ** 2

ARGS = {
    "n": 16
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — 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
latent_noise Ran
ran; our contract draft was wrong, not the code
mbbrodie/stylegan2/projector.py
code served (permissive licence) · get_code("a73e1d557a70850c")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Sonnet 4.5, prompt python_fixture_v1) 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

torch.manual_seed(0)

latent = torch.randn(2, 4)
strength = 0.5

ARGS = {
    'latent': latent,
    'strength': strength
}
Setup block drafted by
a language model, Claude Sonnet 4.5, prompt python_fixture_v1
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, 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
linear_interpolate Ran
ran; our contract draft was wrong, not the code
spacegoing/stylegan2/animate.py
pointer only (licence: NOASSERTION) · get_code("98e99278bbc2d9fc")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, spacegoing/stylegan2 (NOASSERTION). 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.

load_pallete Ran
ran on a synthesized input
tomguluson92/StyleGAN2_PyTorch/torchvision_sunner/transforms/categorical.py
code served (permissive licence) · get_code("1feff8453d5e0cc4")
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 list, 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 json
import tempfile
import os
from collections import OrderedDict

# Create a temporary JSON file with palette data
temp_dir = tempfile.mkdtemp()
palette_file = os.path.join(temp_dir, "palette.json")

# Create sample palette data with string keys (tuples represented as "r_g_b")
palette_data = [
    {
        "255_0_0": "red",
        "0_255_0": "green",
        "0_0_255": "blue"
    },
    {
        "128_128_128": "gray",
        "255_255_255": "white",
        "0_0_0": "black"
    }
]

with open(palette_file, 'w') as f:
    json.dump(palette_data, f)

ARGS = {
    "file_name": palette_file
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list, ndim 1, dtype family float — a list 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
magnitude_squared Ran
ran on a synthesized input
EmptySamurai/pytorch-reconet/utils.py
code served (permissive licence) · get_code("3e85674588130c34")
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 1, dtype family float, shape (2,) 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 torch.nn as nn

torch.manual_seed(0)

# The function takes x and calls x.pow(2).sum(-1)
# This requires x to be a tensor with at least 1 dimension
# Let's create a small tensor with shape (2, 4) - batch size 2, dimension 4

x = torch.randn(2, 4)

ARGS = {
    "x": x
}
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 1, dtype family float, shape (2,) — shape (2,) 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
make_kernel Ran
ran, violated the contract we drafted
alekseynp/stylegan2-pytorch/model.py
pointer only (licence: MIT); the stored copy get_code serves, from dkn16/multi-fidel-gan-21cm, is pointer only (licence: NOASSERTION) · get_code("6f65e378a4313f87")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from dkn16/multi-fidel-gan-21cm, and GitHub could not classify the licence of that repository (NOASSERTION). 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.

mixedList Ran
ran, honoured the contract we drafted
manicman1999/StyleGAN2-Tensorflow-2.0/stylegan_two.py
code served (permissive licence) · get_code("beb915a3206ef2b0")
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 list, ndim 3, 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.

from math import floor, log2
import numpy as np
from random import random

im_size = 64
latent_size = 512
n_layers = int(log2(im_size) - 1)

def noise(n):
    return np.random.normal(0.0, 1.0, size=[n, latent_size]).astype('float32')

def mixedList(n):
    tt = int(random() * n_layers)
    p1 = [noise(n)] * tt
    p2 = [noise(n)] * (n_layers - tt)
    return p1 + [] + p2

ARGS = {
    'n': 2
}
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 list, ndim 3, dtype family float — a list 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
nhwc_to_nchw Ran
ran on a synthesized input
EmptySamurai/pytorch-reconet/utils.py
code served (permissive licence) · get_code("bb4f3ee04b54c9cd")
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 4, dtype family float, shape (2, 5, 4, 3) 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 nhwc_to_nchw expects a tensor with shape (N, H, W, C)
# and permutes it to (N, C, H, W)
# We'll create a small tensor with distinct dimensions for clarity

x = torch.randn(2, 4, 3, 5)  # (batch=2, height=4, width=3, channels=5)

ARGS = {
    "x": x
}
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 4, dtype family float, shape (2, 5, 4, 3) — shape (2, 5, 4, 3) 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
noise Ran
ran, honoured the contract we drafted
manicman1999/StyleGAN2-Tensorflow-2.0/stylegan_two.py
code served (permissive licence) · get_code("8af2f60798b76e8c")
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) and returned ndarray, ndim 2, dtype family float, shape (2, 512) 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 numpy as np

latent_size = 512

def noise(n):
    return np.random.normal(0.0, 1.0, size=[n, latent_size]).astype('float32')

ARGS = {
    'n': 2
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 2, dtype family float, shape (2, 512) — shape (2, 512) 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
noiseList Ran
ran, honoured the contract we drafted
manicman1999/StyleGAN2-Tensorflow-2.0/stylegan_two.py
code served (permissive licence) · get_code("44a45d3c0dd7f84f")
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 list, ndim 3, 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 math import floor, log2

im_size = 64
latent_size = 512
n_layers = int(log2(im_size) - 1)

def noise(n):
    return np.random.normal(0.0, 1.0, size=[n, latent_size]).astype('float32')

def noiseList(n):
    return [noise(n)] * n_layers

ARGS = {
    'n': 2
}
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 list, ndim 3, dtype family float — a list 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
noise_regularize Ran
ran, honoured the contract we drafted
mbbrodie/stylegan2/projector.py
code served (permissive licence) · get_code("d4a7743c226cbee2")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Sonnet 4.5, prompt python_fixture_v1) 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 list of noise tensors
# Each noise tensor should have shape [batch, channels, height, width]
# The function accesses noise.shape[2] which is the height dimension
# It also uses dims=2 and dims=3 for rolling (height and width)
# The function reshapes noise assuming size is divisible by 2 repeatedly until size <= 8
# Let's use a size that can be divided by 2 a few times, e.g., 16

noise1 = torch.randn(1, 1, 16, 16)
noise2 = torch.randn(1, 1, 32, 32)

noises = [noise1, noise2]

ARGS = {
    'noises': noises
}
Setup block drafted by
a language model, Claude Sonnet 4.5, prompt python_fixture_v1
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
num_feature_maps_builder Ran
ran on a synthesized input
christophmeyer/stylegan2-tf2/model/utils.py
code served (permissive licence) · get_code("071ebfa6782a24ce")
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. 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

ARGS = {
    'feature_maps_base': 256,
    'feature_maps_decay': 0.5,
    'feature_maps_min': 16,
    'feature_maps_max': 512,
}
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 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 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
prepare_mnist_images Ran
ran on a synthesized input
christophmeyer/stylegan2-tf2/preprocessing/dataset.py
code served (permissive licence) · get_code("e84a59c738a25e4f")
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 os
import numpy as np
import tempfile
import struct

# Create a temporary directory with mock MNIST files
temp_dir = tempfile.mkdtemp()

# Create mock train-images-idx3-ubyte file
# MNIST format: magic number (4 bytes) + num images (4 bytes) + num rows (4 bytes) + num cols (4 bytes) + pixel data
num_images = 10
num_rows = 28
num_cols = 28

images_path = os.path.join(temp_dir, 'train-images-idx3-ubyte')
with open(images_path, 'wb') as f:
    f.write(struct.pack('>I', 2051))  # magic number
    f.write(struct.pack('>I', num_images))  # number of images
    f.write(struct.pack('>I', num_rows))  # number of rows
    f.write(struct.pack('>I', num_cols))  # number of columns
    # Write pixel data (10 images of 28x28)
    pixel_data = np.random.randint(0, 256, num_images * num_rows * num_cols, dtype=np.uint8)
    f.write(pixel_data.tobytes())

# Create mock train-labels-idx1-ubyte file
# MNIST format: magic number (4 bytes) + num labels (4 bytes) + label data
labels_path = os.path.join(temp_dir, 'train-labels-idx1-ubyte')
with open(labels_path, 'wb') as f:
    f.write(struct.pack('>I', 2049))  # magic number
    f.write(struct.pack('>I', num_images))  # number of labels
    # Write label data (10 random labels from 0-9)
    label_data = np.random.randint(0, 10, num_images, dtype=np.uint8)
    f.write(label_data.tobytes())

ARGS = {
    'mnist_dir': temp_dir
}
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
rand_brightness Ran
ran; our contract draft was wrong, not the code
Di-Is/stylegan2-ada-pytorch/stylegan2_pytorch/diff_augment.py
pointer only (licence: MIT); the stored copy get_code serves, from postech-cvlab/pytorch-studiogan, is pointer only (licence: NOASSERTION) · get_code("011230b2b9b8fb6f")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from postech-cvlab/pytorch-studiogan, and GitHub could not classify the licence of that repository (NOASSERTION). 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.

rand_brightness Ran
ran on a synthesized input
lucidrains/stylegan2-pytorch/stylegan2_pytorch/diff_augment.py
code served (permissive licence) · get_code("8d3c9a8fec68ec10")
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 4, dtype family float, shape (2, 3, 4, 5) 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)

# Create a small image tensor: batch_size=2, channels=3, height=4, width=5
x = torch.randn(2, 3, 4, 5, dtype=torch.float32)

# scale parameter controls the brightness adjustment range
scale = 0.3

ARGS = {
    "x": x,
    "scale": scale,
}
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 4, dtype family float, shape (2, 3, 4, 5) — shape (2, 3, 4, 5) 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
rand_saturation Ran
ran; our contract draft was wrong, not the code
Di-Is/stylegan2-ada-pytorch/stylegan2_pytorch/diff_augment.py
pointer only (licence: MIT); the stored copy get_code serves, from postech-cvlab/pytorch-studiogan, is pointer only (licence: NOASSERTION) · get_code("5b0d8787e670fc63")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from postech-cvlab/pytorch-studiogan, and GitHub could not classify the licence of that repository (NOASSERTION). 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.

rand_saturation Ran
ran on a synthesized input
lucidrains/stylegan2-pytorch/stylegan2_pytorch/diff_augment.py
code served (permissive licence) · get_code("31f2e654bb2eb0a1")
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 4, dtype family float, shape (2, 4, 3, 5) 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)

# x: a 4D tensor (batch, channels, height, width)
# The function calls:
# - x.mean(dim=1, keepdim=True)
# - x.size(0)
# - x.dtype
# - x.device
# So we need a proper 4D tensor

x = torch.randn(2, 4, 3, 5)  # batch=2, channels=4, height=3, width=5

# scale: a numeric value used to scale the saturation adjustment
scale = 0.5

ARGS = {
    "x": x,
    "scale": scale,
}
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 4, dtype family float, shape (2, 4, 3, 5) — shape (2, 4, 3, 5) 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
readContain Ran
ran on a synthesized input
tomguluson92/StyleGAN2_PyTorch/torchvision_sunner/read.py
code served (permissive licence) · get_code("13cb2d0d9cc08f48")
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 list, 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 tempfile
import shutil

# Create a temporary directory with test files
temp_dir = tempfile.mkdtemp()

# Add some jpg files to make jpg the most common type
for i in range(3):
    open(os.path.join(temp_dir, f'image_{i}.jpg'), 'w').close()

# Add a png file
open(os.path.join(temp_dir, 'image.png'), 'w').close()

ARGS = {
    'folder_name': temp_dir
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list, ndim 1, dtype family float — a list 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
readFlow Ran
ran on a synthesized input
EmptySamurai/pytorch-reconet/IO.py
code served (permissive licence) · get_code("1fe64d4f2b0f6e34")
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 ndarray, ndim 3, dtype family float, shape (3, 4, 2) 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 tempfile
import os
import numpy as np
import struct

# Create a temporary PFM file for testing
def create_test_pfm_file():
    fd, path = tempfile.mkstemp(suffix='.pfm')
    try:
        with os.fdopen(fd, 'wb') as f:
            # Write PF header (color image)
            f.write(b'PF\n')
            # Write dimensions
            f.write(b'4 3\n')
            # Write scale (positive for big-endian)
            f.write(b'1.0\n')
            # Write dummy data: 4x3 RGB image
            data = np.random.randn(3, 4, 3).astype('>f')
            data.tofile(f)
        return path
    except:
        os.close(fd)
        raise

# Create a temporary flow file for testing
def create_test_flow_file():
    fd, path = tempfile.mkstemp(suffix='.flo')
    try:
        with os.fdopen(fd, 'wb') as f:
            # Write PIEH header
            f.write(b'PIEH')
            # Write width and height
            width, height = 4, 3
            f.write(np.int32(width).tobytes())
            f.write(np.int32(height).tobytes())
            # Write flow data: 3x4x2 flow field
            flow_data = np.random.randn(height, width, 2).astype(np.float32)
            flow_data.tofile(f)
        return path
    except:
        os.close(fd)
        raise

# Create test files
pfm_file = create_test_pfm_file()
flo_file = create_test_flow_file()

ARGS = {
    'name': flo_file
}
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 ndarray, ndim 3, dtype family float, shape (3, 4, 2) — shape (3, 4, 2) 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
readItem Ran
ran on a synthesized input
tomguluson92/StyleGAN2_PyTorch/torchvision_sunner/read.py
code served (permissive licence) · get_code("948b0cb2873fdc0c")
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 ndarray, ndim 3, dtype family int, shape (5, 4, 3) 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 tempfile
import os
from PIL import Image
import numpy as np

# Create a temporary directory and a test image file
temp_dir = tempfile.mkdtemp()

# Create a test PNG image (3-channel RGB)
test_image_rgb = Image.new('RGB', (4, 5), color=(100, 150, 200))
rgb_path = os.path.join(temp_dir, 'test_rgb.png')
test_image_rgb.save(rgb_path)

ARGS = {
    'item_name': rgb_path
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
PIL, numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 3, dtype family int, shape (5, 4, 3) — shape (5, 4, 3) 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
readPFM Ran
ran on a synthesized input
EmptySamurai/pytorch-reconet/IO.py
code served (permissive licence) · get_code("0564ba38597daf7c")
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 re
import numpy as np
import tempfile
import os

# Create a temporary PFM file for testing
def create_test_pfm_file():
    # Create a simple PFM file (color image, 2x3 pixels)
    temp_file = tempfile.NamedTemporaryFile(mode='wb', suffix='.pfm', delete=False)
    
    # Write header
    temp_file.write(b'PF\n')  # Color format
    temp_file.write(b'2 3\n')  # width=2, height=3
    temp_file.write(b'1.0\n')  # scale=1.0, positive means big-endian
    
    # Write image data (2x3x3 = 18 floats in big-endian)
    # Create dummy data
    data = np.ones((3, 2, 3), dtype='>f')  # height, width, channels in big-endian
    data.tofile(temp_file)
    
    temp_file.close()
    return temp_file.name

pfm_file_path = create_test_pfm_file()

ARGS = {
    'file': pfm_file_path
}
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
reduce_loss_dict Ran
ran on a synthesized input
alekseynp/stylegan2-pytorch/distributed.py
code served (permissive licence) · get_code("5144ad456049f8ce")
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 dict. 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 torch
from torch import distributed as dist

torch.manual_seed(0)

# Create a sample loss_dict with tensor values
# The function iterates over keys, stacks values, and performs distributed operations
loss_dict = {
    'loss_classifier': torch.tensor(0.5),
    'loss_box_reg': torch.tensor(0.3),
    'loss_objectness': torch.tensor(0.2),
}

ARGS = {
    'loss_dict': loss_dict,
}
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 dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not 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
reduce_sum Ran
ran, honoured the contract we drafted
alekseynp/stylegan2-pytorch/distributed.py
code served (permissive licence) · get_code("3f0a1105ef251d78")
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 torch.nn as nn
from torch import distributed as dist

torch.manual_seed(0)

# The function takes a single parameter: tensor
# It calls .clone() on it and passes it to dist.all_reduce()
# So we need a torch.Tensor

tensor = torch.randn(2, 4)

ARGS = {
    "tensor": tensor
}
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, 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
runtime_coef Ran
ran on a synthesized input
christophmeyer/stylegan2-tf2/model/layers.py
code served (permissive licence) · get_code("b1c1b03d103b2827")
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

# Analyze the function:
# - shape: used with np.prod(shape[:-1]) and indexing, so needs to be array-like
# - gain: numeric value used in division
# - lr_multiplier: numeric value used in multiplication

# Create distinct dimensions for probing
shape = (4, 3, 2, 5)  # Multi-dimensional shape
gain = 2.0
lr_multiplier = 0.01

ARGS = {
    "shape": shape,
    "gain": gain,
    "lr_multiplier": lr_multiplier
}
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 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
score_2afc_dataset Ran
ran; our contract draft was wrong, not the code
alekseynp/stylegan2-pytorch/lpips/dist_model.py
code served (permissive licence) · get_code("514dd3c0eee3691c")
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 torch
import numpy as np

torch.manual_seed(0)

# Create a minimal distance function that takes two tensors and returns distances
def distance_func(tensor1, tensor2):
    """Compute L2 distance between two tensors and return as torch tensor"""
    # tensor1, tensor2 shape: Nx3xXxY
    # Flatten and compute L2 distance
    batch_size = tensor1.shape[0]
    diff = (tensor1 - tensor2).reshape(batch_size, -1)
    distances = torch.norm(diff, dim=1, keepdim=True)
    return distances

# Create a minimal data loader class with load_data method
class CustomDatasetDataLoader:
    def __init__(self, data_list):
        self.data_list = data_list
    
    def load_data(self):
        return iter(self.data_list)

# Create sample data batches
# Each batch contains 'ref', 'p0', 'p1', and 'judge' keys
batch_size = 2
height = 4
width = 5

data_batches = []
for _ in range(2):  # 2 batches
    batch = {
        'ref': torch.randn(batch_size, 3, height, width),
        'p0': torch.randn(batch_size, 3, height, width),
        'p1': torch.randn(batch_size, 3, height, width),
        'judge': torch.tensor([0.3, 0.7])  # Human preference scores in [0, 1]
    }
    data_batches.append(batch)

data_loader = CustomDatasetDataLoader(data_batches)

ARGS = {
    'data_loader': data_loader,
    'func': distance_func,
    'name': 'test_2afc'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch, tqdm — 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

Showing the first 60. An agent gets every one from get_harvested_code_for_paper("1912.04958").

Also present in other papers' code

Of 92 samples lifted from this paper's linked repositories, 92 carry a function identity and 0 do not. Of the 90 distinct functions with an identity, 44 are also present in other papers whose code we hold (18 with at least one paper dated earlier, 1 the same month, 34 later) and 46 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
exists 486 other papers
10 dated earlier, 1 the same month, 473 later, 2 undated · 78 only as an assembly brick
1603.08155 (2016-03)
Perceptual Losses for Real-Time Style Transfer and Super-Resolution
1611.07004 (2016-11)
Image-to-Image Translation with Conditional Adversarial Networks
1804.04637 (2018-04)
EMBER: An Open Dataset for Training Static PE Malware Machine Learning Models
and 483 more not named here
make_kernel 40 other papers
1 dated earlier, 39 later · 10 only as an assembly brick
1812.04948 (2018-12)
A Style-Based Generator Architecture for Generative Adversarial Networks
2007.06600 (2020-07)
Closed-Form Factorization of Latent Semantics in GANs
2007.15646 (2020-07)
Rewriting a Deep Generative Model
and 37 more not named here
spatial_average 19 other papers
1 dated earlier, 18 later
1801.03924 (2018-01)
The Unreasonable Effectiveness of Deep Features as a Perceptual Metric
2002.09219 (2020-02)
Stochastic Latent Residual Video Prediction
2005.05999 (2020-05)
Fast Deep Multi-patch Hierarchical Network for Nonhomogeneous Image Dehazing
and 16 more not named here
rand_brightness 17 other papers
17 later
2006.10738 (2020-06)
Differentiable Augmentation for Data-Efficient GAN Training
2007.15646 (2020-07)
Rewriting a Deep Generative Model
2104.03310 (2021-04)
Regularizing Generative Adversarial Networks under Limited Data
and 14 more not named here
rand_saturation 16 other papers
16 later
2006.10738 (2020-06)
Differentiable Augmentation for Data-Efficient GAN Training
2007.15646 (2020-07)
Rewriting a Deep Generative Model
2104.03310 (2021-04)
Regularizing Generative Adversarial Networks under Limited Data
and 13 more not named here
score_2afc_dataset 15 other papers
15 later
2002.09219 (2020-02)
Stochastic Latent Residual Video Prediction
2005.00953 (2020-05)
Deep Generative Adversarial Residual Convolutional Networks for Real-World Super-Resolution
2005.05999 (2020-05)
Fast Deep Multi-patch Hierarchical Network for Nonhomogeneous Image Dehazing
and 12 more not named here
reduce_sum 14 other papers
1 dated earlier, 13 later
1910.05852 (2019-10)
Implicit competitive regularization in GANs
2007.06600 (2020-07)
Closed-Form Factorization of Latent Semantics in GANs
2106.08017 (2021-06)
Color2Embed: Fast Exemplar-Based Image Colorization using Color Embeddings
and 11 more not named here
all_gather 13 other papers
1 dated earlier, 12 later
1910.05852 (2019-10)
Implicit competitive regularization in GANs
2007.06600 (2020-07)
Closed-Form Factorization of Latent Semantics in GANs
2106.08017 (2021-06)
Color2Embed: Fast Exemplar-Based Image Colorization using Color Embeddings
and 10 more not named here
data_sampler 13 other papers
13 later
2001.04296 (2020-01)
High-Fidelity Synthesis with Disentangled Representation
2008.00951 (2020-08)
Encoding in Style: a StyleGAN Encoder for Image-to-Image Translation
2106.11485 (2021-06)
Spatial-Temporal Super-Resolution of Satellite Imagery via Conditional Pixel Synthesis
and 10 more not named here
reduce_loss_dict 13 other papers
1 dated earlier, 12 later
1910.05852 (2019-10)
Implicit competitive regularization in GANs
2007.06600 (2020-07)
Closed-Form Factorization of Latent Semantics in GANs
2106.08017 (2021-06)
Color2Embed: Fast Exemplar-Based Image Colorization using Color Embeddings
and 10 more not named here
d_logistic_loss 12 other papers
1 dated earlier, 11 later
1910.05852 (2019-10)
Implicit competitive regularization in GANs
2001.04296 (2020-01)
High-Fidelity Synthesis with Disentangled Representation
2106.11485 (2021-06)
Spatial-Temporal Super-Resolution of Satellite Imagery via Conditional Pixel Synthesis
and 9 more not named here
upsample 10 other papers
10 later
2002.09219 (2020-02)
Stochastic Latent Residual Video Prediction
2005.05999 (2020-05)
Fast Deep Multi-patch Hierarchical Network for Nonhomogeneous Image Dehazing
2006.09461 (2020-06)
Robust Compressed Sensing using Generative Models
and 7 more not named here
get_lr 7 other papers
7 later
2101.06006 (2021-01)
The Geometry of Deep Generative Image Models and its Applications
2102.06108 (2021-02)
SWAGAN: A Style-based Wavelet-driven Generative Model
2105.14230 (2021-05)
Transforming the Latent Space of StyleGAN for Real Face Editing
and 4 more not named here
extract_features 6 other papers
6 later
2007.06600 (2020-07)
Closed-Form Factorization of Latent Semantics in GANs
2105.14230 (2021-05)
Transforming the Latent Space of StyleGAN for Real Face Editing
2106.12423 (2021-06)
Alias-Free Generative Adversarial Networks
and 3 more not named here
score_jnd_dataset 6 other papers
6 later
2002.09219 (2020-02)
Stochastic Latent Residual Video Prediction
2006.09461 (2020-06)
Robust Compressed Sensing using Generative Models
2007.06600 (2020-07)
Closed-Form Factorization of Latent Semantics in GANs
and 3 more not named here
calc_fid 5 other papers
5 later
2007.06600 (2020-07)
Closed-Form Factorization of Latent Semantics in GANs
2011.13126 (2020-11)
Lifting 2D StyleGAN for 3D-Aware Face Generation
2105.14230 (2021-05)
Transforming the Latent Space of StyleGAN for Real Face Editing
and 2 more not named here
combine_contexts 5 other papers
5 later
2102.07074 (2021-02)
TransGAN: Two Pure Transformers Can Make One Strong GAN, and That Can Scale Up
136830137 (2022 (year only))
Neural Scene Decoration from a Single Photograph
2210.06184 (2022-10)
Images as Weight Matrices: Sequential Image Generation Through Synaptic Learning Rules
and 2 more not named here
convert_conv 4 other papers
4 later
2007.06600 (2020-07)
Closed-Form Factorization of Latent Semantics in GANs
2106.12423 (2021-06)
Alias-Free Generative Adversarial Networks
2108.00946 (2021-08)
StyleGAN-NADA: CLIP-Guided Domain Adaptation of Image Generators
and 1 more not named here
convert_modconv 4 other papers
4 later
2007.06600 (2020-07)
Closed-Form Factorization of Latent Semantics in GANs
2106.12423 (2021-06)
Alias-Free Generative Adversarial Networks
2108.00946 (2021-08)
StyleGAN-NADA: CLIP-Guided Domain Adaptation of Image Generators
and 1 more not named here
convert_torgb 4 other papers
4 later
2007.06600 (2020-07)
Closed-Form Factorization of Latent Semantics in GANs
2106.12423 (2021-06)
Alias-Free Generative Adversarial Networks
2108.00946 (2021-08)
StyleGAN-NADA: CLIP-Guided Domain Adaptation of Image Generators
and 1 more not named here

Shown: the 20 functions present in the most other papers. 24 more shared functions are not listed 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-23.

Repositories linked to this paper

More are linked than shown here.

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

Abstract

The style-based GAN architecture (StyleGAN) yields state-of-the-art results in data-driven unconditional generative image modeling. We expose and analyze several of its characteristic artifacts, and propose changes in both model architecture and training methods to address them. In particular, we redesign the generator normalization, revisit progressive growing, and regularize the generator to encourage good conditioning in the mapping from latent codes to images. In addition to improving image quality, this path length regularizer yields the additional benefit that the generator becomes significantly easier to invert. This makes it possible to reliably attribute a generated image to a particular network. We furthermore visualize how well the generator utilizes its output resolution, and identify a capacity problem, motivating us to train larger models for additional quality improvements. Overall, our improved model redefines the state of the art in unconditional image modeling, both in terms of existing distribution quality metrics as well as perceived image quality.

For agents

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

get_harvested_code_for_paper("1912.04958")
get_code_for_paper("1912.04958")
have("1912.04958")

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

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

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

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

Connect an agent — have() is free.