SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 1612.03242 · 2016

StackGAN: Text to Photo-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; 2 honoured the contract we drafted, 1 violated it and 10 have no contract verdict; 9 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/1612.03242.json · badge: /api/ran/1612.03242.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
Vishal-V/GSoC community (classifier label)
classifier basis not recorded on the link
15 ran · 2 no recorded run
rafiahmed40/stack-adverserial-network community (classifier label)
classifier basis not recorded on the link
4 ran · 5 no recorded run
FIT4003StackGAN/FIT4003-StackGAN-v2-Metamorphic-Testing extension (classifier label)
classifier basis: classifier_2025
3 ran · 0 no recorded run
Vishal-V/StackGAN community (classifier label)
classifier basis not recorded on the link
0 ran · 1 no recorded run
copy not recorded community
not in the paper's declared repositories
0 ran · 1 no recorded run
FunctionStatusWhere it lives
ConvBlock Ran
ran on a synthesized input
Vishal-V/GSoC/stack_gan/model.py
code served (permissive licence) · get_code("13cff2847daf7634")
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 KerasTensor. 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 numpy as np

# Create a small input tensor (batch=2, height=4, width=4, channels=3)
input_tensor = tf.keras.Input(shape=(4, 4, 3))

# Define the arguments dictionary
ARGS = {
    'x': input_tensor,
    'num_kernels': 32,
    'kernel_size': (4, 4),
    'strides': 2,
    'activation': True
}
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 KerasTensor — a KerasTensor 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
KL_loss Ran
ran; our contract draft was wrong, not the code
FIT4003StackGAN/FIT4003-StackGAN-v2-Metamorphic-Testing/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
rafiahmed40/stack-adverserial-network/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
UpSamplingBlock Ran
ran on a synthesized input
Vishal-V/GSoC/stack_gan/model.py
code served (permissive licence) · get_code("6fc80b91caf67336")
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, 8, 6, 16) 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
np.random.seed(0)
tf.random.set_seed(0)

# Create a small input tensor with shape (batch_size, height, width, channels)
# batch=2, height=4, width=3, channels=5 (distinct dimensions for probing)
input_tensor = tf.keras.Input(shape=(4, 3, 5))

# Create a simple model that produces the input for UpSamplingBlock
x = input_tensor
x = tf.keras.layers.Conv2D(8, kernel_size=(1, 1), padding='same')(x)
model_input = tf.keras.Model(inputs=input_tensor, outputs=x)

# Generate actual tensor data matching the input spec
x_data = tf.random.normal((2, 4, 3, 5))

# Number of kernels for the Conv2D layer
num_kernels = 16

ARGS = {
    'x': x_data,
    'num_kernels': num_kernels
}
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, 8, 6, 16) — shape (2, 8, 6, 16) 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
apply_mask Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
Vishal-V/GSoC/mask_rcnn/visualize.py
code served (permissive licence) · get_code("cdda836085a5b1af")
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, 3, 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 (height=4, width=3, channels=3)
image = np.random.rand(4, 3, 3).astype(np.float32) * 255

# Create a binary mask (height=4, width=3)
mask = np.array([
    [1, 0, 1],
    [0, 1, 0],
    [1, 1, 0],
    [0, 0, 1]
], dtype=np.int32)

# Define a color (RGB values between 0 and 1)
color = np.array([0.5, 0.3, 0.8])

# Alpha blending factor
alpha = 0.5

ARGS = {
    "image": image,
    "mask": mask,
    "color": color,
    "alpha": alpha
}
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, 3, 3) — shape (4, 3, 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
compute_backbone_shapes Ran
ran; our contract draft was wrong, not the code
Vishal-V/GSoC/mask_rcnn/model.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from yubaoliu/rds-slam, is pointer only (licence: GPL-3.0) · get_code("ae91aee49740c295")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (Apache-2.0), but get_code serves the stored copy, first harvested from yubaoliu/rds-slam, and GPL-3.0, as GitHub detects it on that repository, 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.

compute_iou Ran
ran, violated the contract we drafted
Vishal-V/GSoC/mask_rcnn/utils.py
code served (permissive licence) · get_code("ae0c5e015d8cf734")
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 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 numpy as np

# Create sample bounding boxes
# box: 1D vector [y1, x1, y2, x2]
box = np.array([10.0, 20.0, 50.0, 80.0])

# boxes: [boxes_count, (y1, x1, y2, x2)]
boxes = np.array([
    [15.0, 25.0, 60.0, 90.0],
    [5.0, 10.0, 30.0, 40.0]
])

# Calculate box_area (area of the single box)
box_area = (box[2] - box[0]) * (box[3] - box[1])

# Calculate boxes_area (area of each box in boxes array)
boxes_area = (boxes[:, 2] - boxes[:, 0]) * (boxes[:, 3] - boxes[:, 1])

ARGS = {
    "box": box,
    "boxes": boxes,
    "box_area": box_area,
    "boxes_area": boxes_area
}
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 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
compute_mean_covariance Ran
ran; our contract draft was wrong, not the code
FIT4003StackGAN/FIT4003-StackGAN-v2-Metamorphic-Testing/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
compute_overlaps Ran
ran, honoured the contract we drafted
Vishal-V/GSoC/mask_rcnn/utils.py
code served (permissive licence) · get_code("9f81af6c8a2344a3")
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 (3, 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 numpy as np

# Create sample bounding boxes in format [y1, x1, y2, x2]
# boxes1: 3 boxes
boxes1 = np.array([
    [10, 20, 50, 60],
    [15, 25, 55, 65],
    [100, 100, 200, 200]
], dtype=np.float32)

# boxes2: 2 boxes
boxes2 = np.array([
    [12, 22, 48, 58],
    [110, 110, 190, 190]
], dtype=np.float32)

ARGS = {
    "boxes1": boxes1,
    "boxes2": boxes2
}
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 2, dtype family float, shape (3, 2) — shape (3, 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
conditioning_augmentation Ran
ran on a synthesized input
Vishal-V/GSoC/stack_gan/model.py
code served (permissive licence) · get_code("1adac96a64c536f7")
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 2, dtype family float, shape (2, 128) 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 tensorflow.keras.backend as K

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

# The function expects input x with shape (batch_size, 256)
# where first 128 dims are mean and last 128 dims are log_sigma
batch_size = 2
feature_dim = 256

# Create a small tensor as input
# Shape: (batch_size, 256) where 256 = 128 (mean) + 128 (log_sigma)
x = tf.random.normal(shape=(batch_size, feature_dim), dtype=tf.float32)

ARGS = {
    "x": x
}
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 EagerTensor, ndim 2, dtype family float, shape (2, 128) — shape (2, 128) 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
conv_block Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
Vishal-V/GSoC/mask_rcnn/model.py
code served (permissive licence) · get_code("4a91e0c12a4df0bc")
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, 2, 2, 256) 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 tensorflow.keras.layers as KL
import numpy as np

# Create a small input tensor (batch_size=2, height=4, width=4, channels=3)
input_tensor = tf.random.normal((2, 4, 4, 3))

ARGS = {
    'input_tensor': input_tensor,
    'kernel_size': 3,
    'filters': [64, 64, 256],
    'stage': 3,
    'block': 'a',
    'strides': (2, 2),
    'use_bias': True,
    'train_bn': True
}
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, 2, 2, 256) — shape (2, 2, 2, 256) 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
copy_G_params Ran
ran; our contract draft was wrong, not the code
FIT4003StackGAN/FIT4003-StackGAN-v2-Metamorphic-Testing/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
rafiahmed40/stack-adverserial-network/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
draw_box Ran
ran; our contract draft was wrong, not the code
Vishal-V/GSoC/mask_rcnn/visualize.py
code served (permissive licence) · get_code("dc05d22f3d39bea6")
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 (10, 10, 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
import numpy as np

torch.manual_seed(0)

# Create a small image array (height=10, width=10, channels=3)
image = np.zeros((10, 10, 3), dtype=np.uint8)

# Define a bounding box as (y1, x1, y2, x2)
box = (1, 2, 7, 8)

# Define a color as a list of 3 RGB values
color = [255, 0, 0]  # red

ARGS = {
    "image": image,
    "box": box,
    "color": color
}
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 3, dtype family int, shape (10, 10, 3) — shape (10, 10, 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
extract_bboxes Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
Vishal-V/GSoC/mask_rcnn/utils.py
code served (permissive licence) · get_code("d2c9b72e23d9588a")
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 int, shape (3, 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 numpy as np

# Create a simple test mask with shape [height, width, num_instances]
# Let's use height=5, width=6, num_instances=3
height = 5
width = 6
num_instances = 3

mask = np.zeros((height, width, num_instances), dtype=np.uint8)

# Instance 0: small rectangle in top-left
mask[1:3, 1:3, 0] = 1

# Instance 1: small rectangle in bottom-right
mask[3:5, 4:6, 1] = 1

# Instance 2: single pixel
mask[2, 3, 2] = 1

ARGS = {
    "mask": mask
}
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 2, dtype family int, shape (3, 4) — shape (3, 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
get_random_block_from_data Ran
ran on a synthesized input
Vishal-V/GSoC/autoencoder/model/AutoencoderRunner.py
code served (permissive licence) · get_code("74e5099c2cbb3e49")
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 1, dtype family int, shape (128,) 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 simple data array with enough elements for get_random_block_from_data
# The function needs: len(data) > batch_size
# So we create data with more elements than batch_size
data = np.arange(200)  # array of 200 elements, enough for batch_size=128

batch_size = 128

ARGS = {
    "data": data,
    "batch_size": batch_size
}
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 1, dtype family int, shape (128,) — shape (128,) 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
leaky_rectify Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
rafiahmed40/stack-adverserial-network/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
rafiahmed40/stack-adverserial-network/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
make_eval_inputs_from_np_arrays Ran
ran on a synthesized input
Vishal-V/GSoC/boosted_trees/train_higgs.py
code served (permissive licence) · get_code("c353c26b5c082459")
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
import tensorflow as tf

# Create small numpy arrays for features and labels
np.random.seed(0)

# features_np: shape (batch_size, num_features)
# Using batch_size=2, num_features=4
features_np = np.random.randn(2, 4).astype(np.float32)

# label_np: shape (batch_size,) or (batch_size, 1)
label_np = np.random.randn(2).astype(np.float32)

ARGS = {
    'features_np': features_np,
    'label_np': label_np,
}
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 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
make_inputs_from_np_arrays Ran
ran on a synthesized input
Vishal-V/GSoC/boosted_trees/train_higgs.py
code served (permissive licence) · get_code("f5b233a3ce3e8fb9")
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 tensorflow as tf

# Create small numpy arrays for testing
batch_size = 2
num_features = 4

# Create features: shape [batch_size, num_features]
features_np = np.array([
    [1.0, 2.0, 3.0, 4.0],
    [5.0, 6.0, 7.0, 8.0]
], dtype=np.float32)

# Create labels: shape [batch_size, 1]
label_np = np.array([[0.0], [1.0]], dtype=np.float32)

ARGS = {
    "features_np": features_np,
    "label_np": label_np,
}
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 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
random_colors Ran
ran, honoured the contract we drafted
Vishal-V/GSoC/mask_rcnn/visualize.py
code served (permissive licence) · get_code("a9d0cf3b71fefa32")
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 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 random
import colorsys

def random_colors(N, bright=True):
    """
    Generate random colors.
    To get visually distinct colors, generate them in HSV space then
    convert to RGB.
    """
    brightness = 1.0 if bright else 0.7
    hsv = [(i / N, 1, brightness) for i in range(N)]
    colors = list(map(lambda c: colorsys.hsv_to_rgb(*c), hsv))
    random.shuffle(colors)
    return colors


ARGS = {
    "N": 5,
    "bright": True
}
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 2, 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_higgs_data Ran
ran on a synthesized input
Vishal-V/GSoC/boosted_trees/train_higgs.py
code served (permissive licence) · get_code("ade723634de3da01")
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 gzip

# Create a temporary directory and NPZ file for testing
temp_dir = tempfile.mkdtemp()

# Create sample HIGGS data as a numpy array
# Shape: (1000, 28) - 1000 samples, 28 features (typical for HIGGS dataset)
sample_data = np.random.randn(1000, 28).astype(np.float32)

# Save to NPZ file
npz_path = os.path.join(temp_dir, 'HIGGS.csv.gz.npz')
np.savez(npz_path, data=sample_data)

# Define arguments for the function
ARGS = {
    'data_dir': temp_dir,
    'train_start': 0,
    'train_count': 700,
    'eval_start': 700,
    'eval_count': 300
}
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 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
download_data Not yet run
unverified (harvested, no recorded run)
Vishal-V/GSoC/face_app/data_download.py
code served (permissive licence) · get_code("c8dea6dd84ed3e6b")
How it ran

no invocation recorded.

download_data Not yet run
unverified (harvested, no recorded run)
Vishal-V/StackGAN/data_download.py
code served (permissive licence) · get_code("ff2c5c521817cf06")
How it ran

no invocation recorded.

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

no invocation recorded.

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

no invocation recorded.

identity_block Not yet run
unverified (harvested, no recorded run)
Vishal-V/GSoC/mask_rcnn/model.py
code served (permissive licence) · get_code("ebaf5ac773912a84")
How it ran

no invocation recorded.

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

no invocation recorded.

preprocess Not yet run
unverified (harvested, no recorded run)
this paper's copy was not recorded; identical code first harvested from hanzhanggit/StackGAN-inception-model
pointer only; the stored copy get_code serves, from hanzhanggit/StackGAN-inception-model, is pointer only (licence: NONE) · get_code("b85a728ed7aaaade")
How it ran

The body of this sample is withheld: this paper's copy of the code was not recorded (its link names no repository or source path), so no licence was read for it. 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. No invocation recorded.

sample_encoded_context Not yet run
unverified (harvested, no recorded run)
rafiahmed40/stack-adverserial-network/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)
rafiahmed40/stack-adverserial-network/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, 30 are also present in other papers whose code we hold (1 with at least one paper dated earlier, 0 the same month, 30 later) and 1 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
compute_backbone_shapes 10 other papers
10 later
1702.01983 (2017-02)
Face Aging With Conditional Generative Adversarial Networks
1803.01534 (2018-03)
Path Aggregation Network for Instance Segmentation
and 7 more not named here
compute_iou 9 other papers
9 later
1702.01983 (2017-02)
Face Aging With Conditional Generative Adversarial Networks
1808.02473 (2018-08)
SketchyScene: Richly-Annotated Scene Sketches
and 6 more not named here
compute_overlaps 9 other papers
9 later
1702.01983 (2017-02)
Face Aging With Conditional Generative Adversarial Networks
1808.02473 (2018-08)
SketchyScene: Richly-Annotated Scene Sketches
and 6 more not named here
extract_bboxes 9 other papers
9 later
1702.01983 (2017-02)
Face Aging With Conditional Generative Adversarial Networks
1808.02473 (2018-08)
SketchyScene: Richly-Annotated Scene Sketches
and 6 more not named here
random_colors 9 other papers
9 later
1702.01983 (2017-02)
Face Aging With Conditional Generative Adversarial Networks
1901.02970 (2019-01)
Normalized Object Coordinate Space for Category-Level 6D Object Pose and Size Estimation
and 6 more not named here
conv_block 8 other papers
8 later
1702.01983 (2017-02)
Face Aging With Conditional Generative Adversarial Networks
1912.08193 (2019-12)
PointRend: Image Segmentation as Rendering
and 5 more not named here
identity_block 8 other papers
8 later
1702.01983 (2017-02)
Face Aging With Conditional Generative Adversarial Networks
1912.08193 (2019-12)
PointRend: Image Segmentation as Rendering
and 5 more not named here
apply_mask 6 other papers
6 later
1702.01983 (2017-02)
Face Aging With Conditional Generative Adversarial Networks
1901.02970 (2019-01)
Normalized Object Coordinate Space for Category-Level 6D Object Pose and Size Estimation
and 3 more not named here
draw_box 6 other papers
6 later
1702.01983 (2017-02)
Face Aging With Conditional Generative Adversarial Networks
1901.02970 (2019-01)
Normalized Object Coordinate Space for Category-Level 6D Object Pose and Size Estimation
and 3 more not named here
KL_loss 2 other papers
2 later
1710.10916 (2017-10)
StackGAN++: 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
2 later
1710.10916 (2017-10)
StackGAN++: Realistic Image Synthesis with Stacked Generative Adversarial Networks
1811.03205 (2018-11)
Robustness of Conditional GANs to Noisy Labels
leaky_rectify 2 other papers
2 later
1710.10916 (2017-10)
StackGAN++: Realistic Image Synthesis with Stacked Generative Adversarial Networks
2406.19298 (2024-06)
Compositional Image Decomposition with Diffusion Models
preprocess 2 other papers
1 dated earlier, 1 later
1605.05396 (2016-05)
Generative Adversarial Text to Image Synthesis
1904.01310 (2019-04)
DM-GAN: Dynamic Memory Generative Adversarial Networks for Text-to-Image Synthesis
transform 2 other papers
2 later
1710.10916 (2017-10)
StackGAN++: Realistic Image Synthesis with Stacked Generative Adversarial Networks
1811.03205 (2018-11)
Robustness of Conditional GANs to Noisy Labels
ConvBlock 1 other paper
1 later
1702.01983 (2017-02)
Face Aging With Conditional Generative Adversarial Networks
KL_loss 1 other paper
1 later
1710.10916 (2017-10)
StackGAN++: Realistic Image Synthesis with Stacked Generative Adversarial Networks
UpSamplingBlock 1 other paper
1 later
1702.01983 (2017-02)
Face Aging With Conditional Generative Adversarial Networks
compute_mean_covariance 1 other paper
1 later
1710.10916 (2017-10)
StackGAN++: Realistic Image Synthesis with Stacked Generative Adversarial Networks
conditioning_augmentation 1 other paper
1 later
1702.01983 (2017-02)
Face Aging With Conditional Generative Adversarial Networks
copy_G_params 1 other paper
1 later
1710.10916 (2017-10)
StackGAN++: Realistic Image Synthesis with Stacked Generative Adversarial Networks

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

Synthesizing high-quality images from text descriptions is a challenging problem in computer vision and has many practical applications. Samples generated by existing text-to-image approaches can roughly reflect the meaning of the given descriptions, but they fail to contain necessary details and vivid object parts. In this paper, we propose Stacked Generative Adversarial Networks (StackGAN) to generate 256x256 photo-realistic images conditioned on text descriptions. We decompose the hard problem into more manageable sub-problems through a sketch-refinement process. The Stage-I GAN sketches the primitive shape and colors of the object based on the given text description, yielding Stage-I 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. It is able to rectify defects in Stage-I results and add compelling details with the refinement process. To improve the diversity of the synthesized images and stabilize the training of the conditional-GAN, we introduce a novel Conditioning Augmentation technique that encourages smoothness in the latent conditioning manifold. Extensive experiments and comparisons with state-of-the-arts on benchmark datasets demonstrate that the proposed method achieves significant improvements on generating photo-realistic images conditioned on text descriptions.

For agents

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

get_harvested_code_for_paper("1612.03242")
get_code_for_paper("1612.03242")
have("1612.03242")

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

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

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

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

Connect an agent — have() is free.