AFPN: Alignment feature pyramid network for real-time semantic segmentation

Published: 01 Jan 2026, Last Modified: 21 Jul 2025Pattern Recognit. 2026EveryoneRevisionsBibTeXCC BY-SA 4.0
Abstract: The structures of two pathways and the feature pyramid network (FPN) have achieved advanced performance in semantic segmentation. These two types of structures adopt different approaches to fuse low-level (shallow layer) spatial information and high-level (deep layer) semantic information. However, the segmentation results still lack local details due to the loss of information caused by simply fusing low-level feature details directly with multi-level deep features. To alleviate this problem, we propose an alignment feature pyramid network (AFPN) for real-time semantic segmentation. It can efficiently utilize both the low-level spatial information and high-level semantic information. Specifically, our AFPN consists of two components: the pooling enhancement attention block (PEAB) and the dual pooling alignment block (DPAB). The PEAB can effectively extract global information by using an aggregation pooling operation. The DPAB performs two types of pooling operations along the channel and spatial dimensions, reducing the differences between multi-scale feature maps. Extensive experiments show that AFPN achieves a better balance between accuracy and speed. On the Cityscapes, CamVid, and ADE20K datasets, AFPN achieves 78.75%, 79.24%, and 39.56% mIoU and the speed meets the real-time requirement. Our code can be available at the https://github.com/chongchongmao/AFPN.
Loading