The invention discloses a double-
branch multi-scale modeling semantic segmentation method based on a tunnel scene, and the method comprises the following steps: S1, collecting a tunnel face image in a tunnel, constructing a pixel-level
annotation data set, and improving the sample diversity through data enhancement; and S2, establishing a context path of the double-
branch semantic segmentation model, performing fast down-sampling by using a residual network to extract high-dimensional features, designing a spatial symmetric
pyramid module to enhance semantic
perception, and finally fusing and outputting average
pooling up-sampling and spatial
pyramid pooling features. And S3, establishing a spatial path of the double-
branch semantic segmentation model, performing down-sampling and
pooling processing on the high-dimensional feature map, and adding a dynamic sensing context module to extract a multi-scale
feature fusion output result. And S4, carrying out
feature fusion on the obtained feature information, and finally predicting a segmented image. According to the invention, the dynamic
context sensing module and the space symmetric
pyramid module are designed, so that the accuracy of multi-scale classification in a complex scene can be effectively improved.