作者投稿和查稿 主编审稿 专家审稿 编委审稿 远程编辑

计算机工程 ›› 2026, Vol. 52 ›› Issue (7): 210-219. doi: 10.19678/j.issn.1000-3428.0070747

• 计算机视觉与图形图像处理 • 上一篇    下一篇

基于多尺度特征融合与极化自注意力机制的实时语义分割算法

刘相滨1, 方诚1, 刘帅2   

  1. 1. 湖南师范大学信息科学与工程学院, 湖南 长沙 410081;
    2. 湖南师范大学教育科学学院, 湖南 长沙 410081
  • 收稿日期:2024-12-25 修回日期:2025-02-23 出版日期:2026-07-15 发布日期:2026-07-04
  • 作者简介:刘相滨,男,教授、博士,主研方向为图像处理、计算机视觉,E-mail:xbliufrank@hunnu.edu.cn;方诚,硕士研究生;刘帅,教授、博士。
  • 基金资助:
    国家自然科学基金(62207012);湖南省教育厅重点科研项目(22A0058)。

Real-Time Semantic Segmentation Algorithm Based on Multi-Scale Feature Fusion and Polarized Self-Attention Mechanism

LIU Xiangbin1, FANG Cheng1, LIU Shuai2   

  1. 1. College of Information Science and Engineering, Hunan Normal University, Changsha 410081, Hunan, China;
    2. College of Education Science, Hunan Normal University, Changsha 410081, Hunan, China
  • Received:2024-12-25 Revised:2025-02-23 Online:2026-07-15 Published:2026-07-04

摘要: 实时语义分割作为计算机视觉领域的核心任务之一,在无人驾驶、交通管控等诸多方面均发挥着极为关键的作用。现有基于编码器-解码器结构的实时语义分割算法通常通过牺牲分割精度来达到实时效果,然而,这类算法为了保证实时性,其感受野通常较小,从而导致对道路场景中的大尺度物体分割效果较差。为此,基于编码器-解码器结构,提出一种针对道路场景的实时语义分割算法。首先,在特征提取阶段设计一个多尺度特征融合(MFF)机制,对较大尺度内的感受野特征进行有效融合,提升对大尺度物体的分割效果;然后,在编码器末端融入一个极化自注意力(PSA)机制,增强大尺度感受野中的局部感知,进一步提升对大尺度物体的分割效果。在数据集Cityscapes与Camvid上进行测试,实验结果表明,采用单个NVIDIA RTX 3090 GPU时,该算法在43.5 帧/s和91.2 帧/s的帧率下分别取得了80.6%和81.1%的平均交并比(MIoU),相较对比算法获得了更高的分割精度。

关键词: 语义分割, 编码器-解码器结构, 多尺度特征融合, 自注意力机制, 大尺度物体

Abstract: Real-time semantic segmentation, one of the core tasks in computer vision, plays a crucial role in various applications such as autonomous driving and traffic control. Existing real-time semantic segmentation algorithms based on the encoder—decoder structure often sacrifice segmentation accuracy to achieve real-time performance. However, to ensure real-time performance, these algorithms typically have a small receptive field, resulting in poor segmentation performance for large-scale objects in road scenes. To address this issue, this paper proposes a real-time semantic segmentation algorithm tailored for road scenes based on the encoder—decoder structure. First, a Multi-scale Feature Fusion (MFF) mechanism is designed in the feature extraction stage to effectively fuse receptive field features on a larger scale, thereby enhancing the segmentation performance for large-scale objects. Second, a Polarized Self-Attention (PSA) mechanism is incorporated at the end of the encoder to enhance the local perception within the large-scale receptive field, further improving the segmentation performance for large-scale objects. Experimental results on the Cityscapes and Camvid datasets show that, when using a single NVIDIA RTX 3090 GPU, the algorithm achieves Mean Intersection over Union (MIoU) scores of 80.6% and 81.1% at frame rates of 43.5 frame/s and 91.2 frame/s, respectively. These results show that the proposed algorithm achieves higher segmentation accuracy than the comparative algorithm.

Key words: semantic segmentation, encoder—decoder structure, Multi-scale Feature Fusion (MFF), self-attention mechanism, large-scale objects

中图分类号: