A real-time urban street view image semantic segmentation method based on double interaction fusion

By introducing a dual interactive fusion mechanism into the image semantic segmentation network, and utilizing the fusion module of the encoder and decoder and the cross-attention module, the problem of poor segmentation effect of distant small targets in urban street scene images is solved, achieving efficient real-time semantic segmentation and improving the environmental perception capability of autonomous driving systems.

CN118334335BActive Publication Date: 2026-11-27HENAN UNIVERSITY
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410440544.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-04-12
Publication Date
2026-11-27
Estimated Expiration
2044-04-12

AI Technical Summary

Technical Problem

Existing real-time semantic segmentation algorithms do not perform well in segmenting small targets at a distance in urban street scene images, and it is difficult to achieve a balance between segmentation accuracy and speed, which affects their application in autonomous driving systems.

Method used

A real-time urban street view image semantic segmentation method based on dual interactive fusion is adopted. By constructing an image semantic segmentation network, using an encoder and decoder architecture, and setting multiple fusion modules and cross-attention modules in between, cross-weighted fusion of feature maps and receptive field expansion are performed to improve segmentation accuracy and speed.

Benefits of technology

While ensuring real-time performance, the segmentation accuracy was significantly improved, enabling accurate identification and differentiation of small targets at a distance in urban street scene images, and improving the balance between the model's segmentation accuracy and inference speed.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118334335B_ABST
    Figure CN118334335B_ABST
Patent Text Reader

Abstract

The present application belongs to the technical field of computer vision and real-time semantic segmentation, and provides a real-time urban street view image semantic segmentation method based on double interaction fusion. The method proposes a lightweight double decoding fusion structure, which can extract more rich edge details, and at the same time, the structure reduces the calculation overhead by reducing the channel number of the feature map in the fusion process. Secondly, the method sets a cross-attention module in the decoding, which cross-weights and fuses the high-level and low-level features through the attention mechanism, increases the interaction between the features, and effectively extracts the features at different levels. Finally, a comprehensive perception module is also introduced in the network, which introduces dilated convolution to expand the receptive field of the model, so as to better extract the information of long-distance small targets. It can solve the problems that the existing method is easy to ignore the low-level detail information in the complex street view image, the information fusion between different levels of features lacks interaction, and the feature extraction of long-distance small targets is insufficient.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the fields of computer vision and real-time semantic segmentation technology, and in particular to a real-time urban street view image semantic segmentation method based on dual interactive fusion. Background Technology

[0002] With the rapid development of autonomous driving, the rapid and accurate perception and understanding of the vehicle's surrounding environment has become a key technological challenge. Real-time semantic segmentation algorithms can quickly and accurately identify and distinguish various objects from images, providing crucial environmental information for autonomous driving systems. This information is essential for safe driving, route planning, and making accurate decisions in complex traffic scenarios. Therefore, the accuracy and speed of semantic segmentation algorithms have become one of the important factors driving the development of autonomous driving technology.

[0003] In recent years, the rapid development of deep learning has brought new opportunities to semantic segmentation, leading to the proposal of many real-time semantic segmentation methods based on convolutional neural networks. Compared to traditional semantic segmentation methods, these models have made significant progress in simplifying network structure, reducing the number of parameters, and accelerating computation. To achieve real-time results, most networks are lightweighted, reducing their focus on low-level details. However, low-level features contain a large amount of detailed information, such as edges and textures, which leads to poor image segmentation results. For complex images like urban street scenes, the feature information is also very diverse. Traditional addition or concatenation operations lack interactivity and are affected by the size of the receptive field, resulting in poor segmentation of distant pedestrians and small objects such as streetlights. This affects their application in real-world scenarios and limits their effectiveness in certain situations. Therefore, achieving a balance between segmentation accuracy and speed is a highly challenging task. Summary of the Invention

[0004] To quickly and accurately identify and distinguish various objects, including remote small targets, from complex urban street view images, and to provide key environmental information for systems such as autonomous driving, this invention provides a real-time urban street view image semantic segmentation method based on dual interactive fusion. This method significantly improves segmentation accuracy while ensuring real-time performance, achieving a good balance between segmentation accuracy, model size, and inference speed.

[0005] This invention provides a real-time urban street view image semantic segmentation method based on dual interactive fusion, comprising:

[0006] Step 1: Construct an image semantic segmentation network; the image semantic segmentation network adopts an encoder and decoder architecture, with multiple fusion modules and a comprehensive perception module set between the encoder and decoder; each fusion module is used to fuse the output feature maps of two adjacent layers in the encoder, and the comprehensive perception module is used to process the output feature map of the highest layer in the encoder to expand the receptive field of the image semantic segmentation network; the decoder is equipped with multiple cascaded cross-attention modules (CAMs), and the CAMs are used to perform cross-weighted fusion of the output feature maps of the comprehensive perception module or the previous-level CAM with the output feature maps of the corresponding fusion modules;

[0007] Step 2: Train the image semantic segmentation network;

[0008] Step 3: Input the real-time acquired city street view images into the trained image semantic segmentation network to obtain the image semantic segmentation results.

[0009] Furthermore, the encoder comprises, from low to high layers, two convolutional layers connected in sequence and three feature extraction modules stacked from short-term dense cascaded STDC modules;

[0010] Correspondingly, three fusion modules are provided, which are used to fuse the output feature maps of any two adjacent layers between the second convolutional layer and the last feature extraction module stacked by STDC modules.

[0011] Furthermore, the fusion module is used to fuse the output feature maps of two adjacent layers in the encoder, specifically including:

[0012] The first feature map is obtained by reducing the number of channels and upsampling the feature map output by the higher layer in two adjacent layers. The first feature map has the same size and number of channels as the feature map output by the lower layer. The first feature map and the feature map output by the lower layer are then fused by addition to obtain the second feature map.

[0013] The second feature map is processed using local channel attention to generate two weight values ​​α and 1-α. The two weight values ​​are then used to perform a weighted fusion of the feature map output from the lower layer and the first feature map to obtain the third feature map.

[0014] The third feature map is processed using the Pconv module to remove redundant information.

[0015] Furthermore, the CAM is used to perform cross-weighted fusion of the output feature map of the integrated sensing module or the previous-level CAM with the output feature map of the fusion module, specifically including:

[0016] The output feature map of the integrated sensing module or the previous-level CAM is denoted as the high-level feature map F.high The output feature map of the fusion module is denoted as the low-level feature map F. low ;

[0017] For feature map F high Perform an upsampling operation to obtain the feature map F. high '; For feature map F low By reducing the number of channels, we obtain the feature map F. low ';The feature map F high 'With feature map F low Size and number of channels are consistent;

[0018] The feature map F high 'With feature map F low Perform an additive fusion operation to obtain the fourth feature map;

[0019] The fourth feature map is processed using local channel attention to generate two weight values ​​β and 1-β, and the fourth feature map is processed using global spatial attention to generate two weight values ​​γ and 1-γ.

[0020] The feature map F is weighted using weights β, 1-β, γ, and 1-γ. high 'and feature map F low Perform cross-weighted fusion to obtain the fifth feature map;

[0021] The Pconv module is used to process the fifth feature map to remove redundant information, and the number of channels in the redundant feature map is reduced to obtain the sixth feature map.

[0022] Furthermore, the integrated perception module is used to process the output feature map of the highest level of the encoder to expand the receptive field of the image semantic segmentation network, specifically including:

[0023] By reducing the number of channels in the highest-level output feature map of the encoder, the seventh feature map is obtained.

[0024] The seventh feature map is convolved using three dilated convolutions with different dilation rates.

[0025] The seventh feature map is fused with the output feature maps of the three dilated convolutions by addition to obtain the eighth feature map.

[0026] The Pconv module is used to process the eighth feature map to remove redundant information.

[0027] Furthermore, the local channel attention process generates two weight values ​​from the feature map, specifically including:

[0028] The feature map is subjected to 1×1 convolution, batch normalization, ReLU, 1×1 convolution, batch normalization, and Sigmoid operations in sequence to generate two weight values.

[0029] Furthermore, the global spatial attention process generates two weight values ​​from the feature map, specifically including:

[0030] The feature maps are subjected to average pooling and max pooling operations respectively. The feature maps after the two pooling operations are then concatenated and fused to obtain the ninth feature map.

[0031] The ninth feature map is sequentially passed through two first convolutional blocks and a Sigmoid operation to generate two weight values. The first convolutional block includes a 3×3 convolution operation, a batch normalization operation, and a ReLU operation connected in sequence.

[0032] Furthermore, the reduction of the number of channels in the feature map specifically includes: performing a second convolutional block operation on the feature map to reduce the number of channels; wherein, the second convolutional block includes a 1×1 convolution operation, a batch normalization operation, and a ReLU operation connected in sequence.

[0033] The beneficial effects of this invention are:

[0034] 1. This invention proposes a highly efficient and lightweight dual-decoding fusion structure. Based on a traditional decoder, a fusion module is added as the first-layer fusion mechanism. This module fuses features from two adjacent stages of the encoder, compensating for spatial details and semantic information that are easily overlooked by a single decoder, thus enabling the extraction of richer low-level details. Simultaneously, a cross-attention module is set in the decoder as the second-layer fusion mechanism, performing cross-weighted fusion of high- and low-level features. This increases the interactivity between features, effectively extracting features from different levels. Furthermore, the computational overhead can be reduced by decreasing the number of channels in the feature map, ensuring real-time performance.

[0035] 2. The cross-attention module introduced in this invention employs local channel attention and global spatial attention to perform cross-weighted fusion of high- and low-level feature maps. During the prediction and generation process of each pixel, the pixel weights are dynamically adjusted based on the surrounding context features. This adaptive adjustment enables the model to more accurately focus on the key information in different parts of the input feature map, thereby reducing the possibility of information loss and effectively improving the model's ability to utilize different feature representations, thus improving the model's segmentation accuracy.

[0036] 3. This invention also introduces a comprehensive perception module into the image semantic segmentation network to expand the network's receptive field. Furthermore, in designing the structure of the comprehensive perception module, pointwise convolutional layers are used to first reduce dimensionality before introducing dilated convolutions to expand the receptive field. This reduces the number of parameters while providing a richer receptive field to perceive objects, increasing the model's long-range understanding ability and better extracting information from small, distant targets. This achieves a better balance between segmentation accuracy and inference speed. Attached Figure Description

[0037] Figure 1 This is a schematic diagram of the image semantic segmentation network provided in an embodiment of the present invention;

[0038] Figure 2 This is a schematic diagram of the dual decoding fusion structure provided in an embodiment of the present invention;

[0039] Figure 3 This is a schematic diagram of the cross-attention module provided in an embodiment of the present invention;

[0040] Figure 4 This is a schematic diagram of the integrated sensing module provided in an embodiment of the present invention. Detailed Implementation

[0041] To make the objectives, technical solutions, and advantages of this invention clearer, the technical solutions of the embodiments of this invention will be clearly described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of this invention. All other embodiments obtained by those skilled in the art based on the embodiments of this invention without creative effort are within the scope of protection of this invention.

[0042] Example 1

[0043] This invention provides a real-time urban street view image semantic segmentation method based on dual interactive fusion, comprising the following steps:

[0044] S101: Construct an image semantic segmentation network;

[0045] Specifically, such as Figure 1 As shown, the image semantic segmentation network adopts an encoder and decoder architecture, with multiple fusion modules and a comprehensive perception module set between the encoder and decoder; the decoder is equipped with multiple cascaded cross-attention modules (CAMs).

[0046] The semantic segmentation network performs semantic segmentation on urban street scene images as follows: The urban street scene image is input into the encoder, which continuously downsamples the input image to extract feature maps of various scales. Starting from the second layer of the encoder, the output feature maps of two adjacent layers in the encoder are input into the fusion module, which fuses the output feature maps of two adjacent layers in the encoder. The output feature map of the highest layer in the encoder is input into the comprehensive perception module, which processes the output feature map of the highest layer in the encoder to expand the receptive field of the semantic segmentation network. Then, the output feature maps of the corresponding fusion module and the comprehensive perception module are used as inputs to the current layer CAM, and the CAM performs cross-weighted fusion on the two input feature maps. This process continues until the original image size is restored and the image segmentation result is obtained. It can be understood that the number of cross-attention modules is consistent with the number of fusion modules.

[0047] As one possible implementation, the encoder in this embodiment of the invention uses STDCNet, which includes two convolutional layers connected in sequence from low to high levels and three feature extraction modules formed by stacking short-term densely cascaded STDC modules.

[0048] Correspondingly, the three fusion modules are used to fuse the output feature maps of any two adjacent layers from the second convolutional layer to the last feature extraction module stacked with STDC modules. That is, a total of three fusion modules are set up. One fusion module takes the output of the second convolutional layer and the output of the first feature extraction module stacked with 4 STDC modules as input. Another fusion module takes the output of the first feature extraction module stacked with 4 STDC modules and the output of the second feature extraction module stacked with 5 STDC modules as input. The last fusion module takes the output of the second feature extraction module stacked with 5 STDC modules and the output of the last feature extraction module stacked with 3 STDC modules as input.

[0049] Correspondingly, the decoder is equipped with three cross-attention modules.

[0050] S102: Train the image semantic segmentation network;

[0051] Specifically, a publicly available, labeled urban street view image dataset is used as the training dataset. Furthermore, to increase the diversity and quantity of training data and enhance the robustness of the model, data augmentation can be performed on the collected original training dataset before training begins. Data augmentation includes one or more processing methods on the input original training images, such as random scaling, random cropping, random horizontal flipping, random color jittering, and normalization, to generate new training images.

[0052] S103: Input the real-time acquired urban street view images into the trained image semantic segmentation network to obtain the image semantic segmentation results.

[0053] In this embodiment, the fusion module is the first-layer fusion operation, which enables the network to extract more detailed information. The cross-attention module, as the second-layer fusion operation, performs cross-weighted fusion processing compared to the traditional addition operation, which can reduce the number of channels in the decoding path and improve inference speed. Through different levels of fusion operations, the network can more accurately understand the image structure, thereby better capturing detailed features in the image.

[0054] This invention proposes a highly efficient and lightweight dual-decoder fusion structure. It adds a fusion module as the first-layer fusion mechanism to the traditional decoder, fusing features from two adjacent stages of the encoder. This compensates for spatial details and semantic information that are easily overlooked by a single decoder, thereby extracting richer low-level details. Simultaneously, a cross-attention module is set in the decoder as the second-layer fusion mechanism, performing cross-weighted fusion of high- and low-level features. This reduces computational overhead by decreasing the number of channels in the feature map, ensuring real-time performance.

[0055] Example 2

[0056] Based on the above embodiments, this invention provides another real-time urban street view image semantic segmentation method based on dual interactive fusion, comprising the following steps:

[0057] S201: An image semantic segmentation network is built using the PaddlePaddle deep learning framework;

[0058] Specifically, in this embodiment of the invention, the overall structure of the decoder and encoder is the same as in Embodiment 1. Considering that the size of the urban street scene image to be processed in this embodiment is 1024×512, in the encoder of this embodiment, the kernel size of the two convolutional layers is 3×3 and the stride is 2. The downsampling operation in each STDC module is also implemented using a convolutional layer with a stride of 2 and a kernel size of 3×3.

[0059] As one possible implementation method, the structure of the fusion module is as follows: Figure 2As shown in (a). Correspondingly, the process by which the fusion module fuses the output feature maps of two adjacent layers in the encoder includes:

[0060] Step A1: Perform channel reduction (using 1×1 convolutional blocks to reduce the number of channels in high-level features) and upsampling (using bilinear interpolation) operations on the feature map output from the higher layer of two adjacent layers to obtain the first feature map. The purpose of this step is to make the first feature map consistent with the feature map output from the lower layer in terms of size and number of channels, so as to facilitate subsequent additive fusion operations. The 1×1 convolutional block includes a 1×1 convolution operation, a batch normalization operation, and a ReLU operation connected in sequence.

[0061] Step A2: Perform an additive fusion operation on the first feature map and the feature map output from the lower layer to obtain the second feature map;

[0062] Step A3: Use local channel attention to process the second feature map to generate two weight values ​​α and 1-α. Use the two weight values ​​to perform weighted fusion of the feature map output from the lower layer and the first feature map to obtain the third feature map.

[0063] Specifically, through weight allocation and weighted processing, the network can better integrate and utilize channel information from different branches.

[0064] Step A4: Use the Pconv module to process the third feature map to remove redundant information.

[0065] Specifically, Pconv is introduced to effectively process and remove redundant information by utilizing its convolutional re-fusion operation, thereby improving the model's ability to understand images and extracting more representative and effective feature representations.

[0066] As one possible implementation, the structure of the cross-attention module CAM is as follows: Figure 3 As shown in (a). Correspondingly, the process of CAM performing cross-weighted fusion of the output feature map of the integrated sensing module or the previous-level CAM with the output feature map of the fusion module includes:

[0067] Step B1: Denote the output feature map of the integrated sensing module or the previous level CAM as the high-level feature map F. high The output feature map of the fusion module is denoted as the low-level feature map F. low ;

[0068] Specifically, F low A large amount of location and detailed information was captured, and F high This reflects a wealth of semantic details.

[0069] Step B2: For feature map F high Upsampling is performed to obtain the feature map F. high '; For feature map Flow Reduce the number of channels to obtain F low The purpose of this step is to make the feature map F high 'With feature map F low The size and number of channels are consistent so that subsequent addition and fusion operations can be performed.

[0070] Specifically, F is obtained through bilinear interpolation. high Adjusted to be consistent with F low Same size, to form F high '; F is converted through 1×1 convolution block operations low Adjusted to be consistent with F high The same number of channels to form F low '.

[0071] Step B3: Transfer feature map F high 'With feature map F low 'Perform an additive fusion operation to obtain the fourth feature map, and pass the fourth feature map to the local channel attention and global spatial attention for subsequent processing;

[0072] Step B4: Use local channel attention to process the fourth feature map to generate two weight values ​​β and 1-β, and use global spatial attention to process the fourth feature map to generate two weight values ​​γ and 1-γ;

[0073] Specifically, this process can be represented by the following formula:

[0074] β=Local Channel Attention(F low ',F high ')

[0075] γ=Global Spatial Attention(F low ',F high ')

[0076] Among them, Local Channel Attention is local channel attention, and Global Spatial Attention is global spatial attention.

[0077] Step B5: Apply weights β, 1-β, γ, and 1-γ to feature map F high 'and feature map F low Perform cross-weighted fusion to obtain the fifth feature map;

[0078] Step B6: Process the fifth feature map using the Pconv module to remove redundant information, and use 1×1 convolutional blocks to reduce the number of channels and thus the number of parameters, to obtain the final output feature map F. outThat is, the sixth feature map.

[0079] Specifically, the cross-fusion process, the redundant information removal process, and the dimensionality reduction process can be represented by the following formulas:

[0080] F out =PWConvX(Pconv(F high '×(2-β-γ)+F low '×(β+γ)))

[0081] By cross-weighting high- and low-level features through local channel attention and global spatial attention, the interactivity of feature fusion at different levels can be increased, making the network more flexible in processing features at different levels. It can dynamically adjust the degree of attention to specific regions or channels, and better capture local details and global contextual information in feature images.

[0082] As one possible implementation method, the structure of the integrated sensing module is as follows: Figure 4 As shown. Correspondingly, the process by which the comprehensive perception module processes the highest-level output feature map of the encoder to expand the receptive field of the image semantic segmentation network includes:

[0083] Step C1: Perform a 1×1 convolution block operation on the highest level output feature map of the encoder to reduce the dimensionality and the number of parameters, and obtain the seventh feature map;

[0084] Step C2: Convolve the seventh feature map using three dilated convolutions with different dilation rates to extract multi-scale information under different receptive fields;

[0085] Specifically, the dilation rates of the three dilated convolutions are 2, 3, and 5, respectively. Using dilated convolutions can expand the receptive field of the model while reducing the number of parameters.

[0086] Step C3: Perform an additive fusion operation on the seventh feature map and the output feature maps of the three dilated convolutions to generate a more refined and comprehensive eighth feature map;

[0087] Step C4: Use the Pconv module to process the eighth feature map to remove redundant information, extract more representative detailed features, and further improve the accuracy of the model.

[0088] S202: Train the image semantic segmentation network using the training dataset;

[0089] Specifically, the training method can adopt the existing training process, which will not be elaborated here.

[0090] S203: Input the city street view image into the trained image semantic segmentation network to obtain the image semantic segmentation result.

[0091] Specifically, in the encoder, the first two convolutional layers downsample the input city street view image to 1 / 4 of the original image (i.e., image size 256×128). Next, three convolutional layers composed of stacked STDC modules downsample the image to 1 / 8 (i.e., image size 128×64), 1 / 16 (i.e., image size 64×32), and 1 / 32 (i.e., image size 32×16) of the original image, respectively. Understandably, the encoder's final output feature map size is 1 / 32 of the original image. The final output feature map of the encoder is fed into the integrated perception module to expand the receptive field. This operation does not change the size of the input image, and the size of the output feature map is still 1 / 32 of the original image. Then, the output feature map of the integrated perception module and the feature maps of the two adjacent stages of the encoder are subjected to dual decoding fusion and upsampling. During the fusion process, a cross-attention module is used for cross-weighting. After three dual decoding fusions, the final feature map is upsampled to 1 / 4 of the original image. Finally, the number of channels is adjusted to the number of image categories through a 3×3 convolutional layer, and the image is upsampled to the original image size through bilinear interpolation to obtain the final predicted image.

[0092] Based on the above embodiments, such as Figure 2 (b) or Figure 3 As shown in (b), local channel attention processes the feature map to generate two weight values, specifically including:

[0093] The feature map is subjected to 1×1 convolution, batch normalization, ReLU, 1×1 convolution, batch normalization, and Sigmoid operations in sequence, ultimately generating two weight values.

[0094] Based on the above embodiments, such as Figure 3 As shown in (c), global spatial attention processes the feature map to generate two weight values, specifically including:

[0095] The feature maps are subjected to average pooling and max pooling operations respectively. The feature maps after the two pooling operations are then concatenated and fused to obtain the ninth feature map.

[0096] The ninth feature map is sequentially processed through two 3×3 convolutional blocks and a Sigmoid operation to generate two weight values. The 3×3 convolutional block includes a 3×3 convolution operation, a batch normalization operation, and a ReLU operation connected in sequence.

[0097] Simultaneously, the ninth feature map undergoes Pconv redundancy removal and 1×1 convolutional block operations to reduce the number of channels. The structure of the Pconv module is as follows: Figure 2 As shown in (c), it will not be described again here. The 1×1 convolution block includes a series of 1×1 convolution operations, batch normalization operations, and ReLU operations connected in sequence.

[0098] Example 3

[0099] To verify the effectiveness of this invention in real-time semantic segmentation tasks, experiments were conducted on the public challenging datasets Cityscapes and CamVid.

[0100] (I) Dataset

[0101] Cityscapes is a dataset specifically designed for scene understanding and semantic segmentation tasks. This dataset contains 5000 images with high-quality, densely pixelated annotations, divided into three subsets: 2975 training images, 500 validation images, and 1525 test images. The Cityscapes dataset images have a resolution of 2048×1024 pixels and include 30 semantic categories, 19 of which are used for semantic segmentation experiments.

[0102] Camvid is a small dataset focused on road scene segmentation. It contains 701 images, each with high-quality pixel-level annotations. 367, 101, and 233 images were selected as training, validation, and test sets, respectively. All images have a resolution of 960×720 pixels. The dataset has 32 semantic categories, with 11 categories (e.g., road, cycling, and buildings) used for semantic segmentation experiments. This invention was tested on these two datasets, and its performance was evaluated on the test sets of both datasets. The parameter count and inference speed of this invention are reported. The evaluation metrics used are mean intersection-over-union (mIoU) and frames per second (FPS).

[0103] (II) Training and Testing

[0104] Stochastic Gradient Descent (SGD) with a momentum of 0.9 was chosen as the optimizer, and a warm-up strategy and a "poly" learning rate scheduler were also employed. The network parameters were first trained using the training sets of two datasets. To facilitate rapid training, for the Cityscapes dataset, the images were randomly cropped to 1024×512 pixels, with a batch size of 8, a momentum of 0.9, and a weight decay of 5e. -4 For CamVid, the batch size is 12, the momentum is set to 0.9, and the weight decay is set to 1e. -4 .

[0105] During training, validation was performed after each training epoch, and the network performance was then tested on test sets of two datasets. For Cityscapes, results at two resolutions were tested: 1024×512 (suffix 50 indicates this resolution) and 1536×768 (suffix 75 indicates this resolution). For CamVid, the test size was the same as the original image. On the Cityscapes test set, with a 1536×768 pixel image as input, the present invention achieved a segmentation accuracy of 77.6% mIoU and an inference speed of 83.9 FPS. On the CamVid test set, with a 960×720 pixel image as input, the present invention achieved a segmentation accuracy of 77.0% mIoU and an inference speed of 135.8 FPS. This invention surpasses the performance of most state-of-the-art real-time semantic segmentation methods, achieving a good balance between accuracy and speed.

[0106] Table 1 shows a comparison of relevant metrics between existing technologies and the method proposed in this invention on the Cityscapes dataset:

[0107] Table 1

[0108]

[0109] Table 2 shows a comparison of relevant metrics between existing technologies and the method proposed in this invention on the CcmVid dataset:

[0110] Table 2

[0111]

[0112] As shown in Tables 1 and 2 above, this invention achieved significant results in both Cityscapes and CamVid benchmark tests. On a single NVIDIA GTX 2080Ti card, it achieved a 77.6% mIoU at 83.9 FPS on the Cityscapes test set for 768x1536 input and a 77.0% mIoU at 135.8 FPS on the CamVid dataset for 720x960 input. This makes this invention highly promising for real-time applications.

[0113] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, and not to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features; and these modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A real-time urban street view image semantic segmentation method based on dual interactive fusion, characterized in that, include: Step 1: Construct an image semantic segmentation network; the image semantic segmentation network adopts an encoder and decoder architecture, with multiple fusion modules and a comprehensive perception module set between the encoder and decoder; each fusion module is used to fuse the output feature maps of two adjacent layers in the encoder, and the comprehensive perception module is used to process the output feature map of the highest layer in the encoder to expand the receptive field of the image semantic segmentation network; the decoder is equipped with multiple cascaded cross-attention modules (CAMs), and the CAMs are used to perform cross-weighted fusion of the output feature maps of the comprehensive perception module or the previous-level CAM with the output feature maps of the corresponding fusion modules; Step 2: Train the image semantic segmentation network; Step 3: Input the real-time acquired city street view images into the trained image semantic segmentation network to obtain the image semantic segmentation results.

2. The real-time urban street view image semantic segmentation method based on dual interactive fusion according to claim 1, characterized in that, The encoder consists of two convolutional layers connected in sequence from low to high levels, and three feature extraction modules stacked by short-term dense cascaded STDC modules. Correspondingly, three fusion modules are provided, which are used to fuse the output feature maps of any two adjacent layers between the second convolutional layer and the last feature extraction module stacked by STDC modules.

3. The real-time urban street view image semantic segmentation method based on dual interactive fusion according to claim 1, characterized in that, The fusion module is used to fuse the output feature maps of two adjacent layers in the encoder, specifically including: By reducing the number of channels and upsampling the feature map output by the higher layer in two adjacent layers, a first feature map is obtained. The first feature map has the same size and number of channels as the feature map output by the lower layer. The first feature map is added to the feature map output by the lower layer to obtain the second feature map; The second feature map is processed using local channel attention to generate two weight values ​​α and 1-α. The two weight values ​​are then used to perform a weighted fusion of the feature map output from the lower layer and the first feature map to obtain the third feature map. The third feature map is processed using the Pconv module to remove redundant information.

4. The real-time urban street view image semantic segmentation method based on dual interactive fusion according to claim 1, characterized in that, The CAM is used to perform cross-weighted fusion of the output feature map of the integrated sensing module or the previous-level CAM with the output feature map of the fusion module, specifically including: The output feature map of the integrated sensing module or the previous-level CAM is denoted as the high-level feature map F. high The output feature map of the fusion module is denoted as the low-level feature map F. low ; For feature map F high Perform an upsampling operation to obtain the feature map F. high ’ For feature map F low By reducing the number of channels, we obtain the feature map F. low ’ The feature map F high ’ With feature map F low ’ Size and number of channels are the same; The feature map F high ’ With feature map F low ’ Perform an additive fusion operation to obtain the fourth feature map; The fourth feature map is processed using local channel attention to generate two weight values ​​β and 1-β, and the fourth feature map is processed using global spatial attention to generate two weight values ​​γ and 1-γ. The feature map F is weighted using weights β, 1-β, γ, and 1-γ. high ’ and feature map F low ’ Cross-weighted fusion is performed to obtain the fifth feature map; The Pconv module is used to process the fifth feature map to remove redundant information, and the number of channels in the redundant feature map is reduced to obtain the sixth feature map.

5. The real-time urban street view image semantic segmentation method based on dual interactive fusion according to claim 1, characterized in that, The integrated perception module is used to process the output feature map of the highest level of the encoder to expand the receptive field of the image semantic segmentation network, specifically including: By reducing the number of channels in the highest-level output feature map of the encoder, the seventh feature map is obtained. The seventh feature map is convolved using three dilated convolutions with different dilation rates. The seventh feature map is fused with the output feature maps of the three dilated convolutions by addition to obtain the eighth feature map. The Pconv module is used to process the eighth feature map to remove redundant information.

6. A real-time urban street view image semantic segmentation method based on dual interactive fusion according to claim 3 or 4, characterized in that, The local channel attention process generates two weight values ​​from the feature map, specifically including: The feature map is subjected to 1×1 convolution, batch normalization, ReLU, 1×1 convolution, batch normalization, and Sigmoid operations in sequence to generate two weight values.

7. The real-time urban street view image semantic segmentation method based on dual interactive fusion according to claim 4, characterized in that, The global spatial attention process generates two weight values ​​from the feature map, specifically including: The feature maps are subjected to average pooling and max pooling operations respectively. The feature maps after the two pooling operations are then concatenated and fused to obtain the ninth feature map. The ninth feature map is sequentially passed through two first convolutional blocks and a Sigmoid operation to generate two weight values. The first convolutional block includes a 3×3 convolution operation, a batch normalization operation, and a ReLU operation connected in sequence.

8. A real-time urban street view image semantic segmentation method based on dual interactive fusion according to claim 3, 4, or 5, characterized in that, The reduction of the number of channels in the feature map specifically includes: performing a second convolutional block operation on the feature map to reduce the number of channels; wherein, the second convolutional block includes a 1×1 convolution operation, a batch normalization operation, and a ReLU operation connected in sequence.