All models

SANet

Polyp segmentation network that filters shallow features with attention maps made from deep features.

Medical imaging · 434 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 (33 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
23.9M
Operations
434
Framework
PyTorch
Recurrent
No
Published
MICCAI 2021
Cited by
480 (as of 24 October 2026)
Authors
Jun Wei, Yiwen Hu, Ruimao Zhang and others
License
MIT
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
m19955
Graph hash
f7ab2efee7c1a685bdf327ab2ad78f8c1aa971ba55330068dc0999eb106fedf2
Skeleton hash
790cace4711a79ba36817ec8d7b40adfd7e10ff717dd4a123c479aa9dae03e22
Architecture hash
81d5108d2f565bff67d17cf890da962a7e7791faee51d1fdbc416e9e7d8ffd4b
Diagram SHA-256
59a3184eee8a90da4eb6482a8ce51f031cf90e40d9821489fccd130f48f7c427
TorchLens version
2.36.0
Renderer
graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
Check
Forward pass replayed in PyTorch

What it is

SANet, short for Shallow Attention Network, is a polyp segmentation model; the paper ties accurate polyp segmentation to colorectal cancer diagnosis. The authors name three obstacles: colors that differ with collection conditions, small polyps that are degraded by repeated downsampling, and an imbalance between foreground and background pixels.

For color, a color exchange operation transfers the color of another randomly picked image from the dataset onto each input image. For small polyps, the shallow attention module upsamples deep features into attention maps and multiplies them with the shallow, high-resolution features to suppress background noise. For the pixel imbalance, a probability correction strategy reweights the predicted logits, and it is applied in the inference phase only.

Res2Net is the encoder backbone. Only the features of its last three blocks are used. The paper evaluates on five polyp segmentation datasets: Kvasir, CVC-ClinicDB, CVC-ColonDB, EndoScene and ETIS. It reports a speed of about 72FPS on an RTX 2080Ti GPU, against 64FPS for PraNet.

Key idea. SANet combines a color exchange operation, a shallow attention module and an inference-time probability correction strategy to segment polyps, small ones in particular.

  • sanet
  • shallow attention network
  • polyp segmentation
  • colonoscopy
  • colorectal cancer
  • medical image segmentation
  • small polyp segmentation

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

Cite the paper

@misc{wei2021shallowattentionnetworkpolyp,
      title={Shallow Attention Network for Polyp Segmentation}, 
      author={Jun Wei and Yiwen Hu and Ruimao Zhang and Zhen Li and S. Kevin Zhou and Shuguang Cui},
      year={2021},
      eprint={2108.00882},
      archivePrefix={arXiv},
      primaryClass={cs.CV},
      url={https://arxiv.org/abs/2108.00882}, 
}