All models

PIDNet_S

Three-branch real-time segmentation network that treats detail, context and boundary like a PID controller.

Segmentation · 149 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 (31 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
pidnet
Parameters
1M
Operations
149
Framework
PyTorch
Recurrent
No
Published
CVPR (arXiv 2022)
Cited by
28 (as of 5 October 2026)
Authors
Jiacong Xu, Zixiang Xiong, Shankar Prasad Bhattacharyya
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
m11678
Graph hash
43cbb904202aaba2d9f5ee66ae6dff51c298b3a505ba425ce8a259c7b65e4870
Skeleton hash
03f1486cb7640a7c3412a0769b84395792dec2f8e356ea82ce334a9eaeae4988
Architecture hash
55dea018a3cd6c3b9b0b9a1aabc73bc06605b67cad72ef607520f203d6d95b29
Diagram SHA-256
66d57614bf0f4dbf5122bfc77e2a111f14f0a8d95dea4017f885bd8a1ee188ad
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

menagerie.classics.pidnet:build_pidnet_s: build({})

What it is

PIDNet-S uses the parallel PAPPM context module, which the paper applies to PIDNet-M and PIDNet-S to guarantee their speeds.

About this model's family

PIDNet is a real-time semantic segmentation network that reads an image and assigns each pixel a class label, built as three parallel branches rather than the usual two. The paper's hook is a borrowed idea from control engineering: a two-branch segmentation network behaves like a proportional-integral (PI) controller, and PI controllers overshoot. In segmentation terms, overshoot means fine details get swamped by surrounding context when the two streams are fused directly.

The fix mirrors adding the derivative term to a controller: an auxiliary derivative branch (ADB) is attached to highlight high-frequency semantic information, and its job is boundary detection. So the P branch keeps detail in high-resolution feature maps, the I branch aggregates local and global context for long-range dependencies, and the D branch extracts high-frequency features to predict boundary regions. Two fusion modules do the balancing: Pag lets the detail branch selectively learn semantics from the context branch, and Bag uses boundary attention to fill high-frequency areas with detail features and low-frequency areas with context features. The backbone is cascaded residual blocks, chosen for hardware friendliness, with the P, I and D branches set to moderate, deep and shallow depths.

The graphs here are the three sizes the paper names, PIDNet-S, M and L, generated by deepening and widening the model. The authors report that PIDNet-S reaches 78.6% mIOU at 93.2 FPS on Cityscapes and 80.1% mIOU at 153.7 FPS on CamVid. One caveat the paper itself raises: because boundary prediction drives the fusion, precise annotation around boundaries is preferred for better performance.

Key idea. Reframing a two-branch segmentation network as a PI controller and adding a boundary-detecting derivative branch, with Pag and Bag fusion modules, to curb the overshoot that swamps fine detail.

  • PIDNet
  • PIDNet-S
  • PIDNet-M
  • PIDNet-L
  • PID controller
  • real-time semantic segmentation
  • three-branch network
  • Cityscapes
  • CamVid
  • Pag
  • Bag
  • PAPPM

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

Cite the paper

@misc{xu2023pidnetrealtimesemanticsegmentation,
      title={PIDNet: A Real-time Semantic Segmentation Network Inspired by PID Controllers}, 
      author={Jiacong Xu and Zixiang Xiong and Shankar P. Bhattacharyya},
      year={2023},
      eprint={2206.02066},
      archivePrefix={arXiv},
      primaryClass={cs.CV},
      url={https://arxiv.org/abs/2206.02066}, 
}