All models

smp_PAN_timm-skresnet18

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

Segmentation · 296 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 (30 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.6M
Operations
296
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
m9680
Graph hash
2ae5bd5e7b54bd1b61e9c6c4a7ea639399587a61b2eef93fac1de0e0e14185e5
Skeleton hash
c8af166e7c92dfeb4799bcab1d37e54a20de4ddd73b2590edccec3edf06174dd
Architecture hash
44d4e2de7e7ef9a05445b238b42349493f5323adfa21dfcb95c86b82d071be9d
Diagram SHA-256
bffbd0040ca5918404d1c419a6ea1753cc941e8af59aa0c433324744dbe66c9c
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='timm-skresnet18', 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}, 
}