{"about":{"site":"https://codewithpapers.app","non_affiliation":"Code with Papers and Syntology are not affiliated with, endorsed by, or sponsored by Papers with Code, Meta, or the pwc-archive mirror.","licence":"CC BY-SA 4.0","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","attribution":"https://codewithpapers.app/attribution","modified":"archive material modified by Syntology; see the attribution page"},"url":"/paper/pidnet-a-real-time-semantic-segmentation","title":"PIDNet: A Real-time Semantic Segmentation Network Inspired by PID Controllers","arxiv_id":"2206.02066","date":"2022-06-04","proceeding":"CVPR 2023 1","authors":["Jiacong Xu","Zixiang Xiong","Shankar P. Bhattacharyya"],"abstract":"Two-branch network architecture has shown its efficiency and effectiveness in real-time semantic segmentation tasks. However, direct fusion of high-resolution details and low-frequency context has the drawback of detailed features being easily overwhelmed by surrounding contextual information. This overshoot phenomenon limits the improvement of the segmentation accuracy of existing two-branch models. In this paper, we make a connection between Convolutional Neural Networks (CNN) and Proportional-Integral-Derivative (PID) controllers and reveal that a two-branch network is equivalent to a Proportional-Integral (PI) controller, which inherently suffers from similar overshoot issues. To alleviate this problem, we propose a novel three-branch network architecture: PIDNet, which contains three branches to parse detailed, context and boundary information, respectively, and employs boundary attention to guide the fusion of detailed and context branches. Our family of PIDNets achieve the best trade-off between inference speed and accuracy and their accuracy surpasses all the existing models with similar inference speed on the Cityscapes and CamVid datasets. Specifically, PIDNet-S achieves 78.6% mIOU with inference speed of 93.2 FPS on Cityscapes and 80.1% mIOU with speed of 153.7 FPS on CamVid.","url_abs":"https://arxiv.org/abs/2206.02066v3","url_pdf":"https://arxiv.org/pdf/2206.02066v3.pdf","source":{"archive":"pwc-archive (Hugging Face), CC BY-SA 4.0","snapshot":"2025-07-28","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","row_kind":"abstracts"},"code_links":[{"paper_slug":"pidnet-a-real-time-semantic-segmentation","repo_url":"https://github.com/XuJiacong/PIDNet","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"MIT"}},{"paper_slug":"pidnet-a-real-time-semantic-segmentation","repo_url":"https://github.com/HengWeiBin/Oil-Polution-Dataset-with-PIDNet","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"MIT"}},{"paper_slug":"pidnet-a-real-time-semantic-segmentation","repo_url":"https://github.com/Mahmood-Hussain/PIDNetTensorflow","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"tf","reach":{"status":"ok"}},{"paper_slug":"pidnet-a-real-time-semantic-segmentation","repo_url":"https://github.com/enot-autodl/lpcv-2023","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":null},{"paper_slug":"pidnet-a-real-time-semantic-segmentation","repo_url":"https://github.com/hamidriasat/PIDNet","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"tf","reach":{"status":"ok","spdx":"MIT"}},{"paper_slug":"pidnet-a-real-time-semantic-segmentation","repo_url":"https://github.com/Darth-Kronos/PIDNet_TensorRT","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":0,"framework":"pytorch","reach":{"status":"ok","spdx":"MIT"}}],"tasks":[{"task_slug":"real-time-semantic-segmentation","task_name":"Real-Time Semantic Segmentation"},{"task_slug":"semantic-segmentation","task_name":"Semantic Segmentation"}],"methods":[{"method_slug":"speed","method_name":"SPEED"}],"datasets_introduced":[],"methods_introduced":[],"results":[{"leaderboard":"/sota/real-time-semantic-segmentation-on-camvid","task":"Real-Time Semantic Segmentation","dataset":"CamVid","model":"PIDNet-M (Cityscapes-Pretrained)","rank_in_archive_order":1,"of":29,"metrics":{"Frame (fps)":"85.6(3090)","Time (ms)":"11.7","mIoU":"82.0"},"uses_additional_data":false},{"leaderboard":"/sota/real-time-semantic-segmentation-on-camvid","task":"Real-Time Semantic Segmentation","dataset":"CamVid","model":"PIDNet-S (Cityscapes-Pretrained)","rank_in_archive_order":6,"of":29,"metrics":{"Frame (fps)":"153.7(3090)","Time (ms)":"6.5","mIoU":"80.1"},"uses_additional_data":false},{"leaderboard":"/sota/real-time-semantic-segmentation-on-cityscapes","task":"Real-Time Semantic Segmentation","dataset":"Cityscapes test","model":"PIDNet-L","rank_in_archive_order":1,"of":39,"metrics":{"Frame (fps)":"31.1(3090)","Time (ms)":"32.2","mIoU":"80.6%"},"uses_additional_data":false},{"leaderboard":"/sota/real-time-semantic-segmentation-on-cityscapes","task":"Real-Time Semantic Segmentation","dataset":"Cityscapes test","model":"PIDNet-M","rank_in_archive_order":3,"of":39,"metrics":{"Frame (fps)":"42.2(3090)","Time (ms)":"23.7","mIoU":"79.8%"},"uses_additional_data":false},{"leaderboard":"/sota/real-time-semantic-segmentation-on-cityscapes","task":"Real-Time Semantic Segmentation","dataset":"Cityscapes test","model":"PIDNet-S","rank_in_archive_order":4,"of":39,"metrics":{"Frame (fps)":"93.2(3090)","Time (ms)":"10.7","mIoU":"78.6%"},"uses_additional_data":false},{"leaderboard":"/sota/real-time-semantic-segmentation-on-cityscapes-1","task":"Real-Time Semantic Segmentation","dataset":"Cityscapes val","model":"PIDNet-L","rank_in_archive_order":1,"of":24,"metrics":{"Frame (fps)":"31.1(3090)","Time (ms)":"32.2","mIoU":"80.9%"},"uses_additional_data":false},{"leaderboard":"/sota/real-time-semantic-segmentation-on-cityscapes-1","task":"Real-Time Semantic Segmentation","dataset":"Cityscapes val","model":"PIDNet-M","rank_in_archive_order":3,"of":24,"metrics":{"Frame (fps)":"42.2(3090)","Time (ms)":"23.7","mIoU":"79.9%"},"uses_additional_data":false},{"leaderboard":"/sota/real-time-semantic-segmentation-on-cityscapes-1","task":"Real-Time Semantic Segmentation","dataset":"Cityscapes val","model":"PIDNet-S","rank_in_archive_order":7,"of":24,"metrics":{"Frame (fps)":"93.2(3090)","Time (ms)":"10.7","mIoU":"78.8%"},"uses_additional_data":false},{"leaderboard":"/sota/semantic-segmentation-on-camvid","task":"Semantic Segmentation","dataset":"CamVid","model":"PIDNet-Wider","rank_in_archive_order":5,"of":21,"metrics":{"Mean IoU":"82.0%"},"uses_additional_data":false}],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2206.02066","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2206.02066"}},"developers":"https://syntology.ai/developers","read_at":"2026-09-24T18:15:14+00:00","read_at_is":"when the build read Syntology's graph, not when any sample ran","claim":"Per-sample execution status on synthesized fixtures; not a correctness claim about the paper. Samples come from repositories linked to the paper, official or community; repo_kind says which.","repos":[{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/Darth-Kronos/PIDNet_TensorRT","reach":{"status":"ok","spdx":"MIT"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/hamidriasat/PIDNet","reach":{"status":"ok","spdx":"MIT"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/Mahmood-Hussain/PIDNetTensorflow","reach":{"status":"ok"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/HengWeiBin/Oil-Polution-Dataset-with-PIDNet","reach":{"status":"ok","spdx":"MIT"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/enot-autodl/lpcv-2023","reach":null},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/XuJiacong/PIDNet","reach":{"status":"ok","spdx":"MIT"}}],"summary":{"ran_draft_wrong":1,"unverified":18},"by_repo_kind":{"official":{"samples":1,"ran":0,"repositories":1},"listed":{"samples":18,"ran":1,"repositories":4}},"repo_kind_vocabulary":{"official":"The archive marks this repository official for the paper","named_in_paper":"The archive records that the paper mentions this repository; it is not marked official","listed":"In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper","found_in_text":"Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted","community":"Not in the archive's code links for this paper; a community repository Syntology harvested"},"n_pointer_only_for_licence":1,"samples":[{"code_sha256_prefix":"fac5364e2f53c6db","entry":"conv3x3","repo":"Darth-Kronos/PIDNet_TensorRT","repo_kind":"listed","path":"models/others/bisenet_adb_bag.py","file_url":"https://github.com/Darth-Kronos/PIDNet_TensorRT/blob/HEAD/models/others/bisenet_adb_bag.py","link_basis":"harvester_set","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"fac5364e2f53c6db"}},{"code_sha256_prefix":"acf0e83d3b5b6f01","entry":"Bisenet_Adb_Bag","repo":"Darth-Kronos/PIDNet_TensorRT","repo_kind":"listed","path":"models/others/bisenet_adb_bag.py","file_url":"https://github.com/Darth-Kronos/PIDNet_TensorRT/blob/HEAD/models/others/bisenet_adb_bag.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"acf0e83d3b5b6f01"}},{"code_sha256_prefix":"4acac2201e2de928","entry":"DAPPPM","repo":"hamidriasat/PIDNet","repo_kind":"listed","path":"model_utils.py","file_url":"https://github.com/hamidriasat/PIDNet/blob/HEAD/model_utils.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"4acac2201e2de928"}},{"code_sha256_prefix":"f870abc3d49177be","entry":"DualResNet_imagenet","repo":"Darth-Kronos/PIDNet_TensorRT","repo_kind":"listed","path":"models/others/ddrnet_23_adb_bag.py","file_url":"https://github.com/Darth-Kronos/PIDNet_TensorRT/blob/HEAD/models/others/ddrnet_23_adb_bag.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"f870abc3d49177be"}},{"code_sha256_prefix":"905b5242a35e7ed7","entry":"PAPPM","repo":"hamidriasat/PIDNet","repo_kind":"listed","path":"model_utils.py","file_url":"https://github.com/hamidriasat/PIDNet/blob/HEAD/model_utils.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"905b5242a35e7ed7"}},{"code_sha256_prefix":"92809dd5a449eb93","entry":"basic_block","repo":"hamidriasat/PIDNet","repo_kind":"listed","path":"resnet.py","file_url":"https://github.com/hamidriasat/PIDNet/blob/HEAD/resnet.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"92809dd5a449eb93"}},{"code_sha256_prefix":"b55dd2da33385622","entry":"bottleneck_block","repo":"hamidriasat/PIDNet","repo_kind":"listed","path":"resnet.py","file_url":"https://github.com/hamidriasat/PIDNet/blob/HEAD/resnet.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"b55dd2da33385622"}},{"code_sha256_prefix":"fa1dd696ceb3bffe","entry":"conv3x3","repo":"hamidriasat/PIDNet","repo_kind":"listed","path":"resnet.py","file_url":"https://github.com/hamidriasat/PIDNet/blob/HEAD/resnet.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"fa1dd696ceb3bffe"}},{"code_sha256_prefix":"92a9102d957a0f37","entry":"create_layer_basic","repo":"Darth-Kronos/PIDNet_TensorRT","repo_kind":"listed","path":"models/others/resnet.py","file_url":"https://github.com/Darth-Kronos/PIDNet_TensorRT/blob/HEAD/models/others/resnet.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"92a9102d957a0f37"}},{"code_sha256_prefix":"603274398f6b4944","entry":"get_pred_model","repo":"Darth-Kronos/PIDNet_TensorRT","repo_kind":"listed","path":"models/pidnet.py","file_url":"https://github.com/Darth-Kronos/PIDNet_TensorRT/blob/HEAD/models/pidnet.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"603274398f6b4944"}},{"code_sha256_prefix":"9d7c08e2a8e12ed1","entry":"get_pred_model","repo":"HengWeiBin/Oil-Polution-Dataset-with-PIDNet","repo_kind":"listed","path":"models/pidnet.py","file_url":"https://github.com/HengWeiBin/Oil-Polution-Dataset-with-PIDNet/blob/HEAD/models/pidnet.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"9d7c08e2a8e12ed1"}},{"code_sha256_prefix":"5089f1565526fc75","entry":"get_seg_model","repo":"enot-autodl/lpcv-2023","repo_kind":"listed","path":"training/models/pidnet.py","file_url":"https://github.com/enot-autodl/lpcv-2023/blob/HEAD/training/models/pidnet.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"5089f1565526fc75"}},{"code_sha256_prefix":"fb6020f30ebc7f12","entry":"get_seg_model","repo":"Darth-Kronos/PIDNet_TensorRT","repo_kind":"listed","path":"models/pidnet.py","file_url":"https://github.com/Darth-Kronos/PIDNet_TensorRT/blob/HEAD/models/pidnet.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"fb6020f30ebc7f12"}},{"code_sha256_prefix":"77136b5a94e0104e","entry":"get_seg_model","repo":"Darth-Kronos/PIDNet_TensorRT","repo_kind":"listed","path":"models/others/bisenet_adb_bag.py","file_url":"https://github.com/Darth-Kronos/PIDNet_TensorRT/blob/HEAD/models/others/bisenet_adb_bag.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"77136b5a94e0104e"}},{"code_sha256_prefix":"a4a5b2b55ece38ff","entry":"get_seg_model","repo":"Darth-Kronos/PIDNet_TensorRT","repo_kind":"listed","path":"models/others/ddrnet_23_adb_bag.py","file_url":"https://github.com/Darth-Kronos/PIDNet_TensorRT/blob/HEAD/models/others/ddrnet_23_adb_bag.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"a4a5b2b55ece38ff"}},{"code_sha256_prefix":"178ee10b1aeec3d6","entry":"get_seg_model","repo":"HengWeiBin/Oil-Polution-Dataset-with-PIDNet","repo_kind":"listed","path":"models/pidnet.py","file_url":"https://github.com/HengWeiBin/Oil-Polution-Dataset-with-PIDNet/blob/HEAD/models/pidnet.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"178ee10b1aeec3d6"}},{"code_sha256_prefix":"ce795ae2777c861e","entry":"make_layer","repo":"hamidriasat/PIDNet","repo_kind":"listed","path":"pidnet.py","file_url":"https://github.com/hamidriasat/PIDNet/blob/HEAD/pidnet.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"ce795ae2777c861e"}},{"code_sha256_prefix":"6907f597f9f56894","entry":"segmentation_head","repo":"hamidriasat/PIDNet","repo_kind":"listed","path":"model_utils.py","file_url":"https://github.com/hamidriasat/PIDNet/blob/HEAD/model_utils.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"6907f597f9f56894"}},{"code_sha256_prefix":"f0b6abd190ebe3a4","entry":"weighted_bce","repo":"XuJiacong/PIDNet","repo_kind":"official","path":"utils/criterion.py","file_url":"https://github.com/XuJiacong/PIDNet/blob/HEAD/utils/criterion.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"f0b6abd190ebe3a4"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}