Pedestrian detection method based on multi-scale feature pyramid fusion based on semantic enhancement

Through the semantically enhanced multi-scale feature pyramid fusion method, the trapezoidal path enhancement model and the multi-scale feature fusion model are used to solve the problems of poor multi-scale detection performance and computational redundancy of existing pedestrian detection methods, and achieve a more efficient multi-scale detection method. Scale pedestrian detection.

CN112446308BActive Publication Date: 2024-09-13UNIV OF SCI & TECH BEIJING
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202011281029.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-11-16
Publication Date
2024-09-13
Estimated Expiration
2040-11-16

AI Technical Summary

Technical Problem

Existing pedestrian detection methods have poor performance in multi-scale detection, mainly due to the limitations of single-scale feature maps and computational redundancy issues, which cannot fully utilize multi-scale feature information.

Method used

The multi-scale feature pyramid fusion method based on semantic enhancement is used to extract multi-scale features through the ladder path enhancement model, and perform feature fusion through the multi-scale feature fusion model to reduce the number of channels and improve detection performance.

Benefits of technology

It significantly improves the performance of multi-scale pedestrian detection, improves detection accuracy and speed, and outperforms existing technologies on challenging pedestrian detection data sets.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112446308B
    Figure CN112446308B
Patent Text Reader

Abstract

The present invention provides a pedestrian detection method based on semantic enhancement and multi-scale feature pyramid fusion, which relates to the field of computer vision technology and can effectively extract and integrate multi-scale feature maps for multi-scale pedestrian detection, significantly improving the performance of multi-scale pedestrian detection; the method first uses a trapezoidal path enhancement model to extract multi-scale features of an image, and then performs feature fusion through a multi-scale feature fusion model; the trapezoidal path enhancement model is to add a higher-level feature layer on the basis of an existing feature pyramid to extract higher-level semantic feature information; the multi-scale feature fusion model specifically performs feature fusion by adding and cascading feature data of adjacent feature layers to enhance feature information at different scales while reducing the number of channels. The technical solution provided by the present invention is applicable to the process of pedestrian detection.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to the field of computer vision technology, and in particular to a pedestrian detection method based on semantic enhancement and multi-scale feature pyramid fusion. [Background technology]

[0002] Pedestrian detection is one of the most important tasks in computer vision. Its purpose is to accurately locate pedestrians in images or video sequences. Due to its great value in practical applications, many research works have been conducted to study it in depth. Currently, pedestrian detection has been widely used in intelligent vision systems, such as autonomous driving, intelligent monitoring, and road scene understanding. The application of deep learning-based methods has greatly improved the performance of pedestrian detection. However, due to the huge differences in pedestrian scales, multi-scale pedestrian detection is still a very challenging research topic.

[0003] At present, there are some research works on multi-scale pedestrians. For example, TLL (T. Song, L. Sun, D. Xie, H. Sun, and S. Pu. Small-scale pedestrian detection based on topological line localization and temporal feature aggregation. In The European Conference on Computer Vision (ECCV), September 2018.) solves the scale variation problem by locating the somatic topological line of each pedestrian, thereby reducing the influence of background noise. In (J. Li, X. Liang, S. Shen, T. Xu, J. Feng, S. Yan. Scale-aware Fast R-CNN for Pedestrian Detection [J]. In Multimedia, 2015.), two subnetworks are designed to detect large and small targets respectively. However, most existing pedestrian detectors only use single-scale feature maps in their backbone networks for detection, which cannot fully utilize the advantages of multi-scale feature information, resulting in unsatisfactory multi-scale detection performance. Recently, CSP (W.Liu, S.Liao, W.Ren, W.Hu, Y.Yu.High-Level Semantic Feature Detection: A New Perspective for Pedestrian Detection. CVPR 2019: 5187–5196) has achieved state-of-the-art results in pedestrian detection. It uses an anchor-free detection method, but it only extracts one layer of feature maps from the backbone for detection, which is not conducive to the detection of multi-scale targets.

[0004] In order to better detect objects of different scales, some general object detectors use feature pyramids to exploit multi-scale information. Feature pyramids generate multi-scale feature maps through convolutional layers for multi-scale object detection. The most classic feature pyramid network (FPN) (T.Lin, P.Doll′ar, RBGirshick, K.He, B.Hariharan, and S.J.Belongie.Feature pyramid networks for object detection.In CVPR, 2017.) consists of top-down and bottom-up paths with horizontal connections. Each layer of the feature pyramid combines features with different resolutions and different semantic information to obtain a more powerful representation. However, the traditional top-down FPN is limited by the inherent unidirectional information flow. PANet (S. Liu, L. Qi, H. Qin, J. Shi, J. Jia, "Path aggregation network for instance segmentation", IEEE Conference on Computer Vision and Pattern Recognition, pp. 8759-8768, 2018.) supplements FPN with an additional bottom-up path to enhance localization capabilities, but there are still deficiencies.

[0005] In addition, most current feature pyramids use multiple detection heads to perform parallel detection on feature maps of different scales. The main problem with this strategy is its computational redundancy, because multiple detection heads of different scales may repeatedly detect objects of intermediate scales, so it is not suitable for widespread promotion.

[0006] Therefore, it is necessary to study a pedestrian detection method based on semantically enhanced multi-scale feature pyramid fusion to address the shortcomings of the existing technology in order to solve or alleviate one or more of the above problems. [Summary of the invention]

[0007] In view of this, the present invention provides a pedestrian detection method based on semantically enhanced multi-scale feature pyramid fusion, which can effectively extract and integrate multi-scale feature maps for multi-scale pedestrian detection and significantly improve the performance of multi-scale pedestrian detection.

[0008] On the one hand, the present invention provides a pedestrian detection method based on semantic enhancement and multi-scale feature pyramid fusion, characterized in that the pedestrian detection method first uses a trapezoidal path enhancement model to extract multi-scale features of an image, and then performs feature fusion through a multi-scale feature fusion model; the multi-scale features include deep feature layer data rich in semantic information and bottom feature layer data rich in detail information;

[0009] The trapezoidal path enhancement model adds a higher level of feature layers on the basis of the existing feature pyramid to extract higher level semantic feature information;

[0010] The multi-scale feature fusion model specifically performs feature fusion by adding and cascading feature data of adjacent feature layers to enhance feature information at different scales while reducing the number of channels.

[0011] According to the aspects and any possible implementation methods described above, an implementation method is further provided, wherein the trapezoidal path enhancement model includes a top-down path and a bottom-up path, and the two paths are horizontally connected to enhance the features of each scale; the feature layer in the top-down path is represented as {P3, P4, P5, P6}, and the feature layer in the bottom-up path is represented as {N3, N4, N5, N6, N7}.

[0012] According to the aspects and any possible implementations described above, an implementation is further provided, wherein the P6 layer feature data is obtained by performing a 3×3 convolution operation with a step size of 2 on the P5 layer feature data.

[0013] According to the aspects and any possible implementations described above, an implementation is further provided, wherein the N6 layer feature data is obtained by performing a 3×3 convolution operation with a step size of 2 on the N5 layer feature data.

[0014] According to the aspects described above and any possible implementation method, an implementation method is further provided, wherein the N7 layer feature data is obtained through a maximum pooling operation with a step size of 2.

[0015] According to the above aspects and any possible implementation, an implementation is further provided, wherein the working process of the multi-scale feature fusion model includes:

[0016] S1. In two adjacent feature layers to be added, the upper feature layer is upsampled to obtain the size of the lower feature layer, and then the two feature layers are added to obtain the corresponding feature map; when the feature layer is odd, the lowest feature layer is not added;

[0017] S2, using nearest neighbor interpolation to increase the scale of all feature maps; using deconvolution to increase the scale of feature layers that are not added;

[0018] S3. Normalize the scaled feature maps and / or feature layers, concatenate them along the channel dimension, and output them to the detection head for classification and regression.

[0019] According to the aspects and any possible implementation described above, an implementation is further provided, wherein the scale increase standard in step S2 is to make the size of the feature map obtained by cascading to be H / r×W / r; wherein r is the downsampling factor, and H and W are the height and width of the original input image.

[0020] According to the above aspects and any possible implementation, a further implementation is provided, in which the downsampling factor r takes a value of 4.

[0021] According to the aspects and any possible implementation methods described above, an implementation method is further provided, in which the trapezoidal path enhancement model uses ResNet-50 as the backbone, extracts feature maps from stage3 to stage5, and then downsamples the feature maps from stage3 to stage5 to scales 8, 16, and 32 respectively; then, the number of channels is unified to 256 through 1×1 convolution; and then a top-down path and a bottom-up path are constructed.

[0022] According to the above aspects and any possible implementation, an implementation is further provided, wherein the actual operation engineering of the pedestrian detection method includes: using ResNet-50 as a backbone and pre-training on ImageNet, and optimizing using the Adam optimization method;

[0023] Use 2 GTX 1080Ti GPUs for training on the Caltech dataset and 4 GTX 1080Ti GPUs for training on the CityPersons dataset;

[0024] For the Caltech dataset, the learning rate is set to 0.0001, the batch size is set to 10, and the training is stopped after 15K iterations;

[0025] For the CityPersons dataset, the learning rate is set to 0.0002, the batch size is set to 2, and the training is stopped after 37.5K iterations.

[0026] Compared with the prior art, the present invention can achieve the following technical effects: the present application proposes a new multi-scale pedestrian detection method, which consists of a trapezoidal path enhancement module and a multi-scale feature fusion module; the trapezoidal path enhancement module aims to extract higher-level semantic features through additional higher-level feature layers, wherein the generated features are enhanced by the supplementary higher-level semantic information so that they can be more accurately focused on the pedestrian area, thereby improving the detection performance; the multi-scale feature fusion module aims to fuse multi-scale features in a more efficient manner by upsampling twice and adding adjacent layers; the method of the present application achieves improved detection performance on two challenging pedestrian detection datasets, namely CityPersons and Caltech.

[0027] Of course, any product implementing the present invention does not necessarily need to achieve all of the above-mentioned technical effects at the same time.

Brief Description of the Drawings

[0028] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0029] Figure 1 It is a visual comparison of the detection results of the feature map of the present invention and PANet; Figure 1 (a) is the heat map of feature map N5 in PANet. Figure 1 (b) is the heat map after pixel-by-pixel addition of N6 and N7 in the trapezoidal path enhancement model of this application;

[0030] Figure 2 It is a schematic diagram of the structure of a multi-scale feature pyramid fusion network based on semantic enhancement provided by an embodiment of the present invention;

[0031] Figure 3 is a schematic diagram of the structure of a multi-scale feature fusion model provided by an embodiment of the present invention;

[0032] Figure 4 is an example of detection results on the Caltech dataset provided by an embodiment of the present invention. The upper row is the result of the present invention, and the lower row is the result of the original CSP framework; wherein, Figure 4 (a) shows the comparison of detection results for small-scale pedestrian instances; Figure 4 (b) shows the comparison of detection results for large-scale pedestrian instances. [Specific implementation method]

[0033] In order to better understand the technical solution of the present invention, the embodiments of the present invention are described in detail below with reference to the accompanying drawings.

[0034] It should be clear that the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0035] The terms used in the embodiments of the present invention are only for the purpose of describing specific embodiments, and are not intended to limit the present invention. The singular forms "a", "said" and "the" used in the embodiments of the present invention and the appended claims are also intended to include plural forms, unless the context clearly indicates other meanings.

[0036] When the feature pyramid is used for feature fusion, the features of the lower layers are added to the features of the higher layers in the top-down path through lateral connections, so that the semantic information of the higher layers can be supplemented to the lower features. However, the feature map of the highest layer in the top-down path only transmits information downward, and there is no supplement of information from the higher feature layers. In response to this deficiency, the present application adds higher-level semantic features to the traditional feature pyramid by adding higher-level feature layers to extract higher-level semantic feature information, thereby enabling the detector to focus more accurately on the pedestrian area and improving the detection performance. That is, the present invention proposes a semantically enhanced multi-scale feature pyramid fusion method, which can effectively extract and integrate multi-scale feature maps for multi-scale pedestrian detection.

[0037] In the feature fusion of the traditional feature pyramid, the bottom-level features are merged with the high-level features in the top-down path, so that the high-level semantic information can be supplemented to the bottom-level features. However, the highest-level feature layer only transmits information downward without supplementing the information of the higher feature layers. This feature layer is further passed to N5 through horizontal connections. This application visualizes the detection map of the N5 feature layer in PANet, such as Figure 1 (a). It can be found that its attention to pedestrians is not focused and accurate enough. Therefore, this application proposes a trapezoidal path enhancement module, which adds a P6 layer on top of the P5 layer to supplement high-level feature information during back propagation. Then N6 and N7 are generated by P6, which extract higher-level semantic information, making the feature response of the pedestrian area more focused and accurate. Figure 1As shown in (b), the present application visualizes the feature map after pixel addition of the N6 and N7 layers in the trapezoidal path enhancement module, and it can be found that its feature response is more accurately concentrated in the pedestrian area. This result effectively illustrates that the detection performance can be improved by adding a higher-level semantic feature layer without the need to incur expensive computational costs to deepen the backbone network. The model of the present application is illustrated using ResNet50 as the backbone network. The scale at P6 is already relatively small (6×7×256), and the scale of N7 is 3×4×256 at this time, so the addition of higher levels is not discussed. However, this does not mean that when other model networks are used as the backbone and the scale is appropriate, it is not possible to add higher and more levels to supplement high-level feature information and improve detection performance. In fact, in many cases, it is feasible for the present application to supplement high-level feature information and improve detection performance by adding several higher levels.

[0038] In order to solve the computational redundancy problem of multiple detection heads performing parallel detection schemes on feature maps of different scales, this application also proposes a novel multi-scale feature fusion method to fuse feature layers of different scales from the trapezoidal path enhancement model, enhance feature information at different scales, and fuse features by adding and cascading adjacent layers to improve detection performance while reducing computational costs. This model first adds adjacent scale feature layers and then cascades them together (i.e., adjacent scale feature maps are added first and then cascaded together), reducing the number of channels of feature maps used for detection, improving detection accuracy while increasing network operation speed, and solving the computational redundancy problem of multiple detection heads, reducing computational costs.

[0039] To evaluate the effectiveness of the proposed method, a powerful single-stage pedestrian detector is designed by integrating the trapezoidal path enhancement model and multi-scale feature fusion model proposed in this application into a representative pedestrian detection framework based on center and scale prediction (CSP). Experimental results on the popular Caltech (S. Zhang, R. Benenson, M. Omran, J. Hosang, and B. Schiele. How far are we from solving pedestrian detection? In CVPR. IEEE, 2016.) and CityPersons (S. Zhang, R. Benenson, B. Schiele: CityPersons: A DiverseDataset for Pedestrian Detection. CVPR 2017: 4457-4465.) datasets show that the method of this application not only outperforms the baseline framework, but also outperforms some of the latest pedestrian detection methods. On the Caltech dataset, compared with the single-stage pedestrian detector ALFNet proposed in 2018 (W. Liu, S. Liao, W. Hu, X. Liang, and X. Chen. Learning efficient single-stage pedestrian detectors by asymptotic localization fitting. In The European Conference on Computer Vision (ECCV), September 2018.) is improved by 2.6%, and by 1% compared to the pedestrian detector CSP proposed in 2019; on the CityPersons dataset, it is improved by 1.3% compared to ALFNet and 0.3% compared to CSP. See Tables 1 and 2 for details.

[0040] Table 1 Caltech dataset results

[0041]

[0042] Table 2

[0043] Citypersons dataset results

[0044] The main network structure design of this application is as follows Figure 2As shown. With ResNet-50 as the backbone, feature maps from stage3 to stage5 are extracted, and the feature maps are downsampled to scales 8, 16, and 32, respectively. After that, the number of channels is unified to 256 through 1×1 convolution. Then, top-down and bottom-up paths are constructed, and the features of each scale are enhanced through horizontal connections. In this application, the feature layers in the top-down path are represented as {P3, P4, P5, P6}, and the feature layers in the bottom-up path are represented as {N3, N4, N5, N6, N7}. In addition, in order to obtain higher-level feature information, P6 is obtained from the P5 layer through a 3×3 convolution operation with a step size of 2, and N6 is obtained from the N5 layer through a 3×3 convolution operation with a step size of 2. The difference is that N7 is obtained through a maximum pooling operation with a step size of 2, and its performance has been experimentally verified to be better than that of convolution. In the multi-scale feature fusion model, feature map N7 is first upsampled to the size of N6, and then N7 and N6 are added to obtain feature map A1 (such as Figure 3 As shown). Similarly, N5 is added to N4 through the same operation to obtain feature map A2. Since N3 contains more geometric information, it is not added to feature maps of other scales, thereby retaining more feature information for the detection of small-scale targets. Assuming that the size of the input image is H×W, the size of the feature map obtained by the final cascade is set to H / r×W / r, where r is the downsampling factor, and r is set to 4 in this application. This application uses deconvolution to increase the scale of N3, and uses nearest neighbor interpolation to increase the scales of A1 and A2. Since the original scales of these feature maps are different, L2 normalization is used for N3, A1, and A2. Finally, these feature maps are cascaded together along the channel dimension and output to the detection head for classification and regression. C3 to C5 are feature layers conv3 to conv5 in the backbone network ResNet, P3 to P6 are feature layers in the top-down path of the feature pyramid, which are obtained by upsampling and lateral connections, and N3 to N7 are feature layers in the bottom-up path, which are obtained by convolution and lateral connections. In order to be consistent with the baseline network structure, we use a network structure starting from C3, which has been proven to be better than starting from C2. The common feature pyramid construction method starts from C2 and C3. Starting from C4, some detailed information will be lost, and C1 has not yet extracted feature information that can be used for detection. For specific construction methods and feature map scales, see Table 3.

[0045] Table 3 Specific parameters of the ladder path enhancement model level

[0046]

[0047]

[0048] (1) Dataset used in the present invention

[0049] The experiments of the present invention are first conducted on the Caltech pedestrian dataset. The Caltech pedestrian dataset contains 2.5 hours of video data, which was captured on the streets of Los Angeles. The dataset contains 11 videos. The Caltech pedestrian dataset annotates pedestrians in the picture with bounding boxes, of which more than 70% of pedestrian instances are less than 100 pixels in height, including particularly small pedestrian instances less than 50 pixels. We follow the standard protocol and use 42,782 frames of intercepted images for training and 4,024 frames for testing. And in order to keep consistent with the original framework and facilitate comparison with the latest pedestrian detection results, we use the newly released annotated dataset (S. Zhang, R. Benenson, M. Omran, J. Hosang, and B. Schiele. How far are we from solving pedestrian detection? In CVPR. IEEE, 2016) to conduct experiments.

[0050] The present invention also conducts experiments on the CityPersons dataset. CityPersons is a newly released large-scale pedestrian detection dataset. We train the model on the official training set with 2975 images and test it on the validation set containing 500 images, following the standard evaluation metric (FPPI). The test only uses the original image size, and the image scale is not enlarged for training considering the impact on training speed.

[0051] (2) Experimental description

[0052] In the experiments of the present invention, we use the Keras deep learning framework. We use ResNet-50 as the backbone and pre-train it on ImageNet. At the same time, the Adam optimization method is used. The network is trained on 2 GTX 1080Ti GPUs on the Caltech dataset and on 4 GTX 1080Ti GPUs on the CityPersons dataset. For the Caltech dataset, the learning rate is set to 0.0001, the batchsize is set to 10, and the training is stopped after 15K iterations. For the CityPersons dataset, the learning rate is set to 0.0002, the batchsize is set to 2, and the training is stopped after 37.5K iterations.

[0053] (3) Experimental results

[0054] Ablation experiment: On the Caltech dataset, we first added the trapezoidal path enhancement model to the CSP pedestrian detection framework, and the false detection rate (MS-2) was reduced from 4.5% to 4.0%, and the performance was improved by 0.5%, proving that adding high-level feature layers with higher semantic information can further improve the detection performance. After that, we added the multi-scale feature fusion model, and the false detection rate was further reduced to 3.5%. Compared with the original detection framework, the accuracy was improved by 1%. At the same time, the test time is similar to the original detection framework.

[0055] Overall performance: On the CityPersons dataset, we further compared the detection results on the multi-scale subsets Small, Medium and Large, and the detection accuracy was improved. The experimental results show that the present invention improves the detection accuracy of multi-scale pedestrian detection. On the overall Reasonable set, the result is improved by 0.3%, and the test time is not increased, which is 0.34s / img; on the Caltech dataset, on the overall Reasonable set, the result is improved by 1%, and the test time is not increased, which is 66ms / img.

[0056] Figure 4 The detection results from the Caltech dataset are shown. Figure 4 As shown in (a), compared with the original CSP framework, our proposed method has a better recall rate for small-scale pedestrians. In addition, by comparing the detection results of the invention with the original CSP framework on large-scale instances, as shown in Figure 4 As shown in (b), it can be seen that our method can more accurately detect the full body frame of large-scale pedestrians.

[0057] It can be seen that the present invention improves the performance of multi-scale pedestrian detection.

[0058] The present invention proposes a multi-scale feature pyramid fusion method based on semantic enhancement for multi-scale pedestrian detection. Based on the multi-scale feature pyramid, the network proposes a trapezoidal path enhancement model (TPAM) and designs a multi-scale feature fusion model (MFFM). The trapezoidal path enhancement model extracts high-level semantic information by adding higher-level feature layers, so that the pedestrian detector focuses more on the pedestrian area. The multi-scale feature fusion model is used to fuse the multi-scale feature maps output from the trapezoidal path enhancement model, thereby further utilizing the multi-scale feature information and reducing the computational redundancy problem caused by the multiple detection head structure, while saving the network computational overhead by reducing the number of channels. Experiments show that the present invention improves the accuracy of pedestrian detection tasks on the Caltech and CityPersons pedestrian datasets.

[0059] The above is a detailed introduction to a pedestrian detection method based on semantically enhanced multi-scale feature pyramid fusion provided in an embodiment of the present application. The description of the above embodiment is only used to help understand the method and its core idea of ​​the present application; at the same time, for those skilled in the art, according to the idea of ​​the present application, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.

[0060] For example, certain words are used in the specification and claims to refer to specific components. Those skilled in the art should understand that hardware manufacturers may use different nouns to refer to the same component. This specification and claims do not use differences in names as a way to distinguish components, but use differences in the functions of components as the criteria for distinction. As mentioned throughout the specification and claims, "including" and "comprising" are open-ended terms, so they should be interpreted as "including / including but not limited to". "Approximately" means that within an acceptable error range, those skilled in the art can solve the technical problem within a certain error range and basically achieve the technical effect. The subsequent description of the specification is a preferred embodiment of the present application, but the description is for the purpose of illustrating the general principles of the present application, and is not used to limit the scope of the present application. The scope of protection of the present application shall be determined by the definition of the attached claims.

[0061] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a product or system including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such a product or system. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the product or system including the elements.

[0062] It should be understood that the term "and / or" used in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship.

[0063] The above description shows and describes several preferred embodiments of the present application, but as mentioned above, it should be understood that the present application is not limited to the form disclosed herein, and should not be regarded as excluding other embodiments, but can be used in various other combinations, modifications and environments, and can be modified within the scope of the application concept described herein through the above teachings or the technology or knowledge of the relevant field. The changes and modifications made by those skilled in the art do not deviate from the spirit and scope of the present application, and should be within the scope of protection of the claims attached to the present application.

Claims

1. A pedestrian detection method based on semantic enhancement and multi-scale feature pyramid fusion, characterized in that: The pedestrian detection method first uses a trapezoidal path enhancement model to extract multi-scale features of the image, and then performs feature fusion through a multi-scale feature fusion model; The trapezoidal path enhancement model adds a higher level of feature layers on the basis of the existing feature pyramid to extract higher level feature information; The multi-scale feature fusion model specifically performs feature fusion by adding and cascading feature data of adjacent feature layers to enhance feature information at different scales while reducing the number of channels. The trapezoidal path enhancement model uses ResNet-50 as the backbone network to construct a top-down path and a bottom-up path. The two paths are horizontally connected to enhance the features of each scale. The feature layers in the top-down path are denoted as {P3, P4, P5, P6}, and the feature layers in the bottom-up path are denoted as {N3, N4, N5, N6, N7}; The feature data of the P6 layer is obtained by performing a 3×3 convolution operation with a step size of 2 on the feature data of the P5 layer; The feature data of layer N6 is obtained by performing a 3×3 convolution operation with a step size of 2 on the feature data of layer N5; The feature data of layer N7 is obtained through a maximum pooling operation with a step size of 2; The trapezoidal path enhancement model uses ResNet-50 as the backbone network to extract feature maps from stage3 to stage5, and then downsamples the feature maps from stage3 to stage5 to scales 8, 16, and 32 respectively; then the number of channels is unified to 256 through 1×1 convolution; and then the top-down path and the bottom-up path are constructed.

2. The pedestrian detection method based on semantic enhancement and multi-scale feature pyramid fusion according to claim 1 is characterized in that: The working process of the multi-scale feature fusion model includes: S1. In two adjacent feature layers to be added, the upper feature layer is upsampled to obtain the size of the lower feature layer, and then the two feature layers are added to obtain the corresponding feature map; when the feature layer is odd, the lowest feature layer is not added; S2, using nearest neighbor interpolation to increase the scale of all feature maps; using deconvolution to increase the scale of feature layers that are not added; S3. Normalize the scaled feature maps and / or feature layers, concatenate them along the channel dimension, and output them to the detection head for classification and regression.

3. The pedestrian detection method based on semantic enhancement and multi-scale feature pyramid fusion according to claim 2 is characterized in that: The scale increase standard in step S2 is to make the size of the feature map obtained by cascading to H / r×W / r; where r is the downsampling factor, and H and W are the height and width of the original input image.

4. The pedestrian detection method based on semantic enhancement and multi-scale feature pyramid fusion according to claim 3 is characterized in that: The downsampling factor r is set to 4.

5. The pedestrian detection method based on semantic enhancement and multi-scale feature pyramid fusion according to claim 1 is characterized in that: The actual operation engineering of the pedestrian detection method includes: using ResNet-50 as the backbone and pre-training it on ImageNet, and optimizing it using the Adam optimization method; The pedestrian detection method is applicable to the Caltech dataset and the CityPersons dataset, and is trained using several GTX 1080Ti GPUs; the learning rate, batch size, and number of iterations are set before training.