SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 1803.06815 · 2018

ESPNet: Efficient Spatial Pyramid of Dilated Convolutions for Semantic Segmentation

arXiv · PDF · Open in the Atlas

Code that ran

9 of 10 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 5 have no contract verdict; 2 failures of our instrument; 1 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/1803.06815.json · badge: /api/ran/1803.06815.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
sacmehta/ESPNet canonical (classifier label)
classifier basis: census
0 ran · 1 no recorded run
simuler/ESPNet community (classifier label)
classifier basis not recorded on the link
7 ran · 0 no recorded run
sacmehta/3d-espnet extension (classifier label)
classifier basis: classifier_2025
2 ran · 0 no recorded run
FunctionStatusWhere it lives
compute_class_weights Ran
ran on a synthesized input
simuler/ESPNet/compute_classweight.py
code served (permissive licence) · get_code("e4705748c848babe")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned ndarray, ndim 1, dtype family float, shape (20,) 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 expects a histogram parameter - a 1D array-like with 20 elements
# representing class frequencies
histogram = np.array([10.0, 5.0, 8.0, 12.0, 15.0, 3.0, 7.0, 9.0, 11.0, 6.0,
                      4.0, 13.0, 2.0, 14.0, 1.0, 16.0, 18.0, 20.0, 19.0, 17.0])

ARGS = {
    "histogram": histogram
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 1, dtype family float, shape (20,) — shape (20,) 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
diceFunction Ran
ran, honoured the contract we drafted
sacmehta/3d-espnet/ComputeDice.py
code served (permissive licence) · get_code("7b21a1e5f7422c2f")
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 float64, 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 numpy as np

# Create two binary images/volumes for testing the dice function
# Using small arrays with distinct shapes to allow probing
im1 = np.array([
    [[1, 0, 1, 0],
     [0, 1, 1, 0],
     [1, 1, 0, 1]],
    [[0, 1, 0, 1],
     [1, 0, 1, 1],
     [0, 1, 1, 0]]
], dtype=np.uint8)

im2 = np.array([
    [[1, 0, 1, 1],
     [0, 1, 0, 0],
     [1, 1, 0, 1]],
    [[0, 1, 0, 1],
     [1, 0, 1, 0],
     [0, 1, 1, 1]]
], dtype=np.uint8)

ARGS = {
    'im1': im1,
    'im2': im2
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type float64, 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
flip_combination Ran
ran on a synthesized input
simuler/ESPNet/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_reverse_list Ran
ran on a synthesized input
simuler/ESPNet/paddleseg/core/infer.py
code served (permissive licence) · get_code("a5dbdd4f2d59692e")
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 ResizeByShort:
    def __init__(self, short_size):
        self.short_size = short_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

ori_shape = [480, 640]

transforms = [
    Resize((384, 512)),
    ResizeByLong(600),
    ResizeByShort(300),
    Padding((400, 400)),
    PaddingByAspectRatio(1.5),
    LimitLong(max_long=800, min_long=100),
]

ARGS = {
    "ori_shape": ori_shape,
    "transforms": transforms,
}
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
simuler/ESPNet/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
simuler/ESPNet/predict.py
code served (permissive licence) · get_code("0b3ec74bd2e5ed5d")
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)

class MockConfig:
    def __init__(self):
        self.test_config = {
            'aug_pred': False,
            'scales': [1.0],
            'flip_horizontal': False,
            'flip_vertical': False,
            'is_slide': False,
            'crop_size': 512,
            'stride': 256,
            'custom_color': False
        }

class MockArgs:
    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 = 768
        self.stride = 384
        self.custom_color = True

cfg = MockConfig()
args = MockArgs()

ARGS = {
    'cfg': cfg,
    'args': args
}
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
norm Ran
ran, honoured the contract we drafted
sacmehta/3d-espnet/ComputeDice.py
code served (permissive licence) · get_code("8cedd657c11f6f8c")
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 ndarray, ndim 2, dtype family float, shape (4, 3) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np

# Create a small test image as a numpy array
# Using distinct dimensions: 4 rows, 3 columns
test_image = np.array([
    [10, 20, 30],
    [40, 50, 60],
    [70, 80, 90],
    [100, 110, 120]
], dtype=np.uint8)

ARGS = {
    "im": test_image
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
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 (4, 3) — shape (4, 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
partition_list Ran
ran; our contract draft was wrong, not the code
simuler/ESPNet/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
readFile Ran
ran on a synthesized input
simuler/ESPNet/compute_classweight.py
code served (permissive licence) · get_code("9c1bd7a7658cc12c")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned ndarray, ndim 1, dtype family float, shape (20,) 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
import os
import tempfile

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

# Create a minimal train.list file with image and label paths
train_list_content = "image1.png label1.png\nimage2.png label2.png\n"
train_list_path = os.path.join(temp_dir, "train.list")
with open(train_list_path, 'w') as f:
    f.write(train_list_content)

# Create minimal dummy image files (single channel, 10x10)
# Label images with values in range [0, 19]
image1_path = os.path.join(temp_dir, "image1.png")
label1_path = os.path.join(temp_dir, "label1.png")
image2_path = os.path.join(temp_dir, "image2.png")
label2_path = os.path.join(temp_dir, "label2.png")

import cv2

# Create dummy label images with class indices
label1 = np.random.randint(0, 20, (10, 10), dtype=np.uint8)
label2 = np.random.randint(0, 20, (10, 10), dtype=np.uint8)

cv2.imwrite(image1_path, np.zeros((10, 10), dtype=np.uint8))
cv2.imwrite(label1_path, label1)
cv2.imwrite(image2_path, np.zeros((10, 10), dtype=np.uint8))
cv2.imwrite(label2_path, label2)

ARGS = {
    'data_dir': temp_dir,
    'fileName': 'train.list'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
cv2, numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 1, dtype family float, shape (20,) — shape (20,) 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 Not yet run
unverified (harvested, no recorded run)
sacmehta/ESPNet/train/VisualizeGraph.py
code served (permissive licence) · get_code("8456f0fd622b9df9")
How it ran

no invocation recorded.

Also present in other papers' code

Of 10 samples lifted from this paper's linked repositories, 10 carry a function identity and 0 do not. Of the 10 distinct functions with an identity, 6 are also present in other papers whose code we hold (3 with at least one paper dated earlier, 1 the same month, 6 later) and 4 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
partition_list 8 other papers
1 dated earlier, 7 later
1606.02147 (2016-06)
ENet: A Deep Neural Network Architecture for Real-Time Semantic Segmentation
1807.10221 (2018-07)
Unified Perceptual Parsing for Scene Understanding
1808.00897 (2018-08)
BiSeNet: Bilateral Segmentation Network for Real-time Semantic Segmentation
and 5 more not named here
flip_combination 7 other papers
1 dated earlier, 6 later
1606.02147 (2016-06)
ENet: A Deep Neural Network Architecture for Real-Time Semantic Segmentation
1807.10221 (2018-07)
Unified Perceptual Parsing for Scene Understanding
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
1 dated earlier, 1 the same month, 4 later
1606.02147 (2016-06)
ENet: A Deep Neural Network Architecture for Real-Time Semantic Segmentation
1803.08904 (2018-03)
Context Encoding for Semantic Segmentation
1807.10221 (2018-07)
Unified Perceptual Parsing for Scene Understanding
and 3 more not named here
get_reverse_list 2 other papers
2 later
1808.00897 (2018-08)
BiSeNet: Bilateral Segmentation Network for Real-time Semantic Segmentation
1811.11721 (2018-11)
CCNet: Criss-Cross Attention for Semantic Segmentation
get_test_config 2 other papers
2 later
1808.00897 (2018-08)
BiSeNet: Bilateral Segmentation Network for Real-time Semantic Segmentation
1811.11721 (2018-11)
CCNet: Criss-Cross Attention for Semantic Segmentation
make_dot 1 other paper
1 later
1809.00397 (2018-09)
Visual Transfer between Atari Games using Competitive Reinforcement Learning

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

Repositories linked to this paper

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

Abstract

We introduce a fast and efficient convolutional neural network, ESPNet, for semantic segmentation of high resolution images under resource constraints. ESPNet is based on a new convolutional module, efficient spatial pyramid (ESP), which is efficient in terms of computation, memory, and power. ESPNet is 22 times faster (on a standard GPU) and 180 times smaller than the state-of-the-art semantic segmentation network PSPNet, while its category-wise accuracy is only 8% less. We evaluated ESPNet on a variety of semantic segmentation datasets including Cityscapes, PASCAL VOC, and a breast biopsy whole slide image dataset. Under the same constraints on memory and computation, ESPNet outperforms all the current efficient CNN networks such as MobileNet, ShuffleNet, and ENet on both standard metrics and our newly introduced performance metrics that measure efficiency on edge devices. Our network can process high resolution images at a rate of 112 and 9 frames per second on a standard GPU and edge device, respectively.

For agents

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

get_harvested_code_for_paper("1803.06815")
get_code_for_paper("1803.06815")
have("1803.06815")

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

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

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

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

Connect an agent — have() is free.