SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 1910.13321 · 2019

Semantic Object Accuracy for Generative Text-to-Image Synthesis

arXiv · PDF · Open in the Atlas

Code that ran

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

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/1910.13321.json · badge: /api/ran/1910.13321.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
tohinz/semantic-object-accuracy-for-generative-text-to-image-synthesis canonical (classifier label)
classifier basis: census
9 ran · 4 no recorded run
tohinz/multiple-objects-gan canonical (classifier label)
classifier basis: census
9 ran · 1 no recorded run
FunctionStatusWhere it lives
calc_overall_class_average_accuracy Ran
ran on a synthesized input
tohinz/semantic-object-accuracy-for-generative-text-to-image-synthesis/SOA/calculate_soa.py
code served (permissive licence) · get_code("b4ebb326c7ea58dd")
How it ran

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

import torch
import numpy as np

# Construct a valid dict argument for calc_overall_class_average_accuracy
# The function expects a dict where each key is a label and each value 
# is a dict containing at least an 'accuracy' key

dict_arg = {
    'class_0': {'accuracy': 0.85},
    'class_1': {'accuracy': 0.90},
    'class_2': {'accuracy': 0.78},
    'class_3': {'accuracy': 0.92}
}

ARGS = {
    'dict': dict_arg
}
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 float, ndim 0, dtype family float, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
calc_recall Ran
ran on a synthesized input
tohinz/semantic-object-accuracy-for-generative-text-to-image-synthesis/SOA/calculate_soa.py
code served (permissive licence) · get_code("e7d41b0d52cc6652")
How it ran

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

import torch
import numpy as np

# Analyze the function:
# - predicted_bbox: dict with keys, values are lists where index [1] contains labels
# - label: a label to search for (string or comparable type)

# Create a simple predicted_bbox structure
# The function accesses predicted_bbox[key] and then predicted_bbox[key][1]
# So predicted_bbox[key] should be indexable with at least index 1

predicted_bbox = {
    "image_1": [None, ["cat", "dog"]],
    "image_2": [None, ["person"]],
    "image_3": [None, ["cat", "bird"]],
}

label = "cat"

ARGS = {
    "predicted_bbox": predicted_bbox,
    "label": label,
}
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, ndim 1, dtype family float — a tuple output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
compute_transformation_matrix Ran
ran on a synthesized input
tohinz/multiple-objects-gan/code/clevr/miscc/utils.py
code served (permissive licence) · get_code("8435d7d3950b360b")
How it ran

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

import torch

torch.manual_seed(0)

# Create a small bounding box tensor
# Shape: (batch_size=2, 4) where each row is [x, y, w, h]
bbox = torch.tensor([
    [0.1, 0.2, 0.3, 0.4],
    [0.5, 0.6, 0.2, 0.25]
], dtype=torch.float32)

ARGS = {
    "bbox": bbox
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 3, dtype family float, shape (2, 2, 3) — shape (2, 2, 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_transformation_matrix_inverse Ran
ran on a synthesized input
tohinz/multiple-objects-gan/code/clevr/miscc/utils.py
code served (permissive licence) · get_code("272d0358125c681c")
How it ran

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

import torch

torch.manual_seed(0)

# bbox should be a tensor with shape (batch_size, 4)
# where each row contains [x, y, w, h]
bbox = torch.tensor([
    [0.1, 0.2, 0.3, 0.4],
    [0.15, 0.25, 0.35, 0.45]
], dtype=torch.float32)

ARGS = {
    "bbox": bbox
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 3, dtype family float, shape (2, 2, 3) — shape (2, 2, 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
conv1x1 Ran
ran; our contract draft was wrong, not the code
tohinz/multiple-objects-gan/code/coco/attngan/model.py
code served (permissive licence) · get_code("19379807ba70daaa")
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,
    "bias": False,
}
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
conv1x1 Ran
ran; our contract draft was wrong, not the code
tohinz/semantic-object-accuracy-for-generative-text-to-image-synthesis/OP-GAN/code/GlobalAttention.py
code served (permissive licence) · get_code("1e9b9a9b96ddfe5f")
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 Conv2d. It ran in syntology-harvest-sandbox:v5-deps (sha256:6a292aa1aed1) at 2026-09-27T00:55:41Z. 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 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 syntology-harvest-sandbox:v5-deps (sha256:6a292aa1aed1); not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
conv3x3 Ran
ran; our contract draft was wrong, not the code
tohinz/multiple-objects-gan/code/clevr/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.

cosine_similarity Ran
ran; our contract draft was wrong, not the code
tohinz/multiple-objects-gan/code/coco/attngan/losses.py
code served (permissive licence) · get_code("e0c14774d8283a63")
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 1, dtype family float, shape (2,) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

# Create two tensors with distinct shapes for testing cosine similarity
# x1 and x2 should have the same shape for element-wise multiplication
# Using batch size 2, feature dimension 4
x1 = torch.randn(2, 4)
x2 = torch.randn(2, 4)

# dim=1 means we compute similarity along dimension 1 (the feature dimension)
# eps is a small value to prevent division by zero

ARGS = {
    'x1': x1,
    'x2': x2,
    'dim': 1,
    'eps': 1e-08
}
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 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
crop_imgs Ran
ran on a synthesized input
tohinz/multiple-objects-gan/code/coco/attngan/datasets.py
code served (permissive licence) · get_code("3fe3a379cddb6a43")
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 torch
import numpy as np
import numpy.random as random

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

# Create a small image tensor: (C, H, W) where C=3 (RGB), H=268, W=268
image = torch.randn(3, 268, 268)

# Create bounding boxes array
# Shape: (max_objects, 4) where each bbox is [x, y, width, height] normalized to [0, 1]
# First bbox is valid, second is marked as invalid with -1
bbox = np.array([
    [0.1, 0.2, 0.3, 0.25],  # Valid bbox
    [-1.0, -1.0, -1.0, -1.0],  # Invalid bbox (marked with -1)
    [-1.0, -1.0, -1.0, -1.0],  # Invalid bbox (marked with -1)
], dtype=np.float32)

max_objects = 3

ARGS = {
    'image': image,
    'bbox': bbox,
    'max_objects': max_objects,
}
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
drawCaption Ran
ran on a synthesized input
tohinz/semantic-object-accuracy-for-generative-text-to-image-synthesis/OP-GAN/code/miscc/utils.py
code served (permissive licence) · get_code("9da68638a70fdd3f")
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 torch
import numpy as np
from PIL import Image

torch.manual_seed(0)

# Create a small canvas (numpy array representing an image)
canvas = np.random.randint(0, 256, (100, 100, 3), dtype=np.uint8)

# Create captions tensor (batch_size=2, sequence_length=4)
# Values are indices into the vocabulary, with 0 meaning end-of-sequence
captions = torch.tensor([
    [5, 12, 3, 0],
    [7, 2, 0, 0]
], dtype=torch.long)

# Create ixtoword dictionary mapping indices to words
ixtoword = {
    0: '<end>',
    2: 'dog',
    3: 'runs',
    5: 'the',
    7: 'cat',
    12: 'sleeps'
}

# vis_size parameter (visual size for spacing)
vis_size = 10

# off1 and off2 are offsets with defaults of 2
off1 = 2
off2 = 2

ARGS = {
    'convas': canvas,
    'captions': captions,
    'ixtoword': ixtoword,
    'vis_size': vis_size,
    'off1': off1,
    'off2': off2
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
PIL, 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
func_attention Ran
ran on a synthesized input
tohinz/multiple-objects-gan/code/coco/attngan/GlobalAttention.py
code served (permissive licence) · get_code("6990deae791a4ec6")
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 torch
import torch.nn as nn

torch.manual_seed(0)

# Small dimensions to keep tensors tiny
batch_size = 2
ndf = 4  # number of features/channels
queryL = 3  # query length
ih = 2  # image height
iw = 3  # image width

# query: batch x ndf x queryL
query = torch.randn(batch_size, ndf, queryL)

# context: batch x ndf x ih x iw
context = torch.randn(batch_size, ndf, ih, iw)

# gamma1: scalar parameter used to scale attention weights
gamma1 = torch.tensor(1.0)

ARGS = {
    "query": query,
    "context": context,
    "gamma1": gamma1,
}
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 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_label Ran
ran on a synthesized input
tohinz/semantic-object-accuracy-for-generative-text-to-image-synthesis/SOA/util.py
code served (permissive licence) · get_code("2c0804d9b98af380")
How it ran

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

import torch
import numpy as np

def get_label(path):
    idx = path.find('label_')
    try:
        label = int(path[idx + 6:idx + 8])
    except:
        label = int(path[idx + 6:idx + 7])
    return label

# The function extracts a label number from a path string
# It looks for 'label_' in the path and tries to parse 2 digits after it,
# falling back to 1 digit if that fails

ARGS = {
    'path': 'some/path/label_42/image.jpg'
}
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 int, ndim 0, dtype family int, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
load_classes Ran
ran on a synthesized input
tohinz/semantic-object-accuracy-for-generative-text-to-image-synthesis/SOA/util.py
code served (permissive licence) · get_code("c44c472ef9c707e8")
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 tempfile
import os

# Create a temporary names file
temp_dir = tempfile.mkdtemp()
namesfile = os.path.join(temp_dir, "names.txt")

# Write some class names to the file
with open(namesfile, 'w') as f:
    f.write("class1\nclass2\nclass3\n")

ARGS = {
    "namesfile": namesfile
}
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
load_file Ran
ran on a synthesized input
tohinz/semantic-object-accuracy-for-generative-text-to-image-synthesis/SOA/util.py
code served (permissive licence) · get_code("ce73ac36a39a4b99")
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 pickle
import tempfile
import os

# Create a temporary file with pickled content
temp_dir = tempfile.mkdtemp()
test_data = {"key": "value", "number": 42, "list": [1, 2, 3]}
temp_file = os.path.join(temp_dir, "test.pkl")

with open(temp_file, 'wb') as f:
    pickle.dump(test_data, f)

ARGS = {
    "path": temp_file
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type 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
parse_cfg Ran
ran on a synthesized input
tohinz/semantic-object-accuracy-for-generative-text-to-image-synthesis/SOA/darknet.py
code served (permissive licence) · get_code("4587b69d57d6511b")
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 tempfile
import os

# Create a temporary configuration file
temp_dir = tempfile.mkdtemp()
cfg_file_path = os.path.join(temp_dir, "test.cfg")

# Write a sample neural network configuration
cfg_content = """# Test configuration file
[convolutional]
batch_normalize=1
filters=32
size=3
stride=1
pad=1
activation=relu

[pooling]
type=max
stride=2
size=2

[connected]
output=1000
activation=softmax
"""

with open(cfg_file_path, 'w') as f:
    f.write(cfg_content)

ARGS = {
    'cfgfile': cfg_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 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
stn Ran
ran on a synthesized input
tohinz/multiple-objects-gan/code/clevr/model.py
code served (permissive licence) · get_code("4cb5fe22f24b4c13")
How it ran

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

import torch
import torch.nn.functional as F

torch.manual_seed(0)

# image: input tensor for grid_sample
# Should be 4D: (batch, channels, height, width)
image = torch.randn(2, 3, 4, 5)

# transformation_matrix: input for affine_grid
# Should be (batch, 2, 3) for 2D affine transformation
transformation_matrix = torch.randn(2, 2, 3)

# size: torch.Size for output spatial dimensions
# Should be (batch, channels, height, width)
size = torch.Size([2, 3, 4, 5])

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

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

import torch
import torch.nn.functional as F

torch.manual_seed(0)

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

# Create a transformation matrix for affine_grid
# affine_grid expects shape (N, 2, 3) for 2D transformations
# N is batch size
transformation_matrix = torch.tensor([
    [[1.0, 0.0, 0.0],
     [0.0, 1.0, 0.0]],
    [[1.0, 0.0, 0.1],
     [0.0, 1.0, 0.0]]
], dtype=torch.float32)

# Size parameter for affine_grid: output spatial dimensions
# Format: torch.Size([batch_size, channels, height, width])
size = torch.Size([2, 3, 4, 6])

ARGS = {
    "image": image,
    "transformation_matrix": transformation_matrix,
    "size": size
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 4, dtype family float, shape (2, 3, 4, 6) — shape (2, 3, 4, 6) 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
upBlock Ran
ran; our contract draft was wrong, not the code
tohinz/multiple-objects-gan/code/clevr/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
calc_iou Not yet run
unverified (harvested, no recorded run)
tohinz/semantic-object-accuracy-for-generative-text-to-image-synthesis/SOA/calculate_soa.py
code served (permissive licence) · get_code("f5534bc5c6aff8c5")
How it ran

no invocation recorded.

crop_imgs Not yet run
unverified (harvested, no recorded run)
tohinz/semantic-object-accuracy-for-generative-text-to-image-synthesis/OP-GAN/code/datasets.py
code served (permissive licence) · get_code("703847df44b817c2")
How it ran

no invocation recorded.

get_imgs Not yet run
unverified (harvested, no recorded run)
tohinz/semantic-object-accuracy-for-generative-text-to-image-synthesis/OP-GAN/code/datasets.py
code served (permissive licence) · get_code("98438c5b9090c833")
How it ran

no invocation recorded.

load_validation_data Not yet run
unverified (harvested, no recorded run)
tohinz/multiple-objects-gan/code/clevr/miscc/utils.py
code served (permissive licence) · get_code("f4106ae0d85d225b")
How it ran

no invocation recorded.

prepare_data Not yet run
unverified (harvested, no recorded run)
tohinz/semantic-object-accuracy-for-generative-text-to-image-synthesis/OP-GAN/code/datasets.py
code served (permissive licence) · get_code("98d805e89bf7c844")
How it ran

no invocation recorded.

Also present in other papers' code

Of 23 samples lifted from this paper's linked repositories, 23 carry a function identity and 0 do not. Of the 23 distinct functions with an identity, 6 are also present in other papers whose code we hold (6 with at least one paper dated earlier, 1 the same month, 4 later) and 17 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
163 dated earlier, 5 the same month, 518 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
conv1x1 8 other papers
4 dated earlier, 4 later · 3 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 5 more not named here
conv1x1 3 other papers
1 dated earlier, 2 later
1802.06474 (2018-02)
A Closed-form Solution to Photorealistic Image Stylization
2105.10026 (2021-05)
Improving Generation and Evaluation of Visual Stories via Semantic Consistency
2310.00527 (2023-10)
Self-supervised Learning of Contextualized Local Visual Embeddings
upBlock 3 other papers
1 dated earlier, 2 later
1710.10916 (2017-10)
StackGAN++: Realistic Image Synthesis with Stacked Generative Adversarial Networks
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
cosine_similarity 2 other papers
2 dated earlier
1605.05396 (2016-05)
Generative Adversarial Text to Image Synthesis
1802.06474 (2018-02)
A Closed-form Solution to Photorealistic Image Stylization
parse_cfg 2 other papers
2 dated earlier
1804.02767 (2018-04)
YOLOv3: An Incremental Improvement
1812.01387 (2018-12)
Estimating 6D Pose From Localizing Designated Surface Keypoints

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

Repositories linked to this paper

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

Abstract

Generative adversarial networks conditioned on textual image descriptions are capable of generating realistic-looking images. However, current methods still struggle to generate images based on complex image captions from a heterogeneous domain. Furthermore, quantitatively evaluating these text-to-image models is challenging, as most evaluation metrics only judge image quality but not the conformity between the image and its caption. To address these challenges we introduce a new model that explicitly models individual objects within an image and a new evaluation metric called Semantic Object Accuracy (SOA) that specifically evaluates images given an image caption. The SOA uses a pre-trained object detector to evaluate if a generated image contains objects that are mentioned in the image caption, e.g. whether an image generated from "a car driving down the street" contains a car. We perform a user study comparing several text-to-image models and show that our SOA metric ranks the models the same way as humans, whereas other metrics such as the Inception Score do not. Our evaluation also shows that models which explicitly model objects outperform models which only model global image characteristics.

For agents

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

get_harvested_code_for_paper("1910.13321")
get_code_for_paper("1910.13321")
have("1910.13321")

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

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

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

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

Connect an agent — have() is free.