All models

smp_PAN_resnet18

A segmentation network that adds global context to pixel labels through pyramid attention.

Segmentation · 136 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 (22 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
11.4M
Operations
136
Framework
PyTorch
Recurrent
No
Published
2018
Cited by
1,056 (as of 12 November 2026)
Authors
Hanchao Li, Pengfei Xiong, Jie An, Lingxue Wang
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
m9655
Graph hash
3094266d29783e5c863d8532e122c7ccdea17d3039b587af734a74c69de24980
Skeleton hash
4ee572ec78a18c1ac988d1145c925348db043c60b8ac9cc6ce6fcabaef113797
Architecture hash
565364266c8fd79b27742988815ca5bdc2e81614969e40df603f030ef56aaffa
Diagram SHA-256
08f8d484af2e9df794b3ba1799b089820f4a90feacda4c38170418138c790854
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

segmentation_models_pytorch.PAN(encoder_name='resnet18', encoder_weights=None, in_channels=3, classes=21)

What it is

About this model's family

The Pyramid Attention Network, PAN, is a semantic segmentation model designed to exploit global contextual information for pixel labeling. Rather than complicated dilated convolution and hand-designed decoders, it combines an attention mechanism with a spatial pyramid to extract precise dense features.

A Feature Pyramid Attention module applies a spatial pyramid attention structure to the high-level output and combines it with global pooling to learn a better feature representation. A Global Attention Upsample module on each decoder layer then provides global context to guide the low-level features in selecting category localization details. The paper reports state-of-the-art results on PASCAL VOC 2012 and Cityscapes, with a new record of 84.0% mIoU on PASCAL VOC 2012 while training without the COCO dataset.

Key idea. Combining a spatial pyramid with attention, through a Feature Pyramid Attention module and Global Attention Upsample modules, to bring global context into dense pixel labeling without dilated convolutions or hand-designed decoders.

  • pan
  • pyramid attention network
  • semantic segmentation
  • segmentation_models_pytorch
  • smp
  • feature pyramid attention
  • global attention upsample
  • pixel labeling

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{li2018pyramidattentionnetworksemantic,
      title={Pyramid Attention Network for Semantic Segmentation}, 
      author={Hanchao Li and Pengfei Xiong and Jie An and Lingxue Wang},
      year={2018},
      eprint={1805.10180},
      archivePrefix={arXiv},
      primaryClass={cs.CV},
      url={https://arxiv.org/abs/1805.10180}, 
}