SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 1612.01105 · CVPR · 2016

Pyramid Scene Parsing Network

arXiv · PDF · Open in the Atlas

Code that ran

21 of 29 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 14 have no contract verdict; 7 failures of our instrument; 8 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.01105.json · badge: /api/ran/1612.01105.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
UBC-CIC/COVID19-L3-Net community (classifier label)
classifier basis not recorded on the link
7 ran · 1 no recorded run
YininKorea/Contour-aware-equipotential-learning community (classifier label)
classifier basis not recorded on the link
5 ran · 2 no recorded run
EvaBr/AnatomyNets reimplementation (classifier label)
classifier basis: classifier_2025
3 ran · 0 no recorded run
kazuto1011/pspnet-pytorch community (classifier label)
classifier basis not recorded on the link
2 ran · 1 no recorded run
holyseven/PSPNet-TF-Reproduce reimplementation (classifier label)
classifier basis: classifier_2025
2 ran · 0 no recorded run
qubvel/segmentation_models reimplementation (classifier label)
classifier basis: classifier_2025
1 ran · 2 no recorded run
copy not recorded community
not in the paper's declared repositories
1 ran · 0 no recorded run
divamgupta/image-segmentation-keras reimplementation (classifier label)
classifier basis: classifier_2025
0 ran · 1 no recorded run
AnirudhAchal/Human-Parsing extension (classifier label)
classifier basis: classifier_2025
0 ran · 1 no recorded run
FunctionStatusWhere it lives
Conv1x1BnReLU Ran
ran; our contract draft was wrong, not the code
qubvel/segmentation_models/segmentation_models/models/pspnet.py
code served (permissive licence) · get_code("6967c6e3ddb59aa2")
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 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 torch
import torch.nn as nn

# Create mock Keras-like backend, layers, models, and utils
class MockBackend:
    pass

class MockLayers:
    pass

class MockModels:
    pass

class MockKerasUtils:
    pass

# Mock Conv2dBn class that the function expects to use
class Conv2dBn:
    def __init__(self, filters, kernel_size, activation, kernel_initializer, 
                 padding, use_batchnorm, name, backend, models, layers, utils):
        self.filters = filters
        self.kernel_size = kernel_size
        self.activation = activation
        self.kernel_initializer = kernel_initializer
        self.padding = padding
        self.use_batchnorm = use_batchnorm
        self.name = name
        self.backend = backend
        self.models = models
        self.layers = layers
        self.utils = utils
    
    def __call__(self, input_tensor):
        # Return a mock output tensor with same shape but different channel dimension
        if hasattr(input_tensor, 'shape'):
            batch, height, width, channels = input_tensor.shape
            return np.random.randn(batch, height, width, self.filters)
        return input_tensor

# Inject the Conv2dBn into globals so the function can find it
globals()['Conv2dBn'] = Conv2dBn

# Set up the global variables that get_submodules() references
backend = MockBackend()
models = MockModels()
layers = MockLayers()
keras_utils = MockKerasUtils()

# Update the function's globals
import sys
current_module = sys.modules[__name__]
setattr(current_module, 'backend', backend)
setattr(current_module, 'models', models)
setattr(current_module, 'layers', layers)
setattr(current_module, 'keras_utils', keras_utils)

# Define arguments for Conv1x1BnReLU
ARGS = {
    'filters': 32,
    'use_batchnorm': True,
    'name': 'conv1x1_block'
}
Setup block drafted by
a language model, Claude Sonnet 4.5, prompt python_fixture_v1
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type 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
Get_Segmetrics Ran
ran on a synthesized input
YininKorea/Contour-aware-equipotential-learning/utils/Evaluator.py
code served (permissive licence) · get_code("3d0961373635b158")
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. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import numpy as np

torch.manual_seed(0)

# Create small tensors for testing
batch_size = 2
height = 4
width = 3
num_class = 5

# output: predictions before +1 adjustment, shape (batch, height, width)
# Values should be in range [0, num_class-1] so after +1 they're in [1, num_class]
output = torch.randint(0, num_class, (batch_size, height, width))

# target: ground truth labels before +1 adjustment, shape (batch, height, width)
# Values should be in range [0, num_class-1] so after +1 they're in [1, num_class]
# Mix in some -1 values (unlabeled) to test the labeled mask
target = torch.randint(0, num_class, (batch_size, height, width))
target[0, 0, 0] = -1  # Mark one pixel as unlabeled

ARGS = {
    "output": output,
    "target": target,
    "num_class": num_class,
}
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 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
batch_intersection_union Ran
ran on a synthesized input
YininKorea/Contour-aware-equipotential-learning/utils/Evaluator.py
code served (permissive licence) · get_code("a593c508c5bef220")
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 torch
import numpy as np

torch.manual_seed(0)

# Create small tensors for the function
batch_size = 2
num_pixels = 4

# predict: predicted class labels (should be in range [1, num_class])
# Values should be class indices (1-indexed based on histc usage)
predict = torch.randint(1, 5, (batch_size, num_pixels), dtype=torch.long)

# target: ground truth class labels (should be in range [1, num_class])
target = torch.randint(1, 5, (batch_size, num_pixels), dtype=torch.long)

# num_class: number of classes
num_class = 4

# labeled: binary mask indicating which pixels are labeled (1 for labeled, 0 for unlabeled)
labeled = torch.ones((batch_size, num_pixels), dtype=torch.uint8)

ARGS = {
    "predict": predict,
    "target": target,
    "num_class": num_class,
    "labeled": labeled
}
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 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
batch_pix_accuracy Ran
ran on a synthesized input
YininKorea/Contour-aware-equipotential-learning/utils/Evaluator.py
code served (permissive licence) · get_code("7b9464d81818921d")
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 int; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import numpy as np

torch.manual_seed(0)

# Create small tensors for predict, target, and labeled
# predict: predicted class labels (batch_size=2, spatial_dims=4)
predict = torch.tensor([[0, 1, 2, 3],
                        [1, 2, 3, 0]], dtype=torch.long)

# target: ground truth labels (same shape as predict)
target = torch.tensor([[0, 1, 2, 3],
                       [1, 2, 3, 0]], dtype=torch.long)

# labeled: binary mask indicating which pixels are labeled (same shape as predict)
labeled = torch.tensor([[1, 1, 1, 1],
                        [1, 1, 1, 1]], dtype=torch.long)

ARGS = {
    'predict': predict,
    'target': target,
    'labeled': labeled
}
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 int — 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
collate_fn Ran
ran on a synthesized input
UBC-CIC/COVID19-L3-Net/src/utils.py
code served (permissive licence) · get_code("e0e9176fd296b349")
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

torch.manual_seed(0)

# The function expects a batch which is a list of dicts
# Each dict must have 'images' and 'masks' keys (and potentially others)
# 'images' and 'masks' values must be torch tensors that can be stacked

batch = [
    {
        'images': torch.randn(3, 4),
        'masks': torch.randn(2, 4),
        'label': 0,
    },
    {
        'images': torch.randn(3, 4),
        'masks': torch.randn(2, 4),
        'label': 1,
    }
]

ARGS = {
    'batch': batch
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
coloring_image_create Ran
ran; our contract draft was wrong, not the code
holyseven/PSPNet-TF-Reproduce/predict.py
code served (permissive licence) · get_code("977995a57dc87d8a")
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 str. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import numpy as np
from pathlib import Path

# The function expects a filename (string or Path-like) that contains 'leftImg8bit'
# It splits by '/' to get the last part, then splits by 'leftImg8bit' to get the prefix
# Example: 'path/to/some_city_000000_000000_leftImg8bit.png' -> 'some_city_000000_000000_coloring.png'

image_filename = "path/to/city_street_000123_000456_leftImg8bit.png"

ARGS = {
    "image_filename": image_filename
}
Setup block drafted by
a language model, Claude Sonnet 4.5, prompt python_fixture_v1
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
confusion_binary_class Ran
ran on a synthesized input
UBC-CIC/COVID19-L3-Net/src/models/metrics.py
code served (permissive licence) · get_code("2238b35660ae3fe6")
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 (2, 2) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import numpy as np

torch.manual_seed(0)

# Create small binary prediction and truth tensors
# The function performs element-wise division: prediction / truth
# To get the expected outcomes (1, inf, nan, 0), we need:
# - prediction == truth and truth != 0 → result is 1 (TP)
# - prediction != 0 and truth == 0 → result is inf (FP)
# - prediction == 0 and truth == 0 → result is nan (TN)
# - prediction == 0 and truth != 0 → result is 0 (FN)

prediction = torch.tensor([1.0, 1.0, 0.0, 0.0], dtype=torch.float32)
truth = torch.tensor([1.0, 0.0, 0.0, 1.0], dtype=torch.float32)

ARGS = {
    "prediction": prediction,
    "truth": truth,
}
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 int, shape (2, 2) — shape (2, 2) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
conv3x3 Ran
ran; our contract draft was wrong, not the code
this paper's copy was not recorded; identical code first harvested from lixiaotong97/DSU
pointer only; 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 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. A run is recorded.

convBatch Ran
ran; our contract draft was wrong, not the code
EvaBr/AnatomyNets/Networks.py
pointer only (licence: GPL-3.0) · get_code("21482360322a0d6b")
How it ran

The body of this sample is withheld: GPL-3.0, as GitHub detects it on this paper's repository, EvaBr/AnatomyNets, 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.

dice_loss Ran
ran on a synthesized input
UBC-CIC/COVID19-L3-Net/src/models/losses/dice_loss.py
code served (permissive licence) · get_code("da71c123fd8dd8ef")
How it ran

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

import torch

torch.manual_seed(0)

# Create small tensors for probs and target
# probs should be probabilities (values between 0 and 1)
# target should be binary ground truth (0s and 1s)
# Making them shape (2, 4) - batch size 2, 4 elements each

probs = torch.rand(2, 4)  # Random values between 0 and 1
target = torch.randint(0, 2, (2, 4)).float()  # Binary values as floats

ARGS = {
    "probs": probs,
    "target": target,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 0, dtype family float, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
get_class_map Ran
ran on a synthesized input
UBC-CIC/COVID19-L3-Net/src/datasets/transformers/trans_utils.py
code served (permissive licence) · get_code("949969de06e73c86")
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

torch.manual_seed(0)

ARGS = {
    "n_classes": 5
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
get_normalization_stats Ran
ran on a synthesized input
UBC-CIC/COVID19-L3-Net/src/datasets/transformers/trans_utils.py
code served (permissive licence) · get_code("3025e0d1d479d074")
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 3, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

# The function takes 'windows' as a parameter, which is iterated over
# Each window is used as a key to index into 'window_index' dict
# Valid window names are: 'lung', 'emphysema', 'mediastinum'

ARGS = {
    'windows': ['lung', 'emphysema', 'mediastinum']
}
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, ndim 3, dtype family float — a tuple output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
get_thresholds_stats Ran
ran on a synthesized input
UBC-CIC/COVID19-L3-Net/src/datasets/transformers/trans_utils.py
code served (permissive licence) · get_code("1d7510d9f3569585")
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 torch

torch.manual_seed(0)

ARGS = {
    'windows': ['emphysema', 'lung', 'mediastinum']
}
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, 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
get_voc_palette Ran
ran on a synthesized input
YininKorea/Contour-aware-equipotential-learning/utils/palette.py
code served (permissive licence) · get_code("d46e561fba210e1a")
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 int; 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

def get_voc_palette(num_classes):
    n = num_classes
    palette = [0] * (n * 3)
    for j in range(0, n):
        lab = j
        palette[j * 3 + 0] = 0
        palette[j * 3 + 1] = 0
        palette[j * 3 + 2] = 0
        i = 0
        while lab > 0:
            palette[j * 3 + 0] |= (lab >> 0 & 1) << 7 - i
            palette[j * 3 + 1] |= (lab >> 1 & 1) << 7 - i
            palette[j * 3 + 2] |= (lab >> 2 & 1) << 7 - i
            i = i + 1
            lab >>= 3
    return palette

torch.manual_seed(0)

ARGS = {
    "num_classes": 21
}
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 list, ndim 1, dtype family int — 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
get_weights Ran
ran on a synthesized input
YininKorea/Contour-aware-equipotential-learning/utils/loss.py
code served (permissive licence) · get_code("efb328cb1558491d")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 1, dtype family float, shape (7,) as a later run recorded it. The image it ran in was not recorded. The code mentions cuda, and the harness aliases cuda to the CPU for every sample; whether this run needed that is not recorded. If your copy returns the same type, 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)

# The function expects a target tensor that can be viewed as 1D
# It calls .view(-1), .data, .cpu(), .numpy()
# So we need a torch tensor with class labels (0-6, since weights has size 7)
target = torch.tensor([0, 1, 2, 3, 4, 5, 6, 0, 1, 2], dtype=torch.long)

ARGS = {
    "target": target
}
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 Tensor, ndim 1, dtype family float, shape (7,) — shape (7,) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
make_dot Ran
ran on a synthesized input
kazuto1011/pspnet-pytorch/draw_model.py
code served (permissive licence) · get_code("ca6ae0c751805e86")
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 Digraph. 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 simple computational graph by performing operations on a tensor
x = torch.randn(2, 4, requires_grad=True)
y = x * 2
z = y.sum()

# z.grad_fn is the backward function we need
var = z

# Create a params dict with named parameters
params = {
    'x': x,
    'y': y,
}

ARGS = {
    'var': var,
    'params': params,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
graphviz, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Digraph — a Digraph output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Digraph 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
match_image_size Ran
ran on a synthesized input
UBC-CIC/COVID19-L3-Net/src/models/semseg.py
code served (permissive licence) · get_code("c8f9dfe64cb830a8")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 4, dtype family float, shape (2, 4, 8, 10) 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 sample images tensor with shape (batch, channels, height, width)
images = torch.randn(2, 3, 8, 10)

# Create sample logits tensor with different spatial dimensions
logits = torch.randn(2, 4, 5, 7)

ARGS = {
    'images': images,
    'logits': logits,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 4, dtype family float, shape (2, 4, 8, 10) — shape (2, 4, 8, 10) 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
prediction_image_create Ran
ran; our contract draft was wrong, not the code
holyseven/PSPNet-TF-Reproduce/predict.py
code served (permissive licence) · get_code("a1fe1d6979c55a18")
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 str. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import numpy as np

torch.manual_seed(0)

# The function expects an image_filename (string or path-like) and a key_word string
# It splits the filename by '/' to get the last part, then splits by key_word
# and constructs a new filename with 'prediction.png'

# Example: 'path/to/some_file_leftImg8bit_extra.png' 
# -> splits by '/' -> 'some_file_leftImg8bit_extra.png'
# -> splits by 'leftImg8bit' -> 'some_file_' + 'prediction.png'

image_filename = 'path/to/city_street_leftImg8bit_color.png'
key_word = 'leftImg8bit'

ARGS = {
    'image_filename': image_filename,
    'key_word': key_word
}
Setup block drafted by
a language model, Claude Sonnet 4.5, prompt python_fixture_v1
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
resnet18 Ran
ran; our contract draft was wrong, not the code
EvaBr/AnatomyNets/Networks.py
pointer only (licence: GPL-3.0) · get_code("8837b79c8dc51ef5")
How it ran

The body of this sample is withheld: GPL-3.0, as GitHub detects it on this paper's repository, EvaBr/AnatomyNets, 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.

scores Ran
ran on a synthesized input
kazuto1011/pspnet-pytorch/libs/utils/metric.py
code served (permissive licence) · get_code("a83c73332fef7d86")
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 numpy as np

# Set up random seed for reproducibility
np.random.seed(0)

# Create small sample data for the function
# label_trues: list of true label arrays (can be 2D, will be flattened)
# label_preds: list of predicted label arrays (can be 2D, will be flattened)
# n_class: number of classes

n_class = 3
batch_size = 2

# Create sample label arrays with shape (2, 4) for each batch item
label_trues = [
    np.array([[0, 1, 2, 0], [1, 2, 0, 1]]),  # batch 1: 2x4
    np.array([[1, 0, 1, 2], [2, 1, 0, 2]])   # batch 2: 2x4
]

# Create corresponding predictions with valid class indices
label_preds = [
    np.array([[0, 1, 1, 0], [1, 2, 0, 1]]),  # batch 1: 2x4
    np.array([[1, 0, 2, 2], [2, 1, 0, 2]])   # batch 2: 2x4
]

ARGS = {
    'label_trues': label_trues,
    'label_preds': label_preds,
    'n_class': n_class
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple, 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
upSampleConv Ran
ran; our contract draft was wrong, not the code
EvaBr/AnatomyNets/Networks.py
pointer only (licence: GPL-3.0) · get_code("5a732a32da22a9f8")
How it ran

The body of this sample is withheld: GPL-3.0, as GitHub detects it on this paper's repository, EvaBr/AnatomyNets, 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.

SpatialContextBlock Not yet run
unverified (harvested, no recorded run)
qubvel/segmentation_models/segmentation_models/models/pspnet.py
code served (permissive licence) · get_code("68c9339a3d579243")
How it ran

no invocation recorded.

build_psp Not yet run
unverified (harvested, no recorded run)
qubvel/segmentation_models/segmentation_models/models/pspnet.py
code served (permissive licence) · get_code("4f0550053f2e1bda")
How it ran

no invocation recorded.

confusion_multi_class Not yet run
unverified (harvested, no recorded run)
UBC-CIC/COVID19-L3-Net/src/models/metrics.py
code served (permissive licence) · get_code("8a4c5a21de40bb0f")
How it ran

no invocation recorded.

convert_model Not yet run
unverified (harvested, no recorded run)
YininKorea/Contour-aware-equipotential-learning/Networks/sync_batchnorm/batchnorm.py
code served (permissive licence) · get_code("21d32f46755ba0dc")
How it ran

no invocation recorded.

model_from_checkpoint_path Not yet run
unverified (harvested, no recorded run)
divamgupta/image-segmentation-keras/keras_segmentation/pretrained.py
code served (permissive licence) · get_code("89798b68c1238a8d")
How it ran

no invocation recorded.

patch_replication_callback Not yet run
unverified (harvested, no recorded run)
YininKorea/Contour-aware-equipotential-learning/Networks/sync_batchnorm/replicate.py
code served (permissive licence) · get_code("27e207fe8a74c3e7")
How it ran

no invocation recorded.

show_image Not yet run
unverified (harvested, no recorded run)
AnirudhAchal/Human-Parsing/inference.py
pointer only (licence: NONE) · get_code("3ac84d37ba5ffd7e")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, AnirudhAchal/Human-Parsing 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. No invocation recorded.

translate_layer_name Not yet run
unverified (harvested, no recorded run)
kazuto1011/pspnet-pytorch/convert.py
code served (permissive licence) · get_code("46f1b5319b0c05f8")
How it ran

no invocation recorded.

Also present in other papers' code

Of 29 samples lifted from this paper's linked repositories, 29 carry a function identity and 0 do not. Of the 29 distinct functions with an identity, 8 are also present in other papers whose code we hold (1 with at least one paper dated earlier, 1 the same month, 8 later) and 21 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
19 dated earlier, 1 the same month, 666 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
patch_replication_callback 16 other papers
16 later
1807.10221 (2018-07)
Unified Perceptual Parsing for Scene Understanding
1904.01941 (2019-04)
Character Region Awareness for Text Detection
1909.02151 (2019-09)
KagNet: Knowledge-Aware Graph Networks for Commonsense Reasoning
and 13 more not named here
convert_model 2 other papers
2 later
2003.03653 (2020-03)
SalsaNext: Fast, Uncertainty-aware Semantic Segmentation of LiDAR Point Clouds for Autonomous Driving
2004.01803 (2020-04)
SqueezeSegV3: Spatially-Adaptive Convolution for Efficient Point-Cloud Segmentation
get_voc_palette 2 other papers
2 later
2007.07936 (2020-07)
ClassMix: Segmentation-Based Data Augmentation for Semi-Supervised Learning
Conv1x1BnReLU 1 other paper
1 later
1707.03718 (2017-07)
LinkNet: Exploiting Encoder Representations for Efficient Semantic Segmentation
coloring_image_create 1 other paper
1 later
1802.01483 (2018-02)
Explicit Inductive Bias for Transfer Learning with Convolutional Networks
convBatch 1 other paper
1 later
1812.07032 (2018-12)
Boundary loss for highly unbalanced segmentation
prediction_image_create 1 other paper
1 later
1802.01483 (2018-02)
Explicit Inductive Bias for Transfer Learning with Convolutional Networks

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

Repositories linked to this paper

More are linked than shown here.

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

Abstract

Scene parsing is challenging for unrestricted open vocabulary and diverse scenes. In this paper, we exploit the capability of global context information by different-region-based context aggregation through our pyramid pooling module together with the proposed pyramid scene parsing network (PSPNet). Our global prior representation is effective to produce good quality results on the scene parsing task, while PSPNet provides a superior framework for pixel-level prediction tasks. The proposed approach achieves state-of-the-art performance on various datasets. It came first in ImageNet scene parsing challenge 2016, PASCAL VOC 2012 benchmark and Cityscapes benchmark. A single PSPNet yields new record of mIoU accuracy 85.4% on PASCAL VOC 2012 and accuracy 80.2% on Cityscapes.

For agents

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

get_harvested_code_for_paper("1612.01105")
get_code_for_paper("1612.01105")
have("1612.01105")

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

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

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

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

Connect an agent — have() is free.