All models

PIDNet_L

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

Segmentation · 219 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 (25 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
10M
Operations
219
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
m11676
Graph hash
d438b5ef91000c56f4f2258488d4d5dc05f70cd021f2e533e47ec554655e0c6b
Skeleton hash
a6ea056767859fc8279d4926071b2a6c62679fb291009f0a31118ed0572f0532
Architecture hash
5adf1b0971d83717b2d12b6c8ec5a404a862c2337d57d0c80c531c084636c473
Diagram SHA-256
58810a9dae06ea66e558c08e1020231ef5a0d996dc6a1e36bbca625cdb8636fb
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

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

What it is

PIDNet-L is the deep model and keeps the DAPPM context module with reduced channels, and the paper reports it as the highest-accuracy variant at 80.6% mIOU on the Cityscapes test set.

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}, 
}