SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2211.02701 · 2022

MONAI: An open-source framework for deep learning in healthcare

arXiv · PDF · Open in the Atlas

Code that ran

9 of 10 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 1 honoured the contract we drafted, 0 violated it and 1 has no contract verdict; 7 failures of our instrument; 1 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/2211.02701.json · badge: /api/ran/2211.02701.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
yaziciz/GLIMS community (classifier label)
classifier basis not recorded on the link
9 ran · 1 no recorded run
FunctionStatusWhere it lives
datafold_read Ran
ran; our contract draft was wrong, not the code
yaziciz/GLIMS/utils/data_utils.py
code served (permissive licence) · get_code("ea8666acff12eb5e")
How it ran

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

import json
import os
import tempfile

# Create a temporary directory and a temporary JSON datalist file
tmpdir = tempfile.mkdtemp()
basedir = tempfile.mkdtemp()

# Create sample data structure
datalist_content = {
    "training": [
        {
            "image": "img1.nii.gz",
            "label": "label1.nii.gz",
            "fold": 0
        },
        {
            "image": "img2.nii.gz",
            "label": "label2.nii.gz",
            "fold": 1
        },
        {
            "image": ["img3a.nii.gz", "img3b.nii.gz"],
            "label": "label3.nii.gz",
            "fold": 0
        },
        {
            "image": "img4.nii.gz",
            "label": "",
            "fold": 2
        }
    ],
    "validation": [
        {
            "image": "val_img1.nii.gz",
            "label": "val_label1.nii.gz",
            "fold": 0
        }
    ]
}

# Write the JSON file
datalist_path = os.path.join(tmpdir, "datalist.json")
with open(datalist_path, "w") as f:
    json.dump(datalist_content, f)

ARGS = {
    "datalist": datalist_path,
    "basedir": basedir,
    "fold": 0,
    "key": "training"
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple, ndim 2, dtype family float — a tuple output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
distributed_all_gather Ran
ran; our contract draft was wrong, not the code
yaziciz/GLIMS/utils/utils.py
pointer only (licence: MIT); the stored copy get_code serves, from tvseg/mm-llm-ro, is pointer only (licence: NONE) · get_code("8b18111ad2f880f7")
How it ran

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

get_conv_layer Ran
ran on a synthesized input
yaziciz/GLIMS/Modules/conv_generator.py
code served (permissive licence) · get_code("4da4c81b5bbdc532")
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 Convolution. 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 monai.networks.blocks.convolutions import Convolution
from monai.networks.layers.factories import Act, Norm

torch.manual_seed(0)

ARGS = {
    'spatial_dims': 3,
    'in_channels': 4,
    'out_channels': 5,
    'kernel_size': 3,
    'stride': 1,
    'act': Act.PRELU,
    'norm': Norm.INSTANCE,
    'dropout': None,
    'bias': True,
    'conv_only': False,
    'is_transposed': False,
    'dilation': 1,
    'padding': 1,
    'output_padding': 0,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
monai, numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Convolution — a Convolution output has no array shape of its own; none is stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
get_output_padding Ran
ran, honoured the contract we drafted
yaziciz/GLIMS/Modules/conv_generator.py
code served (permissive licence) · get_code("7e128ead08e94304")
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 numpy as np

# Test case 1: scalar inputs
ARGS = {
    "kernel_size": 3,
    "stride": 1,
    "padding": 1,
}
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 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
get_padding Ran
ran; our contract draft was wrong, not the code
yaziciz/GLIMS/Modules/conv_generator.py
code served (permissive licence) · get_code("3d2504e21805394d")
How it ran

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

import numpy as np

# Test case 1: scalar inputs
ARGS_1 = {
    "kernel_size": 3,
    "stride": 1,
}

# Test case 2: sequence inputs (1D)
ARGS_2 = {
    "kernel_size": [5],
    "stride": [2],
}

# Test case 3: sequence inputs (2D)
ARGS_3 = {
    "kernel_size": [3, 3],
    "stride": [1, 1],
}

# Test case 4: sequence inputs (3D with different values)
ARGS_4 = {
    "kernel_size": [5, 7, 9],
    "stride": [2, 2, 2],
}

# Use the most general case with multiple dimensions
ARGS = {
    "kernel_size": [5, 7],
    "stride": [2, 2],
}
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 int — a tuple output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
get_window_size Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
yaziciz/GLIMS/GLIMS.py
code served (permissive licence) · get_code("34484ba7deb03520")
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 tuple, ndim 2, 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

torch.manual_seed(0)

# Analyze the function:
# - x_size: needs to be a sequence (list/tuple) of integers representing input dimensions
# - window_size: needs to be a sequence of integers representing window dimensions
# - shift_size: optional sequence of integers representing shift amounts, or None

# The function iterates through indices of x_size and compares with window_size
# It creates lists from window_size and optionally shift_size
# Returns tuple(s) based on whether shift_size is provided

ARGS = {
    "x_size": (8, 12, 16),  # input spatial dimensions (distinct sizes)
    "window_size": (4, 4, 4),  # window dimensions
    "shift_size": (2, 2, 2),  # shift dimensions
}
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 tuple, ndim 2, dtype family int — a tuple output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
logsumexp_2d Ran
ran; our contract draft was wrong, not the code
yaziciz/GLIMS/Modules/CSAB.py
code served (permissive licence) · get_code("7abfa32a2f1d7424")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Sonnet 4.5, prompt python_fixture_v1) and returned Tensor, ndim 3, dtype family float, shape (2, 3, 1) 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 expects a 3D or higher dimensional tensor
# It accesses tensor.size(0), tensor.size(1), and flattens the rest
# Let's create a 3D tensor with shape (batch=2, dim1=3, dim2=4)
tensor = torch.randn(2, 3, 4)

ARGS = {
    "tensor": tensor
}
Setup block drafted by
a language model, Claude Sonnet 4.5, prompt python_fixture_v1
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 3, dtype family float, shape (2, 3, 1) — shape (2, 3, 1) 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
window_partition Ran
ran; our contract draft was wrong, not the code
yaziciz/GLIMS/GLIMS.py
pointer only (licence: MIT); the stored copy get_code serves, from HeadLiuYun/NeuroDiff, is pointer only (licence: NONE) · get_code("8cd5fa7e1d693a92")
How it ran

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

window_reverse Ran
ran; our contract draft was wrong, not the code
yaziciz/GLIMS/GLIMS.py
pointer only (licence: MIT); the stored copy get_code serves, from HeadLiuYun/NeuroDiff, is pointer only (licence: NONE) · get_code("1545b891ff0bbdd7")
How it ran

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

get_loader Not yet run
unverified (harvested, no recorded run)
yaziciz/GLIMS/utils/data_utils.py
code served (permissive licence) · get_code("4f0846ad1f425220")
How it ran

no invocation recorded.

Also present in other papers' code

Of 10 samples lifted from this paper's linked repositories, 10 carry a function identity and 0 do not. Of the 10 distinct functions with an identity, 8 are also present in other papers whose code we hold (4 with at least one paper dated earlier, 0 the same month, 7 later) and 2 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
get_window_size 26 other papers
6 dated earlier, 19 later, 1 same year, order not determinable · 7 only as an assembly brick
2103.14030 (2021-03)
Swin Transformer: Hierarchical Vision Transformer using Shifted Windows
2106.13230 (2021-06)
Video Swin Transformer
2111.14821 (2021-11)
End-to-End Referring Video Object Segmentation with Multimodal Transformers
and 23 more not named here
logsumexp_2d 13 other papers
7 dated earlier, 5 later, 1 same year, order not determinable
1806.07366 (2018-06)
Neural Ordinary Differential Equations
1807.06521 (2018-07)
CBAM: Convolutional Block Attention Module
1810.12348 (2018-10)
Gather-Excite: Exploiting Feature Context in Convolutional Neural Networks
and 10 more not named here
window_partition 7 other papers
1 dated earlier, 6 later
2204.00631 (2022-04)
UNetFormer: A Unified Vision Transformer Model and Pre-Training Framework for 3D Medical Image Segmentation
2305.19467 (2023-05)
Synthetic CT Generation from MRI using 3D Transformer-based Denoising Diffusion Model
aaai_28536 (2024 (year only))
A Robust Mutual-Reinforcing Framework for 3D Multi-Modal Medical Image Fusion Based on Visual-Semantic Consistency
and 4 more not named here
window_reverse 3 other papers
3 later
2305.19467 (2023-05)
Synthetic CT Generation from MRI using 3D Transformer-based Denoising Diffusion Model
aaai_28536 (2024 (year only))
A Robust Mutual-Reinforcing Framework for 3D Multi-Modal Medical Image Fusion Based on Visual-Semantic Consistency
2601.15779 (2026-01)
Diffusion Model-Based Data Augmentation for Enhanced Neuron Segmentation
distributed_all_gather 2 other papers
2 later
2311.01908 (2023-11)
LLM-driven Multimodal Target Volume Contouring in Radiation Oncology
2403.06459 (2024-03)
From Pixel to Cancer: Cellular Automata in Computed Tomography
datafold_read 1 other paper
1 dated earlier
2208.14876 (2022-08)
NestedFormer: Nested Modality-Aware Transformer for Brain Tumor Segmentation
get_output_padding 1 other paper
1 later
2404.05102 (2024-04)
LHU-Net: a Lean Hybrid U-Net for Cost-efficient, High-performance Volumetric Segmentation
get_padding 1 other paper
1 later
2404.05102 (2024-04)
LHU-Net: a Lean Hybrid U-Net for Cost-efficient, High-performance Volumetric Segmentation

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

Artificial Intelligence (AI) is having a tremendous impact across most areas of science. Applications of AI in healthcare have the potential to improve our ability to detect, diagnose, prognose, and intervene on human disease. For AI models to be used clinically, they need to be made safe, reproducible and robust, and the underlying software framework must be aware of the particularities (e.g. geometry, physiology, physics) of medical data being processed. This work introduces MONAI, a freely available, community-supported, and consortium-led PyTorch-based framework for deep learning in healthcare. MONAI extends PyTorch to support medical data, with a particular focus on imaging, and provide purpose-specific AI model architectures, transformations and utilities that streamline the development and deployment of medical AI models. MONAI follows best practices for software-development, providing an easy-to-use, robust, well-documented, and well-tested software framework. MONAI preserves the simple, additive, and compositional approach of its underlying PyTorch libraries. MONAI is being used by and receiving contributions from research, clinical and industrial teams from around the world, who are pursuing applications spanning nearly every aspect of healthcare.

For agents

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

get_harvested_code_for_paper("2211.02701")
get_code_for_paper("2211.02701")
have("2211.02701")

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

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

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

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

Connect an agent — have() is free.