A 3D object detection method based on density-aware completion and sparse fusion
Through density-aware completion and sparse fusion methods, the problem of missed detection and large calculation load caused by the sparsity of point clouds are solved, and higher detection accuracy and more accurate 3D target detection results are achieved.
Patent Information
- Application Number
- CN202410814599.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-24
- Publication Date
- 2024-09-03
- Estimated Expiration
- 2044-06-24
AI Technical Summary
Existing 3D target detection methods easily lead to missed detections when dealing with the sparsity of point clouds, and multi-modal fusion methods are computationally intensive, making it difficult to effectively improve detection accuracy.
Using density-aware completion and sparse fusion methods, the density-aware completion module performs density completion on sparse areas of the point cloud, and combines the sparse cross-BEV fusion module and the semantic point cloud rendering module to generate voxel features with semantic information. detection.
It improves the detection accuracy of distant objects, reduces the amount of calculation, achieves more accurate 3D target detection results, and significantly improves the detection accuracy of the car category on the KITTI test set.
Smart Images

Figure CN118397616B
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of autonomous driving, and in particular relates to a 3D target detection method based on density-aware completion and sparse fusion. Background Art
[0002] In recent years, autonomous driving has attracted increasing attention due to its potential to reduce the burden on drivers and improve driving safety. In modern autonomous driving systems, perception systems are an indispensable component that aims to accurately estimate the state of the surrounding environment and provide reliable observations for prediction and planning. 3D object detection can intelligently predict the position, size, and category of key 3D objects near the autonomous vehicle, and is an important part of the perception system. 3D object detection can provide detailed environmental perception information and has been widely used in the fields of autonomous driving and robotics. LiDAR can provide 3D point clouds with accurate structural information and distance information, and is an important sensor for 3D object detection. Autonomous driving technology has been widely used in many scenarios such as autonomous trucks, driverless taxis, and delivery robots, which can reduce human errors and improve road safety. At the same time, the geometric information predicted by 3D object detection in real-world coordinates can be directly used to measure the distance between the vehicle and key objects, and further help plan driving routes and avoid collisions.
[0003] LiDAR and cameras can provide a lot of valuable information for 3D perception, so they are often used as sensors for 3D object detection. LiDAR reflects the real 3D geometric space through 3D coordinates and provides accurate geometric information. On the other hand, cameras obtain RGB channel information, which usually provides rich texture and semantic information, but lack the geometric space information that LiDAR can obtain, and are easily affected by extreme weather and lighting. Therefore, in order to make up for the shortcomings of the data obtained by the two sensors, many multimodal fusion detection methods have been proposed, such as converting the data obtained by LiDAR and cameras into a unified space for effective combination to improve the performance of 3D object detection.
[0004] At present, most multimodal fusion research is based on the LiDAR network as the backbone, and image features are used as a supplement to point cloud features. In the two-stage detection algorithm, some multimodal research works are based on proposal methods. Point clouds have the characteristics of being dense near and sparse far. Sparse areas scanned by the LiDAR or blank areas that are not scanned will cause a certain degree of missed detection. Therefore, fusing the semantic and texture information of the point cloud only at the ROI is not conducive to detection. Some multimodal fusion methods use an attention mechanism for fusion detection. However, the attention-based method will result in a large amount of calculation. In view of the problems of missed detection caused by the sparsity of the above point clouds and the large amount of calculation of the fusion method, a 3D target detection method based on density-aware completion and sparse fusion is urgently needed. Summary of the invention
[0005] In order to solve the above technical problems, the present invention proposes a 3D target detection method based on density-aware completion and sparse fusion, which can solve the problems of missed detection caused by sparse point cloud and large amount of calculation in fusion method.
[0006] To achieve the above object, the present invention provides a 3D object detection method based on density-aware completion and sparse fusion, comprising:
[0007] Obtaining target data to be detected;
[0008] Input the target data to be detected into the target detection model to obtain the detection result, wherein the target detection model includes: a density-aware completion module, a sparse cross BEV fusion module, a semantic point cloud rendering module and a detection module connected in sequence;
[0009] The density-aware completion module is used to perform density completion on the point cloud features of the sparse areas and blank areas in the target data to be detected using the image BEV features, and obtain the sparse BEV features after density completion;
[0010] The sparse cross BEV fusion module is used to fuse the density-completed sparse BEV features and the image BEV features in the same BEV two-dimensional space to obtain a first fused feature;
[0011] The semantic point cloud rendering module is used to assign semantic information to the first fusion feature to obtain voxel features with semantic information;
[0012] The detection module is used to detect the voxel features with semantic information.
[0013] Optionally, the target data to be detected includes a 2D image and a 3D point cloud.
[0014] Optionally, the density-aware completion module is used to complete the point cloud features of sparse and blank areas using the image BEV features, and obtaining the sparse BEV features after density completion includes:
[0015] Performing sparse feature extraction on the 2D image and the 3D point cloud respectively to obtain 3D image BEV features and point cloud BEV features;
[0016] The 3D image BEV feature is density-completed and fused with the point cloud BEV feature to obtain a sparse BEV feature after density completion.
[0017] Optionally, the sparse BEV feature after density completion is:
[0018]
[0019] in, is the sparse BEV feature after density completion, is Where , is the image BEV feature Corresponding Location area, yes The sparse areas is Where , yes The position element, for and The position element of the intersection. is the point cloud BEV feature, is the image BEV feature.
[0020] Optionally, the sparse cross BEV fusion module is used to fuse the density-completed sparse BEV features and the 3D image BEV features in a unified BEV two-dimensional space, and obtaining the first fused feature includes:
[0021] Extract query features from the density-completed sparse BEV features, extract sampling features from the 3D image BEV features, fuse the query features and the sampling features to obtain fused BEV features.
[0022] Optionally, the method for fusing the query feature and the sampling feature is:
[0023]
[0024]
[0025] in, is the first sampling points, It is The location of the sampling points, It is Sampling bias, It is The sampling features, and are learnable weights, It is The first attention head The ratio of sampling points, To query features, For the The image BEV features corresponding to the point cloud query Yes Weighted aggregation features with different weights.
[0026] Optionally, obtaining voxel features with semantic information includes:
[0027] A query feature is extracted from the 3D point cloud, a sampling feature is extracted from the 2D image, and the query feature and the sampling feature are fused to obtain a voxel feature.
[0028] Optionally, obtaining the voxel feature includes:
[0029]
[0030]
[0031] in, It is The sampling features, For a given feature map, is the first sampling points, is the location of the query point, It is Sampling bias, To query features, and are learnable weights, is the first The attention weights of the sampling points.
[0032] Compared with the prior art, the present invention has the following advantages and technical effects:
[0033] 1. The density-aware completion module in the present invention quantifies the density of the point cloud EBV features and uses the image BEV features to complete the point cloud features in sparse and blank areas to solve the point cloud sparsity problem and improve the detection accuracy of distant objects. The sparse cross-BEV fusion module can enhance the semantic and local perception capabilities of the BEV features and solve the huge amount of computation required for the fusion process. It only selects non-empty BEV features in a uniform scale space and samples the image BEV features to quickly generate more detailed multimodal features with local semantics and precise geometric information, which is conducive to obtaining more accurate BEV detection results. The semantic point cloud rendering module enriches the ROI features more comprehensively by giving semantic information to point cloud features with precise location information in 3D space, and assists regression and classification to improve detection performance.
[0034] 2. The present invention achieves accurate and robust 3D target detection results, and realizes the classification and positioning of 3D targets in autonomous driving scenarios. Compared with the prior art, higher detection accuracy is achieved. On the KITTI test set, the detection accuracy of the model of the present invention in the car category reaches 89.36% at simple difficulty, 83.66% at medium difficulty, and 77.17% at high difficulty. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] The drawings constituting a part of the present application are used to provide a further understanding of the present application. The illustrative embodiments and descriptions of the present application are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:
[0036] Figure 1 It is a flow chart of a 3D object detection method based on density-aware completion and sparse fusion according to an embodiment of the present invention;
[0037] Figure 2 This is a structural diagram of a density-aware completion module according to an embodiment of the present invention;
[0038] Figure 3 This is a structural diagram of a sparse cross BEV fusion module according to an embodiment of the present invention;
[0039] Figure 4 This is a structural diagram of a semantic point cloud rendering module according to an embodiment of the present invention;
[0040] Figure 5 This is a DSCFusion detection result diagram of the automobile class of the test set according to an embodiment of the present invention;
[0041] Figure 6 This is the DSCFusion detection result diagram for the car class in the KITTI validation set. DETAILED DESCRIPTION
[0042] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.
[0043] It should be noted that the steps shown in the flowcharts of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and that, although a logical order is shown in the flowcharts, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0044] 3D object detection based on LiDAR. Since point clouds can provide accurate geometric information and reflect the 3D position of objects, their detection accuracy is still higher than that of image-based detection, so the sensor for single-modal 3D object detection is usually LiDAR. The distribution of point cloud data is usually irregular. PointNet and PointNet++ are the earliest deep learning algorithms proposed for processing point clouds, both of which are based on point methods. Subsequently, many research works have converted disordered and irregular point clouds into regular data formats, such as columns and voxels. At present, the mainstream LiDAR-based 3D object detection method converts point clouds into columns or voxels, and then uses convolutional backbones to extract BEV feature maps. The detector usually chooses to learn knowledge in the BEV feature map for generating detection boxes. Mainstream LiDAR detectors can be divided into single-stage and dual-stage detectors. Recent research works focus on designing new anchor-free networks and Transformer-based detection heads.
[0045] Image-based 3D object detection. Although the accuracy of image-based 3D object detection is not as good as that of LiDAR, the cost of cameras is often lower than that of LiDAR, and there are still many research works focusing on 3D object detection based on images collected by cameras. According to the dimension of the extracted image features, image-based 3D detectors can be divided into two categories. One is a method based on two-dimensional features, which mainly extracts two-dimensional features from the input image and estimates the 2D position, direction and size, and then restores the position in 3D space based on this information. Another research method is through feature lifting, which converts the two-dimensional image features in the image coordinate system into 3D voxel features in the 3D coordinate system, or through data lifting, which converts the two-dimensional image into 3D data (such as pseudo point cloud), converts the two-dimensional image into 3D features, and then uses a similar method to LiDAR to estimate the 3D bounding box of the target object.
[0046] 3D object detection based on fusion. LiDAR and camera often provide complementary information. Fusion of information from two modalities is beneficial to 3D object detection. Many studies focus on the fusion detection of two modalities. Early multimodal fusion research was mainly based on proposal methods. Frustum PointNets generates two-dimensional candidate boxes from 2D image features and maps them to 3D point cloud space using the cone, and then generates 3D detection boxes using the Pointnet method. Recently, some sparse representation fusion methods have achieved good performance. SparseFusion uses object-centered sparse scene representation to detect 3D objects. It not only ensures detection accuracy but also greatly improves detection efficiency through the fusion of sparse candidate objects. At the same time, BEV space is closer to 3D real space, and BEV fusion perception can be extended to multiple tasks, such as target detection, map segmentation, target tracking, trajectory prediction, etc. Therefore, fusion methods based on BEV space have been widely studied recently. The representative work of multimodal fusion methods based on BEV space is BEVFusion. Its main method is to effectively improve the accuracy of target detection by fusing point cloud and image features in a unified BEV coordinate space. At present, some research works focus on converting images into pseudo point clouds, keeping images in 3D form, and fusing the features of the two modalities of point clouds and images in homomorphic space, so that the projection transformation relationship between point clouds and two-dimensional images is not required. In the present invention, pseudo point clouds are used to replace image data, and a unified BEV to ROI completion and fusion scheme is designed to further improve the performance.
[0047] The present invention proposes a 3D object detection method based on density-aware completion and sparse fusion, such as Figure 1 As shown, the specific steps include:
[0048] Obtaining target data to be detected;
[0049] Input the target data to be detected into the target detection model to obtain the detection result, wherein the target detection model includes: a density-aware completion module, a sparse cross BEV fusion module, a semantic point cloud rendering module and a detection module connected in sequence;
[0050] The density-aware completion module is used to use the image BEV features to perform density completion on the point cloud features of the sparse areas and blank areas in the target data to be detected, and obtain the sparse BEV features after density completion;
[0051] The sparse cross BEV fusion module is used to fuse the sparse BEV features after density completion and the image BEV features in the same BEV two-dimensional space to obtain the first fusion feature;
[0052] The semantic point cloud rendering module is used to give semantic information to the first fusion feature and obtain voxel features with semantic information;
[0053] The detection module is used to detect voxel features with semantic information.
[0054] Specifically, the density-aware completion module uses image BEV features to complete point cloud features in sparse and blank areas to solve the point cloud sparsity problem and improve the detection accuracy of distant objects. The sparse cross-BEV fusion module only selects non-empty BEV features in the uniform scale space and samples the pseudo point cloud BEV features to quickly generate more detailed multimodal features with local semantics and precise geometric information, which is conducive to obtaining more accurate BEV detection results. The semantic point cloud rendering module enriches ROI features more comprehensively by giving semantic information to point cloud features with precise position information in 3D space, helping regression and classification and improving detection performance.
[0055] Furthermore, the target data to be detected includes 2D images and 3D point clouds.
[0056] Furthermore, the density-aware completion module is used to complete the point cloud features of sparse and blank areas using the image BEV features, and the sparse BEV features after density completion are obtained, including:
[0057] Perform sparse feature extraction on 2D images and 3D point clouds respectively to obtain 3D image BEV features and point cloud BEV features;
[0058] The density of the 3D image BEV features is completed and fused with the point cloud BEV features to obtain the sparse BEV features after density completion.
[0059] Specifically, the common 3D object detection method is to input the BEV feature into the detection head to detect the bounding box. Some fusion object detection schemes only fuse the features of the point cloud and image in the ROI; however, the point cloud data in the distance is usually sparse, and the laser radar cannot scan the distant objects. To this end, the present invention designs a density perception complementary module, such as Figure 2 As shown in the figure, the module first performs sparse BEV feature extraction, projects the 3D sparse features into BEV to obtain and extract two-dimensional sparse features, complements the sparse point cloud BEV features with pseudo point cloud sparse BEV features in the low-density area of the point cloud BEV features, and then selects the non-empty elements in the complementary BEV features for self-attention fusion instead of fusing the entire feature map.
[0060] Sparse BEV feature extraction. Before supplementing the point cloud BEV features, the present invention designs a sparse BEV feature extraction module. Given the original point cloud voxel output layer features And pseudo point cloud voxel output layer features , and They are and elements of which is the number of channels of each point cloud voxel feature, is the number of channels of each point cloud voxel feature, is the grid size of the voxel feature output layer. and The corresponding position is and , and are the positions of the non-empty voxel features in the 3D space of the point cloud and pseudo point cloud, respectively. The position coordinates of the non-empty voxel features are and The present invention generates sparse features in the BEV space by sharing the features of the voxel feature output layers of the two modalities through a sparse feature layer. and ,and and The corresponding position is and , and are the locations of non-empty voxel features in the BEV space of the point cloud and pseudo point cloud, respectively. is the BEV feature of each point cloud The number of channels, is the BEV feature of each image The number of channels, is the grid size of the sparse BEV feature compression layer. The calculation formula is:
[0061]
[0062]
[0063]
[0064]
[0065] in , .
[0066] Subsequently, the present invention designs two BEV sparse feature extractors to extract and They are sent to the BEV sparse feature extractor to obtain independent point cloud BEV features. and image BEV features ,and and The corresponding position is and , and are the locations of non-empty voxel features in the BEV space of the point cloud and pseudo point cloud, respectively.
[0067] Sparse BEV feature supplement. The present invention designs a density perception module to calculate the density of each sub-area and convert the BEV grid size Re-divided into , and the point cloud BEV features The distribution is divided into dense sub-regions and sparse subregions , represent The distribution density of is the density threshold. Next, the present invention sets the grid size of the sub-region Convert back , get the dense area and sparse areas At this time, the present invention is based on Corresponding selection is not empty , thereby supplementing BEV characteristics after supplementation , his position is The expression is as follows:
[0068]
[0069]
[0070] in, is Where , is Where , is the sparse BEV feature after density completion, is the image BEV feature Corresponding Location area, yes The sparse areas yes The position element, for and The position element of the intersection. is the point cloud BEV feature, is the image BEV feature.
[0071] Sparse BEV feature self-fusion. In order to reduce the difference between modalities, the self-attention module is used to supplement the complete BEV features. Self-fusion, query features , Key Features Sum value characteristics Depend on The sparse BEV features after density completion are generated to obtain the sparse features after fusion Next, the present invention will Densification, generating dense BEV features ,Will It is fed into the common BEV feature extraction part for subsequent bounding box detection.
[0072] Furthermore, the sparse cross BEV fusion module is used to fuse the sparse BEV features after density completion and the 3D image BEV features in a unified BEV two-dimensional space, and obtaining the first fusion feature includes:
[0073] The query feature is extracted from the sparse BEV feature after density completion, the sampling feature is extracted from the 3D image BEV feature, and the query feature and the sampling feature are fused to obtain the fused BEV feature.
[0074] Specifically, some fusion object detection methods fuse the features of point cloud and image in 3D voxel space and then compress them into BEV features on the Z axis, but these methods will lead to high computational consumption and high computational errors, which is not conducive to object detection. The present invention designs a sparse cross BEV fusion module to fuse the features of different modalities in a unified BEV two-dimensional space, such as Figure 3 As shown. In the given feature map In the present invention, the sparse BEV features after density completion are Generate a query in and sample features from the image BEV features Generate key Sum In the following formula, Indicates The sparse BEV features after density completion, Indicates The fusion process of the entire sparse cross BEV fusion module is as follows:
[0075]
[0076]
[0077] in, is the first sampling points, It is The location of the sampling points, It is Sampling bias, It is The sampling features, and are learnable weights, It is The first attention head The ratio of sampling points, To query features, For the The image BEV features corresponding to the point cloud query Yes Weighted aggregation features with different weights.
[0078] The present invention combines the characteristics obtained after passing through the SCF module with the original BEV characteristics Connect them to get the fused features .
[0079] Furthermore, the semantic point cloud rendering module is used to assign semantic information to the first fusion feature, and obtaining voxel features with semantic information includes:
[0080] The query features are extracted from the 3D point cloud, the sampling features are extracted from the 2D image, and the query features and the sampling features are fused to obtain the voxel features.
[0081] Specifically, the fusion detector designed in the present invention is based on a two-stage algorithm. In order to further improve the detection accuracy, the SPR module is used to use pseudo point cloud voxels with semantic information in the 3D backbone. Enriching point cloud voxel features get , ROI grid Pool part selection To extract ROI features, such as Figure 4 First, the 3D backbone has four layers of voxel features of different scales. , the characteristics of each layer are In the SPR module, the present invention selects to use semantic rendering voxel features in the third and fourth layers and get , then select Extract in the ROI section Features. Figure 4 As shown, first, the 3D backbone has four layers of voxel features of different scales; through the feature span, the features of each layer are In the SPR module, the present invention uses the voxel features of semantic rendering in the third and fourth layers to obtain The rendering method is similar to the sparse cross BEV fusion module, which fuses features in 3D space. Given a feature map , query features Depend on Sparse BEV feature generation after density completion, key features Sum value characteristics By pseudo point cloud voxel features Features after sampling generate , Representative A non-empty ,in Represents the sampling The overall SPR module process is:
[0082]
[0083]
[0084] in, is the first sampling points, is the location of the query point, It is Sampling bias, It is Sampling features. and are learnable weights, A is the first attention head in the mth attention head The attention weights of the sampling points.
[0085] The present invention combines the characteristics obtained after passing through the SPR module with the original element characteristics Connect them to get the fused features In addition, the present invention selects fusion features with accurate location information and rich semantic information in the ROI to further improve the detection performance.
[0086] Results on the KITTI test set. In order to verify whether the method of the present invention has excellent detection performance, the present invention submitted the model to the official for evaluation on the KITTI test set. Table 1 shows the car 3D detection results of DSCFusion on the KITTI test set, as well as the average precision of 40 sample recall positions evaluated on the KITTI server. * indicates the reproduced results. Figure 5 The detection results of DSCFusion for the car class of the KITTI test set are shown, and the detection results of the proposed method are significantly better than the baseline detector.
[0087] Results on the KITTI validation set. The results of DSCFusion on the validation set are shown in Tables 2 and 3. Figure 6 As shown, (a) is the detection result of the DSCFusion of the present invention, and (b) represents the detection result of the baseline, which shows that the DSCFusion of the present invention can improve the detection accuracy. The comparison of car performance on the KITTI validation set is shown in Table 2. On the KITTI validation set, the DSCFusion of the present invention achieved an improvement in 3D AP (R40) on the car category, with an increase of 0.42% at the medium level and 0.49% at the high difficulty level. In particular, DSCFusion achieved good detection results in BEV detection, with BEV AP (R40) improved by 2.43%, 0.75% and 0.47% in the simple, medium and difficult car categories, respectively. The comparison of the three categories of performance on the KITTI validation set is shown in Table 3, which shows that although the mAP of the car category has decreased slightly, the mAP of the pedestrian and cyclist categories have increased.
[0088] Table 1
[0089]
[0090] Table 2
[0091]
[0092] Table 3
[0093]
[0094] A series of experiments were conducted to demonstrate the effectiveness of the present invention. In Table 4, experiment (a) refers to the experiment conducted on the baseline, and experiments (b), (c) and (d) refer to the experiments in which DAC, SCF and SPR modules are added in sequence. The experimental results are shown in Table 4, indicating that the detection accuracy is improved after adding the above three modules to the baseline detector.
[0095] Effect of each module. In order to prove the effectiveness of each module, the present invention analyzes the 3D AP and BEV AP of 40 sampled recall positions of the car class of each module. First, the present invention analyzes the 3D AP to prove the effectiveness of each module. In Table 5, experiment (b) is compared with experiment (a), and the results show that the simple AP is 95.64%, and the AP is improved by 0.17%; the medium AP is 88.87%, and the AP is improved by 0.31%; the difficult AP is 86.15%, and the AP is improved by 0.41%; the mAP is 90.22%, and the mAP is improved by 0.30%, which proves the effectiveness of DAC. Experiment (e) is compared with experiment (g). AP is improved at all three difficulty levels, which proves the effectiveness of SCF. Experiment (g) is compared with experiment (a), and the results show that the mAP is 90.40%, and the mAP is improved by 0.32%, which proves the effectiveness of SPR.
[0096] In addition, the present invention also uses 40 recall positions to compare the BEV mAP of the automobile category to demonstrate the effectiveness of each module. Table 5 shows that under the BEV condition, the AP of the method designed by the present invention has been significantly improved. The first two rows show the effectiveness of the DAC module. The simple AP of DAC is 98.70%, an AP improvement of 2.29%; the medium AP is 94.71%, an AP improvement of 2.43%; the difficult AP is 92.25%, an AP improvement of 0.48%; the mAP is 95.22%, and the mAP improvement is 1.73%. The effectiveness of the SCF module is shown in rows 3 to 6 of Table 5. In experiments (f) and (d), SCF improves the BEV AP performance by +2.17%, +2.47%, and +0.53% at the simple, medium, and difficult levels, respectively. In experiments (b) and (c), SCF achieves an easy AP of 98.62%, an AP improvement of +2.23%; a medium AP of 94.34%, an AP improvement of +2.03%; a hard AP of 91.93%, an AP improvement of +0.14%; and a mAP of 94.96%, an mAP improvement of +1.46%. These results clearly demonstrate the effectiveness of SCF. In experiments (c) and (d), SPR also improves the mAP of BEV on all three difficulties, demonstrating the effectiveness of SPR.
[0097] In addition, the present invention also conducts a set of comparative experiments to demonstrate the effectiveness of DAC, as shown in Table 7. In experiment (h), the density-aware completion scheme is not used, but the blank area of the point cloud BEV feature corresponding to the image BEV feature is directly selected for direct completion to obtain the completed feature.
[0098] Enhanced effect at different distances. As shown in Tables 4 and 6, the DSCFusion network of the present invention shows significant improvements in BEV AP. In addition, Table 8 also compares the detection performance at different distances. The analysis results show that the DSCFusion network of the present invention has improved BEV detection performance at different distances. It is worth noting that BEV detection AP has significant improvements at both close and long distances.
[0099] Table 4
[0100]
[0101] Table 5
[0102]
[0103] Table 6
[0104]
[0105] Table 7
[0106]
[0107] Table 8
[0108]
[0109] The model proposed in this invention can be inserted into the baseline model, trained on the large-scale dataset KITTI, and the trained weights can be saved. Then the trained model and weights are transplanted to the development board of deep learning. When the car is equipped with a laser radar, it can perceive the surrounding environment and perceive and locate 3D targets.
[0110] The above are only preferred specific implementations of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions that can be easily thought of by a person skilled in the art within the technical scope disclosed in the present application should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A 3D object detection method based on density-aware completion and sparse fusion, characterized in that: include: Acquire target data to be detected, wherein the target data to be detected includes a 2D image and a 3D point cloud; Input the target data to be detected into the target detection model to obtain the detection result, wherein the target detection model includes: a density-aware completion module, a sparse cross BEV fusion module, a semantic point cloud rendering module and a detection module connected in sequence; The density-aware completion module is used to perform density completion on the point cloud features of the sparse areas and blank areas in the target data to be detected using the image BEV features, and obtaining the sparse BEV features after density completion includes: Performing sparse feature extraction on the 2D image and the 3D point cloud respectively to obtain image BEV features and point cloud BEV features; Density completion is performed on the image BEV feature, and the feature is fused with the point cloud BEV feature to obtain a density-completed sparse BEV feature; the sparse cross BEV fusion module is used to fuse the density-completed sparse BEV feature and the image BEV feature in the same BEV two-dimensional space to obtain a first fused feature; The semantic point cloud rendering module is used to assign semantic information to the first fusion feature to obtain voxel features with semantic information; The detection module is used to detect the voxel features with semantic information.
2. The 3D object detection method based on density-aware completion and sparse fusion according to claim 1, characterized in that: The sparse BEV features after density completion are: in, is the sparse BEV feature after density completion, is Where , is the image BEV feature Corresponding Location area, yes The sparse areas is Where , yes The position element, for and The position element of the intersection, is the point cloud BEV feature, is the image BEV feature.
3. The 3D object detection method based on density-aware completion and sparse fusion according to claim 1, characterized in that: The sparse cross BEV fusion module is used to fuse the density-completed sparse BEV features and the 3D image BEV features in a unified BEV two-dimensional space, and obtaining the first fusion feature includes: Extract query features from the density-completed sparse BEV features, extract sampling features from the 3D image BEV features, fuse the query features and the sampling features, and obtain the fused BEV features, namely the first fused features.
4. The 3D object detection method based on density-aware completion and sparse fusion according to claim 3, characterized in that: The method of fusing the query feature and the sampling feature is: in, is the first sampling points, It is The location of the sampling points, It is Sampling bias, It is The sampling features, and are learnable weights, It is The first attention head The ratio of sampling points, To query features, For the The image BEV features corresponding to the point cloud query Yes Weighted aggregation features with different weights.
5. The 3D object detection method based on density-aware completion and sparse fusion according to claim 1, characterized in that: Obtaining voxel features with semantic information includes: A query feature is extracted from the 3D point cloud, a sampling feature is extracted from the 2D image, and the query feature and the sampling feature are fused to obtain a voxel feature.
6. The 3D object detection method based on density-aware completion and sparse fusion according to claim 5, characterized in that: Acquiring the voxel feature includes: in, It is The sampling features, For a given feature map, is the first sampling points, is the location of the query point, It is Sampling bias, To query features, and are learnable weights, is the first The attention weights of the sampling points.
