SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2102.04306 · 2021

TransUNet: Transformers Make Strong Encoders for Medical Image Segmentation

arXiv · PDF · Open in the Atlas

Code that ran

6 of 7 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 2 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 4 failures of our instrument; 1 no recorded run); 1 of them was also run on the host, not in the jail, by the peer-agreement lane that set its level, 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/2102.04306.json · badge: /api/ran/2102.04306.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
ljollans/trunet extension (classifier label)
classifier basis: classifier_2025
3 ran · 0 no recorded run
maloadba/mgenseg_2d reimplementation (classifier label)
classifier basis: classifier_2025
2 ran · 1 no recorded run
copy not recorded community
not in the paper's declared repositories
1 ran · 0 no recorded run
FunctionStatusWhere it lives
np2th Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
this paper's copy was not recorded; identical code first harvested from jeonsworld/ViT-pytorch
pointer only · get_code("7d8eaf5537f699e4")
How it ran

The body of this sample is withheld: this paper's copy of the code was not recorded (its link names no repository or source path), so no licence was read for it. 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.

conv1x1 Ran
ran; our contract draft was wrong, not the code
maloadba/mgenseg_2d/model/configs/mbrats/Transunet.py
pointer only (licence: NONE) · get_code("b0f916df39e78ae5")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, maloadba/mgenseg_2d when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

conv3x3 Ran
ran; our contract draft was wrong, not the code
maloadba/mgenseg_2d/model/configs/mbrats/Transunet.py
pointer only (licence: NONE) · get_code("4e5bf13dbdc4f008")
How it ran

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

dice_score Ran
ran, honoured the contract we drafted
ljollans/trunet/TRUNet_network/trunet_train.py
pointer only (licence: GPL-3.0) · get_code("991bd6a9b4b39241")
How it ran

The body of this sample is withheld: GPL-3.0, as GitHub detects it on this paper's repository, ljollans/trunet, is not in the permissive set Syntology serves inline. 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.

one_hot_encoder Ran
ran; our contract draft was wrong, not the code
ljollans/trunet/TRUNet_network/trunet_train.py
pointer only (licence: GPL-3.0) · get_code("7e0f38dc41fa04e1")
How it ran

The body of this sample is withheld: GPL-3.0, as GitHub detects it on this paper's repository, ljollans/trunet, is not in the permissive set Syntology serves inline. 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.

to_one_arr_encoding Ran
ran, honoured the contract we drafted
ljollans/trunet/TRUNet_network/trunet_train.py
pointer only (licence: GPL-3.0) · get_code("492de094e1db0458")
How it ran

The body of this sample is withheld: GPL-3.0, as GitHub detects it on this paper's repository, ljollans/trunet, is not in the permissive set Syntology serves inline. 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.

run Not yet run
unverified (harvested, no recorded run)
maloadba/mgenseg_2d/mbrats_segmentation_transunet.py
pointer only (licence: NONE) · get_code("879df9465f2b5e0f")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, maloadba/mgenseg_2d 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. No invocation recorded.

Also present in other papers' code

Of 7 samples lifted from this paper's linked repositories, 7 carry a function identity and 0 do not. Of the 7 distinct functions with an identity, 3 are also present in other papers whose code we hold (3 with at least one paper dated earlier, 0 the same month, 3 later) and 4 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

FunctionAlso present inEarliest-datedOthers named
np2th 35 other papers
1 dated earlier, 34 later · 5 only as an assembly brick
2010.11929 (2020-10)
An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
2103.07976 (2021-03)
TransFG: A Transformer Architecture for Fine-grained Recognition
2103.12091 (2021-03)
Transformer-Based Attention Networks for Continuous Pixel-Wise Prediction
and 32 more not named here
conv1x1 33 other papers
2 dated earlier, 31 later · 3 only as an assembly brick
1912.11370 (2019-12)
Big Transfer (BiT): General Visual Representation Learning
2010.11929 (2020-10)
An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
2103.12091 (2021-03)
Transformer-Based Attention Networks for Continuous Pixel-Wise Prediction
and 30 more not named here
conv3x3 33 other papers
2 dated earlier, 31 later · 3 only as an assembly brick
1912.11370 (2019-12)
Big Transfer (BiT): General Visual Representation Learning
2010.11929 (2020-10)
An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
2103.12091 (2021-03)
Transformer-Based Attention Networks for Continuous Pixel-Wise Prediction
and 30 more not named 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

Medical image segmentation is an essential prerequisite for developing healthcare systems, especially for disease diagnosis and treatment planning. On various medical image segmentation tasks, the u-shaped architecture, also known as U-Net, has become the de-facto standard and achieved tremendous success. However, due to the intrinsic locality of convolution operations, U-Net generally demonstrates limitations in explicitly modeling long-range dependency. Transformers, designed for sequence-to-sequence prediction, have emerged as alternative architectures with innate global self-attention mechanisms, but can result in limited localization abilities due to insufficient low-level details. In this paper, we propose TransUNet, which merits both Transformers and U-Net, as a strong alternative for medical image segmentation. On one hand, the Transformer encodes tokenized image patches from a convolution neural network (CNN) feature map as the input sequence for extracting global contexts. On the other hand, the decoder upsamples the encoded features which are then combined with the high-resolution CNN feature maps to enable precise localization. We argue that Transformers can serve as strong encoders for medical image segmentation tasks, with the combination of U-Net to enhance finer details by recovering localized spatial information. TransUNet achieves superior performances to various competing methods on different medical applications including multi-organ segmentation and cardiac segmentation. Code and models are available at https://github.com/Beckschen/TransUNet.

For agents

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

get_harvested_code_for_paper("2102.04306")
get_code_for_paper("2102.04306")
have("2102.04306")

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

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

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

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

Connect an agent — have() is free.