All models

smp_PAN_se_resnet50

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

Segmentation · 339 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 (26 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
26.8M
Operations
339
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
m9666
Graph hash
d91ee47c45ae988dfc50a4d26cfd80410a55714a684b5b3f67189f8c13e50d5c
Skeleton hash
2136f49880befce284a0cdd23398fae475f7bf19b20c370179e4a1bfbc67fc1e
Architecture hash
305a107c7997ac4dc5039d8ffce85f8458051c3b159e99fb43a3e33129ba5236
Diagram SHA-256
e3f533186b877846a129f9d71cbd63bee944793540c74097e544ed931c9f2e1f
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='se_resnet50', 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}, 
}