All models

smp_UPerNet_timm-efficientnet-b8

FPN plus pyramid pooling for segmenting scenes, objects, parts, materials and textures at once.

Segmentation · 1,507 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 (28 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

Family
UPerNet
Parameters
93.5M
Operations
1,507
Framework
PyTorch
Recurrent
No
Published
Lecture Notes in Computer Science (arXiv 2018)
Cited by
2,103 (as of 9 October 2026)
Authors
Tete Xiao, Yingcheng Liu, Bolei Zhou and others
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
m9906
Graph hash
928c9fbf2719dbdff61e94f01b6cef3fd097890e1ac5a174c3d1459bb9514611
Skeleton hash
d1c9bce65034ed1eecdf445d0c4b0bdf7a61679d447c192cc2661ac792eaa5de
Architecture hash
907b84e78d8db5edb9f6219d2b161708318803b68ce0be721f8df50a87ebb38e
Diagram SHA-256
ec0e13cd3c55f032942e55f192576b71660d028e8be69f5616bca93779115f49
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.UPerNet(encoder_name='timm-efficientnet-b8', encoder_weights=None, in_channels=3, classes=21)

What it is

About this model's family

UPerNet, the Unified Perceptual Parsing Network, is a segmentation framework built for parsing visual concepts across scene categories, objects, parts, materials and textures from one image. The traced members are the plain semantic-segmentation form from segmentation_models_pytorch, where the number of classes sets the channels of the output mask. In that library any classification model can serve as the encoder, extracting features at different spatial resolutions, which is why the roster carries dozens of UPerNet members that differ only in backbone. The Hugging Face transformers port likewise treats UPerNet as a general framework that can leverage any vision backbone, such as ConvNeXt or Swin.

The design is a Feature Pyramid Network with a Pyramid Pooling Module from PSPNet appended to the last backbone layer before the top-down branch. The authors found the PPM highly compatible with FPN because it brings effective global prior representations. Different heads hang off different levels: the scene head sits on the feature map right after the PPM, while the object and part heads sit on a map fused from all FPN levels. The material head sits on the highest-resolution FPN map, and a texture head on the Res-2 block is fine-tuned after the rest of the network finishes training. To fuse levels, the FPN maps are bilinearly resized to the size of P2, concatenated, and passed through a convolution that both fuses them and reduces channel dimensions. Training on heterogeneous annotations samples one data source per iteration and updates only the layers on the path that infers that source's concepts.

The authors argue against the dilated-network convention for segmentation: dilating the two deepest ResNet blocks inflates their feature maps to 4 or 16 times their designated sizes, with a dramatic cost in computation and GPU memory. Trained only on object supervision, the framework is almost identical in performance to PSPNet while needing only 63% of its training time for the same number of epochs. On ADE20K, adding the PPM to FPN boosts results by a 4.87/3.09 margin in mean IoU and pixel accuracy, which the authors read as FPN suffering from an insufficient receptive field. Fusing features from all levels of FPN yields the best performance. The trained network can be mined for visual knowledge: UPerNet reports, for example, that toilet is made of ceramic (65%) and plastic (35%).

Key idea. A hierarchical multi-task segmentation network, FPN plus PPM over a ResNet, with heads attached at the feature levels suited to scene, object, part, material and texture, trained from heterogeneous image datasets.

  • upernet
  • unified perceptual parsing
  • uper head
  • fpn segmentation
  • ppm
  • scene parsing
  • ade20k
  • segmentation_models_pytorch upernet
  • upernet swin
  • upernet convnext

AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.

Cite the paper

@misc{xiao2018unifiedperceptualparsingscene,
      title={Unified Perceptual Parsing for Scene Understanding}, 
      author={Tete Xiao and Yingcheng Liu and Bolei Zhou and Yuning Jiang and Jian Sun},
      year={2018},
      eprint={1807.10221},
      archivePrefix={arXiv},
      primaryClass={cs.CV},
      url={https://arxiv.org/abs/1807.10221}, 
}