SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 1807.10221 · 2018

Unified Perceptual Parsing for Scene Understanding

arXiv · PDF · Open in the Atlas

Code that ran

25 of 28 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, 0 violated it and 9 have no contract verdict; 14 failures of our instrument; 3 no recorded run), measured 2026-11-22; 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/1807.10221.json · badge: /api/ran/1807.10221.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
SonpKing/semantic-segmentation-pytorch community (classifier label)
classifier basis not recorded on the link
12 ran · 2 no recorded run
Shun14/UperNet community (classifier label)
classifier basis not recorded on the link
6 ran · 0 no recorded run
starkgines/PDI community (classifier label)
classifier basis not recorded on the link
4 ran · 0 no recorded run
ESA-PhiLab/PhilEO-MajorTOM community (classifier label)
classifier basis not recorded on the link
3 ran · 1 no recorded run
FunctionStatusWhere it lives
accuracy Ran
ran, honoured the contract we drafted
SonpKing/semantic-segmentation-pytorch/utils.py
pointer only (licence: MIT); the stored copy get_code serves, from lqycrystal/SolarNet_plus, is pointer only (licence: NONE) · get_code("2e932a495b2ab693")
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 lqycrystal/SolarNet_plus, 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.

as_variable Ran
ran on a synthesized input
SonpKing/semantic-segmentation-pytorch/lib/utils/th.py
code served (permissive licence) · get_code("10bb6a2d70d61ca6")
How it ran

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

import torch
import collections
from torch.autograd import Variable

torch.manual_seed(0)

# Test with a simple tensor
tensor_obj = torch.randn(2, 4)

# Test with a sequence (list)
sequence_obj = [torch.randn(2, 4), torch.randn(3, 5)]

# Test with a mapping (dict)
mapping_obj = {
    'a': torch.randn(2, 4),
    'b': torch.randn(3, 5)
}

# Test with nested structure
nested_obj = {
    'tensors': [torch.randn(2, 4), torch.randn(1, 3)],
    'single': torch.randn(4, 2)
}

# Create ARGS dict mapping the parameter 'obj' to each test case
ARGS = {
    'obj': tensor_obj
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 2, dtype family float, shape (2, 4) — shape (2, 4) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
channel_shuffle Ran
ran; our contract draft was wrong, not the code
SonpKing/semantic-segmentation-pytorch/models/shufflenetv2.py
pointer only (licence: MIT); the stored copy get_code serves, from ddghost/new_darts, is pointer only (licence: NONE) · get_code("b9da06d4f527dd6c")
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 ddghost/new_darts, 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.

colorEncode Ran
ran on a synthesized input
SonpKing/semantic-segmentation-pytorch/utils.py
code served (permissive licence) · get_code("84f0eba9ce9b82f0")
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 (3, 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 labelmap (2D array of label indices)
labelmap = np.array([[0, 1, 0],
                     [1, 2, 2],
                     [0, 1, 2]], dtype=np.int32)

# Create a colors array with RGB values for each label
# We need enough colors for all labels in labelmap (0, 1, 2)
colors = np.array([[255, 0, 0],      # label 0: red
                   [0, 255, 0],      # label 1: green
                   [0, 0, 255]],     # label 2: blue
                  dtype=np.uint8)

ARGS = {
    'labelmap': labelmap,
    'colors': colors,
    'mode': 'BGR'
}
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 (3, 3, 3) — shape (3, 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
conv3x3 Ran
ran; our contract draft was wrong, not the code
SonpKing/semantic-segmentation-pytorch/models/resnet.py
pointer only (licence: MIT); the stored copy get_code serves, from lixiaotong97/DSU, is pointer only (licence: NONE) · get_code("fac5364e2f53c6db")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from lixiaotong97/DSU, and GitHub detected no licence in that repository when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

conv3x3 Ran
ran; our contract draft was wrong, not the code
SonpKing/semantic-segmentation-pytorch/models/models.py
code served (permissive licence) · get_code("dbcb53696bc43ef9")
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 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)

# The function conv3x3 creates a Conv2d layer
# Parameters:
# - in_planes: number of input channels (int)
# - out_planes: number of output channels (int)
# - stride: stride for convolution (int, default=1)
# - has_bias: whether to use bias (bool, default=False)

ARGS = {
    'in_planes': 3,
    'out_planes': 8,
    'stride': 2,
    'has_bias': True
}
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 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
conv_1x1_bn Ran
ran; our contract draft was wrong, not the code
SonpKing/semantic-segmentation-pytorch/models/shufflenetv2.py
code served (permissive licence) · get_code("7765583b9e540679")
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)

# The function conv_1x1_bn takes two parameters:
# - inp: number of input channels
# - oup: number of output channels
# Both are integers representing channel dimensions

ARGS = {
    "inp": 4,
    "oup": 3,
}
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
conv_bn Ran
ran; our contract draft was wrong, not the code
SonpKing/semantic-segmentation-pytorch/models/shufflenetv2.py
code served (permissive licence) · get_code("2f7853ff01cbbc29")
How it ran

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

import torch

torch.manual_seed(0)

inp = 3
oup = 8
stride = 2

ARGS = {
    'inp': inp,
    'oup': oup,
    'stride': stride
}
Setup block drafted by
a language model, Claude Sonnet 4.5, prompt python_fixture_v1
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Sequential — a Sequential output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Sequential output the recorded ndim 1 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
find_recursive Ran
ran; our contract draft was wrong, not the code
starkgines/PDI/mit_semseg/utils.py
pointer only (licence: BSD-3-Clause); the stored copy get_code serves, from YuxiaoWang-AI/P3HOT, is pointer only (licence: NONE) · get_code("6890565633b480b8")
How it ran

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

flip_combination Ran
ran on a synthesized input
Shun14/UperNet/paddleseg/core/infer.py
code served (permissive licence) · get_code("95bccf5957a196e4")
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.

# Setup code for flip_combination function

ARGS = {
    "flip_horizontal": False,
    "flip_vertical": False,
}
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
get_1d_sincos_pos_embed_from_grid Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
ESA-PhiLab/PhilEO-MajorTOM/model/phileo_vit.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from naver/croco, is pointer only (licence: NOASSERTION) · get_code("4bdd36eab04c3f62")
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 naver/croco, and GitHub could not classify the licence of that repository (NOASSERTION). The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

get_2d_sincos_pos_embed Ran
ran, honoured the contract we drafted
ESA-PhiLab/PhilEO-MajorTOM/model/phileo_vit.py
code served (permissive licence) · get_code("9417ae492629cf06")
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 (16, 8) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np

# The function get_2d_sincos_pos_embed takes:
# - embed_dim: int, must be even (embedding dimension)
# - grid_size: int, size of the grid (height and width)
# - cls_token: bool, whether to prepend a cls token

ARGS = {
    "embed_dim": 8,
    "grid_size": 4,
    "cls_token": False,
}
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 (16, 8) — shape (16, 8) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
get_core_decoder_kwargs Ran
ran on a synthesized input
ESA-PhiLab/PhilEO-MajorTOM/phileo-bench/models/model_AutoEncoderViTPretrained.py
code served (permissive licence) · get_code("102a08ac9375eb5f")
How it ran

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

import torch
import torch.nn as nn

torch.manual_seed(0)

ARGS = {
    'output_dim': 3,
    'core_size': 'core_tiny',
    'full_unet': True,
}
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_image_list Ran
ran on a synthesized input
Shun14/UperNet/predict.py
code served (permissive licence) · get_code("c8f710d7401e0006")
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 tempfile
import shutil

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

# Create a few test image files
test_image_path1 = os.path.join(temp_dir, "image1.jpg")
test_image_path2 = os.path.join(temp_dir, "image2.png")
with open(test_image_path1, 'w') as f:
    f.write("dummy image content")
with open(test_image_path2, 'w') as f:
    f.write("dummy image content")

# Test with directory path
image_path_dir = temp_dir

ARGS = {
    "image_path": image_path_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 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_reverse_list Ran
ran on a synthesized input
Shun14/UperNet/paddleseg/core/infer.py
code served (permissive licence) · get_code("026fee631ce4a66c")
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


class Resize:
    def __init__(self, target_size):
        self.target_size = target_size


class ResizeByLong:
    def __init__(self, long_size):
        self.long_size = long_size


class Padding:
    def __init__(self, target_size):
        self.target_size = target_size


class PaddingByAspectRatio:
    def __init__(self, aspect_ratio):
        self.aspect_ratio = aspect_ratio


class LimitLong:
    def __init__(self, max_long=None, min_long=None):
        self.max_long = max_long
        self.min_long = min_long


ARGS = {
    "ori_shape": [480, 640],
    "transforms": [
        Resize((256, 256)),
        ResizeByLong(512),
        Padding((512, 512)),
        PaddingByAspectRatio(1.5),
        LimitLong(max_long=1024, min_long=256),
    ]
}
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
get_test_config Ran
ran; our contract draft was wrong, not the code
Shun14/UperNet/val.py
code served (permissive licence) · get_code("20eb3e6b0aba73e4")
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 dict. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import numpy as np

class SimpleArgs:
    def __init__(self):
        self.aug_eval = True
        self.scales = [0.5, 1.0, 1.5]
        self.flip_horizontal = True
        self.flip_vertical = False
        self.is_slide = True
        self.crop_size = 512
        self.stride = 256

class SimpleConfig:
    def __init__(self):
        self.test_config = {
            'aug_eval': False,
            'scales': [1.0],
            'flip_horizontal': False,
            'flip_vertical': False,
            'is_slide': False,
            'crop_size': 256,
            'stride': 128
        }

cfg = SimpleConfig()
args = SimpleArgs()

ARGS = {
    'cfg': cfg,
    'args': args
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
get_test_config Ran
ran on a synthesized input
Shun14/UperNet/predict.py
code served (permissive licence) · get_code("32d2a7cc8725e25e")
How it ran

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

import torch
import numpy as np

torch.manual_seed(0)

# Stand-in class for cfg parameter
class Config:
    def __init__(self):
        self.test_config = {
            'model': 'resnet50',
            'batch_size': 8,
            'num_workers': 4
        }

# Stand-in class for args parameter
class Args:
    def __init__(self):
        self.aug_pred = True
        self.scales = [0.5, 1.0, 1.5]
        self.flip_horizontal = True
        self.flip_vertical = False
        self.is_slide = True
        self.crop_size = 512
        self.stride = 256

ARGS = {
    'cfg': Config(),
    'args': Args()
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
imresize Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
starkgines/PDI/mit_semseg/dataset.py
pointer only (licence: BSD-3-Clause); the stored copy get_code serves, from YuxiaoWang-AI/P3HOT, is pointer only (licence: NONE) · get_code("e23968c493407287")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (BSD-3-Clause), but get_code serves the stored copy, first harvested from YuxiaoWang-AI/P3HOT, 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_url Ran
ran; our contract draft was wrong, not the code
starkgines/PDI/mit_semseg/models/utils.py
pointer only (licence: BSD-3-Clause); the stored copy get_code serves, from YuxiaoWang-AI/P3HOT, is pointer only (licence: NONE) · get_code("d087e320591e6ba7")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (BSD-3-Clause), but get_code serves the stored copy, first harvested from YuxiaoWang-AI/P3HOT, 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_url Ran
ran; our contract draft was wrong, not the code
SonpKing/semantic-segmentation-pytorch/models/resnext.py
code served (permissive licence) · get_code("a42beb0aba2deb89")
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 os
import sys
import torch
import tempfile
from unittest.mock import patch

torch.manual_seed(0)

# Create a temporary directory for the model
temp_dir = tempfile.mkdtemp()

# Create a dummy model file to avoid actual downloads
dummy_model_path = os.path.join(temp_dir, 'model.pth')
dummy_state = {'weight': torch.randn(4, 3)}
torch.save(dummy_state, dummy_model_path)

# Mock urlretrieve to prevent actual network calls
def mock_urlretrieve(url, filepath):
    # Just copy the dummy model instead of downloading
    torch.save(dummy_state, filepath)

# Patch urlretrieve in the module scope
with patch('urllib.request.urlretrieve', mock_urlretrieve):
    pass

ARGS = {
    'url': 'https://example.com/model.pth',
    'model_dir': temp_dir,
    'map_location': 'cpu'
}
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
mark_volatile Ran
ran on a synthesized input
SonpKing/semantic-segmentation-pytorch/lib/utils/th.py
code served (permissive licence) · get_code("32f45cf75891bd16")
How it ran

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

import torch
from torch.autograd import Variable
import collections

torch.manual_seed(0)

# Test case 1: Tensor input
tensor_input = torch.randn(2, 4)

# Test case 2: Variable input
variable_input = Variable(torch.randn(2, 4))

# Test case 3: Dict/Mapping input
dict_input = {
    'tensor': torch.randn(2, 4),
    'variable': Variable(torch.randn(2, 4)),
    'nested': {
        'value': torch.randn(2, 4)
    }
}

# Test case 4: List/Sequence input
list_input = [
    torch.randn(2, 4),
    Variable(torch.randn(2, 4)),
    {'key': torch.randn(2, 4)}
]

# Test case 5: Scalar/other type
scalar_input = 42

# The function takes one parameter: obj
# We'll test with a tensor as the primary case
ARGS = {
    'obj': torch.randn(2, 4)
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 2, dtype family float, shape (2, 4) — shape (2, 4) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
partition_list Ran
ran; our contract draft was wrong, not the code
Shun14/UperNet/paddleseg/core/predict.py
code served (permissive licence) · get_code("2f75a098ce9f7b0e")
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 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 math

def partition_list(arr, m):
    """split the list 'arr' into m pieces"""
    n = int(math.ceil(len(arr) / float(m)))
    return [arr[i:i + n] for i in range(0, len(arr), n)]

# Setup code
arr = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
m = 3

ARGS = {
    "arr": arr,
    "m": m
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type 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
round2nearest_multiple Ran
ran on a synthesized input
SonpKing/semantic-segmentation-pytorch/dataset.py
code served (permissive licence) · get_code("cc83fb3836123035")
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

torch.manual_seed(0)

# Analyze the function: round2nearest_multiple(x, p)
# The function takes x and p, performs integer division and arithmetic operations
# x and p should be integers or integer-like values
# The function rounds x up to the nearest multiple of p

ARGS = {
    "x": 10,
    "p": 3
}
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
setup_logger Ran
ran; our contract draft was wrong, not the code
starkgines/PDI/mit_semseg/utils.py
pointer only (licence: BSD-3-Clause); the stored copy get_code serves, from YuxiaoWang-AI/P3HOT, is pointer only (licence: NONE) · get_code("b50608a902a34b99")
How it ran

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

unique Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
SonpKing/semantic-segmentation-pytorch/utils.py
pointer only (licence: MIT); the stored copy get_code serves, from YuxiaoWang-AI/P3HOT, is pointer only (licence: NONE) · get_code("5feabe579b35978a")
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 YuxiaoWang-AI/P3HOT, 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.

as_numpy Not yet run
unverified (harvested, no recorded run)
SonpKing/semantic-segmentation-pytorch/lib/utils/th.py
code served (permissive licence) · get_code("c08e7121f699a983")
How it ran

no invocation recorded.

get_2d_sincos_pos_embed_from_grid Not yet run
unverified (harvested, no recorded run)
ESA-PhiLab/PhilEO-MajorTOM/model/phileo_vit.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from naver/croco, is pointer only (licence: NOASSERTION) · get_code("4fd80de79832745d")
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 naver/croco, and GitHub could not classify the licence of that repository (NOASSERTION). The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

patch_replication_callback Not yet run
unverified (harvested, no recorded run)
SonpKing/semantic-segmentation-pytorch/lib/nn/modules/replicate.py
code served (permissive licence) · get_code("27e207fe8a74c3e7")
How it ran

no invocation recorded.

Also present in other papers' code

Of 28 samples lifted from this paper's linked repositories, 28 carry a function identity and 0 do not. Of the 27 distinct functions with an identity, 26 are also present in other papers whose code we hold (11 with at least one paper dated earlier, 7 the same month, 26 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
conv3x3 686 other papers
57 dated earlier, 5 the same month, 624 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
get_2d_sincos_pos_embed_from_grid 190 other papers
190 later · 65 only as an assembly brick
2105.12723 (2021-05)
Nested Hierarchical Transformer: Towards Accurate, Data-Efficient and Interpretable Visual Understanding
2111.06377 (2021-11)
Masked Autoencoders Are Scalable Vision Learners
2202.00660 (2022-02)
Interactron: Embodied Adaptive Object Detection
and 187 more not named here
get_2d_sincos_pos_embed 95 other papers
95 later · 33 only as an assembly brick
2105.12723 (2021-05)
Nested Hierarchical Transformer: Towards Accurate, Data-Efficient and Interpretable Visual Understanding
2111.06377 (2021-11)
Masked Autoencoders Are Scalable Vision Learners
2202.00660 (2022-02)
Interactron: Embodied Adaptive Object Detection
and 92 more not named here
get_1d_sincos_pos_embed_from_grid 26 other papers
26 later · 11 only as an assembly brick
2207.06405 (2022-07)
Masked Autoencoders that Listen
2210.10716 (2022-10)
CroCo: Self-Supervised Pre-training for 3D Vision Tasks by Cross-View Completion
2301.08243 (2023-01)
Self-Supervised Learning from Images with a Joint-Embedding Predictive Architecture
and 23 more not named here
channel_shuffle 19 other papers
3 dated earlier, 1 the same month, 15 later · 2 only as an assembly brick
1512.03385 (2015-12)
Deep Residual Learning for Image Recognition
1606.02147 (2016-06)
ENet: A Deep Neural Network Architecture for Real-Time Semantic Segmentation
1805.12549 (2018-05)
Channel Gating Neural Networks
and 16 more not named here
conv_bn 16 other papers
1 dated earlier, 15 later
1704.04861 (2017-04)
MobileNets: Efficient Convolutional Neural Networks for Mobile Vision Applications
1904.05049 (2019-04)
Drop an Octave: Reducing Spatial Redundancy in Convolutional Neural Networks with Octave Convolution
1904.12368 (2019-04)
Towards Efficient Model Compression via Learned Global Ranking
and 13 more not named here
patch_replication_callback 16 other papers
1 dated earlier, 15 later
1612.01105 (2016-12)
Pyramid Scene Parsing Network
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
conv_1x1_bn 9 other papers
9 later
2106.04570 (2021-06)
BERT Learns to Teach: Knowledge Distillation with Meta Learning
2106.07849 (2021-06)
Simon Says: Evaluating and Mitigating Bias in Pruned Neural Networks with Knowledge Distillation
2112.07133 (2021-12)
CLIP-Lite: Information Efficient Visual Representation Learning with Language Supervision
and 6 more not named here
partition_list 8 other papers
2 dated earlier, 6 later
1606.02147 (2016-06)
ENet: A Deep Neural Network Architecture for Real-Time Semantic Segmentation
1803.06815 (2018-03)
ESPNet: Efficient Spatial Pyramid of Dilated Convolutions for Semantic Segmentation
1808.00897 (2018-08)
BiSeNet: Bilateral Segmentation Network for Real-time Semantic Segmentation
and 5 more not named here
conv3x3 7 other papers
1 dated earlier, 1 the same month, 5 later
1804.08864 (2018-04)
Learning to See the Invisible: End-to-End Trainable Amodal Instance Segmentation
1807.11590 (2018-07)
Acquisition of Localization Confidence for Accurate Object Detection
1810.04650 (2018-10)
Multi-Task Learning as Multi-Objective Optimization
and 4 more not named here
flip_combination 7 other papers
2 dated earlier, 5 later
1606.02147 (2016-06)
ENet: A Deep Neural Network Architecture for Real-Time Semantic Segmentation
1803.06815 (2018-03)
ESPNet: Efficient Spatial Pyramid of Dilated Convolutions for Semantic Segmentation
1808.00897 (2018-08)
BiSeNet: Bilateral Segmentation Network for Real-time Semantic Segmentation
and 4 more not named here
get_test_config 6 other papers
3 dated earlier, 3 later
1606.02147 (2016-06)
ENet: A Deep Neural Network Architecture for Real-Time Semantic Segmentation
1803.06815 (2018-03)
ESPNet: Efficient Spatial Pyramid of Dilated Convolutions for Semantic Segmentation
1803.08904 (2018-03)
Context Encoding for Semantic Segmentation
and 3 more not named here
imresize 6 other papers
6 later
1810.04020 (2018-10)
A Comprehensive Survey of Deep Learning for Image Captioning
1904.04514 (2019-04)
High-Resolution Representations for Labeling Pixels and Regions
1908.07919 (2019-08)
Deep High-Resolution Representation Learning for Visual Recognition
and 3 more not named here
unique 6 other papers
1 the same month, 5 later
1807.11590 (2018-07)
Acquisition of Localization Confidence for Accurate Object Detection
1904.04514 (2019-04)
High-Resolution Representations for Labeling Pixels and Regions
1908.07919 (2019-08)
Deep High-Resolution Representation Learning for Visual Recognition
and 3 more not named here
get_reverse_list 4 other papers
1 dated earlier, 3 later
1606.02147 (2016-06)
ENet: A Deep Neural Network Architecture for Real-Time Semantic Segmentation
1811.11431 (2018-11)
ESPNetv2: A Light-weight, Power Efficient, and General Purpose Convolutional Neural Network
1901.02446 (2019-01)
Panoptic Feature Pyramid Networks
and 1 more not named here
load_url 4 other papers
1 the same month, 3 later
1807.11590 (2018-07)
Acquisition of Localization Confidence for Accurate Object Detection
1904.04514 (2019-04)
High-Resolution Representations for Labeling Pixels and Regions
1908.07919 (2019-08)
Deep High-Resolution Representation Learning for Visual Recognition
and 1 more not named here
find_recursive 3 other papers
3 later
1904.04514 (2019-04)
High-Resolution Representations for Labeling Pixels and Regions
1908.07919 (2019-08)
Deep High-Resolution Representation Learning for Visual Recognition
2507.01630 (2025-07)
Prompt Guidance and Human Proximal Perception for HOT Prediction with Regional Joint Loss
get_image_list 3 other papers
1 dated earlier, 2 later
1606.02147 (2016-06)
ENet: A Deep Neural Network Architecture for Real-Time Semantic Segmentation
1901.02446 (2019-01)
Panoptic Feature Pyramid Networks
1912.08193 (2019-12)
PointRend: Image Segmentation as Rendering
get_test_config 3 other papers
1 dated earlier, 2 later
1606.02147 (2016-06)
ENet: A Deep Neural Network Architecture for Real-Time Semantic Segmentation
1901.02446 (2019-01)
Panoptic Feature Pyramid Networks
1912.08193 (2019-12)
PointRend: Image Segmentation as Rendering
setup_logger 3 other papers
3 later
1904.04514 (2019-04)
High-Resolution Representations for Labeling Pixels and Regions
1908.07919 (2019-08)
Deep High-Resolution Representation Learning for Visual Recognition
2507.01630 (2025-07)
Prompt Guidance and Human Proximal Perception for HOT Prediction with Regional Joint Loss

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

Repositories linked to this paper

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

Abstract

Humans recognize the visual world at multiple levels: we effortlessly categorize scenes and detect objects inside, while also identifying the textures and surfaces of the objects along with their different compositional parts. In this paper, we study a new task called Unified Perceptual Parsing, which requires the machine vision systems to recognize as many visual concepts as possible from a given image. A multi-task framework called UPerNet and a training strategy are developed to learn from heterogeneous image annotations. We benchmark our framework on Unified Perceptual Parsing and show that it is able to effectively segment a wide range of concepts from images. The trained networks are further applied to discover visual knowledge in natural scenes. Models are available at \url{https://github.com/CSAILVision/unifiedparsing}.

For agents

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

get_harvested_code_for_paper("1807.10221")
get_code_for_paper("1807.10221")
have("1807.10221")

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

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

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

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

Connect an agent — have() is free.