SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 1606.06650 · 2016

3D U-Net: Learning Dense Volumetric Segmentation from Sparse Annotation

arXiv · PDF · Open in the Atlas

Code that ran

59 of 76 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (18 of them constructed an object rather than computing a result; 7 honoured the contract we drafted, 0 violated it and 35 have no contract verdict; 17 failures of our instrument; 17 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/1606.06650.json · badge: /api/ran/1606.06650.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
wolny/pytorch-3dunet reimplementation (classifier label)
classifier basis: classifier_2025
13 ran · 6 no recorded run
fepegar/unet reimplementation (classifier label)
classifier basis: classifier_2025
8 ran · 4 no recorded run
Shrajan/AAAI-2022 extension (classifier label)
classifier basis: classifier_2025
6 ran · 0 no recorded run
elektronn/elektronn3 extension (classifier label)
classifier basis: classifier_2025
5 ran · 2 no recorded run
mlf-core/liver-ct-segmentation application (classifier label)
classifier basis: classifier_2025
5 ran · 1 no recorded run
chenyizi086/wu.2023.sigspatial unrelated (classifier label)
classifier basis: classifier_2025
5 ran · 0 no recorded run
UdonDa/3D-UNet-PyTorch reimplementation (classifier label)
classifier basis: classifier_2025
4 ran · 1 no recorded run
jiajun169/mindspore_models community (classifier label)
classifier basis not recorded on the link
4 ran · 0 no recorded run
qsyao/cuda_spatial_deform extension (classifier label)
classifier basis: classifier_2025
4 ran · 0 no recorded run
AghdamAmir/3D-UNet alias (classifier label)
classifier basis: classifier_2025
3 ran · 0 no recorded run
lyqcom/3d-unet community (classifier label)
classifier basis not recorded on the link
2 ran · 1 no recorded run
leohsuofnthu/Pytorch-IterativeFCN unrelated (classifier label)
classifier basis: classifier_2025
0 ran · 1 no recorded run
Iammuratc/grainDetection application (classifier label)
classifier basis: classifier_2025
0 ran · 1 no recorded run
FunctionStatusWhere it lives
AbstractUpsampling Ran
ran on a synthesized input · constructed an object; no result was computed
wolny/pytorch-3dunet/pytorch3dunet/unet3d/model.py
code served (permissive licence) · get_code("bd5255830dbc70df")
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 an instance of its own class, AbstractUpsampling: the run constructed the object and did not call it, so no result was computed. 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
from torch import nn

torch.manual_seed(0)

# Create a simple upsample function that takes x and output_size
def simple_upsample(x, output_size):
    """Simple upsample function that interpolates to target size."""
    return torch.nn.functional.interpolate(
        x, 
        size=output_size, 
        mode='nearest'
    )

# Create encoder_features tensor: 5D tensor (batch, channels, depth, height, width)
encoder_features = torch.randn(2, 4, 3, 5, 6)

# Create input tensor x: 5D tensor with different spatial dimensions
x = torch.randn(2, 4, 2, 3, 4)

ARGS = {
    'upsample': simple_upsample
}
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 AbstractUpsampling — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a AbstractUpsampling 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
Bottom Ran
ran on a synthesized input · constructed an object; no result was computed
Shrajan/AAAI-2022/networks/unet.py
pointer only (licence: NONE) · get_code("bd5f5829c2ce4f4a")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Shrajan/AAAI-2022 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.

ChannelSELayer3D Ran
ran on a synthesized input
wolny/pytorch-3dunet/pytorch3dunet/unet3d/model.py
code served (permissive licence) · get_code("d8c51afcfab2dccb")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, class construct-then-call prompt, model not recorded) and returned Tensor, 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 torch
from torch import nn

class ChannelSELayer3D(nn.Module):
    """3D extension of Squeeze-and-Excitation (SE) block.

    Described in:
        - Hu et al., Squeeze-and-Excitation Networks, arXiv:1709.01507
        - Zhu et al., AnatomyNet, arXiv:1808.05238

    Args:
        num_channels: Number of input channels.
        reduction_ratio: By how much should the num_channels should be reduced. Default: 2.
    """

    def __init__(self, num_channels, reduction_ratio=2):
        super().__init__()
        self.avg_pool = nn.AdaptiveAvgPool3d(1)
        num_channels_reduced = num_channels // reduction_ratio
        self.reduction_ratio = reduction_ratio
        self.fc1 = nn.Linear(num_channels, num_channels_reduced, bias=True)
        self.fc2 = nn.Linear(num_channels_reduced, num_channels, bias=True)
        self.relu = nn.ReLU()
        self.sigmoid = nn.Sigmoid()

    def forward(self, x):
        batch_size, num_channels, D, H, W = x.size()
        squeeze_tensor = self.avg_pool(x)
        fc_out_1 = self.relu(self.fc1(squeeze_tensor.view(batch_size, num_channels)))
        fc_out_2 = self.sigmoid(self.fc2(fc_out_1))
        output_tensor = torch.mul(x, fc_out_2.view(batch_size, num_channels, 1, 1, 1))
        return output_tensor


INIT_ARGS = {
    "num_channels": 4,
    "reduction_ratio": 2,
}

ARGS = {
    "x": torch.randn(2, 4, 3, 5, 7),
}

if __name__ == "__main__":
    model = ChannelSELayer3D(**INIT_ARGS)
    output = model(**ARGS)
    print(f"Input shape: {ARGS['x'].shape}")
    print(f"Output shape: {output.shape}")
    print("Success!")
Setup block drafted by
a language model, class construct-then-call prompt, model not recorded
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 5, dtype family float — no output shape is stated: observe_signature.py observed this class with its constructor sizes canonicalised where it could, which the node does not record, so its shape is not stated as this setup block's
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: torch and numpy seeded to 0 by the harness immediately before the class was constructed from INIT_ARGS (fixture_check.py)
ChannelSpatialSELayer3D Ran
ran on a synthesized input · constructed an object; no result was computed
wolny/pytorch-3dunet/pytorch3dunet/unet3d/model.py
code served (permissive licence) · get_code("e48fc3ac38e078bb")
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 an instance of its own class, ChannelSpatialSELayer3D: the run constructed the object and did not call it, so no result was computed. 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)

# Define ARGS dict with parameters for ChannelSpatialSELayer3D
ARGS = {
    "num_channels": 16,
    "reduction_ratio": 2,
}
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 ChannelSpatialSELayer3D — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a ChannelSpatialSELayer3D 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
Conv3DBlock Ran
ran on a synthesized input
AghdamAmir/3D-UNet/unet3d.py
pointer only (licence: NONE) · get_code("961a837607030f03")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, AghdamAmir/3D-UNet 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 on a synthesized input · constructed an object; no result was computed
Shrajan/AAAI-2022/networks/unet.py
pointer only (licence: NONE) · get_code("002f393823c7b57c")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Shrajan/AAAI-2022 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.

ConvBlock Ran
ran on a synthesized input
mlf-core/liver-ct-segmentation/liver_ct_segmentation/model/unet_3d_models.py
code served (permissive licence) · get_code("86cf127000aad21a")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, class construct-then-call prompt, model not recorded) and returned Tensor, ndim 5, dtype family float, shape (2, 4, 5, 6, 7) 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 as nn

class ConvBlock(nn.Module):

    def __init__(self, in_ch, out_ch, dropout_val=0.001):
        super(ConvBlock, self).__init__()
        self.dropout_value = dropout_val
        self.dropout_1 = nn.Dropout3d(self.dropout_value)
        self.dropout_2 = nn.Dropout3d(self.dropout_value)
        self.non_linearity = nn.ReLU(inplace=False)
        self.conv_1 = nn.Conv3d(in_ch, out_ch, 3, padding=1)
        self.batch_norm_1 = nn.BatchNorm3d(out_ch)
        self.conv_2 = nn.Conv3d(out_ch, out_ch, 3, padding=1)
        self.batch_norm_2 = nn.BatchNorm3d(out_ch)

    def forward(self, x):
        x = self.dropout_1(x)
        x = self.conv_1(x)
        x = self.batch_norm_1(x)
        x = self.non_linearity(x)
        x = self.dropout_2(x)
        x = self.conv_2(x)
        x = self.batch_norm_2(x)
        x = self.non_linearity(x)
        return x


INIT_ARGS = {
    'in_ch': 3,
    'out_ch': 4,
    'dropout_val': 0.1
}

ARGS = {
    'x': torch.randn(2, 3, 5, 6, 7)
}

if __name__ == '__main__':
    block = ConvBlock(**INIT_ARGS)
    output = block(**ARGS)
    print(f"Input shape: {ARGS['x'].shape}")
    print(f"Output shape: {output.shape}")
Setup block drafted by
a language model, class construct-then-call prompt, model not recorded
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 5, dtype family float, shape (2, 4, 5, 6, 7) — shape (2, 4, 5, 6, 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: torch and numpy seeded to 0 by the harness immediately before the class was constructed from INIT_ARGS (fixture_check.py)
ConvolutionalBlock Ran
ran on a synthesized input · constructed an object; no result was computed
fepegar/unet/unet/unet.py
code served (permissive licence) · get_code("7bc5f5b5c8b2e7be")
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 an instance of its own class, ConvolutionalBlock: the run constructed the object and did not call it, so no result was computed. 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 = {
    'dimensions': 2,
    'in_channels': 3,
    'out_channels': 16,
    'normalization': 'Batch',
    'kernel_size': 3,
    'activation': 'ReLU',
    'preactivation': False,
    'padding': 1,
    'padding_mode': 'zeros',
    'dilation': 1,
    'dropout': 0.1,
}
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 ConvolutionalBlock — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a ConvolutionalBlock 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
Decoder Ran
ran on a synthesized input · constructed an object; no result was computed
Shrajan/AAAI-2022/networks/unet.py
pointer only (licence: NONE) · get_code("92c21f0cfe8583db")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Shrajan/AAAI-2022 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.

DecodingBlock Ran
ran on a synthesized input · constructed an object; no result was computed
fepegar/unet/unet/unet.py
code served (permissive licence) · get_code("44f8060512ddb75c")
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 an instance of its own class, DecodingBlock: the run constructed the object and did not call it, so no result was computed. 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
from typing import Optional

torch.manual_seed(0)

ARGS = {
    'in_channels_skip_connection': 8,
    'dimensions': 2,
    'upsampling_type': 'bilinear',
    'normalization': 'Batch',
    'preactivation': True,
    'residual': False,
    'padding': 1,
    'padding_mode': 'zeros',
    'activation': 'ReLU',
    'dilation': None,
    'dropout': 0.0,
}
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 DecodingBlock — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a DecodingBlock 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
DownConv Ran
ran on a synthesized input
elektronn/elektronn3/elektronn3/models/unet.py
code served (permissive licence) · get_code("4fbc8e441e25d534")
How it ran

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

import torch
import numpy as np
from torch import nn

# Class definition (provided)
import copy
from torch import nn

def conv3(in_channels, out_channels, kernel_size=3, stride=1, padding=1, bias=True, planar=False, dim=3):
    if planar:
        stride = planar_kernel(stride)
        padding = planar_pad(padding)
        kernel_size = planar_kernel(kernel_size)
    return get_conv(dim)(in_channels, out_channels, kernel_size=kernel_size, stride=stride, padding=padding, bias=bias)

def get_activation(activation):
    if isinstance(activation, str):
        if activation == 'relu':
            return nn.ReLU()
        elif activation == 'leaky':
            return nn.LeakyReLU(negative_slope=0.1)
        elif activation == 'prelu':
            return nn.PReLU(num_parameters=1)
        elif activation == 'rrelu':
            return nn.RReLU()
        elif activation == 'silu':
            return nn.SiLU()
        elif activation == 'lin':
            return nn.Identity()
    else:
        return copy.deepcopy(activation)

def get_conv(dim=3):
    if dim == 3:
        return nn.Conv3d
    elif dim == 2:
        return nn.Conv2d
    else:
        raise ValueError('dim has to be 2 or 3')

def get_maxpool(dim=3):
    if dim == 3:
        return nn.MaxPool3d
    elif dim == 2:
        return nn.MaxPool2d
    else:
        raise ValueError('dim has to be 2 or 3')

def get_normalization(normtype: str, num_channels: int, dim: int=3):
    if normtype is None or normtype == 'none':
        return nn.Identity()
    elif normtype.startswith('group'):
        if normtype == 'group':
            num_groups = 8
        elif len(normtype) > len('group') and normtype[len('group'):].isdigit():
            num_groups = int(normtype[len('group'):])
        else:
            raise ValueError(f'normtype "{normtype}" not understood. It should be "group<G>", where <G> is the number of groups.')
        return nn.GroupNorm(num_groups=num_groups, num_channels=num_channels)
    elif normtype == 'instance':
        if dim == 3:
            return nn.InstanceNorm3d(num_channels)
        elif dim == 2:
            return nn.InstanceNorm2d(num_channels)
        else:
            raise ValueError('dim has to be 2 or 3')
    elif normtype == 'batch':
        if dim == 3:
            return nn.BatchNorm3d(num_channels)
        elif dim == 2:
            return nn.BatchNorm2d(num_channels)
        else:
            raise ValueError('dim has to be 2 or 3')
    else:
        raise ValueError(f'Unknown normalization type "{normtype}".\nValid choices are "batch", "instance", "group" or "group<G>",where <G> is the number of groups.')

def planar_kernel(x):
    if isinstance(x, int):
        return (1, x, x)
    else:
        return x

def planar_pad(x):
    if isinstance(x, int):
        return (0, x, x)
    else:
        return x

class DownConv(nn.Module):
    def __init__(self, in_channels, out_channels, pooling=True, planar=False, activation='relu', normalization=None, full_norm=True, dim=3, conv_mode='same'):
        super().__init__()
        self.in_channels = in_channels
        self.out_channels = out_channels
        self.pooling = pooling
        self.normalization = normalization
        self.dim = dim
        padding = 1 if 'same' in conv_mode else 0
        self.conv1 = conv3(self.in_channels, self.out_channels, planar=planar, dim=dim, padding=padding)
        self.conv2 = conv3(self.out_channels, self.out_channels, planar=planar, dim=dim, padding=padding)
        if self.pooling:
            kernel_size = 2
            if planar:
                kernel_size = planar_kernel(kernel_size)
            self.pool = get_maxpool(dim)(kernel_size=kernel_size, ceil_mode=True)
            self.pool_ks = kernel_size
        else:
            self.pool = nn.Identity()
            self.pool_ks = -123
        self.act1 = get_activation(activation)
        self.act2 = get_activation(activation)
        if full_norm:
            self.norm0 = get_normalization(normalization, self.out_channels, dim=dim)
        else:
            self.norm0 = nn.Identity()
        self.norm1 = get_normalization(normalization, self.out_channels, dim=dim)

    def forward(self, x):
        y = self.conv1(x)
        y = self.norm0(y)
        y = self.act1(y)
        y = self.conv2(y)
        y = self.norm1(y)
        y = self.act2(y)
        y = self.pool(y)
        return y

# Setup code
INIT_ARGS = {
    'in_channels': 4,
    'out_channels': 8,
    'pooling': True,
    'planar': False,
    'activation': 'relu',
    'normalization': 'batch',
    'full_norm': True,
    'dim': 3,
    'conv_mode': 'same'
}

# Create input tensor: batch=2, channels=4, depth=3, height=5, width=7
ARGS = {
    'x': torch.randn(2, 4, 3, 5, 7)
}

# Construct and call
model = DownConv(**INIT_ARGS)
output = model(**ARGS)
Setup block drafted by
a language model, class construct-then-call prompt, model not recorded
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple — a tuple output has no array shape of its own; none is stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: torch and numpy seeded to 0 by the harness immediately before the class was constructed from INIT_ARGS (fixture_check.py)
DownSamplingBlock Ran
ran on a synthesized input
mlf-core/liver-ct-segmentation/liver_ct_segmentation/model/unet_3d_models.py
code served (permissive licence) · get_code("84be777da492a5a6")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, class construct-then-call prompt, model not recorded) and returned Tensor, 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 torch
import torch.nn as nn

class ConvBlock(nn.Module):

    def __init__(self, in_ch, out_ch, dropout_val=0.001):
        super(ConvBlock, self).__init__()
        self.dropout_value = dropout_val
        self.dropout_1 = nn.Dropout3d(self.dropout_value)
        self.dropout_2 = nn.Dropout3d(self.dropout_value)
        self.non_linearity = nn.ReLU(inplace=False)
        self.conv_1 = nn.Conv3d(in_ch, out_ch, 3, padding=1)
        self.batch_norm_1 = nn.BatchNorm3d(out_ch)
        self.conv_2 = nn.Conv3d(out_ch, out_ch, 3, padding=1)
        self.batch_norm_2 = nn.BatchNorm3d(out_ch)

    def forward(self, x):
        x = self.dropout_1(x)
        x = self.conv_1(x)
        x = self.batch_norm_1(x)
        x = self.non_linearity(x)
        x = self.dropout_2(x)
        x = self.conv_2(x)
        x = self.batch_norm_2(x)
        x = self.non_linearity(x)
        return x

class DownSamplingBlock(nn.Module):

    def __init__(self, in_ch, out_ch, dropout_val=0.001):
        super(DownSamplingBlock, self).__init__()
        self.dropout_value = 0.001
        self.down = nn.Sequential(nn.Dropout3d(self.dropout_value), nn.Conv3d(in_ch, in_ch, 2, stride=2), ConvBlock(in_ch, out_ch, dropout_val=dropout_val))

    def forward(self, x):
        x = self.down(x)
        return x

INIT_ARGS = {
    'in_ch': 3,
    'out_ch': 5,
    'dropout_val': 0.001
}

ARGS = {
    'x': torch.randn(2, 3, 8, 8, 8)
}
Setup block drafted by
a language model, class construct-then-call prompt, model not recorded
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 5, dtype family float — no output shape is stated: observe_signature.py observed this class with its constructor sizes canonicalised where it could, which the node does not record, so its shape is not stated as this setup block's
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: torch and numpy seeded to 0 by the harness immediately before the class was constructed from INIT_ARGS (fixture_check.py)
Encoder Ran
ran on a synthesized input · constructed an object; no result was computed
Shrajan/AAAI-2022/networks/unet.py
pointer only (licence: NONE) · get_code("c1d32ca647fc4e21")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Shrajan/AAAI-2022 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.

EncodingBlock Ran
ran on a synthesized input · constructed an object; no result was computed
fepegar/unet/unet/unet.py
code served (permissive licence) · get_code("d10aff0e169c4244")
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 an instance of its own class, EncodingBlock: the run constructed the object and did not call it, so no result was computed. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn as nn

torch.manual_seed(0)

ARGS = {
    'in_channels': 3,
    'out_channels_first': 8,
    'dimensions': 2,
    'normalization': 'Batch',
    'pooling_type': 'Max',
    'preactivation': False,
    'is_first_block': False,
    'residual': False,
    'padding': 1,
    'padding_mode': 'zeros',
    'activation': 'ReLU',
    'dilation': None,
    'dropout': 0.0,
}
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 EncodingBlock — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a EncodingBlock 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
GridAttention Ran
ran on a synthesized input
elektronn/elektronn3/elektronn3/models/unet.py
code served (permissive licence) · get_code("74dfc4e293ff8a68")
How it ran

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

import torch
import numpy as np

# INIT_ARGS for GridAttention.__init__
INIT_ARGS = {
    'in_channels': 8,
    'gating_channels': 16,
    'inter_channels': 4,
    'dim': 3,
    'sub_sample_factor': 2
}

# ARGS for GridAttention.forward
# For 3D case with sub_sample_factor=2:
# x will be downsampled by factor 2 in theta, so we need spatial dims that work
# g is the gating signal, typically from a coarser scale
# Let's use: x with shape (batch=2, in_channels=8, D=8, H=12, W=16)
#           g with shape (batch=2, gating_channels=16, D=4, H=6, W=8)
# The gating signal g is typically smaller spatially

batch_size = 2
x = torch.randn(batch_size, 8, 8, 12, 16)  # (B, in_channels, D, H, W)
g = torch.randn(batch_size, 16, 4, 6, 8)   # (B, gating_channels, D', H', W')

ARGS = {
    'x': x,
    'g': g
}
Setup block drafted by
a language model, class construct-then-call prompt, model not recorded
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple — a tuple output has no array shape of its own; none is stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: torch and numpy seeded to 0 by the harness immediately before the class was constructed from INIT_ARGS (fixture_check.py)
InputBlock Ran
ran on a synthesized input
mlf-core/liver-ct-segmentation/liver_ct_segmentation/model/unet_3d_models.py
code served (permissive licence) · get_code("d7c2338ecaef5f6f")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, class construct-then-call prompt, model not recorded) and returned Tensor, ndim 5, dtype family float, shape (2, 4, 5, 6, 7) 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 as nn

class ConvBlock(nn.Module):

    def __init__(self, in_ch, out_ch, dropout_val=0.001):
        super(ConvBlock, self).__init__()
        self.dropout_value = dropout_val
        self.dropout_1 = nn.Dropout3d(self.dropout_value)
        self.dropout_2 = nn.Dropout3d(self.dropout_value)
        self.non_linearity = nn.ReLU(inplace=False)
        self.conv_1 = nn.Conv3d(in_ch, out_ch, 3, padding=1)
        self.batch_norm_1 = nn.BatchNorm3d(out_ch)
        self.conv_2 = nn.Conv3d(out_ch, out_ch, 3, padding=1)
        self.batch_norm_2 = nn.BatchNorm3d(out_ch)

    def forward(self, x):
        x = self.dropout_1(x)
        x = self.conv_1(x)
        x = self.batch_norm_1(x)
        x = self.non_linearity(x)
        x = self.dropout_2(x)
        x = self.conv_2(x)
        x = self.batch_norm_2(x)
        x = self.non_linearity(x)
        return x

class InputBlock(nn.Module):

    def __init__(self, in_ch, out_ch, dropout_val=0.001):
        super(InputBlock, self).__init__()
        self.conv_block_1 = ConvBlock(in_ch, out_ch, dropout_val=dropout_val)

    def forward(self, x):
        x = self.conv_block_1(x)
        return x

INIT_ARGS = {
    'in_ch': 3,
    'out_ch': 4,
    'dropout_val': 0.001
}

ARGS = {
    'x': torch.randn(2, 3, 5, 6, 7)
}
Setup block drafted by
a language model, class construct-then-call prompt, model not recorded
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 5, dtype family float, shape (2, 4, 5, 6, 7) — shape (2, 4, 5, 6, 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: torch and numpy seeded to 0 by the harness immediately before the class was constructed from INIT_ARGS (fixture_check.py)
InterpolateUpsampling Ran
ran on a synthesized input · constructed an object; no result was computed
wolny/pytorch-3dunet/pytorch3dunet/unet3d/model.py
code served (permissive licence) · get_code("5312c997daffbe4f")
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 an instance of its own class, InterpolateUpsampling: the run constructed the object and did not call it, so no result was computed. 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
from functools import partial
from torch.nn import functional as F

torch.manual_seed(0)

# Create a minimal encoder_features tensor (5D: batch, channels, depth, height, width)
encoder_features = torch.randn(2, 4, 3, 5, 6)

# Create a minimal x tensor to be upsampled (5D)
x = torch.randn(2, 8, 2, 3, 4)

ARGS = {
    'mode': 'nearest'
}
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 InterpolateUpsampling — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a InterpolateUpsampling 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
NoUpsampling Ran
ran on a synthesized input · constructed an object; no result was computed
wolny/pytorch-3dunet/pytorch3dunet/unet3d/model.py
code served (permissive licence) · get_code("b71250ad47097e99")
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 an instance of its own class, NoUpsampling: the run constructed the object and did not call it, so no result was computed. 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
from torch import nn

torch.manual_seed(0)

# NoUpsampling.__init__ takes no parameters (besides self)
# So ARGS should be an empty dict since there are no parameters to pass

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 NoUpsampling — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a NoUpsampling 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
OutputBlock Ran
ran on a synthesized input
mlf-core/liver-ct-segmentation/liver_ct_segmentation/model/unet_3d_models.py
code served (permissive licence) · get_code("fdd735c8d5934a67")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, class construct-then-call prompt, model not recorded) and returned Tensor, ndim 5, dtype family float, shape (2, 3, 5, 6, 7) 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 as nn

INIT_ARGS = {
    'in_ch': 4,
    'out_ch': 3,
}

ARGS = {
    'x': torch.randn(2, 4, 5, 6, 7),
}

if __name__ == '__main__':
    model = nn.Module()
    model.__class__ = type('OutputBlock', (nn.Module,), {
        '__init__': lambda self, in_ch, out_ch: (
            super(type(self), self).__init__(),
            setattr(self, 'conv_1', nn.Conv3d(in_ch, out_ch, 1))
        ),
        'forward': lambda self, x: self.conv_1(x)
    })
    
    instance = model.__class__(**INIT_ARGS)
    output = instance(**ARGS)
    print(f"Output shape: {output.shape}")
Setup block drafted by
a language model, class construct-then-call prompt, model not recorded
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 5, dtype family float, shape (2, 3, 5, 6, 7) — shape (2, 3, 5, 6, 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: torch and numpy seeded to 0 by the harness immediately before the class was constructed from INIT_ARGS (fixture_check.py)
ResNetBlock Ran
ran on a synthesized input · constructed an object; no result was computed
wolny/pytorch-3dunet/pytorch3dunet/unet3d/model.py
code served (permissive licence) · get_code("e2c1fc74b0aa7fc6")
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 an instance of its own class, ResNetBlock: the run constructed the object and did not call it, so no result was computed. 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)

# ResNetBlock docstring indicates it takes parameters like in_channels, out_channels, kernel_size, order, num_groups
# Looking at the code structure and the docstring mentioning it's used in Encoder, 
# we need to construct valid arguments

ARGS = {
    'in_channels': 3,
    'out_channels': 16,
    'kernel_size': 3,
    'order': 'cge',
    'num_groups': 8,
    'padding': 1,
    'dropout_prob': 0.1,
    'is3d': 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 ResNetBlock — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a ResNetBlock 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
ResNetBlockSE Ran
ran on a synthesized input · constructed an object; no result was computed
wolny/pytorch-3dunet/pytorch3dunet/unet3d/model.py
code served (permissive licence) · get_code("fba2e5652d7a6ce1")
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 an instance of its own class, ResNetBlockSE: the run constructed the object and did not call it, so no result was computed. 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)

class SpatialSELayer3D(nn.Module):
    """Spatial SE layer for 3D"""
    def __init__(self, num_channels):
        super().__init__()
        self.conv = nn.Conv3d(num_channels, 1, kernel_size=1)
        self.sigmoid = nn.Sigmoid()
    
    def forward(self, x):
        squeeze = self.conv(x)
        return x * self.sigmoid(squeeze)

# Build a minimal input tensor: batch_size=2, channels=3, D=4, H=4, W=4
input_tensor = torch.randn(2, 3, 4, 4, 4)

# ResNetBlock parameters
in_channels = 3
out_channels = 5
kernel_size = 3
order = 'cge'
num_groups = 8
is3d = True

ARGS = {
    'in_channels': in_channels,
    'out_channels': out_channels,
    'kernel_size': kernel_size,
    'order': order,
    'num_groups': num_groups,
    'is3d': is3d
}
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 ResNetBlockSE — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a ResNetBlockSE 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
SingleConv Ran
ran on a synthesized input · constructed an object; no result was computed
wolny/pytorch-3dunet/pytorch3dunet/unet3d/model.py
code served (permissive licence) · get_code("26f42cb5865457f1")
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 an instance of its own class, SingleConv: the run constructed the object and did not call it, so no result was computed. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn as nn

torch.manual_seed(0)

ARGS = {
    'in_channels': 3,
    'out_channels': 16,
    'kernel_size': 3,
    'order': 'gcr',
    'num_groups': 8,
    'padding': 1,
    'dropout_prob': 0.1,
    'is3d': 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 SingleConv — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a SingleConv 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
SpatialSELayer3D Ran
ran on a synthesized input
wolny/pytorch-3dunet/pytorch3dunet/unet3d/model.py
code served (permissive licence) · get_code("0ae1c43a043456ae")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, class construct-then-call prompt, model not recorded) and returned Tensor, 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 torch
import numpy as np

# INIT_ARGS: parameters for SpatialSELayer3D.__init__
INIT_ARGS = {
    'num_channels': 8
}

# ARGS: parameters for SpatialSELayer3D.forward
# Input tensor shape: (batch_size, num_channels, D, H, W)
ARGS = {
    'x': torch.randn(2, 8, 5, 6, 7),  # batch=2, channels=8, D=5, H=6, W=7
    'weights': None
}
Setup block drafted by
a language model, class construct-then-call prompt, model not recorded
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 5, dtype family float — no output shape is stated: observe_signature.py observed this class with its constructor sizes canonicalised where it could, which the node does not record, so its shape is not stated as this setup block's
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: torch and numpy seeded to 0 by the harness immediately before the class was constructed from INIT_ARGS (fixture_check.py)
TConv Ran
ran on a synthesized input · constructed an object; no result was computed
Shrajan/AAAI-2022/networks/unet.py
pointer only (licence: NONE) · get_code("f9811d05b5c818c0")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Shrajan/AAAI-2022 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.

TransposeConvUpsampling Ran
ran on a synthesized input · constructed an object; no result was computed
wolny/pytorch-3dunet/pytorch3dunet/unet3d/model.py
code served (permissive licence) · get_code("cb3c64452fa192f4")
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 an instance of its own class, TransposeConvUpsampling: the run constructed the object and did not call it, so no result was computed. 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
from torch.nn import functional as F

torch.manual_seed(0)

ARGS = {
    "in_channels": 16,
    "out_channels": 8,
    "kernel_size": 3,
    "scale_factor": 2,
    "is3d": 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 TransposeConvUpsampling — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a TransposeConvUpsampling 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
UNet Ran
ran on a synthesized input · constructed an object; no result was computed
Shrajan/AAAI-2022/networks/unet.py
pointer only (licence: NONE) · get_code("5d0be67e9ea65011")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Shrajan/AAAI-2022 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.

UNet3D Ran
ran on a synthesized input · constructed an object; no result was computed
wolny/pytorch-3dunet/pytorch3dunet/unet3d/model.py
code served (permissive licence) · get_code("c59e8b03c790e76b")
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 an instance of its own class, UNet3D: the run constructed the object and did not call it, so no result was computed. 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
from functools import partial

torch.manual_seed(0)

# Helper functions that would be imported
def number_of_features_per_level(base_features, num_levels):
    return [base_features * (2 ** k) for k in range(num_levels)]

# Minimal basic_module - a simple double convolution block
class DoubleConv(nn.Module):
    def __init__(self, in_channels, out_channels, layer_order='gcr', num_groups=8, conv_kernel_size=3, conv_padding=1, dropout_prob=0.1, is3d=True):
        super().__init__()
        conv_class = nn.Conv3d if is3d else nn.Conv2d
        self.conv1 = conv_class(in_channels, out_channels, conv_kernel_size, padding=conv_padding)
        self.conv2 = conv_class(out_channels, out_channels, conv_kernel_size, padding=conv_padding)
        self.relu = nn.ReLU(inplace=True)
    
    def forward(self, x):
        x = self.conv1(x)
        x = self.relu(x)
        x = self.conv2(x)
        x = self.relu(x)
        return x

# Minimal encoder/decoder creation functions
def create_encoders(in_channels, f_maps, basic_module, conv_kernel_size, conv_padding, conv_upscale, dropout_prob, layer_order, num_groups, pool_kernel_size, is3d):
    encoders = nn.ModuleList()
    pool_class = nn.MaxPool3d if is3d else nn.MaxPool2d
    
    in_ch = in_channels
    for out_ch in f_maps:
        encoders.append(basic_module(in_ch, out_ch, layer_order=layer_order, num_groups=num_groups, conv_kernel_size=conv_kernel_size, conv_padding=conv_padding, dropout_prob=dropout_prob, is3d=is3d))
        encoders.append(pool_class(pool_kernel_size))
        in_ch = out_ch
    
    return encoders

def create_decoders(f_maps, basic_module, conv_kernel_size, conv_padding, layer_order, num_groups, upsample, dropout_prob, is3d):
    decoders = nn.ModuleList()
    upsample_class = nn.Upsample if upsample != 'deconv' else nn.ConvTranspose3d if is3d else nn.ConvTranspose2d
    
    for i in range(len(f_maps) - 2, -1, -1):
        in_ch = f_maps[i + 1]
        out_ch = f_maps[i]
        decoders.append(basic_module(in_ch, out_ch, layer_order=layer_order, num_groups=num_groups, conv_kernel_size=conv_kernel_size, conv_padding=conv_padding, dropout_prob=dropout_prob, is3d=is3d))
    
    return decoders

ARGS = {
    'in_channels': 1,
    'out_channels': 2,
    'final_sigmoid': False,
    'basic_module': DoubleConv,
    'f_maps': 16,
    'layer_order': 'gcr',
    'num_groups': 8,
    'num_levels': 3,
    'is_segmentation': True,
    'conv_kernel_size': 3,
    'pool_kernel_size': 2,
    'conv_padding': 1,
    'conv_upscale': 2,
    'upsample': 'nearest',
    'dropout_prob': 0.1,
    'is3d': 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 UNet3D — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a UNet3D 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
UNet3D Ran
ran on a synthesized input
chenyizi086/wu.2023.sigspatial/model/unet3d/unet3d.py
pointer only (licence: NONE) · get_code("a23aa4c62d2ced83")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, chenyizi086/wu.2023.sigspatial 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.

UNet3D Ran
ran on a synthesized input
AghdamAmir/3D-UNet/unet3d.py
pointer only (licence: NONE) · get_code("35a374cce6fae706")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, AghdamAmir/3D-UNet 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.

UpConv3DBlock Ran
ran on a synthesized input
AghdamAmir/3D-UNet/unet3d.py
pointer only (licence: NONE) · get_code("fc75937f18b2d1a0")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, AghdamAmir/3D-UNet 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.

UpSamplingBlock Ran
ran on a synthesized input
mlf-core/liver-ct-segmentation/liver_ct_segmentation/model/unet_3d_models.py
code served (permissive licence) · get_code("723045ebfbbe3377")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, class construct-then-call prompt, model not recorded) and returned Tensor, ndim 5, dtype family float, shape (2, 5, 4, 4, 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 torch.nn as nn

class ConvBlock(nn.Module):

    def __init__(self, in_ch, out_ch, dropout_val=0.001):
        super(ConvBlock, self).__init__()
        self.dropout_value = dropout_val
        self.dropout_1 = nn.Dropout3d(self.dropout_value)
        self.dropout_2 = nn.Dropout3d(self.dropout_value)
        self.non_linearity = nn.ReLU(inplace=False)
        self.conv_1 = nn.Conv3d(in_ch, out_ch, 3, padding=1)
        self.batch_norm_1 = nn.BatchNorm3d(out_ch)
        self.conv_2 = nn.Conv3d(out_ch, out_ch, 3, padding=1)
        self.batch_norm_2 = nn.BatchNorm3d(out_ch)

    def forward(self, x):
        x = self.dropout_1(x)
        x = self.conv_1(x)
        x = self.batch_norm_1(x)
        x = self.non_linearity(x)
        x = self.dropout_2(x)
        x = self.conv_2(x)
        x = self.batch_norm_2(x)
        x = self.non_linearity(x)
        return x

class UpSamplingBlock(nn.Module):

    def __init__(self, in_ch, cat_ch, out_ch, dropout_val=0.001):
        super(UpSamplingBlock, self).__init__()
        self.dropout_value = 0.001
        self.up = nn.Sequential(nn.Dropout3d(self.dropout_value), nn.Upsample(scale_factor=2, mode='nearest'))
        self.conv = ConvBlock(in_ch + cat_ch, out_ch, dropout_val=dropout_val)

    def cat_operation(self, dc, syn):
        return torch.cat((dc, syn), dim=1)

    def forward(self, x1, x2):
        x1 = self.up(x1)
        x = self.cat_operation(x1, x2)
        x = self.conv(x)
        return x

INIT_ARGS = {
    'in_ch': 4,
    'cat_ch': 3,
    'out_ch': 5,
    'dropout_val': 0.001
}

ARGS = {
    'x1': torch.randn(2, 4, 2, 2, 2),
    'x2': torch.randn(2, 3, 4, 4, 4)
}
Setup block drafted by
a language model, class construct-then-call prompt, model not recorded
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 5, dtype family float, shape (2, 5, 4, 4, 4) — shape (2, 5, 4, 4, 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: torch and numpy seeded to 0 by the harness immediately before the class was constructed from INIT_ARGS (fixture_check.py)
a_cosine_learning_rate Ran
ran, honoured the contract we drafted
jiajun169/mindspore_models/Unet3d/src/lr_schedule.py
code served (permissive licence) · get_code("316fb42e9e6ed79e")
How it ran

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

import math

def a_cosine_learning_rate(current_step, base_lr, warmup_steps, decay_steps):
    base = float(current_step - warmup_steps) / float(decay_steps)
    learning_rate = (1 + math.cos(base * math.pi)) / 2 * base_lr
    return learning_rate

ARGS = {
    "current_step": 100,
    "base_lr": 0.1,
    "warmup_steps": 10,
    "decay_steps": 1000
}
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 float, ndim 0, dtype family float, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
bool_to_int Ran
ran, honoured the contract we drafted
qsyao/cuda_spatial_deform/cuda_backend/py_api.py
pointer only (licence: NOASSERTION) · get_code("3ae04df8b3a499d0")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, qsyao/cuda_spatial_deform (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.

center_in Ran
ran; our contract draft was wrong, not the code
chenyizi086/wu.2023.sigspatial/model/unet3d/unet3d.py
pointer only (licence: NONE) · get_code("6322564404e6ac5b")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, chenyizi086/wu.2023.sigspatial 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.

center_out Ran
ran; our contract draft was wrong, not the code
chenyizi086/wu.2023.sigspatial/model/unet3d/unet3d.py
pointer only (licence: NONE) · get_code("00e223e69984d6d2")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, chenyizi086/wu.2023.sigspatial 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.

conv_block Ran
ran; our contract draft was wrong, not the code
chenyizi086/wu.2023.sigspatial/model/unet3d/unet3d.py
pointer only (licence: NONE) · get_code("aaac350375676434")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, chenyizi086/wu.2023.sigspatial 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.

conv_block_2_3d Ran
ran; our contract draft was wrong, not the code
UdonDa/3D-UNet-PyTorch/src/model.py
code served (permissive licence) · get_code("769628dc3a9af468")
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)

# Define activation function
activation = nn.ReLU()

# Define parameters for conv_block_2_3d
in_dim = 3
out_dim = 5

ARGS = {
    'in_dim': in_dim,
    'out_dim': out_dim,
    'activation': activation
}
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
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_block_3d Ran
ran; our contract draft was wrong, not the code
UdonDa/3D-UNet-PyTorch/src/model.py
code served (permissive licence) · get_code("520950cb24a9041a")
How it ran

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

import torch
import torch.nn as nn

torch.manual_seed(0)

ARGS = {
    'in_dim': 3,
    'out_dim': 16,
    'activation': nn.ReLU()
}
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_trans_block_3d Ran
ran; our contract draft was wrong, not the code
UdonDa/3D-UNet-PyTorch/src/model.py
code served (permissive licence) · get_code("74e9ef01fdad6274")
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)

# Define arguments for conv_trans_block_3d
in_dim = 16
out_dim = 32
activation = nn.ReLU()

ARGS = {
    "in_dim": in_dim,
    "out_dim": out_dim,
    "activation": activation
}
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
create_conv Ran
ran; our contract draft was wrong, not the code
wolny/pytorch-3dunet/pytorch3dunet/unet3d/model.py
code served (permissive licence) · get_code("d0ca7c4c392589d5")
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.

import torch
import torch.nn as nn

torch.manual_seed(0)

ARGS = {
    "in_channels": 3,
    "out_channels": 16,
    "kernel_size": 3,
    "order": "gcr",
    "num_groups": 1,
    "padding": 1,
    "dropout_prob": 0.5,
    "is3d": False,
}
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 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
create_matrix_rotation_x_3d Ran
ran, honoured the contract we drafted
qsyao/cuda_spatial_deform/deform.py
pointer only (licence: NOASSERTION) · get_code("aea00ce54798f811")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, qsyao/cuda_spatial_deform (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.

create_zero_centered_coordinate_mesh Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
qsyao/cuda_spatial_deform/deform.py
pointer only (licence: NOASSERTION) · get_code("fdaa4b7e9a216060")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, qsyao/cuda_spatial_deform (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.

dynamic_lr Ran
ran, honoured the contract we drafted
jiajun169/mindspore_models/Unet3d/src/lr_schedule.py
code served (permissive licence) · get_code("90a0e8705a358db8")
How it ran

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

import math

class Config:
    def __init__(self):
        self.lr = 0.001
        self.epoch_size = 100
        self.warmup_step = 10
        self.warmup_ratio = 0.1

config = Config()
base_step = 5

ARGS = {
    "config": config,
    "base_step": base_step
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list, ndim 1, dtype family float — a list output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
first Ran
ran on a synthesized input
lyqcom/3d-unet/src/utils.py
code served (permissive licence) · get_code("42ad2df596a897dd")
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

torch.manual_seed(0)

# The function 'first' takes an iterable and returns the first item or a default value
# It simply iterates and returns the first element, or the default if empty

# Test with a list (most common iterable)
ARGS = {
    "iterable": [1, 2, 3, 4, 5],
    "default": None
}
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 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
fix_upsampling_type Ran
ran; our contract draft was wrong, not the code
fepegar/unet/unet/unet.py
code served (permissive licence) · get_code("48a77a4b4c6899cd")
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 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

ARGS = {
    'upsampling_type': 'linear',
    'dimensions': 2
}
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 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
get_conv Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
elektronn/elektronn3/elektronn3/models/unet.py
code served (permissive licence) · get_code("d473e9bce385040b")
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 type. 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
from torch import nn

torch.manual_seed(0)

ARGS = {
    'dim': 3
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type type — a type output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a type 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_conv_transpose_layer Ran
ran; our contract draft was wrong, not the code
fepegar/unet/unet/unet.py
code served (permissive licence) · get_code("ea1e09fb045807d8")
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 ConvTranspose2d. 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 = {
    'dimensions': 2,
    'in_channels': 3,
    'out_channels': 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 ConvTranspose2d — a ConvTranspose2d output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a ConvTranspose2d 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_convtranspose Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
elektronn/elektronn3/elektronn3/models/unet.py
code served (permissive licence) · get_code("a3169a7b1435e0dc")
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 type. 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
from torch import nn

torch.manual_seed(0)

ARGS = {
    'dim': 3
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type type — a type output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a type 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_downsampling_layer Ran
ran; our contract draft was wrong, not the code
fepegar/unet/unet/unet.py
code served (permissive licence) · get_code("abe939ebcfbefc61")
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 MaxPool2d. 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 = {
    "dimensions": 2,
    "pooling_type": "max",
    "kernel_size": 2
}
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 MaxPool2d — a MaxPool2d output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a MaxPool2d 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_list_of_files_in_dir Ran
ran on a synthesized input
jiajun169/mindspore_models/Unet3d/src/convert_nifti.py
code served (permissive licence) · get_code("77063b815fa723a0")
How it ran

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

import tempfile
from pathlib import Path

# Create a temporary directory with some test files
temp_dir = tempfile.mkdtemp()
temp_path = Path(temp_dir)

# Create some test files with different extensions
(temp_path / "file1.txt").touch()
(temp_path / "file2.txt").touch()
(temp_path / "file3.py").touch()
(temp_path / "file4.md").touch()
(temp_path / "subdir").mkdir(exist_ok=True)

ARGS = {
    "directory": temp_dir,
    "file_types": "*.txt"
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list, ndim 1, dtype family float — a list output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
get_maxpool Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
elektronn/elektronn3/elektronn3/models/unet.py
code served (permissive licence) · get_code("a12e2f04ad60d321")
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 type. 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
from torch import nn

torch.manual_seed(0)

# The function get_maxpool takes a single parameter 'dim' which should be 2 or 3
# It returns the appropriate MaxPool class based on the dimension
# We need to test it with valid dim values

ARGS = {
    'dim': 3
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type type — a type output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a type 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_random_patch Ran
ran on a synthesized input
lyqcom/3d-unet/src/utils.py
code served (permissive licence) · get_code("47769d97406c079f")
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 random seed for reproducibility
np.random.seed(0)

# Define the arguments
ARGS = {
    "dims": (10, 8, 6),
    "patch_size": (4, 3, 2),
    "rand_fn": None
}
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
get_upsampling_layer Ran
ran; our contract draft was wrong, not the code
fepegar/unet/unet/unet.py
code served (permissive licence) · get_code("29992fbf80f8c0a1")
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 Upsample. 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 takes a single parameter: upsampling_type (str)
# It validates that upsampling_type is one of the valid modes
# and returns an nn.Upsample layer configured with that mode

ARGS = {
    'upsampling_type': 'bilinear'
}
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 Upsample — a Upsample output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Upsample 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
linear_warmup_learning_rate Ran
ran, honoured the contract we drafted
jiajun169/mindspore_models/Unet3d/src/lr_schedule.py
code served (permissive licence) · get_code("d6a99ec714147ac1")
How it ran

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

import torch
import numpy as np

torch.manual_seed(0)

# Analyzing the function:
# - current_step: used in arithmetic (int or float)
# - warmup_steps: used in division (int or float)
# - base_lr: used in float() conversion and subtraction (int or float)
# - init_lr: used in float() conversion and addition (int or float)

ARGS = {
    "current_step": 500,
    "warmup_steps": 1000,
    "base_lr": 0.1,
    "init_lr": 0.001,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type float, ndim 0, dtype family float, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
max_pooling_3d Ran
ran on a synthesized input
UdonDa/3D-UNet-PyTorch/src/model.py
code served (permissive licence) · get_code("a5b542b783b2f9c1")
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 MaxPool3d. 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 max_pooling_3d() takes no parameters
# It simply returns a MaxPool3d layer instance
# We need to construct ARGS as an empty dict since there are no parameters

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 MaxPool3d — a MaxPool3d output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a MaxPool3d 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
number_of_features_per_level Ran
ran, honoured the contract we drafted
wolny/pytorch-3dunet/pytorch3dunet/unet3d/model.py
code served (permissive licence) · get_code("9c4cd085f7952fa0")
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

torch.manual_seed(0)

ARGS = {
    "init_channel_number": 64,
    "num_levels": 4,
}
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
run Ran
ran; our contract draft was wrong, not the code
fepegar/unet/tests/test_unet.py
code served (permissive licence) · get_code("12ba822b7c231300")
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, 3) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn as nn

torch.manual_seed(0)

class SimpleModel(nn.Module):
    def __init__(self):
        super().__init__()
        self.linear = nn.Linear(4, 3)
    
    def forward(self, x):
        return self.linear(x)

model = SimpleModel()
shape = (2, 4)

ARGS = {
    "model": model,
    "shape": shape,
}
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, 3) — shape (2, 3) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
scale_coords Ran
ran, honoured the contract we drafted
qsyao/cuda_spatial_deform/deform.py
pointer only (licence: NOASSERTION) · get_code("a7d7bc408835cb44")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, qsyao/cuda_spatial_deform (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.

up_conv_block Ran
ran; our contract draft was wrong, not the code
chenyizi086/wu.2023.sigspatial/model/unet3d/unet3d.py
pointer only (licence: NONE) · get_code("38e1ecb8f675c611")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, chenyizi086/wu.2023.sigspatial 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.

AbstractUNet Not yet run
unverified (harvested, no recorded run)
wolny/pytorch-3dunet/pytorch3dunet/unet3d/model.py
code served (permissive licence) · get_code("d98c95b8fc1ede43")
How it ran

no invocation recorded.

Showing the first 60. An agent gets every one from get_harvested_code_for_paper("1606.06650").

Also present in other papers' code

Of 76 samples lifted from this paper's linked repositories, 76 carry a function identity and 0 do not. Of the 76 distinct functions with an identity, 22 are also present in other papers whose code we hold (14 with at least one paper dated earlier, 1 the same month, 10 later) and 54 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
linear_warmup_learning_rate 7 other papers
1 dated earlier, 1 the same month, 5 later
1506.01497 (2015-06)
Faster R-CNN: Towards Real-Time Object Detection with Region Proposal Networks
1606.04797 (2016-06)
V-Net: Fully Convolutional Neural Networks for Volumetric Medical Image Segmentation
1904.01906 (2019-04)
What Is Wrong With Scene Text Recognition Model Comparisons? Dataset and Model Analysis
and 4 more not named here
get_conv
brick of this paper's assembly: helper
5 other papers
5 later · 1 only as an assembly brick
2212.02059 (2022-12)
Region-Conditioned Orthogonal 3D U-Net for Weather4Cast Competition
2212.02952 (2022-12)
Simple Baseline for Weather Forecasting Using Spatiotemporal Context Aggregation Network
2212.02998 (2022-12)
Super-resolution Probabilistic Rain Prediction from Satellite Data Using 3D U-Nets and EarthFormers
and 2 more not named here
get_convtranspose
brick of this paper's assembly: helper
5 other papers
5 later · 1 only as an assembly brick
2212.02059 (2022-12)
Region-Conditioned Orthogonal 3D U-Net for Weather4Cast Competition
2212.02952 (2022-12)
Simple Baseline for Weather Forecasting Using Spatiotemporal Context Aggregation Network
2212.02998 (2022-12)
Super-resolution Probabilistic Rain Prediction from Satellite Data Using 3D U-Nets and EarthFormers
and 2 more not named here
get_maxpool
brick of this paper's assembly: helper
5 other papers
5 later · 1 only as an assembly brick
2212.02059 (2022-12)
Region-Conditioned Orthogonal 3D U-Net for Weather4Cast Competition
2212.02952 (2022-12)
Simple Baseline for Weather Forecasting Using Spatiotemporal Context Aggregation Network
2212.02998 (2022-12)
Super-resolution Probabilistic Rain Prediction from Satellite Data Using 3D U-Nets and EarthFormers
and 2 more not named here
a_cosine_learning_rate 4 other papers
1 dated earlier, 3 later
1506.01497 (2015-06)
Faster R-CNN: Towards Real-Time Object Detection with Region Proposal Networks
1904.01906 (2019-04)
What Is Wrong With Scene Text Recognition Model Comparisons? Dataset and Model Analysis
2103.13413 (2021-03)
Vision Transformers for Dense Prediction
and 1 more not named here
GridAttention
brick of this paper's assembly: helper
2 other papers
2 later · 1 only as an assembly brick
2212.02952 (2022-12)
Simple Baseline for Weather Forecasting Using Spatiotemporal Context Aggregation Network
2212.04005 (2022-12)
RainUNet for Super-Resolution Rain Movie Prediction under Spatio-temporal Shifts
ConvolutionalBlock
brick of this paper's assembly: model
1 other paper
1 dated earlier · 1 only as an assembly brick
1505.04597 (2015-05)
U-Net: Convolutional Networks for Biomedical Image Segmentation
Decoder
brick of this paper's assembly: model
1 other paper
1 dated earlier · 1 only as an assembly brick
1505.04597 (2015-05)
U-Net: Convolutional Networks for Biomedical Image Segmentation
DecodingBlock
brick of this paper's assembly: model
1 other paper
1 dated earlier · 1 only as an assembly brick
1505.04597 (2015-05)
U-Net: Convolutional Networks for Biomedical Image Segmentation
Encoder
brick of this paper's assembly: model
1 other paper
1 dated earlier · 1 only as an assembly brick
1505.04597 (2015-05)
U-Net: Convolutional Networks for Biomedical Image Segmentation
EncodingBlock
brick of this paper's assembly: model
1 other paper
1 dated earlier · 1 only as an assembly brick
1505.04597 (2015-05)
U-Net: Convolutional Networks for Biomedical Image Segmentation
UNet
brick of this paper's assembly: helper
1 other paper
1 dated earlier · 1 only as an assembly brick
1505.04597 (2015-05)
U-Net: Convolutional Networks for Biomedical Image Segmentation
conv_block_2_3d
brick of this paper's assembly: helper
1 other paper
1 later
2410.09299 (2024-10)
Hierarchical uncertainty estimation for learning-based registration in neuroimaging
conv_block_3d
brick of this paper's assembly: helper
1 other paper
1 later
2410.09299 (2024-10)
Hierarchical uncertainty estimation for learning-based registration in neuroimaging
conv_trans_block_3d
brick of this paper's assembly: helper
1 other paper
1 later
2410.09299 (2024-10)
Hierarchical uncertainty estimation for learning-based registration in neuroimaging
create_matrix_rotation_x_3d 1 other paper
1 dated earlier
1505.04597 (2015-05)
U-Net: Convolutional Networks for Biomedical Image Segmentation
create_zero_centered_coordinate_mesh 1 other paper
1 dated earlier
1505.04597 (2015-05)
U-Net: Convolutional Networks for Biomedical Image Segmentation
dynamic_lr 1 other paper
1 later
2103.13413 (2021-03)
Vision Transformers for Dense Prediction
fix_upsampling_type
brick of this paper's assembly: helper
1 other paper
1 dated earlier · 1 only as an assembly brick
1505.04597 (2015-05)
U-Net: Convolutional Networks for Biomedical Image Segmentation
get_conv_transpose_layer
brick of this paper's assembly: helper
1 other paper
1 dated earlier · 1 only as an assembly brick
1505.04597 (2015-05)
U-Net: Convolutional Networks for Biomedical Image Segmentation

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

This paper introduces a network for volumetric segmentation that learns from sparsely annotated volumetric images. We outline two attractive use cases of this method: (1) In a semi-automated setup, the user annotates some slices in the volume to be segmented. The network learns from these sparse annotations and provides a dense 3D segmentation. (2) In a fully-automated setup, we assume that a representative, sparsely annotated training set exists. Trained on this data set, the network densely segments new volumetric images. The proposed network extends the previous u-net architecture from Ronneberger et al. by replacing all 2D operations with their 3D counterparts. The implementation performs on-the-fly elastic deformations for efficient data augmentation during training. It is trained end-to-end from scratch, i.e., no pre-trained network is required. We test the performance of the proposed method on a complex, highly variable 3D structure, the Xenopus kidney, and achieve good results for both use cases.

For agents

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

get_harvested_code_for_paper("1606.06650")
get_code_for_paper("1606.06650")
have("1606.06650")

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

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

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

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

Connect an agent — have() is free.