SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 1710.10916 · 2017

StackGAN++: Realistic Image Synthesis with Stacked Generative Adversarial Networks

arXiv · PDF · Open in the Atlas

Code that ran

22 of 31 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; 1 honoured the contract we drafted, 1 violated it and 5 have no contract verdict; 15 failures of our instrument; 9 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/1710.10916.json · badge: /api/ran/1710.10916.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
hanzhanggit/StackGAN canonical (classifier label)
classifier basis: census
4 ran · 5 no recorded run
hanzhanggit/StackGAN-v2 canonical (classifier label)
classifier basis not recorded on the link
2 ran · 0 no recorded run
akanimax/T2F community (classifier label)
classifier basis not recorded on the link
9 ran · 2 no recorded run
rightlit/StackGAN-v2-rev community (classifier label)
classifier basis: plan_row
5 ran · 0 no recorded run
hanzhanggit/StackGAN-Pytorch community (classifier label)
classifier basis not recorded on the link
2 ran · 2 no recorded run
FunctionStatusWhere it lives
Block3x3_relu Ran
ran; our contract draft was wrong, not the code
rightlit/StackGAN-v2-rev/code/model.py
code served (permissive licence) · get_code("90b28e5e76aecfad")
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 Sequential. 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 torch.nn as nn
import torch.nn.functional as F

torch.manual_seed(0)

class GLU(nn.Module):
    def __init__(self):
        super(GLU, self).__init__()

    def forward(self, x):
        nc = x.size(1)
        assert nc % 2 == 0, 'channels dont divide 2!'
        nc = int(nc / 2)
        return x[:, :nc] * F.sigmoid(x[:, nc:])

def conv3x3(in_planes, out_planes):
    """3x3 convolution with padding"""
    return nn.Conv2d(in_planes, out_planes, kernel_size=3, stride=1, padding=1, bias=False)

def Block3x3_relu(in_planes, out_planes):
    block = nn.Sequential(conv3x3(in_planes, out_planes * 2), nn.BatchNorm2d(out_planes * 2), GLU())
    return block

ARGS = {
    'in_planes': 3,
    'out_planes': 5
}
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 Sequential — a Sequential output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Sequential output the recorded ndim 1 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
KL_loss Ran
ran; our contract draft was wrong, not the code
hanzhanggit/StackGAN-v2/code/trainer.py
code served (permissive licence) · get_code("f502ac0ccf050e23")
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 small tensors for mu and logvar
# mu: mean of latent distribution (batch_size=2, latent_dim=4)
# logvar: log variance of latent distribution (batch_size=2, latent_dim=4)
mu = torch.randn(2, 4)
logvar = torch.randn(2, 4)

ARGS = {
    'mu': mu,
    'logvar': logvar
}
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
KL_loss Ran
ran on a synthesized input
hanzhanggit/StackGAN/stageI/trainer.py
code served (permissive licence) · get_code("fd6883aef7fc0f6f")
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 small test tensors
batch_size = 2
dim = 4

# mu: mean of the latent distribution, shape (batch_size, dim)
mu = tf.constant(np.random.randn(batch_size, dim).astype(np.float32))

# log_sigma: log standard deviation, shape (batch_size, dim)
log_sigma = tf.constant(np.random.randn(batch_size, dim).astype(np.float32))

ARGS = {
    'mu': mu,
    'log_sigma': log_sigma,
}
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
basic_preprocess Ran
ran; our contract draft was wrong, not the code
akanimax/T2F/implementation/data_processing/TextExtractor.py
code served (permissive licence) · get_code("7e63b3aa4716eada")
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 re

def basic_preprocess(descriptions):
    """
    basic preprocessing on the input data
    :param descriptions: list[strings]
    :return: dat => list[lists[string]]
    """
    db_desc = []
    for desc in descriptions:
        punctuations = re.sub('([^a-zA-Z])', ' \\1 ', desc)
        excess_space = re.sub('\\s{2,}', ' ', punctuations)
        db_desc.append(excess_space)
    return db_desc

ARGS = {
    "descriptions": [
        "Hello, world! This is a test.",
        "Python123 is great@testing.",
        "Numbers 456 and symbols!!!",
        "Mixed-case_text with-dashes."
    ]
}
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
batcher Ran
ran, honoured the contract we drafted
akanimax/T2F/implementation/networks/InferSent/mutils.py
code served (permissive licence) · get_code("b7fe5da253d02512")
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 2, dtype family float, shape (2, 4) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import numpy as np

torch.manual_seed(0)

class MockInferSent:
    def encode(self, sentences, bsize=None, tokenize=False):
        # Return embeddings of shape (num_sentences, embedding_dim)
        num_sentences = len(sentences)
        embedding_dim = 4
        return np.random.randn(num_sentences, embedding_dim).astype(np.float32)

class MockParams:
    def __init__(self):
        self.infersent = MockInferSent()
        self.batch_size = 2

batch = [
    ['hello', 'world'],
    ['foo', 'bar', 'baz']
]

params = MockParams()

ARGS = {
    'batch': batch,
    'params': params
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, 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
compute_mean_covariance Ran
ran; our contract draft was wrong, not the code
rightlit/StackGAN-v2-rev/code/trainer.py
code served (permissive licence) · get_code("57bbdc333d2c0749")
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 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 torch

torch.manual_seed(0)

# Create a small image tensor with shape (batch_size, channels, height, width)
# Using distinct dimensions: batch=2, channels=3, height=4, width=5
img = torch.randn(2, 3, 4, 5)

ARGS = {
    'img': img
}
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 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
conv3x3 Ran
ran; our contract draft was wrong, not the code
hanzhanggit/StackGAN-Pytorch/code/model.py
pointer only (licence: MIT); the stored copy get_code serves, from lixiaotong97/DSU, is pointer only (licence: NONE) · get_code("fac5364e2f53c6db")
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 lixiaotong97/DSU, 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.

conv3x3 Ran
ran; our contract draft was wrong, not the code
rightlit/StackGAN-v2-rev/code/model.py
code served (permissive licence) · get_code("ea864de5c552bc4a")
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 Conv2d. 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 torch.nn as nn

torch.manual_seed(0)

ARGS = {
    "in_planes": 3,
    "out_planes": 64,
}
Setup block drafted by
a language model, Claude Haiku 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 Conv2d — a Conv2d output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Conv2d 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
copy_G_params Ran
ran; our contract draft was wrong, not the code
rightlit/StackGAN-v2-rev/code/trainer.py
code served (permissive licence) · get_code("2c55357aecd850cd")
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 list. 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 torch.nn as nn
from copy import deepcopy

torch.manual_seed(0)

class SimpleModel(nn.Module):
    def __init__(self):
        super().__init__()
        self.linear1 = nn.Linear(4, 3)
        self.linear2 = nn.Linear(3, 2)
    
    def forward(self, x):
        x = self.linear1(x)
        x = self.linear2(x)
        return x

model = SimpleModel()

ARGS = {
    'model': model
}
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 list — a list 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
custom_crop Ran
ran on a synthesized input
hanzhanggit/StackGAN/misc/utils.py
code served (permissive licence) · get_code("fc22db7fa7e0e135")
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 (100, 110, 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

# Create a small test image with shape (height, width, channels)
# Using shape (100, 120, 3) for a small RGB image
img = np.random.randint(0, 256, size=(100, 120, 3), dtype=np.uint8)

# Create a bounding box [x1, y1, x2, y2]
# Using reasonable values within the image dimensions
bbox = [30, 20, 80, 70]

ARGS = {
    "img": img,
    "bbox": bbox
}
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 int, shape (100, 110, 3) — shape (100, 110, 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
frequency_count Ran
ran; our contract draft was wrong, not the code
akanimax/T2F/implementation/data_processing/TextExtractor.py
code served (permissive licence) · get_code("3400d1263c6cbf9a")
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.

ARGS = {
    "text_data": [
        "hello world hello",
        "world python hello",
        "python is fun"
    ]
}
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 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
get_batch Ran
ran; our contract draft was wrong, not the code
akanimax/T2F/implementation/networks/InferSent/data.py
code served (permissive licence) · get_code("f790d98a3d6af4e5")
How it ran

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

import numpy as np
import torch

torch.manual_seed(0)

# Create a small word vector dictionary
# word_vec maps word indices to 300-dimensional embeddings
word_vec = {}
for i in range(10):
    word_vec[i] = np.random.randn(300).astype(np.float32)

# Create a batch: list of sequences, where each sequence is a list of word indices
batch = [
    [0, 1, 2],      # sequence 1: 3 words
    [3, 4]          # sequence 2: 2 words
]

ARGS = {
    "batch": batch,
    "word_vec": word_vec
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type 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
get_data_loader Ran
ran on a synthesized input
akanimax/T2F/implementation/data_processing/DataLoader.py
code served (permissive licence) · get_code("4c285e4ad37fd444")
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 DataLoader. 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.data import Dataset

torch.manual_seed(0)

class DummyF2TDataset(Dataset):
    """Minimal F2T-like dataset for testing"""
    def __init__(self, num_samples=4):
        self.num_samples = num_samples
    
    def __len__(self):
        return self.num_samples
    
    def __getitem__(self, idx):
        # Return a tuple of (input, target) as expected by DataLoader
        x = torch.randn(4)
        y = torch.randn(3)
        return (x, y)

dataset = DummyF2TDataset(num_samples=4)
batch_size = 2
num_workers = 0

ARGS = {
    "dataset": dataset,
    "batch_size": batch_size,
    "num_workers": num_workers
}
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 DataLoader — a DataLoader output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a DataLoader 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
get_glove Ran
ran; our contract draft was wrong, not the code
akanimax/T2F/implementation/networks/InferSent/data.py
code served (permissive licence) · get_code("f1c38d138242dab0")
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 numpy as np
import tempfile
import os

# Create a temporary GloVe-like file
temp_dir = tempfile.mkdtemp()
glove_path = os.path.join(temp_dir, "glove.txt")

# Write a small GloVe format file
with open(glove_path, 'w') as f:
    f.write("the 0.1 0.2 0.3 0.4\n")
    f.write("cat 0.5 0.6 0.7 0.8\n")
    f.write("dog 0.9 1.0 1.1 1.2\n")
    f.write("bird 1.3 1.4 1.5 1.6\n")

# Create a word_dict with some words (some matching glove file, some not)
word_dict = {
    "the": 0,
    "cat": 1,
    "dog": 2,
    "elephant": 3,  # This word is not in glove file
    "bird": 4
}

ARGS = {
    "word_dict": word_dict,
    "glove_path": glove_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 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
get_transform Ran
ran on a synthesized input
akanimax/T2F/implementation/data_processing/DataLoader.py
code served (permissive licence) · get_code("e36470391de100a1")
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 Compose. 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 torchvision.transforms import ToTensor, Normalize, Compose, Resize

torch.manual_seed(0)

# The function get_transform takes one optional parameter: new_size
# new_size should be either None or a tuple/int representing the size for Resize transform
# The function uses new_size to conditionally create a transform pipeline

# Test with new_size as a tuple (common for Resize)
new_size_value = (64, 64)

ARGS = {
    "new_size": new_size_value
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch, torchvision — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Compose — a Compose output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Compose 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
get_word_dict Ran
ran; our contract draft was wrong, not the code
akanimax/T2F/implementation/networks/InferSent/data.py
code served (permissive licence) · get_code("7ffb2861c51cbac6")
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
import numpy as np

torch.manual_seed(0)

# The function get_word_dict takes a list of sentences (strings)
# and builds a dictionary with each unique word as a key.
# It splits each sentence by whitespace and adds special tokens.

sentences = [
    "hello world this is a test",
    "another sentence with some words",
    "more test data here"
]

ARGS = {
    "sentences": sentences
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type 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
is_image_file Ran
ran, violated the contract we drafted
hanzhanggit/StackGAN-v2/code/datasets.py
pointer only (licence: MIT); the stored copy get_code serves, from sgoldyaev/DeepFashion.ADGAN, is pointer only (licence: NONE) · get_code("ab4109634b75ef8b")
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 sgoldyaev/DeepFashion.ADGAN, 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.

leaky_rectify Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
hanzhanggit/StackGAN/misc/custom_ops.py
pointer only (licence: MIT); the stored copy get_code serves, from openai/InfoGAN, is pointer only (licence: NONE) · get_code("0b71fdd2dc019d86")
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 openai/InfoGAN, 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.

load_filenames Ran
ran on a synthesized input
hanzhanggit/StackGAN/misc/preprocess_birds.py
code served (permissive licence) · get_code("7b80aa25807d666a")
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 pickle
import tempfile
import os

# Create a temporary directory and pickle file for testing
temp_dir = tempfile.mkdtemp()
data_dir = temp_dir + '/'

# Create sample filenames data
sample_filenames = ['image_001.jpg', 'image_002.jpg', 'image_003.jpg', 'image_004.jpg']

# Write the pickle file
filepath = os.path.join(data_dir, 'filenames.pickle')
with open(filepath, 'wb') as f:
    pickle.dump(sample_filenames, f)

ARGS = {
    'data_dir': data_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
read_annotations Ran
ran; our contract draft was wrong, not the code
akanimax/T2F/implementation/data_processing/TextExtractor.py
code served (permissive licence) · get_code("dbb904b43aad3c12")
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 2, 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

# Create a temporary JSON file with valid annotations
temp_dir = tempfile.mkdtemp()
json_file_path = os.path.join(temp_dir, "annotations.json")

# Create sample annotation data
annotations = [
    {
        "image": "image1.png",
        "descriptions": [
            {"text": "A cat sitting on a mat"},
            {"text": "The cat is orange"}
        ]
    },
    {
        "image": "image2.jpg",
        "descriptions": [
            {"text": "A dog playing in the park"}
        ]
    }
]

# Write annotations to the temporary JSON file
with open(json_file_path, 'w') as f:
    json.dump(annotations, f)

ARGS = {
    "file_path": json_file_path
}
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 2, 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
upBlock Ran
ran; our contract draft was wrong, not the code
rightlit/StackGAN-v2-rev/code/model.py
code served (permissive licence) · get_code("c96308e17ab1e7ae")
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 Sequential. 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 torch.nn as nn

torch.manual_seed(0)

# upBlock takes in_planes and out_planes as parameters
# It creates a sequential block with:
# 1. Upsample (scale_factor=2)
# 2. conv3x3 (in_planes -> out_planes * 2)
# 3. BatchNorm2d (out_planes * 2)
# 4. GLU (which divides channels by 2, so out_planes * 2 -> out_planes)

in_planes = 8
out_planes = 4

ARGS = {
    'in_planes': in_planes,
    'out_planes': out_planes
}
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 Sequential — a Sequential output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Sequential output the recorded ndim 1 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
upBlock Ran
ran; our contract draft was wrong, not the code
hanzhanggit/StackGAN-Pytorch/code/model.py
code served (permissive licence) · get_code("721bc7234edf9845")
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 Sequential. 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 torch.nn as nn

torch.manual_seed(0)

ARGS = {
    'in_planes': 3,
    'out_planes': 64,
}
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 Sequential — a Sequential output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Sequential output the recorded ndim 1 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
compute_discriminator_loss Not yet run
unverified (harvested, no recorded run)
hanzhanggit/StackGAN-Pytorch/code/miscc/utils.py
code served (permissive licence) · get_code("9183c2843448dcfe")
How it ran

no invocation recorded.

compute_generator_loss Not yet run
unverified (harvested, no recorded run)
hanzhanggit/StackGAN-Pytorch/code/miscc/utils.py
code served (permissive licence) · get_code("19689b24458da440")
How it ran

no invocation recorded.

drawCaption Not yet run
unverified (harvested, no recorded run)
hanzhanggit/StackGAN/demo/birds_skip_thought_demo.py
code served (permissive licence) · get_code("3e354ab43bfb020e")
How it ran

no invocation recorded.

get_config Not yet run
unverified (harvested, no recorded run)
akanimax/T2F/implementation/train_network.py
code served (permissive licence) · get_code("7b64c2c40ebe4e1d")
How it ran

no invocation recorded.

get_image Not yet run
unverified (harvested, no recorded run)
hanzhanggit/StackGAN/misc/utils.py
code served (permissive licence) · get_code("21bf8f7cea6decf5")
How it ran

no invocation recorded.

get_optimizer Not yet run
unverified (harvested, no recorded run)
akanimax/T2F/implementation/networks/InferSent/mutils.py
code served (permissive licence) · get_code("7cdd5e14c7072483")
How it ran

no invocation recorded.

load_bbox Not yet run
unverified (harvested, no recorded run)
hanzhanggit/StackGAN/misc/preprocess_birds.py
code served (permissive licence) · get_code("386604cfa74a3d76")
How it ran

no invocation recorded.

sample_encoded_context Not yet run
unverified (harvested, no recorded run)
hanzhanggit/StackGAN/demo/birds_skip_thought_demo.py
code served (permissive licence) · get_code("549299c4575752d8")
How it ran

no invocation recorded.

transform Not yet run
unverified (harvested, no recorded run)
hanzhanggit/StackGAN/misc/utils.py
code served (permissive licence) · get_code("b67362dfc6797565")
How it ran

no invocation recorded.

Also present in other papers' code

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

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

FunctionAlso present inEarliest-datedOthers named
conv3x3 686 other papers
26 dated earlier, 2 the same month, 658 later · 31 only as an assembly brick
1406.2661 (2014-06)
Generative Adversarial Networks
1409.0575 (2014-09)
ImageNet Large Scale Visual Recognition Challenge
1412.6572 (2014-12)
Explaining and Harnessing Adversarial Examples
and 683 more not named here
is_image_file 62 other papers
2 dated earlier, 60 later
1609.04802 (2016-09)
Photo-Realistic Single Image Super-Resolution Using a Generative Adversarial Network
1703.07511 (2017-03)
Deep Photo Style Transfer
1802.06474 (2018-02)
A Closed-form Solution to Photorealistic Image Stylization
and 59 more not named here
conv3x3 6 other papers
2 dated earlier, 4 later · 1 only as an assembly brick
1511.06434 (2015-11)
Unsupervised Representation Learning with Deep Convolutional Generative Adversarial Networks
1605.05396 (2016-05)
Generative Adversarial Text to Image Synthesis
1711.10485 (2017-11)
AttnGAN: Fine-Grained Text to Image Generation with Attentional Generative Adversarial Networks
and 3 more not named here
upBlock 6 other papers
2 dated earlier, 4 later
1511.06434 (2015-11)
Unsupervised Representation Learning with Deep Convolutional Generative Adversarial Networks
1605.05396 (2016-05)
Generative Adversarial Text to Image Synthesis
1711.10485 (2017-11)
AttnGAN: Fine-Grained Text to Image Generation with Attentional Generative Adversarial Networks
and 3 more not named here
get_data_loader 5 other papers
1 dated earlier, 1 the same month, 3 later
1511.06434 (2015-11)
Unsupervised Representation Learning with Deep Convolutional Generative Adversarial Networks
1710.10196 (2017-10)
Progressive Growing of GANs for Improved Quality, Stability, and Variation
1805.08318 (2018-05)
Self-Attention Generative Adversarial Networks
and 2 more not named here
get_transform 4 other papers
1 dated earlier, 1 the same month, 2 later
1511.06434 (2015-11)
Unsupervised Representation Learning with Deep Convolutional Generative Adversarial Networks
1710.10196 (2017-10)
Progressive Growing of GANs for Improved Quality, Stability, and Variation
1805.08318 (2018-05)
Self-Attention Generative Adversarial Networks
and 1 more not named here
upBlock 3 other papers
3 later
1910.13321 (2019-10)
Semantic Object Accuracy for Generative Text-to-Image Synthesis
2105.10026 (2021-05)
Improving Generation and Evaluation of Visual Stories via Semantic Consistency
2210.08465 (2022-10)
Character-Centric Story Visualization via Visual Planning and Token Alignment
KL_loss 2 other papers
1 dated earlier, 1 later
1612.03242 (2016-12)
StackGAN: Text to Photo-realistic Image Synthesis with Stacked Generative Adversarial Networks
2010.11631 (2020-10)
LaSAFT: Latent Source Attentive Frequency Transformation for Conditioned Source Separation
custom_crop 2 other papers
1 dated earlier, 1 later
1612.03242 (2016-12)
StackGAN: Text to Photo-realistic Image Synthesis with Stacked Generative Adversarial Networks
1811.03205 (2018-11)
Robustness of Conditional GANs to Noisy Labels
leaky_rectify 2 other papers
1 dated earlier, 1 later
1612.03242 (2016-12)
StackGAN: Text to Photo-realistic Image Synthesis with Stacked Generative Adversarial Networks
2406.19298 (2024-06)
Compositional Image Decomposition with Diffusion Models
transform 2 other papers
1 dated earlier, 1 later
1612.03242 (2016-12)
StackGAN: Text to Photo-realistic Image Synthesis with Stacked Generative Adversarial Networks
1811.03205 (2018-11)
Robustness of Conditional GANs to Noisy Labels
Block3x3_relu 1 other paper
1 dated earlier
1605.05396 (2016-05)
Generative Adversarial Text to Image Synthesis
KL_loss 1 other paper
1 dated earlier
1612.03242 (2016-12)
StackGAN: Text to Photo-realistic Image Synthesis with Stacked Generative Adversarial Networks
compute_mean_covariance 1 other paper
1 dated earlier
1612.03242 (2016-12)
StackGAN: Text to Photo-realistic Image Synthesis with Stacked Generative Adversarial Networks
copy_G_params 1 other paper
1 dated earlier
1612.03242 (2016-12)
StackGAN: Text to Photo-realistic Image Synthesis with Stacked Generative Adversarial Networks
drawCaption 1 other paper
1 dated earlier
1612.03242 (2016-12)
StackGAN: Text to Photo-realistic Image Synthesis with Stacked Generative Adversarial Networks
get_config 1 other paper
1 later
1805.08318 (2018-05)
Self-Attention Generative Adversarial Networks
get_image 1 other paper
1 dated earlier
1612.03242 (2016-12)
StackGAN: Text to Photo-realistic Image Synthesis with Stacked Generative Adversarial Networks
load_bbox 1 other paper
1 dated earlier
1612.03242 (2016-12)
StackGAN: Text to Photo-realistic Image Synthesis with Stacked Generative Adversarial Networks
load_filenames 1 other paper
1 dated earlier
1612.03242 (2016-12)
StackGAN: Text to Photo-realistic Image Synthesis with Stacked Generative Adversarial Networks

Shown: the 20 functions present in the most other papers. 1 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

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

Abstract

Although Generative Adversarial Networks (GANs) have shown remarkable success in various tasks, they still face challenges in generating high quality images. In this paper, we propose Stacked Generative Adversarial Networks (StackGAN) aiming at generating high-resolution photo-realistic images. First, we propose a two-stage generative adversarial network architecture, StackGAN-v1, for text-to-image synthesis. The Stage-I GAN sketches the primitive shape and colors of the object based on given text description, yielding low-resolution images. The Stage-II GAN takes Stage-I results and text descriptions as inputs, and generates high-resolution images with photo-realistic details. Second, an advanced multi-stage generative adversarial network architecture, StackGAN-v2, is proposed for both conditional and unconditional generative tasks. Our StackGAN-v2 consists of multiple generators and discriminators in a tree-like structure; images at multiple scales corresponding to the same scene are generated from different branches of the tree. StackGAN-v2 shows more stable training behavior than StackGAN-v1 by jointly approximating multiple distributions. Extensive experiments demonstrate that the proposed stacked generative adversarial networks significantly outperform other state-of-the-art methods in generating photo-realistic images.

For agents

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

get_harvested_code_for_paper("1710.10916")
get_code_for_paper("1710.10916")
have("1710.10916")

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

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

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

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

Connect an agent — have() is free.