SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 1511.02680 · 2015

Bayesian SegNet: Model Uncertainty in Deep Convolutional Encoder-Decoder Architectures for Scene Understanding

arXiv · PDF · Open in the Atlas

Code that ran

6 of 18 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 6 have no contract verdict; 0 failures of our instrument; 12 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/1511.02680.json · badge: /api/ran/1511.02680.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
hosshonarvar/Image-Segmentation community (classifier label)
classifier basis not recorded on the link
6 ran · 12 no recorded run
FunctionStatusWhere it lives
conv2d_layer Ran
ran on a synthesized input
hosshonarvar/Image-Segmentation/my_code/Src/operations.py
code served (permissive licence) · get_code("1100155deac6df9c")
How it ran

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

import tensorflow as tf
import numpy as np

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

# Create a small input tensor: batch=2, height=4, width=4, channels=3
input_layer = tf.constant(np.random.randn(2, 4, 4, 3).astype(np.float32))

# Create weights for conv2d: kernel_height=3, kernel_width=3, input_channels=3, output_channels=5
weights_layer = tf.constant(np.random.randn(3, 3, 3, 5).astype(np.float32))

# Create biases: one per output channel (5 output channels)
biases_layer = tf.constant(np.random.randn(5).astype(np.float32))

# Create a boolean tensor flag for training
train_flag = tf.constant(True)

# Name parameter
name = "conv2d_layer_1"

ARGS = {
    "input_layer": input_layer,
    "name": name,
    "weights_layer": weights_layer,
    "biases_layer": biases_layer,
    "train_flag": train_flag
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, tensorflow — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type EagerTensor, ndim 4, dtype family float, shape (2, 4, 4, 5) — shape (2, 4, 4, 5) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
decoder_parameters_layer Ran
ran on a synthesized input
hosshonarvar/Image-Segmentation/my_code/Src/parameters.py
code served (permissive licence) · get_code("08141afc1fd47d42")
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 tensorflow as tf
import numpy as np

# Initialize TensorFlow v1 compatibility mode
tf.compat.v1.disable_eager_execution()

# Define the conv_layers dictionary as used in the function
conv_layers = {1: 2, 2: 2, 3: 3, 4: 3, 5: 3, 6: 3, 7: 3, 8: 3, 9: 2, 10: 3}
num_boxes = len(conv_layers) + 1

# Create filters_layers dictionary with filter shapes for boxes 6-10
# The function only processes box_b >= 6, so we need filter specs for those
filters_layers = {
    'f_6_1': (3, 3, 64, 128),  # (H, W, in_channels, out_channels)
    'f_6_2': (3, 3, 128, 128),
    'f_6_3': (3, 3, 128, 256),
    'f_7_1': (3, 3, 256, 256),
    'f_7_2': (3, 3, 256, 256),
    'f_7_3': (3, 3, 256, 512),
    'f_8_1': (3, 3, 512, 512),
    'f_8_2': (3, 3, 512, 512),
    'f_8_3': (3, 3, 512, 512),
    'f_9_1': (3, 3, 512, 256),
    'f_9_2': (3, 3, 256, 256),
    'f_10_1': (3, 3, 256, 128),
    'f_10_2': (3, 3, 128, 128),
    'f_10_3': (3, 3, 128, 64),
}

# Create an empty parameters_layers dictionary to be populated
parameters_layers = {}

ARGS = {
    'filters_layers': filters_layers,
    'parameters_layers': parameters_layers,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, tensorflow — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type 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_filename_list Ran
ran on a synthesized input
hosshonarvar/Image-Segmentation/others_code/inputs_object.py
code served (permissive licence) · get_code("bac4ea89c9097ba1")
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 tempfile
import os

# Create a temporary file with sample data
temp_fd = tempfile.NamedTemporaryFile(mode='w', delete=False, suffix='.txt')
temp_path = temp_fd.name

# Write sample image and label pairs
temp_fd.write('image1.jpg label1.txt\n')
temp_fd.write('image2.jpg label2.txt\n')
temp_fd.write('image3.jpg label3.txt\n')
temp_fd.close()

# Create config dict with required prefixes
config = {
    'IMG_PREFIX': '/data/images/',
    'LABEL_PREFIX': '/data/labels/'
}

ARGS = {
    'path': temp_path,
    'config': config
}
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, 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
initialize_parameters_layer Ran
ran on a synthesized input
hosshonarvar/Image-Segmentation/my_code/Src/parameters.py
code served (permissive licence) · get_code("1176233b38437ed1")
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 = {
    'num_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
maxpool2d_indices_layer Ran
ran on a synthesized input
hosshonarvar/Image-Segmentation/my_code/Src/operations.py
code served (permissive licence) · get_code("2ef0bbabe4e8a662")
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 5, 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 tensorflow as tf
import numpy as np

# Create a small input tensor for max_pool_with_argmax
# Shape: [batch, height, width, channels] = [2, 4, 4, 3]
# This will be pooled with 2x2 kernel and stride 2
input_tensor = tf.constant(
    np.random.randn(2, 4, 4, 3).astype(np.float32)
)

ARGS = {
    "input_layer": input_tensor
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, tensorflow — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple, ndim 5, 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
read_paths_file Ran
ran on a synthesized input
hosshonarvar/Image-Segmentation/my_code/Src/input.py
code served (permissive licence) · get_code("d79699ab9dd285c3")
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 tempfile
import os

# Create a temporary file with sample data in the format expected by read_paths_file
# Format: each line has "path_to_X path_to_Y"
temp_file = tempfile.NamedTemporaryFile(mode='w', delete=False, suffix='.txt')
temp_file.write("image1.jpg label1.txt\n")
temp_file.write("image2.jpg label2.txt\n")
temp_file.close()

ARGS = {
    'paths_file': temp_file.name
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
tensorflow — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type 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
batch_norm Not yet run
unverified (harvested, no recorded run)
hosshonarvar/Image-Segmentation/others_code/layers_object.py
code served (permissive licence) · get_code("5d5ab2d2e269268e")
How it ran

no invocation recorded.

cal_loss Not yet run
unverified (harvested, no recorded run)
hosshonarvar/Image-Segmentation/others_code/evaluation_object.py
code served (permissive licence) · get_code("00a137eeb688bbf2")
How it ran

no invocation recorded.

conv_layer Not yet run
unverified (harvested, no recorded run)
hosshonarvar/Image-Segmentation/others_code/layers_object.py
code served (permissive licence) · get_code("da64ac3ea0aa102b")
How it ran

no invocation recorded.

create_dataset Not yet run
unverified (harvested, no recorded run)
hosshonarvar/Image-Segmentation/my_code/Src/input.py
code served (permissive licence) · get_code("28e9700e3cfdeda0")
How it ran

no invocation recorded.

dataset_inputs Not yet run
unverified (harvested, no recorded run)
hosshonarvar/Image-Segmentation/others_code/inputs_object.py
code served (permissive licence) · get_code("b64e374d9b820bbd")
How it ran

no invocation recorded.

dataset_reader Not yet run
unverified (harvested, no recorded run)
hosshonarvar/Image-Segmentation/others_code/inputs_object.py
code served (permissive licence) · get_code("8d70ecc459a5e844")
How it ran

no invocation recorded.

get_parameters Not yet run
unverified (harvested, no recorded run)
hosshonarvar/Image-Segmentation/my_code/Src/parameters.py
code served (permissive licence) · get_code("6b793951869a5684")
How it ran

no invocation recorded.

max_pool Not yet run
unverified (harvested, no recorded run)
hosshonarvar/Image-Segmentation/others_code/layers_object.py
code served (permissive licence) · get_code("f72cdb6c9c2d1060")
How it ran

no invocation recorded.

normal_loss Not yet run
unverified (harvested, no recorded run)
hosshonarvar/Image-Segmentation/others_code/evaluation_object.py
code served (permissive licence) · get_code("2185e76397ed29f7")
How it ran

no invocation recorded.

parse_dataset Not yet run
unverified (harvested, no recorded run)
hosshonarvar/Image-Segmentation/my_code/Src/input.py
code served (permissive licence) · get_code("465a1df98fcaa53d")
How it ran

no invocation recorded.

upsample2d_layer Not yet run
unverified (harvested, no recorded run)
hosshonarvar/Image-Segmentation/my_code/Src/operations.py
code served (permissive licence) · get_code("0a684097c5925075")
How it ran

no invocation recorded.

weighted_loss Not yet run
unverified (harvested, no recorded run)
hosshonarvar/Image-Segmentation/others_code/evaluation_object.py
code served (permissive licence) · get_code("2dee72e12c7f0a5d")
How it ran

no invocation recorded.

Also present in other papers' code

Of 18 samples lifted from this paper's linked repositories, 18 carry a function identity and 0 do not. Of the 18 distinct functions with an identity, 0 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 0 later) and 18 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.

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 present a deep learning framework for probabilistic pixel-wise semantic segmentation, which we term Bayesian SegNet. Semantic segmentation is an important tool for visual scene understanding and a meaningful measure of uncertainty is essential for decision making. Our contribution is a practical system which is able to predict pixel-wise class labels with a measure of model uncertainty. We achieve this by Monte Carlo sampling with dropout at test time to generate a posterior distribution of pixel class labels. In addition, we show that modelling uncertainty improves segmentation performance by 2-3% across a number of state of the art architectures such as SegNet, FCN and Dilation Network, with no additional parametrisation. We also observe a significant improvement in performance for smaller datasets where modelling uncertainty is more effective. We benchmark Bayesian SegNet on the indoor SUN Scene Understanding and outdoor CamVid driving scenes datasets.

For agents

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

get_harvested_code_for_paper("1511.02680")
get_code_for_paper("1511.02680")
have("1511.02680")

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

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

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

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

Connect an agent — have() is free.