DETR structure-based three-dimensional target detection method, device and system

By introducing dual query selection and deformable grid attention mechanisms into the DETR structure, the problem of insufficient detection query selection and feature interaction performance of the DETR structure in three-dimensional target detection is solved, and higher quality detection queries and feature interaction are achieved. Improved 3D target detection performance.

CN118823735APending Publication Date: 2024-10-22HUAZHONG UNIV OF SCI & TECH

Patent Information

Application Number
CN202410903974.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-08
Publication Date
2024-10-22

AI Technical Summary

Technical Problem

Existing DETR structure 3D object detectors have performance gaps in detecting query selection and interaction between queries and bird's-eye view features, and are difficult to effectively handle the sparsity and geometric shape characteristics of point cloud data.

Method used

Dual query selection and deformable grid attention mechanisms are used to extract bird's-eye view features through the three-dimensional backbone network, combined with the dual query selection module to obtain the initial detection query, and use deformable grid attention in the decoder to query and bird's-eye view features The interaction is introduced into the classification cost of Hungarian matching to evaluate the quality of the regression frame and optimize the training process.

Benefits of technology

It improves the selection quality and feature interaction performance of detection queries, and shows higher three-dimensional target detection performance than non-DETR structure detectors.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118823735A_ABST
    Figure CN118823735A_ABST
Patent Text Reader

Abstract

The invention relates to a DETR structure-based three-dimensional target detection method, device and system. The method mainly comprises the following steps: extracting aerial view features of an input point cloud through a three-dimensional backbone network, and obtaining initial detection query by using a dual query selection module based on the aerial view features; performing interaction between query and aerial view features through deformable lattice point attention in a decoder to obtain enhanced query features, and predicting a three-dimensional target detection result through a multi-layer feed-forward network based on the enhanced query features; and based on the predicted detection result, regression frame quality evaluation is introduced into the classification cost of Hungary matching when the three-dimensional detector of the DETR structure is trained, so that the detection effect of the three-dimensional detector is further improved. Compared with a non-DETR structure detector, the three-dimensional target detection performance better than that of the non-DETR structure detector can be finally obtained.
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 three-dimensional target detection method, device and system based on a DETR structure. Background Art

[0002] With the rapid development of science and technology and the advent of the wave of intelligence, a large amount of manual labor has been replaced by automated machines, which has greatly improved production efficiency. As one of the indispensable means of transportation for humans, cars are still driven manually. There are many problems with manual driving, such as fatigue driving, drunk driving, and dangerous driving, and autonomous driving is a powerful tool to solve these problems. Autonomous driving technology is an important research direction in the field of artificial intelligence today. Its emergence and development are of great significance to traffic safety, traffic efficiency and travel experience. The introduction of autonomous driving technology can reduce the risks brought by human driving errors and improve the safety of road driving; it can reduce traffic accidents and traffic jams, improve road capacity and traffic efficiency; it has the advantages of improving travel experience and improving the traffic environment.

[0003] The first key issue of autonomous driving is how to enable the machine to perceive the environment around the car. With the rapid development of deep learning, people have gradually applied deep learning to the field of autonomous driving and have made great breakthroughs. Autonomous vehicles already have the basic ability to initially perceive the surrounding scenes through various sensors, such as three-dimensional object detection. Three-dimensional object detection refers to giving a three-dimensional bounding box of the category to be detected in a three-dimensional environment. The perception ability of autonomous vehicles directly affects subsequent autonomous driving decisions, so how to further improve the perception ability of autonomous vehicles has become an important issue in achieving higher-level autonomous driving capabilities.

[0004] At present, high-precision detectors in the field of autonomous driving are often based on center points or two-stage detectors. In the field of two-dimensional images, thanks to the powerful representation ability of Transformer (a deep learning model for natural language processing and sequence-to-sequence tasks), the detector based on the Transformer end-to-end object detection framework (End-to-End Object Detection with Transformers, abbreviated as: DETR) structure has shown strong performance in two-dimensional image detection and has become the mainstream detection paradigm. However, when it comes to point cloud data, the situation becomes more complicated. There are obvious differences in feature representation and processing between point cloud data and image data: image data is usually a dense and regularly distributed set of pixels, while point cloud data is composed of irregular and sparse points.

[0005] Therefore, there are challenges in extending the DETR structure to the field of 3D object detection in point cloud data. First, how to effectively select high-quality detection queries is one of the keys. In point clouds, this involves how to extract high-quality foreground information from unordered point cloud data. Secondly, how to better interact queries with bird's-eye view features is also an important issue. In autonomous driving, 3D object detection is often performed using bird's-eye view features, which requires integrating the understanding of the unique geometry and distribution of point cloud data, such as scale-free changes and local characteristics, into the DETR structure. In addition, compared with traditional non-DETR-structured 3D object detectors, current DETR-based 3D object detectors still have a significant gap in performance. This is mainly because the DETR structure was originally designed to process 2D images, and has not been fully optimized and adapted to the special properties and sparsity of point cloud data.

[0006] For the problem of detection query selection, current methods mainly predict heat maps on bird's-eye view images and select foreground features as detection queries based on the heat maps. However, this method mainly focuses on classification information and often ignores the quality of the query itself, which makes it difficult to ensure the selection of high-quality detection queries. To address the interaction between queries and bird's-eye view features, existing methods usually use global attention or deformable attention. Although global attention is simple and direct, it requires a lot of unnecessary computational overhead, which is not efficient in point cloud data that usually has local characteristics. Although deformable attention can adjust the distribution of the attention range according to the input data, it lacks geometric prior information of the point cloud, which makes it difficult for the network to learn the attention range.

[0007] In view of this, how to overcome the defects of the prior art and solve at least part of the above-mentioned technical problems is a difficult problem to be solved in this technical field. Summary of the invention

[0008] In view of the defects or improvement needs in the prior art, in order to solve the problems existing in the current DETR structure three-dimensional detector in detection query selection, and the interaction between query and bird's-eye view features. The present invention provides a three-dimensional target detection method, device and system based on the DETR structure, which performs three-dimensional target detection tasks based on dual query selection and deformable grid attention, wherein the dual query selection is used to improve the selection quality of the detection query, and the deformable grid attention is used to improve the interaction performance between the query and the bird's-eye view features. In addition, quality evaluation is introduced into the classification cost of Hungarian matching in the training process of the three-dimensional detector of the DETR structure to optimize the training. Through the above improvements, this method can ultimately achieve better three-dimensional target detection performance than non-DETR structure detectors.

[0009] The present invention adopts the following technical solution:

[0010] In a first aspect, the present invention provides a three-dimensional target detection method based on a DETR structure, comprising:

[0011] Extract the bird's-eye view features of the input point cloud through the 3D backbone network, and use the dual query selection module to obtain the initial detection query based on the bird's-eye view features;

[0012] In the decoder, the query and bird's-eye view features are interacted through deformable grid attention to obtain enhanced query features. Based on the enhanced query features, the 3D object detection results are predicted through a multi-layer feedforward network.

[0013] Based on the predicted detection results, the detection effect of the 3D detector is further improved by introducing the regression box quality evaluation into the classification cost of Hungarian matching during the training of the 3D detector with the DETR structure.

[0014] In some embodiments, extracting the bird's-eye view features of the input point cloud through the three-dimensional backbone network and obtaining the initial detection query using the dual query selection module based on the bird's-eye view features specifically includes:

[0015] The input point cloud is voxelized, and the three-dimensional features are extracted using a three-dimensional backbone network. The three-dimensional features are compressed in height to obtain the bird's-eye view features of the point cloud;

[0016] Use a binary classifier and bird's-eye view features to perform binary classification tasks on the bird's-eye view.

[0017] Based on the classification results of the binary classification task, the first stage of classification-based rough query selection is performed;

[0018] Based on the rough query selection results, the second stage of quality-based fine query selection is performed.

[0019] In some embodiments, the first stage of classification-based rough query selection based on the classification result of the binary classification task specifically includes: selecting bird's-eye view features with top 30% classification confidence as rough queries according to the classification result of the binary classification task.

[0020] In some embodiments, the second stage of quality-based fine query selection based on the coarse query selection result specifically includes: sending the obtained coarse query to a layer of decoder, predicting the IoU score between the predicted box corresponding to each query and the real object bounding box, and further selecting fine queries in the coarse query according to the IoU score.

[0021] In some embodiments, the interaction between the query and the bird's-eye view features is performed in the decoder through deformable grid attention to obtain enhanced query features, and based on the enhanced query features, the prediction of the three-dimensional target detection results is performed through a multi-layer feedforward network, specifically including:

[0022] Define an initial box for the query in the first layer of decoder as the initial region of the first layer of deformable grid attention; in subsequent layers of the decoder, use the object regression box predicted by the query in the previous layer of decoder as the initial region;

[0023] Evenly divide a number of grid points in the initial area as initial points, and predict the position offset of each initial point through the fully connected network and query features; then add the initial point coordinates and the position offset to get the new position coordinates, and sample the features at this position in the bird's-eye view;

[0024] The sampled features are interacted with the query features through attention, and the final enhanced query features are obtained through a multi-layer decoder; based on the final enhanced query features, the three-dimensional object detection results are predicted through a multi-layer feedforward network.

[0025] In some embodiments, performing attention interaction between the sampled features and the query features and obtaining the final enhanced query features through a multi-layer decoder specifically includes:

[0026] Perform attention interaction between the sampled features and the query features to obtain enhanced query features;

[0027] The enhanced query features are used to predict the corresponding detection results of the layer through the feed-forward network;

[0028] The enhanced query features and their corresponding detection results are used in the next layer of decoders. After multiple layers of decoders are iterated, the final enhanced query features are obtained.

[0029] In some embodiments, the detection result based on prediction is further improved by introducing regression box quality evaluation into the classification cost of Hungarian matching during the training of the three-dimensional detector of DETR structure, specifically including:

[0030] Through the feedforward network and query features, an additional corresponding IoU score is predicted for each detection result. The IoU score is used to evaluate the quality of the regression box.

[0031] Fusion of IoU scores with predicted classification scores;

[0032] The ensemble scores are used for the classification loss in Hungarian matching.

[0033] In a second aspect, the present invention further provides a three-dimensional target detection device based on a DETR structure, which is used to implement the three-dimensional target detection method based on a DETR structure described in the first aspect, and the device comprises:

[0034] At least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the processor to execute the three-dimensional target detection method based on the DETR structure described in the first aspect.

[0035] In a third aspect, the present invention further provides a three-dimensional target detection system based on a DETR structure, applying the three-dimensional target detection method based on a DETR structure as described in the first aspect, the system includes an initial detection query acquisition module, a three-dimensional target detection result prediction module and a detection effect improvement module, wherein:

[0036] The initial detection query acquisition module is used to: extract the bird's-eye view features of the input point cloud through the three-dimensional backbone network, and obtain the initial detection query using the dual query selection module based on the bird's-eye view features;

[0037] The three-dimensional object detection result prediction module is used to: interact the query and the bird's-eye view features through the deformable grid attention in the decoder to obtain enhanced query features, and predict the three-dimensional object detection results through a multi-layer feedforward network based on the enhanced query features;

[0038] The detection effect improvement module is used to further improve the detection effect of the three-dimensional detector by introducing regression box quality evaluation into the classification cost of Hungarian matching during the training of the three-dimensional detector of the DETR structure based on the predicted detection results.

[0039] In a fourth aspect, the present invention further provides a non-volatile computer storage medium, wherein the computer storage medium stores computer executable instructions, which are executed by one or more processors to complete the three-dimensional target detection method based on the DETR structure described in the first aspect.

[0040] Compared with the prior art, the beneficial effects of the present invention are: providing a three-dimensional target detection method, device and system based on a DETR structure, performing three-dimensional target detection tasks based on dual query selection and deformable grid attention, wherein the dual query selection can effectively select higher quality detection queries compared to other existing query selection methods, for improving the selection quality of detection queries; the deformable grid attention can effectively combine the geometric priors in the point cloud and get rid of the dependence on the accurate regression box in an adaptive manner, thereby achieving better feature interaction capabilities, for improving the interactive performance of queries and bird's-eye view features. In addition, quality evaluation is introduced into the classification cost of Hungarian matching in the training process of the three-dimensional detector of the DETR structure to optimize the training. Through the above improvements, the present method can ultimately achieve better three-dimensional target detection performance than non-DETR structure detectors. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0042] Figure 1 A flowchart of a three-dimensional target detection method based on a DETR structure provided in Example 1 of the present invention;

[0043] Figure 2 A flowchart of a three-dimensional target detection method based on a DETR structure provided in Example 2 of the present invention;

[0044] Figure 3 A schematic diagram of a dual query selection module provided in Embodiment 2 of the present invention;

[0045] Figure 4 A schematic diagram of a deformable grid attention module provided in Example 2 of the present invention;

[0046] Figure 5 A schematic diagram of a module of a three-dimensional target detection system based on a DETR structure provided in Example 3 of the present invention;

[0047] Figure 6 A schematic diagram of the structure of a three-dimensional target detection device based on a DETR structure provided in Example 3 of the present invention. DETAILED DESCRIPTION

[0048] The present invention is described in detail below in conjunction with specific embodiments. The following embodiments will help those skilled in the art to further understand the present invention, but do not limit the present invention in any form. It should be noted that, for those of ordinary skill in the art, without departing from the concept of the present invention, several variations and improvements can also be made. These all belong to the protection scope of the present invention. It should be noted that, if there is no conflict, the various features in the embodiments of the present invention can be combined with each other, all within the protection scope of this application. In addition, although the functional module division may be performed in the device schematic diagram, and the logical order may be shown in the flow chart, in some cases, it may be different from the module division in the device, or the steps shown or described in the order in the flow chart may be performed.

[0049] Unless otherwise defined, all technical and scientific terms used in this specification have the same meaning as those commonly understood by those skilled in the art of the present invention. The terms used in this specification and in the specification of the present invention are only for the purpose of describing specific embodiments and are not intended to limit the present invention. In addition, the technical features involved in each embodiment of the present invention described below can be combined with each other as long as they do not conflict with each other.

[0050] Unless the context requires otherwise, throughout the specification and claims, the term "including" is to be interpreted as open inclusion, that is, "including, but not limited to". In the description of the specification, the terms "one embodiment", "some embodiments", "exemplary embodiments", "examples", "specific examples" or "some examples" and the like are intended to indicate that specific features, structures, materials or characteristics associated with the embodiment or example are included in at least one embodiment or example of the present disclosure. The schematic representation of the above terms does not necessarily refer to the same embodiment or example. In addition, the specific features, structures, materials or characteristics may be included in any one or more embodiments or examples in any appropriate manner, that is, although they may be carried in the embodiments or examples of the above terms due to reasons such as the order and position of appearance, it is not limited to that they can be carried in combination by one embodiment or example.

[0051] The following first explains and illustrates the technical terms of the present invention:

[0052] Transformer: An efficient feature extractor that uses the attention mechanism to construct complex relationships between features. Compared with traditional convolutional neural networks that need to stack multiple layers to increase the receptive field, Transformer has obvious advantages due to its global receptive field. Transformer consists of Encoder and Decoder. Encoder is responsible for feature extraction, while Decoder handles specific tasks.

[0053] DETR structured 3D object detector: DETR, as an innovative object detection paradigm, models the object as a query vector and implements the interaction between the query and image features through Transformer. Each query ultimately outputs a detection result. This method uses the Hungarian matching algorithm to perform a global optimal binary match between the query result and the true value, thereby improving the accuracy and efficiency of detection. In 3D object detection, since the DETR structure uses the Transformer's attention mechanism to interact the detection query with the bird's-eye view features, it can often achieve superior performance compared to convolutional neural network detectors.

[0054] Query: A query is defined in DETR as a high-dimensional feature vector of an object, which is used to model the representation of the object. During the detection process, each query interacts with the features and finally obtains the corresponding detection result through a simple linear layer.

[0055] Key: Another set of high-dimensional feature vectors that perform attention calculations with the query in DETR, usually bird’s-eye view features in 3D object detection.

[0056] Value: In DETR, the attention matrix is ​​multiplied by the value to achieve feature aggregation. It is a high-dimensional feature vector, which is usually a bird's-eye view feature in three-dimensional object detection.

[0057] IoU: is a common score used to measure the quality of regression boxes. In 3D object detection, it is calculated by the 3D intersection over union ratio between the predicted box and the true box.

[0058] GIoU: is an improved IoU score. In 3D object detection, it implements the calculation of GIoU for 3D object detection by extending the calculation method of GIoU of 2D regression boxes in 2D object detection to 3D.

[0059] Multilayer Perceptron: A common neural network structure, usually composed of several fully connected layers, widely used in various deep learning tasks.

[0060] In order to make the purpose, technical scheme and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not intended to limit the present application. The present invention is described in detail below with reference to the accompanying drawings and embodiments.

[0061] Embodiment 1:

[0062] like Figure 1 As shown, an embodiment of the present invention provides a three-dimensional target detection method based on a DETR structure, and the method includes the following steps.

[0063] Step 100: extracting bird's-eye view features of the input point cloud through a three-dimensional backbone network, and obtaining an initial detection query using a dual query selection module based on the bird's-eye view features. In some embodiments, this step specifically includes: voxelizing the input point cloud, extracting three-dimensional features using a three-dimensional backbone network, compressing the three-dimensional features in height, and obtaining bird's-eye view features of the point cloud; performing a two-classification task on the bird's-eye view through a two-classifier and the bird's-eye view features; performing a first-stage classification-based rough query selection based on classification based on the classification results of the two-classification task, specifically, selecting the bird's-eye view features with the top 30% classification confidence as the rough query based on the classification results of the two-classification task; performing a second-stage quality-based fine query selection based on the rough query selection results, specifically, sending the obtained rough query to a layer of decoders, predicting the IoU score between the prediction box corresponding to each query and the real object bounding box, and further selecting a fine query in the rough query based on the IoU score.

[0064] Step 200: In the decoder, the query and the bird's-eye view features are interacted through deformable grid attention to obtain enhanced query features, and based on the enhanced query features, the three-dimensional target detection results are predicted through a multi-layer feedforward network. In some embodiments, this step specifically includes: defining an initial box for the query in the first layer decoder as the initial area of ​​attention of the first layer deformable grid; using the object regression box predicted by the query in the previous layer decoder as the initial area in the subsequent layers of the decoder; evenly dividing a number of grid points in the initial area as initial points, and predicting the position offset of each initial point through a fully connected network and query features; then adding the coordinates of the initial point to the position offset to obtain a new position coordinate, and sampling the features at this position in the bird's-eye view; performing attention interaction between the sampled features and the query features, and obtaining the final enhanced query features through a multi-layer decoder, specifically, performing attention interaction between the sampled features and the query features to obtain enhanced query features, predicting the detection results of the corresponding layer through a feedforward network for the enhanced query features, and using the enhanced query features and their corresponding detection results for the next layer decoder, and obtaining the final enhanced query features after iteration of the multi-layer decoders; based on the final enhanced query features, predicting the three-dimensional target detection results through a multi-layer feedforward network.

[0065] Step 300: Based on the predicted detection results, the detection effect of the 3D detector is further improved by introducing the regression box quality evaluation into the classification cost of Hungarian matching during the training of the 3D detector of the DETR structure. In some embodiments, this step specifically includes: predicting an additional corresponding IoU score for each detection result through a feedforward network and query features, and the IoU score is used to evaluate the quality of the regression box; fusing the IoU score with the predicted classification score; and using the fused score for the classification loss in Hungarian matching.

[0066] In summary, the method provided in this embodiment performs three-dimensional target detection tasks based on dual query selection and deformable grid attention, wherein the dual query selection can effectively select higher quality detection queries compared to other existing query selection methods, so as to improve the selection quality of detection queries; the deformable grid attention can effectively combine the geometric priors in the point cloud and get rid of the dependence on the accurate regression box in an adaptive manner, thereby achieving better feature interaction capabilities, which is used to improve the interaction performance between queries and bird's-eye view features. In addition, quality evaluation is introduced into the classification cost of Hungarian matching in the training process of the three-dimensional detector of the DETR structure to optimize the training. Through the above improvements, this method can ultimately achieve better three-dimensional target detection performance than non-DETR structure detectors.

[0067] Embodiment 2:

[0068] This embodiment 2 provides a more detailed description of the three-dimensional target detection method based on the DETR structure provided in embodiment 1.

[0069] like Figure 2 As shown in the figure, in general, the point cloud is passed through the 3D backbone network to obtain the bird's-eye view features. For the bird's-eye view features, after flattening through position encoding, the key and value are input into the multi-layer decoder, and double query selection is performed. The query results are input into the multi-layer decoder, and the final detection results are output through self-attention, deformable grid attention and feedforward network. The multi-layer decoder can have 6 layers. Figure 3 ,For the dual query selection module, it performs foreground query selection on the ,query set, and inputs the result into the deformable grid attention after performing ,high-confidence query. At the same time, the key and value of the ,query set are also input into the deformable grid attention, and then ,quality query selection is performed to obtain the ,finally selected query.

[0070] Based on this, this embodiment mainly has three implementation steps:

[0071] (1) The dual query selection module obtains high-quality detection queries.

[0072] (2) Interaction between query and bird’s-eye view features through deformable grid attention.

[0073] (3) Introduce regression box quality evaluation.

[0074] This embodiment will describe the specific implementation methods around these three steps.

[0075] (1) A dual query selection module obtains high-quality detection queries. Specifically, the bird's-eye view features of the input point cloud are extracted through the 3D backbone network, and a high-quality initial detection query is obtained based on the bird's-eye view features using the dual query selection module. The detection query is used in the subsequent multi-layer decoder to iteratively interact with the bird's-eye view features and output the final detection result. Specifically, it includes the following sub-steps.

[0076] (1.1) First, the point cloud data is preprocessed for the commonly used 3D object detection data, and then the point cloud is voxelized. Figure 2 As shown, a voxel-based 3D backbone network is then used to extract 3D voxel features, and finally the 3D voxel features are compressed in the height direction to obtain a bird's-eye view feature suitable for autonomous driving scenarios.

[0077] (1.2) For Figure 3 For the foreground query selection in , firstly, a binary classification mask classifier composed of several two-dimensional convolutions and bird's-eye view features are used to perform binary classification on the bird's-eye view. Among them, the categories to be classified are foreground and background. The foreground points on the bird's-eye view are the targets to be detected, and the other positions are background points.

[0078] (1.3) Bird’s-eye view obtained by the classifier Figure 2 Classification results,The first 30% of the bird's-eye view features are selected as coarse query features in the order of classification confidence from high to low on the bird's-eye view.

[0079] (1.4) For Figure 3 In the quality query selection, the rough query obtained by the rough query selection module in the first stage is first sent to a decoder to predict the classification, regression box and its IoU score, where the IoU score is used to measure the quality of the regression box. The IoU score is fused with the classification score to obtain the fusion score:

[0080]

[0081] Where S p is the classification score, IoU p is the quality score of the prediction, and β is a class-related hyperparameter. τ is the classification score threshold, which is used to filter the background with lower confidence to avoid the fusion score error caused by the unreasonable IoU score of the background. The first N rough queries are selected as fine queries in descending order according to the fusion score. N is the number of queries of the 3D object detector of the predefined DETR structure, which is usually defined as 1000.

[0082] (2) Interaction between query and bird's-eye view features through deformable grid attention. Specifically, in the decoder, interaction between query and bird's-eye view features through deformable grid attention includes the following sub-steps:

[0083] (2.1) Deformable grid attention is used in multi-layer decoders to interact with query and bird's-eye view features. It uses the prior regression box as the initial area of ​​attention to encode the local geometric information of the point cloud into the attention. Since there is no usable prior regression box in the first layer decoder, an artificially designed initial box is first defined for the query in the first layer decoder as the initial area of ​​the first layer deformable grid attention, where the initial box does not involve the yaw angle of the regression box. The decoders of subsequent layers use the object regression box predicted by the query in the previous layer decoder as the initial area of ​​attention of the current layer decoder.

[0084] (2.2)Reference Figure 4 As shown, several grid points are evenly divided in the initial area as the initial reference points g of the deformable grid attention. j , and then predict the position offset Δg of each initial reference point through a simple multi-layer perceptron and query features j Then, the initial reference point coordinates are added to the position offset to obtain the new position coordinates, and the features at that position in the bird's-eye view are sampled through bilinear interpolation. Next, the attention weight A of each offset point is predicted through the linear layer and the query feature. j , the enhanced query F is obtained by applying the attention matrix to the sampled bird's-eye view features q , the specific calculation is as follows:

[0085]

[0086] Among them, F bev (*) indicates that the bird's-eye view features are sampled at the * position by bilinear interpolation. is a linear layer, and K is the total number of grid points. The enhanced query will predict the detection result of the corresponding layer through the feedforward network. Finally, the enhanced query and its corresponding detection result will be used in the next layer of decoder. After continuous iteration of multiple layers of decoders, the final enhanced detection query is obtained.

[0087] (2.3) The detection query that is continuously enhanced by the multi-layer decoder is used to predict the 3D object detection results through the feedforward network. The prediction includes classification and regression of the detection box. The loss function includes classification, detection box regression, and GIoU loss function. The specific calculation of the GIoU loss function is as follows:

[0088] L GIoU =1-GIoU.

[0089] (3) Introducing regression box quality evaluation. Specifically, by introducing regression box quality evaluation into the classification cost of Hungarian matching during the training of the 3D detector of the DETR structure, the detection effect of the 3D detector is further improved, including the following sub-steps:

[0090] (3.1) Through a simple feedforward network and query features, an additional IoU score is predicted for each detection result, which is used to evaluate the quality of the regression box. Among them, the true value label of the IoU prediction is the three-dimensional intersection-over-union ratio of the predicted regression box and its assigned true value box. The IoU regression loss function calculates the loss of IoU regression in the form of L1 loss function. The specific calculation is as follows:

[0091]

[0092] in, is the predicted IoU score, and the true value label corresponding to the IoU. The true value label is obtained by calculating the IoU between the predicted regression box and the corresponding real box.

[0093] (3.2) The IoU score is combined with the predicted classification score to obtain the quality-related classification score S p , the specific calculation is as follows:

[0094]

[0095] Where S p is the classification score, IoU p is the predicted IoU score, β is a category-related hyperparameter, and is defined as different values ​​for different categories.

[0096] (3.3) The classification cost C in Hungarian matching when the fused score is used for the 3D detector training of the DETR structure cls , the specific calculation is as follows:

[0097]

[0098] C neg = -α·(1-S p ) γ ·log(S p )

[0099] C cls =C pos -C neg

[0100] Among them, α and γ are the hyperparameters of the classification cost, which are set to 0.25 and 2.0 respectively.

[0101] In summary, this embodiment proposes to provide a three-dimensional target detection method based on the DETR structure, and performs three-dimensional target detection tasks based on dual query selection and deformable grid attention, wherein the dual query selection can effectively select higher quality detection queries compared to other existing query selection methods, so as to improve the selection quality of detection queries; the deformable grid attention can effectively combine the geometric priors in the point cloud and get rid of the dependence on the accurate regression box in an adaptive manner, thereby achieving better feature interaction capabilities, which is used to improve the interaction performance between the query and the bird's-eye view features. In addition, quality evaluation is introduced into the classification cost of Hungarian matching in the training process of the three-dimensional detector of the DETR structure to optimize the training. Through the above improvements, this method can ultimately achieve better three-dimensional target detection performance than non-DETR structure detectors.

[0102] Embodiment 3:

[0103] Based on the three-dimensional target detection method based on the DETR structure provided in the above embodiment 1, embodiment 3 of the present invention further provides a three-dimensional target detection system based on the DETR structure. Figure 5 As shown, the system includes an initial detection query acquisition module, a three-dimensional target detection result prediction module and a detection effect improvement module, wherein: the initial detection query acquisition module is used to: extract the bird's-eye view features of the input point cloud through a three-dimensional backbone network, and use a dual query selection module based on the bird's-eye view features to obtain the initial detection query; the three-dimensional target detection result prediction module is used to: interact the query with the bird's-eye view features through deformable grid attention in the decoder to obtain enhanced query features, and predict the three-dimensional target detection results through a multi-layer feedforward network based on the enhanced query features; the detection effect improvement module is used to: based on the predicted detection results, introduce regression box quality evaluation in the classification cost of Hungarian matching when training the three-dimensional detector of the DETR structure, to further improve the detection effect of the three-dimensional detector.

[0104] The specific functions of each module of the above system correspond to the introduction of the method steps in Example 1, and will not be repeated here.

[0105] In addition, based on the three-dimensional target detection method based on the DETR structure provided in the above embodiment 1, the present invention also provides a three-dimensional target detection device based on the DETR structure that can be used to implement the above method and system, such as Figure 6 , which is a schematic diagram of the device architecture of an embodiment of the present invention. The three-dimensional target detection device based on the DETR structure of this embodiment includes one or more processors 21 and a memory 22. Figure 6 A processor 21 is taken as an example.

[0106] The processor 21 and the memory 22 may be connected via a bus or other means. Figure 6 The example of connecting through bus is taken in the following.

[0107] The memory 22, as a non-volatile computer-readable storage medium, can be used to store non-volatile software programs, non-volatile computer executable programs and modules, such as the three-dimensional target detection method based on the DETR structure in Example 1. The processor 21 executes various functional applications and data processing of the three-dimensional target detection device based on the DETR structure by running the non-volatile software programs, instructions and modules stored in the memory 22, that is, implements the three-dimensional target detection method based on the DETR structure in Example 1.

[0108] The memory 22 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage device. In some embodiments, the memory 22 may optionally include a memory remotely arranged relative to the processor 21, and these remote memories may be connected to the processor 21 via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0109] The program instructions / modules are stored in the memory 22. When executed by one or more processors 21, the three-dimensional target detection method based on the DETR structure in the above embodiment 1 is executed. For example, the above described Figure 1 The steps shown.

[0110] The above-mentioned product can execute the method provided in the embodiment of the present application, and has the functional modules and beneficial effects corresponding to the execution method. For technical details not fully described in this embodiment, please refer to the method provided in the embodiment of the present application.

[0111] It should be noted that the device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0112] Through the description of the above implementation methods, ordinary technicians in this field can clearly understand that each implementation method can be implemented by means of software plus a general hardware platform, and of course, it can also be implemented by hardware. Ordinary technicians in this field can understand that all or part of the processes in the above-mentioned embodiment method can be completed by instructing related hardware through a computer program, and the program can be stored in a computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, the storage medium can be a disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM), etc.

[0113] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit them. Under the concept of the present invention, the technical features in the above embodiments or different embodiments may also be combined, the steps may be implemented in any order, and there are many other changes in different aspects of the present invention as described above, which are not provided in detail for the sake of simplicity. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the scope of the technical solutions of the embodiments of the present invention.

Claims

1. A three-dimensional target detection method based on DETR structure, characterized in that: include: Extract the bird's-eye view features of the input point cloud through the 3D backbone network, and use the dual query selection module to obtain the initial detection query based on the bird's-eye view features; In the decoder, the query and bird's-eye view features are interacted through deformable grid attention to obtain enhanced query features. Based on the enhanced query features, the 3D object detection results are predicted through a multi-layer feedforward network. Based on the predicted detection results, the detection effect of the 3D detector is further improved by introducing the regression box quality evaluation into the classification cost of Hungarian matching during the training of the 3D detector with the DETR structure.

2. The three-dimensional target detection method based on the DETR structure according to claim 1, characterized in that: The method of extracting the bird's-eye view features of the input point cloud through the three-dimensional backbone network and obtaining the initial detection query using the dual query selection module based on the bird's-eye view features specifically includes: The input point cloud is voxelized, and the three-dimensional features are extracted using a three-dimensional backbone network. The three-dimensional features are compressed in height to obtain the bird's-eye view features of the point cloud; Use a binary classifier and bird's-eye view features to perform binary classification tasks on the bird's-eye view. Based on the classification results of the binary classification task, the first stage of classification-based rough query selection is performed; Based on the rough query selection results, the second stage of quality-based fine query selection is performed.

3. The three-dimensional target detection method based on the DETR structure according to claim 2, characterized in that: The first stage of classification-based rough query selection based on the classification result of the binary classification task specifically includes: according to the classification result of the binary classification task, selecting the bird's-eye view features with the top 30% classification confidence as the rough query.

4. The three-dimensional target detection method based on the DETR structure according to claim 3 is characterized in that: The second stage of quality-based fine query selection based on the coarse query selection result specifically includes: sending the obtained coarse query to a layer of decoder, predicting the IoU score between the predicted box corresponding to each query and the real object bounding box, and further selecting a fine query in the coarse query according to the IoU score.

5. The three-dimensional target detection method based on the DETR structure according to claim 1, characterized in that: The method of performing the interaction between the query and the bird's-eye view features in the decoder through deformable grid attention to obtain enhanced query features, and predicting the three-dimensional target detection results through a multi-layer feedforward network based on the enhanced query features specifically includes: Define an initial box for the query in the first layer of decoder as the initial region of the first layer of deformable grid attention; in subsequent layers of the decoder, use the object regression box predicted by the query in the previous layer of decoder as the initial region; Evenly divide a number of grid points in the initial area as initial points, and predict the position offset of each initial point through the fully connected network and query features; then add the initial point coordinates and the position offset to get the new position coordinates, and sample the features at the position in the bird's-eye view; The sampled features are interacted with the query features through attention, and the final enhanced query features are obtained through a multi-layer decoder; based on the final enhanced query features, the three-dimensional object detection results are predicted through a multi-layer feedforward network.

6. The three-dimensional target detection method based on the DETR structure according to claim 5, characterized in that: The method of performing attention interaction between the sampled features and the query features and obtaining the final enhanced query features through a multi-layer decoder specifically includes: Perform attention interaction between the sampled features and the query features to obtain enhanced query features; The enhanced query features are used to predict the corresponding detection results of the layer through the feed-forward network; The enhanced query features and their corresponding detection results are used in the next layer of decoders. After multiple layers of decoders are iterated, the final enhanced query features are obtained.

7. The three-dimensional target detection method based on the DETR structure according to claim 1, characterized in that: The detection results based on prediction are introduced into the classification cost of Hungarian matching during the training of the 3D detector of DETR structure to further improve the detection effect of the 3D detector. Specifically, the following are included: Through the feedforward network and query features, an additional corresponding IoU score is predicted for each detection result. The IoU score is used to evaluate the quality of the regression box. Fusion of IoU scores with predicted classification scores; The ensemble scores are used for the classification loss in Hungarian matching.

8. A three-dimensional target detection device based on a DETR structure, used to implement the three-dimensional target detection method based on a DETR structure as claimed in any one of claims 1 to 7, characterized in that: The device comprises: At least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the processor to execute the three-dimensional target detection method based on the DETR structure described in the first aspect.

9. A three-dimensional target detection system based on a DETR structure, using the three-dimensional target detection method based on a DETR structure as described in any one of claims 1 to 7, characterized in that: The system includes an initial detection query acquisition module, a three-dimensional target detection result prediction module and a detection effect improvement module, wherein: The initial detection query acquisition module is used to: extract the bird's-eye view features of the input point cloud through the three-dimensional backbone network, and obtain the initial detection query using the dual query selection module based on the bird's-eye view features; The three-dimensional object detection result prediction module is used to: interact the query and the bird's-eye view features through the deformable grid attention in the decoder to obtain enhanced query features, and predict the three-dimensional object detection results through a multi-layer feedforward network based on the enhanced query features; The detection effect improvement module is used to further improve the detection effect of the three-dimensional detector by introducing regression box quality evaluation into the classification cost of Hungarian matching during the training of the three-dimensional detector of the DETR structure based on the predicted detection results.

10. A non-volatile computer storage medium, characterized in that: The computer storage medium stores computer executable instructions, which are executed by one or more processors to complete the three-dimensional target detection method based on the DETR structure as described in any one of claims 1-7.

Citation Information

Patent Citations

  • Cross-modal single-sample three-dimensional point cloud segmentation method

    CN114529757A

  • Target tracking method and system based on dual attention feature fusion network

    CN116030097A

  • Two-stage human-object interaction detection method based on coding and decoding architecture

    CN116311493A

  • Three-dimensional target detection method and system based on point cloud-image multi-cross mixing and storage medium

    CN116664856A

  • Diffusion model-based three-dimensional point cloud target detection method and device

    CN116863426A

Cited By

  • Method and device for detecting target object in image, storage medium and equipment

    CN119963650A