A multi-view 3D object detection method based on sampling adaptive continuous NeRF

By adopting the sampling-adaptive continuous NeRF method and multi-head weight fusion in 3D target detection, the problem of insufficient information acquisition in indoor scenes is solved, the quality and performance of the detection frame are improved, and efficient information integration and computational complexity are achieved. of reduction.

CN118071999BActive Publication Date: 2024-09-06XIAMEN UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410460946.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-04-17
Publication Date
2024-09-06
Estimated Expiration
2044-04-17

AI Technical Summary

Technical Problem

Existing 3D target detection methods are difficult to accurately capture key location information and obtain detailed data in indoor scenes, especially under high IoU thresholds, and multi-view information fusion is insufficient, resulting in low quality detection frames and high computational complexity.

Method used

The continuous NeRF method based on sampling adaptation is used to optimize the sampling point position and feature fusion through multi-head weight fusion and multi-layer adaptive sampling network to improve the integration efficiency of spatial information and the quality of detection frames.

Benefits of technology

It improves the quality and performance of detection frames, especially under high IoU thresholds, it can efficiently integrate spatial information, reduce computational complexity, and enhance feature capture capabilities.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118071999B
    Figure CN118071999B
Patent Text Reader

Abstract

The present invention provides a multi-view 3D target detection method based on sampling adaptive continuous NeRF, comprising: inputting a multi-view posture image into a 2D backbone network to obtain a 2D feature; uniformly sampling the spatial coordinates in the entire scene to obtain the original sampling point; projecting the sampling point into the 2D feature to obtain the feature volume of the multi-view, and then obtaining the spatial feature by multi-head weight fusion; during the first multi-head weight fusion, directly processing the spatial feature to obtain the scene feature, inputting the scene feature into a detection head to predict an offset, updating the sampling point and the feature volume of the multi-view, and then performing multi-head weight fusion to obtain a new spatial feature, splicing and post-processing with the last scene feature to obtain a new scene feature, inputting the scene feature into the detection head to predict an offset, updating the sampling point and the feature volume of the multi-view, and again performing multi-head weight fusion to obtain a new spatial feature, and then obtaining a new scene feature, and inputting the new scene feature into the detection head to obtain the final 3D bounding box data.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of target detection, and in particular to a multi-view 3D target detection method based on sampling adaptive continuous NeRF. Background Art

[0002] 3D object detection is a basic task to obtain semantic and geometric information in three-dimensional space. It aims to identify and locate specific objects of specific categories in three-dimensional scenes and is widely used in applications such as augmented reality (AR) and virtual reality (VR), as well as popular autonomous driving tasks (bevformer, tpvformer, detr3d, bevfusion, voxformer). With the continuous advancement of technology, research in the field of 3D perception has made significant progress, especially in the field of object detection. At present, various sensors are widely used to obtain various information in space. Classical 3D object detection methods (voxelnet, pointnet, votenet) usually rely on pre-reconstructed three-dimensional representations or information from 3D sensors (such as point clouds). However, the deployment cost of these methods is very high. In this case, it is still most appropriate to use traditional RGB images as the most cost-effective way to obtain spatial information. Therefore, exploring the relationship between pose RGB images and various potential information in three-dimensional space has become a meaningful research task.

[0003] As a novel 3D representation method, Neural Radiance Field or NeRF-based methods such as Plenoxels and IBRNet have been introduced into spatial perception work (PeRFception, NeRF-RPN, NeRF-Det). In particular, NeRF-Det proposes an excellent structure that uses NeRF as an intermediate representation to model the scene geometry as an opacity field by using NeRF's geometric MLP. Using NeRF as an intermediate spatial representation also improves the consistency of information extracted from multi-view images at the same spatial location. This two-branch approach NeRF-Det fully utilizes the information in space and, most importantly, allows self-supervision of feature extraction from different camera views, ensuring the correctness and consistency of information extraction. However, if only fixed sampling is used, it is difficult to fully utilize the information consistency feature introduced by NeRF in the perception process.

[0004] Therefore, multi-sampling strategies become an effective solution to sample the required wide range of spatial information as efficiently as possible. In the scenario of autonomous driving, object detection usually relies on methods based on deformable DETR, such as DETR3D, BEVformer, or similar methods. In these cases, the general information density is relatively low. The scenes of autonomous driving are always at a large spatial scale, most objects are large in size, and there is a clear distinction between objects. In addition, most objects are distributed in the xy plane, and the accuracy of the z-axis spatial dimension is not required. In these cases, many 3D detection methods can benefit from adopting similar 2D structures. Therefore, the core problem of many 3D detection methods (bevformer, bevdet, sparsebev) in autonomous driving scenarios is to convert spatial information into information on the xy plane such as BEV (bird's eye view), or to supplement spatial information through weak 3D structures.

[0005] However, there are significant differences between indoor scenes and autonomous driving scenes. In indoor scenes, objects are usually close to each other, with significant size variations, irregular spatial distribution, and involve multiple different object categories that need to be distinguished. Directly using sparse sampling methods may result in the initial sampling points failing to accurately capture key position information and obtain sufficiently detailed data. In addition, in autonomous driving tasks, the relative positions of cameras are fixed and there are few overlapping perspectives, which limits the availability of 3D information obtained from multiple perspectives. Therefore, in indoor scenes with significant occlusion, it becomes crucial to fuse camera images from multiple overlapping perspectives to the same spatial sampling position. Simply using arithmetic averaging can lead to confusion of sampling features due to factors such as occlusion between objects. Insufficient fusion limits the accurate acquisition of features in space. Therefore, some current methods attempt to introduce non-parametric spatial feature variances in the rendering process to guide the determination of occlusion relationships. However, this non-parametric approach has not yet produced sufficient fusion results. If only the statistical results are regarded as the final features, the information of those truly valuable perspectives will still be diluted.

[0006] In view of this, the present application provides a high-quality and efficient indoor space target detection method. Summary of the invention

[0007] The technical problem to be solved by the present invention is to provide a multi-view 3D object detection method based on sampling adaptive continuous NeRF, which can improve the information covered by the original sampling points, improve the quality of the detection frame, especially the performance under high IoU threshold, and efficiently integrate the information in the entire space within a reasonable computational complexity.

[0008] The present invention is implemented as follows: a multi-view 3D target detection method based on sampling adaptive continuous NeRF, the method comprising:

[0009] Step S1, input the multi-view posture image into the 2D backbone network to obtain 2D features;

[0010] Step S2, uniformly sampling the spatial coordinates in the entire scene to obtain the original sampling points;

[0011] Step S3, projecting the sampling points into the 2D features to obtain multi-perspective feature volumes, and fusing the multi-perspective feature volumes by a multi-head weighted fusion method to obtain spatial features;

[0012] Step S4, determine whether it is the first multi-head weight fusion processing, if so, directly process the spatial features through 3D U-Net to obtain scene features, input the scene features to the detection head to predict an offset, update the sampling point with the offset, and re-execute step S3 with the updated sampling point; otherwise, go to step S5;

[0013] Step S5, determine whether it is the second multi-head weight fusion process, if so, then splice the spatial features obtained by this fusion with the scene features of the previous time, obtain the scene features of this time through the shallow fusion convolution layer and 3D U-Net, input the scene features of this time into the detection head to predict an offset, update the sampling point with the offset, and re-execute step S3 with the updated sampling point; otherwise, execute step S6;

[0014] Step S6: After splicing the spatial features obtained by the third multi-head weighted fusion processing with the previous scene features, the scene features of this time are obtained through the shallow fusion convolution layer and 3D U-Net, and the scene features of this time are input into the detection head to obtain the final output 3D bounding box data.

[0015] Furthermore, the detection head includes a category score convolution layer, a regression score convolution layer, a center score convolution layer, a mapping linear layer and an offset convolution layer;

[0016] When passing through the detection head for the first and second time, the center score and regression score of the prediction box bbox and the category score class are output (where the center score and regression score correspond to bbox, and the English version of the category score corresponds to cls or class). At the same time, the category score class and the center score and regression score of the prediction box bbox are linearly mapped and concatenated with the incoming scene features, and then the offset is output through the offset convolution layer;

[0017] When passing through the detection head for the last time, the center score, regression score and category score of the final prediction box bbox are output.

[0018] Furthermore, the prediction results of the detection head of each layer are supervised, and the supervision is achieved by calculating the loss function of the bbox and the class.

[0019] Furthermore, the step S3 specifically includes:

[0020] Step S31: Use bilinear interpolation Sampling the features in two-dimensional space obtains the multi-view feature volume V m ,in , It is the projection from the sampling point to the 2D feature The pixel coordinates on , are set to 0 for any invalid sampling points that are outside or behind the feature plane;

[0021] Step S32: Obtain the distance Z from each sampling point to the camera position, and encode the distance Z using a sine encoder as ;

[0022] Step S33: splice the feature volumes of multiple perspectives of the same point onto the sampling point , get the features of each perspective, pass the features of each perspective through the linear layer MLP, get the multi-head weights and multi-head features of each perspective, and the multi-head weight W passes through the softmax function and the multi-head feature V m 'Multiply them to get the final fused multi-view features, and then directly add these multi-view features to get the features of a point in the spatial features. After all the calculations are completed, the spatial features V are output. o , expressed as follows:

[0023]

[0024] Where N is the total number of input perspectives.

[0025] Furthermore, the “updating the sampling point with the offset” in step S4 and step S5 is specifically: adding the offset to the last sampling point to obtain the updated sampling point, and the updating formula is as follows:

[0026] ,in, is the offset, is the data of the last sampling point, is the updated sampling point data.

[0027] The present invention has the following advantages:

[0028] 1. By designing a non-fixed multi-layer adaptive sampling network, the information of previous sampling is used to predict the position of subsequent sampling points, which effectively supplements the information not covered by the original sampling points, so that the entire feature volume can efficiently capture space-related information, even at low sampling resolution, thereby improving the quality of the detection box, especially the performance at high IoU thresholds.

[0029] 2. By designing a multi-head weighted fusion method, multiple head weights are predicted for a specific point from different spatial perspectives, and softmax processing is performed on different perspectives, which effectively integrates the information in the space and realizes efficient integration of the information in the entire space within a reasonable computational complexity. BRIEF DESCRIPTION OF THE DRAWINGS

[0030] The present invention will be further described below in conjunction with embodiments with reference to the accompanying drawings.

[0031] Figure 1 The present invention is an execution flow chart of a multi-view 3D target detection method based on sampling adaptive continuous NeRF.

[0032] Figure 2 The overall logic block diagram of the multi-view 3D target detection method based on sampling adaptive continuous NeRF of the present invention.

[0033] Figure 3 A schematic diagram of a multi-layer adaptive sampling network structure of a multi-view 3D target detection method based on sampling adaptive continuous NeRF in the present invention.

[0034] Figure 4 It is a schematic diagram of the multi-head weighted fusion principle of a multi-view 3D target detection method based on sampling adaptive continuous NeRF in the present invention. DETAILED DESCRIPTION

[0035] The overall design idea of ​​the present invention is as follows: Figure 2 As shown in Figure 2, we propose a new method called NeRF-DetS for 3D object detection, which follows the main pipeline of NeRF-Det. It only accepts multi-view pose images as input and outputs a set of 3D bounding boxes that reveal the location and classification of objects in space. We randomly select pose images for a given scene. Multi-view images are input into the 2D backbone network to extract 2D features ,in , and is the size of the feature map, is the feature dimension. Next, we uniformly sample the spatial coordinates in the entire scene and obtain the original coordinate set as the sampling point .here, , and is the number of points sampled on the xyz axis. After sampling the scene features, we use our proposed multi-head weighted fusion method to combine the multi-view feature volume Blend to volume After the feature volume passes through 3D U-Net, we predict bounding boxes, classifications, and offsets through our proposed adaptive multi-layer sampling network. The offsets are used to efficiently sample complementary features. The NeRF branch is used to generate opacity at the sampling points, just like NeRF-Det. In addition, the NeRF branch ensures the continuity of features throughout the scene, which is fully utilized in our work.

[0036] like Figure 3 As shown, we propose a multi-level sampling adaptive network to address how to flexibly and efficiently utilize continuous features in space to assist perception in a densely sampled manner.

[0037] First, we uniformly sample on the voxel coordinates as the original sampling points After sampling and fusion, we can get a feature volume , which is obtained by 3D U-Net , represents the spatial scene. In our multi-level sampling adaptation network, we not only use the detection head to predict the bounding box and category of the object in the space (similar to the role of the detection head in other FCOS3-like methods), but also use the detection head to predict the offset of the next layer of sampling points relative to the original sampling points. We will input the scene features The prediction results after linear mapping of the regression convolution layer and the center convolution layer are concatenated. The concatenated features are passed through the offset convolution layer to predict the offset, such as Figure 3 Then, to obtain the sampling points of the first layer , we use the original sampling points and the predicted offset. For each , ,in , The offset of this prediction.

[0038] Then, through the same sampling and fusion, we can get , indicating that the sampling point in the first layer The feature volume after the offset. With characteristic volume After concatenation, we use the shallow fusion convolutional layer and 3D U-Net of the same structure to obtain the feature volume of the first layer . In obtaining a new characteristic volume Afterwards, we follow the same process to obtain , by predicting the bounding boxes of objects in the scene, their categories, and the offsets for the next layer. This process is done iteratively, and by using two levels of iteration, we mitigate the potential uncertainty of the original features that may be misguided by the offsets. This multi-layer approach ensures more accurate sampling and is able to collect rich information to obtain improved results.

[0039] In our method, we adopt an unfixed multi-level sampling adaptive network structure to predict the location of subsequent sampling points using the information of previous sampling. This process aims to supplement the missing information in the original sampling positions and enable the entire feature volume to efficiently capture spatially relevant information, even at low sampling resolution. Our method combines an adaptive sampling process to adapt to the missing information in space. Through a two-level process, we obtain the final feature volume . The feature volume is then input into our detection head to generate the final classification, location and center prediction through classification, regression and center convolution layers. And in order to solve the problem that NeRF-Det uses arithmetic mean to directly fuse the effective features of multiple perspectives (lack of effective interaction between features of the same sampling points under different perspectives; when the weights are equal in all perspectives, a small amount of significant information may not be fully reflected in the final spatial features), we propose a multi-head parameterized fusion strategy, such as Figure 4 As shown in the figure, it is called multi-head weighted fusion, which simplifies the weight calculation process and achieves better fusion of information from different perspectives by using weights.

[0040] Finally, to ensure that each layer learns the correct semantics and contributes to predicting better sampling offsets, we supervise the prediction results of each layer.

[0041] In order to better understand the technical solution of the present invention, the above technical solution will be described in detail below in conjunction with the accompanying drawings and specific implementation methods.

[0042] See also Figure 1 and 2 As shown, the present invention provides a multi-view 3D target detection method based on sampling adaptive continuous NeRF, the method comprising:

[0043] Step S1, input the multi-view posture image into the 2D backbone network to obtain 2D features;

[0044] Step S2, uniformly sampling the spatial coordinates in the entire scene to obtain the original sampling point P0;

[0045] Step S3: Project the sampling points into the 2D feature to obtain a multi-view feature volume Vm , the feature volumes of multiple perspectives are fused by multi-head weight fusion to obtain the spatial feature V o ;

[0046] Step S4: Determine whether it is the first multi-head weight fusion process. If so, the spatial feature Directly process the scene features through 3DU-Net , the scene features Input to the detection head to predict an offset, use the offset to update the sampling point, and re-execute step S3 with the updated sampling point P1; otherwise, go to step S5;

[0047] Step S5: Determine whether it is the second multi-head weight fusion process. If so, the spatial features obtained by this fusion are Similar to the previous scene After splicing, the scene features are obtained through shallow fusion convolution layer and 3D U-Net. , the scene features of this Input to the detection head to predict an offset, use the offset to update the sampling point, and re-execute step S3 with the updated sampling point P2; otherwise, execute step S6;

[0048] Step S6: The spatial features obtained by the third multi-head weight fusion process Similar to the previous scene After splicing, the scene features are obtained through shallow fusion convolution layer and 3D U-Net. , the scene features of this time Input into the detection head to obtain the final output 3D bounding box data, that is, the center score, regression score and category score class of the final bbox.

[0049] Among them, we have improved the detection head so that the network's prediction includes not only the classification and bounding box in the spatial domain, but also the offset, such as Figure 3 As shown, the detection head includes a category score convolution layer Cls Conv, a regression score convolution layer Reg Conv, a center score convolution layer Centerness Conv, a mapping linear layer Proj Conv and an offset convolution layer Offset Conv;

[0050] When passing through the detection head for the first and second time, the center score and regression score of the prediction box bbox and the category score class are output (where the center score and regression score correspond to bbox, and the English version of the category score corresponds to cls or class). At the same time, the category score class and the center score and regression score of the prediction box bbox are linearly mapped and concatenated with the incoming scene features, and then the offset is output through the offset convolution layer;

[0051] When passing through the detection head for the last time, the center score, regression score and category score of the final prediction box bbox are output

[0052] In a preferred embodiment, the prediction results of the detection head of each layer are supervised, and the supervision is achieved by calculating the loss function of the bbox and the class.

[0053] In a preferred embodiment, the step S3 specifically includes:

[0054] Step S31: Multi-view sampling and fusion strategy is very important for perception. For each sampling point And each feature map , we use bilinear interpolation Sampling the features in two-dimensional space obtains the multi-view feature volume V m ,in , From the sampling point Projection to 2d features The pixel coordinates on the feature plane Any invalid sampling points outside or after are set to 0;

[0055] Step S32: Obtain the distance Z from each sampling point to the camera position, and convert the distance Encoded as ;

[0056] Step S33: splice the feature volumes of multiple perspectives of the same point onto the sampling point , get the features of each perspective, pass the features of each perspective through the linear layer MLP, get the multi-head weight and multi-head features of each perspective, and the multi-head weight W passes through the softmax function ( ) and then with the long feature V m 'Multiply them to get the final fused multi-view features, and then directly add these multi-view features to get the features of a point in the spatial features. After all the calculations are completed, the spatial features V are output. o , expressed as follows:

[0057]

[0058] Where N is the total number of input perspectives.

[0059] In the method of the present invention, we not only obtain the multi-view feature volume V of the sampling points in the scene space m , and the distance from each sampling point to the camera position is obtained, expressed as The distance Z is encoded by the encoding function , where c ’ Indicates the number of channels after encoding. This allows the sampled features to merge the distance information from the sampling point to the two-dimensional feature plane, thereby improving the fusion effect.

[0060] By combining the characteristics of the sampling points and After concatenation, we pass them into a linear layer to obtain the output feature volume and long weight In our work, the number of long weights Set to 8. Then, apply the softmax function to the multi-head weight tensor along the multi-view dimension to obtain the multi-head weights of different views in the entire space. Then, V in the space m 'Multiply by the long weight to get the final .

[0061] Through the multi-head weight sampling process, we can ensure that a small number of truly useful perspective information obtains higher weights while making reasonable use of GPU memory. In this way, the feature fusion process will be more focused on extracting truly effective information from the space.

[0062] In a preferred embodiment, the "updating the sampling point with the offset" in step S4 and step S5 is specifically: adding the offset to the last sampling point to obtain the updated sampling point, and the updating formula is as follows:

[0063] ,in, is the offset, is the data of the last sampling point, is the updated sampling point data.

[0064] The present invention introduces a multi-level sampling adaptive network instead of using a fixed position sampling method. The multi-level sampling adaptive network of the present invention integrates the widely adopted adaptive sampling strategy into the dense sampling network structure. Make full use of continuous features in space and the consistency of information from multiple perspectives when using NeRF branches as supervision. In the prediction process of the previous layer, the network's prediction includes not only the classification and bounding box in the spatial domain, but also the offset. Subsequently, these offsets guide the sampling of the next layer. It is thus possible to collect information that is not captured by the fixed original sampling points and supplement the position information of the original sampling points. Therefore, the network of the present invention can effectively supplement the information not covered by the original sampling points, improve the quality of the detection box, especially the performance under high IoU thresholds. In addition, our method also adopts an innovative multi-view fusion method called multi-head weighted fusion. This method predicts multiple head weights from different spatial perspectives for a specific point. We perform softmax processing on different perspectives to effectively fuse the information in the space. This method efficiently integrates information in the entire space within a reasonable computational complexity.

[0065] Although the specific implementation modes of the present invention are described above, those skilled in the art should understand that the specific implementation modes described are only illustrative and are not intended to limit the scope of the present invention. Equivalent modifications and changes made by those skilled in the art in accordance with the spirit of the present invention should be included in the scope of protection of the claims of the present invention.

Claims

1. A multi-view 3D object detection method based on sampling adaptive continuous NeRF, characterized by: The method comprises: Step S1, input the multi-view posture image into the 2D backbone network to obtain 2D features; Step S2, uniformly sampling the spatial coordinates in the entire scene to obtain the original sampling points; Step S3, projecting the sampling points into the 2D features to obtain multi-perspective feature volumes, and fusing the multi-perspective feature volumes by a multi-head weighted fusion method to obtain spatial features; Step S4, determine whether it is the first multi-head weight fusion processing, if so, directly process the spatial features through 3D U-Net to obtain scene features, input the scene features to the detection head to predict an offset, update the sampling point with the offset, and re-execute step S3 with the updated sampling point; otherwise, go to step S5; Step S5, determine whether it is the second multi-head weight fusion process, if so, then splice the spatial features obtained by this fusion with the scene features of the previous time, obtain the scene features of this time through the shallow fusion convolution layer and 3D U-Net, input the scene features of this time into the detection head to predict an offset, update the sampling point with the offset, and re-execute step S3 with the updated sampling point; otherwise, execute step S6; Step S6: After the spatial features obtained by the third multi-head weighted fusion process are spliced ​​with the scene features of the previous time, the scene features of this time are obtained through the shallow fusion convolution layer and the 3D U-Net, and the scene features of this time are input into the detection head to obtain the final output 3D bounding box data; The step S3 specifically includes: Step S31: Use bilinear interpolation Sampling the features in two-dimensional space obtains the multi-view feature volume V m ,in 、 It is the projection from the sampling point to the 2D feature The pixel coordinates on , are set to 0 for any invalid sampling points that are outside or behind the feature plane; Step S32: Obtain the distance Z from each sampling point to the camera position, and convert the distance Encoded as ; Step S33: splice the feature volumes of multiple perspectives of the same point onto the sampling point , get the features of each perspective, pass the features of each perspective through the linear layer MLP, get the multi-head weights and multi-head features of each perspective, and the multi-head weight W passes through the softmax function and the multi-head feature V m 'Multiply them to get the final fused multi-view features, and then directly add these multi-view features to get the features of a point in the spatial features. After all the calculations are completed, the spatial features V are output. o , expressed as follows: Where N is the total number of input perspectives.

2. The multi-view 3D object detection method based on sampling adaptive continuous NeRF according to claim 1, characterized in that: The detection head includes a category score convolution layer, a regression score convolution layer, a center score convolution layer, a mapping linear layer and an offset convolution layer; When passing through the detection head for the first and second time, the center score and regression score of the prediction box bbox and the category score class are output. At the same time, the category score class and the center score and regression score of the prediction box bbox are linearly mapped and concatenated with the incoming scene features, and then the offset is output through the offset convolution layer; When passing through the detection head for the last time, the center score, regression score and category score of the final prediction box bbox are output.

3. The multi-view 3D target detection method based on sampling adaptive continuous NeRF according to claim 2, characterized in that: The prediction results of the detection head of each layer are supervised by calculating the loss function of bbox and class.

4. The multi-view 3D object detection method based on sampling adaptive continuous NeRF according to claim 1, characterized in that: The "updating the sampling point with the offset" in step S4 and step S5 specifically includes: adding the offset to the last sampling point to obtain the updated sampling point, and the updating formula is as follows: ,in, is the offset, is the data of the last sampling point, is the updated sampling point data.