A multi-view sparse query 3D object detection method with adaptive depth coding

Through the adaptive depth coding and timing fusion module, the existing 3D target detection method solves the problems of poor performance and high computational overhead in autonomous driving scenarios, improves detection accuracy and performance, reduces false detection and missed detection rates, and achieves A more stable detection effect.

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

Patent Information

Application Number
CN202410824969.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-25
Publication Date
2024-09-13
Estimated Expiration
2044-06-25

AI Technical Summary

Technical Problem

Existing image-based 3D target detection methods have problems such as poor performance, high computational overhead, low object positioning accuracy, and rough extraction of sparse query features in autonomous driving scenarios, especially in complex real autonomous driving scenarios.

Method used

This paper proposes a multi-view sparse query 3D target detection method with adaptive depth coding. It uses an adaptive depth position encoder to generate more detailed position coding, and combines the timing fusion and timing alignment modules to enhance feature representation and discrimination capabilities, reduce computational consumption and Improve detection performance.

Benefits of technology

It improves the accuracy and performance of 3D target detection, reduces computing consumption, enhances scene feature understanding, reduces long-distance false detection and missed detection rates, and achieves more stable detection results.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118397067B
    Figure CN118397067B
Patent Text Reader

Abstract

The present invention provides a multi-view sparse query 3D target detection method with adaptive depth coding, which belongs to the field of image-based 3D target detection. N images surrounding the vehicle body are input, and feature extraction is performed through a feature extraction backbone network to obtain multi-scale and multi-view features. The extracted features are sent to an adaptive depth generator to generate adaptive depth intervals and depth probabilities, and the midpoints corresponding to each depth interval are calculated, and then the midpoints of the depth intervals and the depth probabilities are multiplied and summed to obtain an adaptive depth map. The adaptive depth map is converted to a 3D space coordinate system in combination with the internal and external parameters of the camera, and an adaptive position coding embedding vector is generated using a multi-layer perceptron. The embedding vector is added to the previously extracted image features and sent to a decoder to obtain a sparse query result. The query result is sent to a positioning detection head and a classification detection head to locate the 3D object boundary box and predict the object category respectively. The present invention makes the detection result more excellent.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of image-based 3D object detection, and in particular to a multi-view sparse query 3D object detection method based on adaptive depth coding. Background Art

[0002] In recent years, the field of autonomous driving has developed rapidly. Since cameras are cheaper than lidar, image-based autonomous driving perception algorithms have attracted widespread attention from academia and industry. Among them, image-based 3D object detection is a basic task in 3D scene understanding, which aims to locate the bounding box of objects in the current scene and predict object classification.

[0003] Some early image-based 3D object detection methods were performed on monocular images, and the results were aggregated after independent detection in each image. However, these methods need to focus on the area of ​​interest in adjacent images and fuse the detection results of each image, which may lead to poor performance and high computational overhead.

[0004] In recent years, some methods have combined multiple views and perspective transformation to generate a bird's-eye view and complete 3D object detection from the bird's-eye view, which effectively alleviates the problems of missed detection and false detection caused by occlusion. However, due to the complexity and changeability of real autonomous driving scenarios, image-based 3D object detection tasks still face many challenges.

[0005] Current 3D object detection methods usually utilize multiple cameras and can be divided into two categories. Among them, the Lift-Spat-Shoot (LSS) based method transforms the image space into an explicit unified bird's-eye view (BEV) space by introducing the depth probability distribution of multiple images. However, since the generation of explicit BEV features heavily depends on the accuracy of depth map prediction, it may reduce the localization accuracy of objects in 3D space. Another method is the Transformer-based method, such as BEVForemer from Nanjing University and PETR from Megvii Technology, which all follow an end-to-end approach to achieve 3D object detection. These methods do not involve explicit view transformations such as projection or lifting operations, but can be further divided into two categories according to the density of the set query: dense query-based methods and sparse query-based methods. Dense query-based 3D object detectors build predefined dense BEV grid features and perform interactions between queries and 2D image features. However, due to the large number of queries and complex 2D to 3D view conversion, dense query-based detectors have some inevitable disadvantages, such as high computational cost and slow inference. In addition, dense query feature extraction also requires additional deployment work. Sparse query based detectors eliminate the necessity of constructing dense BEV representations or employing any projection operations. Instead, they utilize 3D position encoding (PE) to encode 3D position information for better spatial perception. However, in sparse query based detectors, the coarse 3D PE of object queries degrades the detection performance and needs further enhancement. Summary of the invention

[0006] In order to solve the above technical problems, the present invention provides a multi-view sparse query 3D target detection method with adaptive depth coding, and proposes an adaptive depth position encoder to generate more delicate position coding according to the adaptive depth map, so as to enhance the representation and distinction ability of features; the present invention proposes a temporal fusion method, which utilizes a storage structure that follows the "first in, first out" principle to store historical frame information, and completes temporal fusion with the current frame information in the decoder; the present invention also proposes a temporal alignment module, which aligns the historical frame information to the current moment through a style migration strategy, so as to enhance the fusion of historical information.

[0007] In order to achieve the above object, the present invention adopts the following technical solution:

[0008] A multi-view sparse query 3D object detection method with adaptive depth coding comprises the following steps:

[0009] STEP 1: Input N images surrounding the vehicle body;

[0010] STEP 2: Extract features from the N input images surrounding the vehicle body, and use the feature extraction backbone network to extract features to obtain multi-scale and multi-view features;

[0011] STEP3: Send the extracted multi-scale and multi-view features to the adaptive depth generator to generate adaptive depth intervals and depth probabilities, and then multiply the midpoint of the depth interval and the depth probability to obtain an adaptive depth map. The specific calculation is as follows:

[0012] ;

[0013] in, Represents the pixel plane coordinates as The depth value at the position, , is the midpoint of the jth depth interval, The coordinates on the pixel plane are The depth probability of the jth depth interval under the position, R represents the real number domain, and L represents the number of predefined depth intervals;

[0014] STEP4: Adaptive depth map Combine the camera's intrinsic and extrinsic parameters with the image plane coordinates, transform them into a 3D space coordinate system, generate three-dimensional coordinates, and use a multi-layer perceptron to generate an adaptive position encoding embedding vector;

[0015] STEP5: Combine the position encoding embedding vector with the multi-scale and multi-view features obtained in STEP2 and feed it into the decoder to obtain sparse query results.

[0016] STEP 6: Send the sparse query results to the localization detection head and the classification detection head to locate the 3D object bounding box and predict the object category;

[0017] STEP 7: Use a storage structure that follows the first-in-first-out principle to store historical frame information, reduce computing consumption and fuse information at the same time;

[0018] STEP8: Use the style transfer strategy for the storage structure in STEP7, establish a time alignment module, align the stored historical information to the current moment, and achieve time fusion.

[0019] Beneficial effects:

[0020] 1) The present invention proposes an adaptive depth position coding method, which generates more delicate position coding through a refined depth map, enhances scene feature understanding, and makes the detection result more excellent.

[0021] 2) The present invention proposes a time series fusion method, which uses the "first in, first out" rule to save historical information of a fixed and appropriate length, thereby reducing computing consumption and fusing information to obtain a more stable effect.

[0022] 3) The present invention proposes a temporal alignment module. This module uses style migration to combine the information of historical frames with reference quantities such as vehicle posture and speed in the current frame, and aligns them to the current moment features in a high-dimensional space, which is conducive to temporal fusion. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] Figure 1 Schematic diagram of the adaptive depth map generation module;

[0024] Figure 2 This is a schematic diagram of the timing alignment module;

[0025] Figure 3 A framework diagram of a multi-view sparse query 3D object detection method with adaptive depth coding according to the present invention. DETAILED DESCRIPTION

[0026] In order to make the purpose, technical solutions and advantages of the present invention more clearly understood, the present invention 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 invention and are not intended to limit the present invention. In addition, the technical features involved in the various embodiments of the present invention described below can be combined with each other as long as they do not conflict with each other.

[0027] like Figure 3 As shown, the present invention first collects images (N images) from different angles at the same time through the cameras around the vehicle body. The image is extracted into image features F through the backbone network, and the image features F are used to obtain an adaptive depth map through their own adaptive depth generator. The depth map of the two-dimensional plane is converted into a pseudo point cloud form in 3D space using camera parameters, and the adaptive depth position encoding is obtained through normalization and multi-layer perceptron, which is sent to the decoder together with the image feature F as the position encoding of the image feature F. In addition, a storage structure is constructed to store historical frame information. Specifically, the storage structure The speed, position, and azimuth of the vehicle at the current moment are sent to the time series alignment module to align the historical information with the current information, and then combined with the initial query at time t The decoder outputs the query set , store updates to the storage structure The entire storage structure maintains a first-in-first-out data update strategy. The decoder output will also be sent to the detection head to generate the final detection result.

[0028] Specifically, a multi-view sparse query 3D object detection method for adaptive depth coding of the present invention comprises the following steps:

[0029] STEP 1: Input N images surrounding the vehicle body;

[0030] STEP 2: Extract features from the N input images surrounding the vehicle body, and use a feature extraction backbone network such as ResNet to extract features to obtain multi-scale and multi-view features;

[0031] STEP3: Send the extracted multi-scale multi-view image features F to the adaptive depth generator to generate adaptive depth intervals and depth probabilities, and calculate the midpoint corresponding to each depth interval. Then, multiply the midpoint of the depth interval and the depth probability to obtain an adaptive depth map. The specific calculation is as follows:

[0032] ;

[0033] in, Represents the pixel plane coordinates as The depth value at the position, , is the midpoint of the jth depth interval, It refers to the pixel plane coordinates The depth probability of the jth depth interval under the position. R represents the real number domain, and L represents the number of predefined depth intervals;

[0034] The adaptive depth generation module combines with the encoder (normalization and multi-layer perceptron) to form an adaptive depth position encoder, that is, first generate the adaptive depth and then encode it to obtain the adaptive depth position encoding. The adaptive depth map generation module generates an adaptive depth map, and then encodes the adaptive depth map through a multi-layer perceptron to obtain the adaptive depth position encoding;

[0035] STEP4: Combine the adaptive depth map with the camera's intrinsic and extrinsic parameters and the image plane coordinates, convert them into a 3D space coordinate system, generate three-dimensional coordinates, and use a multi-layer perceptron to generate an adaptive position encoding embedding vector;

[0036] STEP5: Combine the position encoding embedding vector with the multi-scale and multi-view features obtained in STEP2 and send them to the decoder to obtain sparse query results;

[0037] STEP 6: Send the sparse query results to the positioning detection head and classification detection station to locate the 3D object bounding box and predict the object category;

[0038] STEP 7: Use a storage structure that follows the first-in-first-out principle to store historical frame information, which can reduce computing consumption and fuse information to achieve a more stable effect;

[0039] STEP8: Use the style transfer strategy for the storage structure in STEP7, establish a time alignment module, align the stored historical information to the current moment, and achieve time fusion.

[0040] Specifically, the STEP 3 includes:

[0041] like Figure 1 Specifically, the present invention uses an adaptive depth map to encode the position, that is, the feature F obtained by the feature extraction backbone network (such as ResNet) is used to extract features through a set of convolutional layers, self-attention layers and activation layers, and the extracted features are passed through a linear layer and normalized to obtain an adaptive depth probability , the extracted features are also averaged and then passed through a linear layer and normalized to obtain the adaptive depth interval midpoint . For the midpoint of the depth interval With depth probability Do linear regression to get the final adaptive depth map.

[0042] After obtaining the adaptive depth map, the present invention combines the image plane coordinates with the camera's internal and external parameters to convert it into 3D space to obtain a specific point , which is expressed as follows:

[0043] ;

[0044] in, Indicates the three-axis coordinates of a specific point in 3D space; represents the camera extrinsic parameters of the i-th camera, Represents the inverse matrix of the camera intrinsic parameters, Represented in the image coordinate plane The depth value below;

[0045] After obtaining the spatial coordinates of a specific point in 3D space, it can be normalized, that is:

[0046] ;

[0047] ;

[0048] ;

[0049] in, is the maximum perceived distance along the x-axis of 3D space, is the minimum perceived distance along the x-axis of 3D space. is the maximum perceived distance along the y-axis of 3D space, is the minimum perceived distance along the y-axis in 3D space. is the maximum perceived distance along the z-axis of 3D space, is the minimum perceived distance along the z-axis in 3D space.

[0050] Then use the position encoder to get the coordinates of specific points in 3D space, that is Encoding, we get:

[0051] PE adap = Ψ ([ϕ p x 3d ;ϕ p y 3d ;ϕ p z 3d ]) ;

[0052] in, is a point in 3D space The position encoding obtained after encoding is due to the specific point in 3D space It is calculated from the adaptive depth map, that is, the adaptive depth position coding in the present invention. represents the cosine encoding function, [⋅;⋅] Indicates that the concatenation operator is used to concatenate the cosine encoding results. Represents MLP (Multi-layer Perceptron). The present invention thus generates an adaptive position encoding embedding vector generated by an accurate depth map, which can more delicately collect the position information of the extracted image features and guide the model to have a better scene understanding.

[0053] Specifically, the STEP 7 includes:

[0054] Most of the previous algorithms used sliding window time series fusion, that is, taking historical frames of fixed length and the current frame for simple fusion such as splicing and addition. The problem this will cause is that when the time series is long, it will cause large resource consumption, and when the time series is short, the effect will be unsatisfactory.

[0055] The present invention utilizes a storage structure that follows the first-in-first-out principle. Whenever the current frame is detected, the corresponding current query is stored in the storage structure, and the query corresponding to the oldest frame is discarded. Since there is time fusion in the decoder, the query of the current frame also carries historical frame information. The present invention maintains this storage structure to store a fixed number of frames, and keeps using such a storage structure in a loop, such as Figure 3 shown.

[0056] Specifically, the STEP 8 includes:

[0057] like Figure 2 As shown, the vehicle information including the current speed, posture, and azimuth is converted into a style embedding vector , and obtain the first feature through normalization and linear layer, on the other hand, take out the historical query in the storage structure , and the second feature is obtained after normalization and linear layer; the first feature is multiplied by the second feature and normalized in the last dimension to obtain the attention map ; Style embedding vector After a linear layer processing, the third feature is obtained, the attention map Multiply it with the third feature and pass it through a linear layer to get the fourth feature. The fourth feature is combined with the historical query Add them together to get the final output, which is the aligned query , which is expressed as follows:

[0058] ;

[0059] ;

[0060] in, represents the aligned query, and represents two linear layers, Indicates normalization.

[0061] The present invention abandons the previous time fusion algorithm based on sliding window, which has large calculation amount and poor performance. The present invention effectively realizes time series fusion through iterative and updateable storage structure.

[0062] Table 1 is a graph of experimental data of the method of the present application and PETR. It can be seen from the visual comparison that the method proposed by the present invention can effectively reduce false detection and missed detection at a long distance, and it can be seen that the detection effect of the present invention is more outstanding, especially in the long-distance area.

[0063] Table 1

[0064] .

Claims

1. A multi-view sparse query 3D object detection method with adaptive depth coding, It is characterized in that The steps include: STEP 1: Input N images surrounding the vehicle body; STEP 2: Extract features from the N input images surrounding the vehicle body, and use the feature extraction backbone network to extract features to obtain multi-scale and multi-view features; STEP3: Send the extracted multi-scale and multi-view features to the adaptive depth generator to generate adaptive depth intervals and depth probabilities, and then multiply the midpoint of the depth interval and the depth probability to obtain an adaptive depth map. The specific calculation is as follows: ; in, Represents the pixel plane coordinates as The depth value at the position, , is the midpoint of the jth depth interval, The coordinates on the pixel plane are The depth probability of the jth depth interval under the position, R represents the real number domain, and L represents the number of predefined depth intervals; STEP4: Combine the adaptive depth map with the camera's intrinsic and extrinsic parameters and the image plane coordinates, convert them into a 3D space coordinate system, generate three-dimensional coordinates, normalize the three-dimensional coordinates, and then use them as input to a multi-layer perceptron to generate an adaptive position encoding embedding vector; STEP5: Combine the position encoding embedding vector with the multi-scale and multi-view features obtained in STEP2 and feed it into the decoder to obtain sparse query results; STEP 6: Send the sparse query results to the localization detection head and the classification detection head to locate the 3D object bounding box and predict the object category; STEP 7: Use a storage structure that follows the first-in-first-out principle to store historical frame information, reduce computing consumption and fuse information at the same time; STEP8: Use the style transfer strategy for the storage structure in STEP7, establish a time alignment module, align the stored historical information to the current moment, and achieve time fusion.

2. The method for 3D object detection using multi-view sparse query with adaptive depth coding according to claim 1, It is characterized in that The STEP 3 includes: Using the feature F obtained by the feature extraction backbone network, features are extracted through a set of convolutional layers, self-attention layers, and activation layers. The extracted features are passed through linear layers and normalized to obtain adaptive depth probabilities. The extracted features are averaged and then passed through a linear layer and normalized to obtain the midpoint of the adaptive depth interval ; For the midpoint of the depth interval With depth probability Do linear regression to get the final adaptive depth map.

3. The method for 3D object detection using multi-view sparse query with adaptive depth coding according to claim 2, It is characterized in that After obtaining the adaptive depth map, the image plane coordinates are combined with the camera's internal and external parameters to convert it into 3D space to obtain specific points , which is expressed as follows: ; in, Indicates the three-axis coordinates of a specific point in 3D space. represents the camera extrinsic parameters of the i-th camera, represents the inverse matrix of the camera intrinsic parameters, and the superscript T indicates the transpose of the matrix; After obtaining the spatial coordinates of a specific point in 3D space, normalize it, that is: ; ; ; in, is the maximum perceived distance along the x-axis of 3D space, is the minimum perceived distance along the x-axis of 3D space; is the maximum perceived distance along the y-axis of 3D space, is the minimum perceived distance along the y-axis of 3D space; is the maximum perceived distance along the z-axis of 3D space, is the minimum perceived distance along the z-axis of 3D space; Then use the position encoder to get the coordinates of specific points in 3D space, that is Encoding, we get: ; in, is a point in 3D space The position encoding obtained after encoding is due to the specific point in 3D space It is calculated by the adaptive depth map, that is, the adaptive depth position encoding is obtained; represents the cosine encoding function, Indicates that the concatenation operator is used to concatenate the cosine encoding results. Represents a multilayer perceptron.

4. The method for 3D object detection using multi-view sparse query with adaptive depth coding according to claim 1, It is characterized in that The STEP 7 includes: Whenever the current frame is detected, the corresponding query is stored in the storage structure, and the query corresponding to the oldest frame is discarded; the storage structure is kept to store a fixed number of frames, and the storage structure is used repeatedly.

5. The method for 3D object detection using multi-view sparse query with adaptive depth coding according to claim 4, It is characterized in that The STEP 8 includes: Convert vehicle information including current speed, position, and azimuth into a style embedding vector , and obtain the first feature through normalization and linear layer, and retrieve the historical query in the storage structure , and the second feature is obtained after normalization and linear layer; the first feature is multiplied by the second feature and normalized in the last dimension to obtain the attention map ; Style embedding vector After a linear layer processing, the third feature is obtained, the attention map Multiply it with the third feature and pass it through a linear layer to get the fourth feature. The fourth feature is combined with the historical query Add them together to get the final output, which is the aligned query , which is expressed as follows: ; ; in, represents the aligned query, and represents two linear layers, Indicates normalization.