All models

AttR2UNet

A U-Net with attention gates for medical image segmentation, built from MONAI's AttentionUnet.

Medical imaging · 63 operations Checked

100%

Showing the top corner; full diagram not loaded yetShowing a small copy; full diagram not loaded yetLarge diagram, not loaded yet

Open SVG

Loading diagram (38 KB)

Open in a new tab

Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.

At a glance

Parameters
120.3K
Operations
63
Framework
PyTorch
Recurrent
No
Published
2018
Cited by
9,524 (as of 14 November 2026)
Authors
Ozan Oktay, Jo Schlemper, Loïc Le Folgoc and others
License
Apache-2.0
Checked
Passed: the trace was replayed operation by operation and matched the model's own output for this input.

Files

The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.

Details
Stable ID
m120
Graph hash
d9bf246b1953a15284fe99ea60536e9d43eac018e4be746c4cd68ecdfe3515e1
Skeleton hash
976d6a2effe08846c3f7482bb1375372706a45d8940b1b43e505362442bc92b4
Architecture hash
6873174d29405637da6dafa7869a05eebbaa6d8e2796a081710e8654b30fe6c1
Diagram SHA-256
bd74bdf4bf3e472deb1467561b434bfaf61fa75de70356ca90567c0abe5f664f
TorchLens version
2.35.3
Renderer
graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
Check
Forward pass replayed in PyTorch

How this diagram was made

monai.networks.nets.AttentionUnet(spatial_dims=2, in_channels=3, out_channels=1, channels=[16, 32, 64], strides=[2, 2])

What it is

Attention U-Net adds attention gates (AGs) to a U-Net so that a medical imaging model learns on its own to focus on target structures of varying shapes and sizes. Models trained with the gates learn to suppress irrelevant regions of the input image while highlighting the features useful for the task. According to the paper, this removes the need for the separate tissue or organ localization modules used in cascaded convolutional networks.

The paper evaluates the architecture on two large CT abdominal datasets for multi-class image segmentation. It reports that the gates consistently improve the prediction performance of U-Net across datasets and training sizes while preserving computational efficiency. This model, AttR2UNet, is built from the AttentionUnet class in MONAI, which is based on the paper Attention U-Net: Learning Where to Look for the Pancreas.

Key idea. The paper proposes attention gates that integrate into a U-Net so that it learns to focus on target structures without external localization modules.

  • Attention U-Net
  • AttentionUnet
  • AttR2UNet
  • attention gate
  • medical image segmentation
  • MONAI attention unet
  • CT segmentation
  • pancreas segmentation

AI-written summary, based on the paper's abstract and checked automatically against it; not reviewed by a person. Corrections welcome.

Cite the paper

@misc{oktay2018attentionunetlearninglook,
      title={Attention U-Net: Learning Where to Look for the Pancreas}, 
      author={Ozan Oktay and Jo Schlemper and Loic Le Folgoc and Matthew Lee and Mattias Heinrich and Kazunari Misawa and Kensaku Mori and Steven McDonagh and Nils Y Hammerla and Bernhard Kainz and Ben Glocker and Daniel Rueckert},
      year={2018},
      eprint={1804.03999},
      archivePrefix={arXiv},
      primaryClass={cs.CV},
      url={https://arxiv.org/abs/1804.03999}, 
}