All models

smp_PAN_timm-skresnet34

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

Segmentation · 512 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 (41 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
22M
Operations
512
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
m9681
Graph hash
fc968c013c3d7bdf484872d61de4e125e3c8c7e172353546437b7830bd68855b
Skeleton hash
93b53d881753cca8ca83ee606e7aee4d9c66f2122ef3f11cec168a1b03b226e3
Architecture hash
07d49957194ca802d7734e1d3bc2777d9222b448cdc7713751bc6ba7a4ddb5bb
Diagram SHA-256
8d3e4218ce88d55520251be4cff50d08190cf69bdd8357a425064a55d7a4dc71
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

How this diagram was made

segmentation_models_pytorch.PAN(encoder_name='timm-skresnet34', 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}, 
}