All models

smp_PAN_efficientnet-b3

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

Segmentation · 579 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 (17 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
10.8M
Operations
579
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
m9634
Graph hash
d3fd2c91f4c25c49ae8aa99f02e35c04d7b8f43ae707469b3e9f914878337844
Skeleton hash
fa23e66d5d94afcb61aa51e2e1f275d5f1987cef8900139f00614c964ed5ff74
Architecture hash
f6ba60140b538eece6adec3de53ffa509deca21d3e2c1d2a0faa0a704753dfd5
Diagram SHA-256
1f2dcb32e8cf0aa599acff3f10b6e5431821297f370d88a43cdc19881996308b
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='efficientnet-b3', 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}, 
}