Automatic driving perception method based on integration of domain-specific model and open set model
By combining domain-specific models with open-set models and fusing prediction results from multi-camera images or multi-modal inputs, the problem of identifying non-whitelisted object categories in 3D space during autonomous driving is solved, achieving efficient multi-task recognition and generalization capabilities.
Patent Information
- Application Number
- CN202411089565.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-09
- Publication Date
- 2026-11-20
- Estimated Expiration
- 2044-08-09
AI Technical Summary
In the field of autonomous driving, existing models struggle to effectively identify objects outside the whitelist in 3D space, while training large models consumes significant computing resources and time.
By combining domain-specific models and open-set models, and using multi-camera images or multimodal inputs, domain-specific and open-set predictions are performed respectively. The prediction results are then fused through an integration module to achieve efficient identification of whitelisted and non-whitelisted categories.
It achieves high-performance prediction of whitelisted categories and generalization of non-whitelisted categories in autonomous driving perception tasks, avoiding additional training costs and improving the model's generalization ability and computational efficiency.
Smart Images

Figure CN119068456B_ABST
Abstract
Description
Technical Field
[0001] This invention belongs to the field of computer vision technology, and relates to the establishment of autonomous driving perception neural network models and algorithms using computer vision and deep learning technologies. In particular, it relates to an autonomous driving perception method based on the integration of domain-specific models and open set models. Background Technology
[0002] In recent years, the research and application of machine learning have continued to develop, with deep learning methods achieving significant breakthroughs in many application areas (such as generative natural language dialogue, computer vision, and speech processing). As more and more deep learning algorithms are deployed in practical applications, model generalization ability is receiving increasing attention. In the field of autonomous driving, model generalization ability specifically includes open-scene capability and open-set semantic capability: open-scene capability refers to the model's ability to reason in new scenarios different from the training data; open-set semantic capability refers to the ability to identify and predict semantic categories that were not labeled during training (hereinafter, labeled semantic categories in the training set are called "whitelisted categories," and unlabeled semantic categories in the training set are called "non-whitelisted categories") during inference.
[0003] In fields such as multimodal natural language dialogue, 2D image segmentation, and 2D depth estimation, a series of open-set models have emerged through large-scale data-driven approaches, possessing certain open-set semantic capabilities. However, in autonomous driving perception tasks, especially in various tasks within 3D space, the cost of manual data annotation is enormous, and it's impossible to obtain sufficient labeled data for autonomous driving from the internet. This makes it difficult to train large models for 3D tasks using data-driven methods. How to leverage the capabilities of existing open-set models and apply them to 3D object detection and 3D semantic segmentation tasks is a problem worthy of attention.
[0004] Meanwhile, in tasks such as 2D object detection and 2D instance segmentation, existing open-set models can provide a certain level of generalization ability, and can make some predictions for objects outside the whitelist. Traditional domain-specific models, on the other hand, use a fixed whitelist for classification, making it difficult to predict objects outside the whitelist. However, for objects within the whitelist, current domain-specific models have stronger predictive performance than open-set models. (See attached image) Figure 3As shown, for the vehicle partially obscured in the first row of examples and the two overlapping people in the second row of examples, the domain-specific model can provide relatively complete and accurate predictions, while the open-set model's predictions are not accurate enough. However, for the dog on the road in the first row, the stroller and lamppost in the second row, and the sign in the third row, the open-set model can provide both location and semantic predictions, while the domain-specific model cannot. Both types of models have their strengths. How to integrate their capabilities to enable an autonomous driving perception system to maintain high-performance predictions for whitelisted objects within the domain while also maintaining generalization ability for non-whitelisted objects is also a noteworthy issue.
[0005] Finally, deep learning methods require iterative training on datasets using techniques such as gradient descent. Training for various perception tasks in autonomous driving is computationally expensive and converges slowly. Furthermore, data-driven open-set models require even more computational resources for training. Therefore, many recent studies have focused on zero-shot learning or fine-tuning of these open-set models. Thus, controlling the training cost is also a crucial consideration when addressing these issues. Summary of the Invention
[0006] To overcome the shortcomings of the existing technologies and solve the aforementioned problems, this invention proposes an autonomous driving perception method based on the integration of domain-specific models and open-set models. For multi-camera image input (or multi-modal input of multi-camera images and radar point clouds), the method provides domain-specific prediction results for multiple autonomous driving perception tasks (including 2D classification, 2D instance segmentation, 2D object detection, 3D classification, 3D top-view semantic segmentation, 3D object detection, etc.) through a domain-specific model branch; and provides open-set prediction results for multiple autonomous driving perception tasks through an open-set model branch. Finally, the method integrates the domain-specific prediction results and the open-set prediction results through an integration module to obtain a prediction result that combines the advantages of both domain-specific and open-set models.
[0007] The technical solution of the present invention is as follows:
[0008] An autonomous driving perception method based on the integration of domain-specific models and open-set models, wherein the sensor input of the method is multi-camera image input or multi-modal input of multi-camera images and radar point clouds, includes the following steps:
[0009] 1) For sensor input, a domain-specific model capable of reasoning about six tasks simultaneously is obtained through training, and 2D and 3D multi-task prediction results are obtained through this domain-specific model.
[0010] 2) Based on sensor input, an open-set model is obtained by combining a series of basic models. Combined with a 2D-to-3D object conversion module, 2D and 3D multi-task prediction results are obtained. Through a 2D open-set detection model, 2D object detection bounding boxes, semantic features, and confidence scores are obtained. The semantic features are decoded using a natural language text decoder to obtain corresponding semantic predictions, thus yielding open-set 2D object detection prediction results. The 2D object detection bounding boxes are used as cues, and combined with multi-camera image input through a 2D instance segmentation basic model to obtain 2D instance segmentation prediction results. The pixels segmented from the 2D instances are combined with their point cloud depth or a depth estimation basic model to obtain their 3D coordinates, thus obtaining pseudo-point clouds. These pseudo-point clouds are aggregated to obtain 3D bounding boxes. The 3D bounding boxes correspond one-to-one with the semantic predictions and confidence scores of the 2D detection. The bounding boxes, confidence scores, and semantic predictions together constitute the 3D object detection prediction results. For 2D or 3D classification tasks, cue words are designed, and the results are obtained directly using a large visual-language model.
[0011] 3) The multi-task prediction results of the domain-specific model and the multi-task prediction results of the open set model are integrated through the integration module to obtain the final result. For 2D object detection and 3D object detection, after aligning the confidence distribution, the integration is carried out by dual threshold nonmaximum suppression based on semantic feature distance and intersection-union ratio. For 2D instance segmentation, the integration is guided by the 2D object detection prediction results. For classification tasks, the category selection is determined according to the confidence.
[0012] Furthermore, step 1) specifically includes the following steps:
[0013] 1-1) Domain-specific model training
[0014] During training, different multimodal data augmentation strategies are used for different inputs;
[0015] During training, different optimizers and learning rate schedulers are selected based on the actual training situation of the model;
[0016] During training, the multi-task loss function is designed as follows: classification and segmentation tasks use a classification loss function; detection tasks use a regression loss function for bounding box prediction and a classification loss function for class prediction; based on the increase or decrease in accuracy of multi-task compared to single-task, the weights of the multi-task loss function are adjusted manually or automatically.
[0017] 1-2) Perform task prediction inference on the trained domain-specific model, including the following steps:
[0018] 1-2-1) Sensor Input Feature Extraction: Based on the type of input sensor and the required task, the necessary backbone network and neck network are selected as the feature extraction networks. For multi-camera image input, the backbone network is used to extract multi-scale features of the image, and the neck network is used to fuse the multi-scale features of the image, resulting in a 2D image feature sequence. When there is also multi-modal input of radar point cloud, the radar point cloud is first voxelized to obtain feature voxels. Then, based on the needs of the task, the necessary backbone network and neck network are selected to extract 3D features of the radar point cloud, which are then fused with the 3D features of the image in step 1-2-3).
[0019] 1-2-2) 2D-3D feature conversion: For the image backbone network, select a 2D to 3D view conversion module that is compatible with it. Use a method that projects two-dimensional features to three-dimensional features based on depth estimation and projection according to the depth distribution, or perform position encoding on the BEV grid and extract features directly from multiple frames and multiple view images through the attention mechanism to achieve 2D to 3D feature conversion.
[0020] 1-2-3) Temporal fusion of 2D and 3D features: Any existing temporal fusion method can be used. For 2D tasks, the input of the 2D feature temporal fusion network is a sequence of 2D image features, and the output is the fused 2D features. For 3D tasks, the input of the 3D feature temporal fusion network is a sequence of 3D feature maps after 2D-3D feature conversion. If radar point cloud is present as input, the 3D features of the radar point cloud are also included. The output is the fused 3D features.
[0021] 1-2-4) For each task, select the feature map generated for that task and connect it to the corresponding task's decoding network to predict the results for each task. The corresponding task's decoding network includes: a 2D classification task decoder, a 3D classification task decoder, a 2D object detection task decoder, a 3D object detection task decoder, a 2D instance segmentation task decoder, and a 3D top-view semantic segmentation decoder. The domain-specific results for each task are obtained, including: the 2D classification prediction result R. spec2Dcls =(c spec2D ,s spec2D ) and 3D classification prediction results R spec3Dcls =(C spec3D ,s spec3D ), where c spec2D and c spec3D For category prediction, s spec2d and s spec3D Confidence level; 2D object detection prediction results in It is the 2D bounding box corresponding to the i-th object. It represents the confidence score corresponding to the i-th object. N represents the category corresponding to the i-th object.spec2Ddet It represents the predicted number of objects; 3D object detection prediction results. in It is the 3D bounding box corresponding to the i-th object. It represents the confidence score corresponding to the i-th object. N represents the category corresponding to the i-th object. spec3Ddet This refers to the predicted number of objects; 2D instance segmentation prediction results. in The mask of the i-th instance, c i N is the category corresponding to the i-th instance. spec2Dseg It represents the number of predicted instances, and the 3D top-view semantic segmentation prediction result R. spec3Dseg .
[0022] Furthermore, step 2) specifically includes the following steps:
[0023] 2-1) Open set 2D object detection prediction: An open set detection model consisting of an image encoder, a 2D open set detector, and a text decoder is used to obtain the prediction results for open set 2D object detection. in It is the 2D bounding box corresponding to the i-th object. It represents the confidence score corresponding to the i-th object. N represents the category corresponding to the i-th object. open2Ddet It is the predicted number of objects;
[0024] 2-2) For the open set 2D instance segmentation prediction task, the basic instance segmentation model is adopted. First, the multi-camera images are used as input. Then, the bounding boxes of the open set 2D object detection prediction results obtained in step 2-1) are used. As a hint, obtain the mask corresponding to each instance. By combining the categories of open set 2D object detection, the open set 2D instance segmentation prediction results are obtained. The number of instances N open2Dseg =N open2Ddet ;
[0025] 2-3) Open set 3D object detection prediction: Based on the 2D object detection prediction results and 2D instance segmentation prediction results, a 3D object detection prediction is performed using a 2D-3D object conversion module; this includes the following steps:
[0026] 2-3-1) Using the basic depth estimation model, depth estimation is performed on the image to obtain the depth estimation result matrix D; for each instance mask in the 2D instance segmentation prediction result. For each pixel (u,v) in the depth estimation result, the corresponding depth d = D can be found. u,v When a radar point cloud is provided as input, the point cloud is projected onto the image plane, and the depth d is obtained by interpolating the depths of the k nearest neighbor point clouds near (u,v).
[0027] 2-3-2) For instance masks For each pixel and its depth (u,v,d) in the image, coordinate transformation is performed using the camera's intrinsic and extrinsic parameter matrices to obtain the pseudo point cloud (x,y,z) in the corresponding space.
[0028] 2-3-3) For a mask corresponding to all pseudo-point clouds, find the smallest volume cuboid containing all point clouds, which is transformed into a 3D minimum directed bounding box problem; use a heuristic search algorithm to approximate the solution and find the parameters of the corresponding 3D bounding box. Alternatively, a learning-based approach can be used, employing a neural network model. This model takes all pseudo-point clouds corresponding to a mask as input, uses PointNet to extract features, and then uses an MLP to predict the parameters of the corresponding 3D bounding box. The final open-set 3D object detection prediction results are as follows:
[0029] in in It is the 3D bounding box corresponding to the i-th object. It is the confidence score corresponding to the i-th object. N represents the category corresponding to the i-th object. open3Ddet It is the predicted number of objects;
[0030] 2-4) Open set 2D and 3D classification task prediction: Using a large vision-language model, the desired classification is directly used as the prompt text input to obtain the open set 2D classification prediction result R. spec2Dcls =(c open2D ,S open2D ) and open set 3D classification prediction results R open3Dcls =(C spec3D ,s spec3D ), where c open2D and c open3D For category prediction, s open2D and s open3D , where is the confidence level.
[0031] Furthermore, step 3) specifically includes the following steps:
[0032] 3-1) Classification task ensemble: determine class selection based on confidence level, and for domain-specific 2D classification prediction results R... spec2Dcls =(c spec2D,s spec2D ) and open set 2D classification prediction results R open2Dcls =(c open2D ,s open2D The prediction result with the highest confidence level is adopted as the final 2D classification prediction result.
[0033]
[0034] The confidence level is then updated: if the two predictions are consistent, the confidence level is increased; otherwise, the confidence level is decreased.
[0035]
[0036] The final ensembled 2D classification prediction result R is obtained. 2Dcls =(c 2D ,s 2D The integration process for 3D classification is exactly the same as that for 2D classification.
[0037] 3-2) Detection task integration, for domain-specific 2D target detection prediction results R spec2Ddet And open set 2D object detection prediction results R open2Ddet After aligning the confidence distribution, a dual threshold nonmaximum suppression based on semantic feature distance and intersection-union ratio is employed for ensemble analysis. Specifically, the confidence scores of domain-specific 2D object detection predictions on a specified dataset are first statistically analyzed. The distribution is calculated to obtain the mean μ and standard deviation σ; then the confidence level of the open set 2D object detection prediction results is determined. The redistribution is a confidence distribution that follows a Gaussian distribution (N = 9μ,σ). Finally, the set of domain-specific detection prediction results and open set detection prediction results after confidence redistribution is processed by non-maximum suppression (NMS), and the merged set is:
[0038]
[0039] Specifically, for any two detection prediction results in the union set of the detection prediction results, let them be the i-th and j-th, when the intersection-union ratio (IoU(b)) of the bounding boxes of the two results is... i ,b j If the score exceeds a specified threshold T, the results with lower confidence s are removed from the set; finally, the integrated 2D object detection prediction result R is obtained. 2Ddet The integration of 3D target detection is exactly the same as the integration process of 2D target detection.
[0040] 3-3) Segmentation task ensemble: For 2D instance segmentation tasks, ensemble is guided by 2D object detection and prediction results, with each 2D segmentation instance result... All are related to a 2D object detection prediction result One-to-one correspondence; therefore, record the object detection prediction results removed by NMS in step 3-2), and transfer the corresponding segmented instances from R. spec2Dseg ∪R open2Dseg Removing the 'm' will yield the integrated 2D instance segmentation prediction result R. 2Dseg For 3D top-view semantic segmentation tasks, the ensemble prediction results R0 3Dseg =R spec3Dseg .
[0041] The technical effects of this invention are as follows:
[0042] (1) The method of the present invention combines existing basic models such as 2D open set detection, 2D instance segmentation, depth estimation, and visual-language large model, and designs a 2D to 3D object conversion module to obtain a 3D target detection open set model for non-whitelisted objects, thus solving the problem that a 3D task large model cannot be directly trained through data-driven methods.
[0043] (2) The method of the present invention integrates the domain-specific model and the open set model, which enables the whole system to have the advantages of both the domain-specific model and the open set model, and has good predictive ability in both whitelisted and non-whitelisted categories.
[0044] (3) The method of the present invention directly combines each neural network module without consuming additional computing resources for integrated training, and does not introduce additional training costs. Attached Figure Description
[0045] Figure 1 This is a basic flowchart of the method proposed in this invention;
[0046] Figure 2 This is a detailed illustration of the method proposed in this invention;
[0047] Figure 3 This is a sample demonstration of the integration results of the domain-specific model and the open set model proposed in this invention. Detailed Implementation
[0048] The present invention will be further clearly and completely described below with reference to the accompanying drawings and specific embodiments.
[0049] This invention presents an autonomous driving perception method based on the integration of domain-specific models and open set models. It addresses multiple autonomous driving perception tasks (including 2D classification, 2D instance segmentation, 2D object detection, 3D classification, 3D top-view semantic segmentation, 3D object detection, etc.) for multi-camera image input (or multi-modal input of multi-camera images and radar point clouds).
[0050] like Figure 1 The basic flowchart of the method of the present invention is shown. It provides domain-specific prediction results for multiple autonomous driving perception tasks through a domain-specific model branch; it provides open-set prediction results for multiple autonomous driving perception tasks through an open-set model branch; finally, it fuses the domain-specific prediction results and the open-set prediction results through an integration module to obtain prediction results that combine the advantages of both domain-specific and open-set methods.
[0051] The specific illustration of the method proposed in this invention is as follows: Figure 2 For multi-frame inputs from one or more types of automotive sensors, such as multi-view cameras, LiDAR, and millimeter-wave radar, the system obtains multi-task prediction results in whitelisted semantic categories through existing domain-specific model branches; it also obtains open prediction results including both whitelisted and non-whitelisted categories through existing open-set model branches, and converts these results into 2D and 3D multi-task formats; finally, through an integration module, it obtains the corresponding integrated prediction results for each task. For input, camera images are mandatory, while radar point clouds are optional. For output, one or more tasks can be selected, such as 2D classification, 2D instance segmentation, 2D object detection, 3D classification, 3D top-view semantic segmentation, and 3D object detection. Specifically, it includes the following steps:
[0052] S1) For sensor input, a domain-specific model capable of simultaneously reasoning on six tasks is trained, and 2D and 3D multi-task prediction results are obtained through this domain-specific model. Domain-specific models refer to typical autonomous driving perception models. These models are trained on specific datasets and perform well within the domain, but cannot handle non-whitelisted semantic categories. This invention is applicable to improving the generalization performance of any domain-specific model. The following describes a specific implementation of a type of domain-specific model and details how to train a domain-specific model capable of simultaneously reasoning on six tasks. The domain-specific model selects a backbone network and a neck network for Radar point cloud input, LiDAR point cloud input, and image input, based on the type of input sensor and the required task. For the image backbone network, a suitable 2D-to-3D viewpoint conversion module is selected. This module can adopt a depth prediction-projection based approach or an attention-based approach. For 3D tasks, features from various sensors are processed through a backbone network to extract multi-scale features, and a neck network to fuse these features. These features are then transformed into a unified BEV space coordinate system via a viewpoint conversion module. Subsequently, independent encoders and task decoders perform decoding to obtain the proprietary model's 3D task prediction results. For 2D tasks, the 2D feature maps obtained from the image backbone and neck network are directly extracted, followed by independent encoders and task decoders to obtain the proprietary model's 2D task prediction results.
[0053] S1-1) Domain-specific model training
[0054] During training, different multimodal data augmentation strategies are used for different inputs;
[0055] During training, different optimizers and learning rate schedulers are selected based on the actual training situation of the model;
[0056] During training, the multi-task loss function is designed as follows: classification and segmentation tasks use a classification loss function; detection tasks use a regression loss function for bounding box prediction and a classification loss function for class prediction; based on the increase or decrease in accuracy of multi-task compared to single-task, the weights of the multi-task loss function are adjusted manually or automatically; commonly used classification loss functions include L1 loss function, L2 loss function, Huber loss function, etc.; common regression loss functions include cross-entropy loss function, Focal loss function, etc.
[0057] S1-2) Perform task prediction inference on the trained domain-specific model, including the following steps:
[0058] S1-2-1) Sensor Input Feature Extraction: Based on the type of input sensor and the required task, select the necessary backbone network and neck network as the feature extraction network. The image backbone network is used to extract multi-scale features of the image. Lightweight models include ResNet, DarkNet, MobileNet, and Res2Net, while high-precision models include SwinTransformer, InternImage, VovNetv2, and CBNet. The neck network is used to fuse multi-scale features of the image, often using feature pyramid networks and their various variants to aggregate multi-scale features. After obtaining the 2D image feature sequence, proceed to step S1-2-2. If there are multimodal inputs from radar point clouds of lidar and millimeter-wave radar sensors, the radar point clouds are first voxelized to obtain feature voxels. Then, the required backbone network and neck network are selected according to the needs of the task. Common methods include SECOND. Then, using the pose parameters of the radar sensors, voxel coordinate system transformation is performed to align different sensors to a unified BEV coordinate system. Then, cylinder pooling is performed to convert the feature voxels into BEV feature maps. The radar BEV features directly enter step S1-2-3) for 3D feature fusion.
[0059] S1-2-2) 2D-3D Feature Conversion: For the image backbone network, select a suitable 2D to 3D view conversion module. Use methods based on depth estimation and projection according to the depth distribution to project 2D features to 3D features, such as the monocular convolution method of BEVDepth, the multi-view, multi-frame depth estimation method of MVSNet, etc.; or perform position encoding on BEV grids and extract features directly from multi-frame, multi-view images through attention mechanism to achieve 2D to 3D feature conversion.
[0060] S1-2-3) Temporal fusion of 2D and 3D features: Any existing temporal fusion method can be used, such as designs based on Transformer encoders, designs based on channel-dimensional direct connections and convolution, etc. The input to the 2D feature temporal fusion network is a sequence of 2D image features, and the fused 2D features are used for decoding by the 2D task decoder in step S1-2-4). The input to the 3D feature temporal fusion network includes 3D image features; if radar point cloud features are present, they are also included. The fused 3D feature map is used for decoding by the 3D task decoder in step S1-2-4).
[0061] S1-2-4) For each task, select the feature map generated for that task, connect it to the corresponding task's decoding network, and predict the results for each task; the corresponding task's decoding network includes: 2D classification task decoder, 3D classification task decoder, 2D object detection task decoder, 3D object detection task decoder, 2D instance segmentation task decoder, and 3D top view semantic segmentation decoder.
[0062] Decoders for 2D and 3D classification tasks typically obtain a global feature vector through convolution, downsampling, and linear layers. This global feature vector is then dimensionality-reduced using a multilayer linear perceptron (MLP) to obtain the domain-specific 2D classification prediction result R. spec2Dcls =(c spec2D ,c spec2D ) and domain-specific branch 3D classification prediction results R spec3Dcls =(c spec3D ,s spec3D ), where c spec2D and c spec3D For category prediction, s spec2D and s spec3D , where is the confidence level.
[0063] The decoder for 2D object detection tasks can be one-stage or multi-stage, with anchors, without anchors, or based on Transformers, ultimately yielding domain-specific 2D object detection prediction results. in It is the 2D bounding box corresponding to the i-th object. It represents the confidence score corresponding to the i-th object. N represents the category corresponding to the i-th object. spec2Ddet It represents the predicted number of objects.
[0064] 2D instance segmentation task decoders typically employ a method that relies on 2D object detection and MLP to predict the mask and category corresponding to each instance. in The mask of the i-th instance, c i N is the category corresponding to the i-th instance. spec2Dseg It represents the predicted number of instances.
[0065] The 3D object detection task decoder can select different 3D detection decoders according to the needs of specific scenarios, such as a one-stage PointPillars detection head with anchors, a one-stage Centerpoint detection head without anchors, a one-stage Transformer-based PETR detection head, or a two-stage Transfusion-L detection head, etc., to finally obtain the domain-specific branch of 3D object detection prediction results. in It is the 3D bounding box corresponding to the i-th object. It is the confidence score corresponding to the i-th object. N represents the category corresponding to the i-th object. spec3Ddet It represents the predicted number of objects.
[0066] The 3D top-down view semantic segmentation decoder can select different semantic segmentation decoders according to the needs of the specific scene, such as the convolution-based SegNet or the Transformer-based PETR SegHead, and finally obtain the 3D top-down view semantic segmentation prediction result R. spec3Dseg It is a size and a top view Figure 1 The number of categories is a discrete matrix representing the number of semantic segmentation categories.
[0067] S2) Based on sensor input, an open-set model is obtained by combining a series of basic models. Combined with a 2D-to-3D object conversion module, 2D and 3D multi-task prediction results are obtained. While the open-set model branch may not have strong prediction capabilities within its domain's whitelist, it possesses prediction capabilities for open scenes and non-whitelisted semantics. This branch obtains 2D object detection bounding boxes, semantic features, and confidence scores through a 2D open-set detection model. The semantic features are then decoded using a natural language text decoder to obtain corresponding semantic predictions, thus yielding the open-set 2D object detection prediction results. Using the 2D object detection bounding boxes as cues, and multiple camera image inputs, a 2D instance segmentation basic model is applied to obtain 2D instance segmentation prediction results. The pixels segmented from the 2D instances are combined with their point cloud depth (e.g., radar point clouds) or a depth estimation basic model to obtain their 3D coordinates, thus obtaining pseudo-point clouds. These pseudo-point clouds are aggregated to obtain 3D bounding boxes. These 3D bounding boxes correspond one-to-one with the aforementioned 2D object detection semantic predictions and confidence scores. The 3D bounding boxes, confidence scores, and semantic predictions together constitute the 3D object detection prediction results. For 2D or 3D classification tasks, design prompt words and directly use the visual-language large model to obtain prediction results.
[0068] S2-1) Open set 2D object detection prediction. Typically, an open set detection model consists of three modules: an image encoder, a 2D open set detector, and a text decoder, to obtain the prediction result for open set 2D object detection. For example, open set detection methods such as GenerateU, which are fine-tuned from a large vision-language model, can directly utilize the image encoder, 2D open set detector, and text decoder to obtain the prediction result for open set 2D object detection.
[0069]
[0070] in It is the 2D bounding box corresponding to the i-th object. It represents the confidence score corresponding to the i-th object. N represents the category corresponding to the i-th object. open2Ddet It represents the predicted number of objects.
[0071] Alternatively, an instance segmentation base model (such as SAM) followed by a 2D bounding box fitting module can be used as an image encoder and a 2D open set detector to obtain... and Then, the visual-language large model is used as the text decoder, and the input is drawn. Given an image with bounding boxes, the model is required to predict the semantics of the bounding boxes.
[0072] S2-2) Open set 2D instance segmentation prediction: This embodiment uses the instance segmentation basic model SAM, taking multi-camera image input as its input, and using the bounding box of the open set 2D object detection prediction result obtained in step S2-1). As a hint, obtain the mask corresponding to each instance. By combining the categories of open set 2D object detection, the open set 2D instance segmentation prediction results are obtained. The number of instances N open2Dseg =N open2Ddet .
[0073] S2-3) Open-set 3D object detection prediction: Due to insufficient data mentioned in the background section, it is impossible to directly train an open-set 3D detector. Therefore, this invention employs a 2D-3D object conversion module to further convert the more versatile 2D object detection and 2D instance segmentation prediction results into 3D object detection prediction results. The following are the steps for performing open-set 3D object detection. Specifically,
[0074] S2-3-1) Using a depth estimation base model (such as UniDepth, ZoeDepth, etc.), depth estimation is performed on the image to obtain a depth estimation result matrix D. For each instance of the 2D semantic segmentation prediction result, a mask is applied. For each pixel (i, v) in the depth estimation result, the corresponding depth d = D can be found. u,v When a radar point cloud is provided as input, the point cloud can be projected onto the image plane, and the depth d can be obtained by interpolating the depths of the k nearest neighbor point clouds near (u,v).
[0075] S2-3-2) For instance masks For each pixel and its depth (u,v,d) in the image, coordinate transformation is performed using the camera's intrinsic and extrinsic parameter matrices to obtain a pseudo point cloud (x,y,z) in the corresponding space.
[0076] (S2-3-3) For all the pseudo-point clouds corresponding to a mask, we can find the smallest volume cuboid containing all the point clouds, which is transformed into a 3D minimum directed bounding box problem (OBB problem). Principal component analysis (PCA), or genetic algorithms, simulated annealing, or other heuristic search algorithms can be used to approximate the solution and find the parameters of the corresponding 3D bounding box. Alternatively, a learning-based approach can be used, employing a neural network model. This model takes all pseudo-point clouds corresponding to a mask as input, uses PointNet to extract features, and then uses an MLP to predict the parameters of the corresponding 3D bounding box. Finally, the open set 3D object detection prediction results were obtained. in It is the 3D bounding box corresponding to the i-th object. It represents the confidence score corresponding to the i-th object. N represents the category corresponding to the i-th object. open3Ddet It represents the predicted number of objects.
[0077] S2-4) Open-set 2D and 3D classification task prediction: Using a large vision-language model (VLM, such as GPT-4V, InternVL 1.5, etc.), the desired classification is directly input as the prompt text, and the open-set branch 2D classification prediction result R is obtained. open2Dcls =(c open2D ,c open2D ) and open set branch 3D classification prediction results R open3Dcls =(c spec3D ,s spec3D ), where c open2D and c open3D For category prediction, s open2D and s open3D For confidence level, for example, when the classification target is weather, prompts can be such as "Please describe the weather in the picture in one word" or "The weather in the picture is which of the following: sunny; cloudy; rainy; snowy." (For GPT-4V and InternVL 1.5, the corresponding English prompts provide more accurate predictions). The prompts should be designed according to the specific classification content. For confidence level estimation, the prompts can be used to require VLM to provide a confidence estimate within the [0,1] interval for its predictions, or the VLM's text encoder can be used to calculate the text feature vector similarity between the model output and each of the preset categories.
[0078] S3) The fusion module integrates the prediction results of the domain-specific model branch and the open-set model branch to obtain prediction results that reflect both strong domain-specific capabilities and some open-set prediction capabilities. For 2D and 3D object detection, after aligning the confidence distribution, fusion is performed using dual threshold non-maximum suppression based on semantic feature distance and intersection-union ratio. For 2D instance segmentation, fusion is guided by the 2D object detection prediction results. For classification tasks, class selection is determined based on confidence levels.
[0079] S3-1) Classification Task Integration: For the domain-specific 2D classification prediction results R obtained from the above two branches, spec2Dcls =(s spec2D ,s spec2D ) and open set 2D classification prediction results R open2Dcls =(c open2D ,s open2D The prediction result with the highest confidence level is adopted as the final 2D classification prediction result.
[0080]
[0081] The confidence level is then updated: if the two predictions are consistent, the confidence level is increased; otherwise, the confidence level is decreased.
[0082]
[0083] The final ensembled 2D classification prediction result R is obtained. 2Dcls =(c 2D ,s 2D The integration process for 3D classification is exactly the same as that for 2D classification, and will not be described again.
[0084] S3-2) Detection Task Integration: For domain-specific 2D object detection prediction results Open set 2D object detection prediction results First, the confidence level of 2D object detection predictions on a specified dataset, a statistical domain specific to this area. The distribution is calculated to obtain the mean μ and standard deviation σ; then the confidence level of the open set 2D object detection prediction results is determined. The redistribution is a confidence distribution that follows a Gaussian distribution N(μ,σ). Finally, the set of domain-specific detection prediction results and open set prediction results after confidence redistribution is processed by non-maximum suppression (NMS), and the merged set is:
[0085]
[0086] Specifically, for any two detection prediction results in the union set of the detection prediction results, let them be the i-th and j-th, if the intersection-union ratio (IoU(b)) of the bounding boxes of the two results is... i ,b j If the confidence level s exceeds a specified threshold T, then results with lower confidence s are removed from the set. The final ensembled 2D object detection prediction result R is obtained. 2Ddet The integration of 3D object detection is exactly the same as the integration process of 2D object detection described above, and will not be repeated here.
[0087] S3-3) Segmentation Task Integration: For 2D instance segmentation tasks, the result of each 2D segmentation instance... All are related to a 2D object detection prediction result One-to-one correspondence; therefore, record the object detection prediction results removed by NMS in step S3-2), and transfer the corresponding segmented instances from R. spec2Dseg ∪R open2Dseg Removing the 'm' will yield the final integrated 2D instance segmentation prediction result R. 2Dseg For 3D top-view semantic segmentation tasks, integrating prediction results, R... 3Dseg=R spec3Dseg .
[0088] For the above embodiments, see Appendix Figure 3 Several examples of 2D object detection are presented to demonstrate how this invention effectively combines the strengths of domain-specific models and open-set models. In the first row of examples, the traditional domain-specific model, lacking animal data in its training data, fails to identify dogs on the road but can provide a relatively complete estimate of a partially obscured vehicle in the distance. The open-set model can identify dogs on the road but has biased predictions for partially obscured vehicles in the distance. The algorithm proposed in this invention combines the advantages of both. In the second row of examples, the domain-specific model can identify two people overlapping in the middle of the road and vehicles overlapping and obscured on the left, but the open-set model performs poorly in predicting these objects. However, for non-whitelisted semantic objects such as strollers and lampposts, the open-set model can make predictions, while the domain-specific model cannot; the algorithm proposed in this invention combines the advantages of both. In the third row of examples, the open-set model can predict road signs, the domain-specific model can predict pedestrians in the distance, and the algorithm proposed in this invention combines the advantages of both.
[0089] Finally, it should be noted that the purpose of disclosing the embodiments is to help further understand the present invention. However, those skilled in the art will understand that various substitutions and modifications are possible without departing from the spirit and scope of the present invention and the appended claims. Therefore, the present invention should not be limited to the content disclosed in the embodiments, and the scope of protection of the present invention is defined by the scope of the claims.
Claims
1. An autonomous driving perception method based on the integration of domain-specific models and open-set models, characterized in that, The sensor input for this method is either multi-camera image input or multimodal input of multi-camera images and radar point clouds, and includes the following steps: 1) For sensor input, a domain-specific model capable of reasoning about six tasks simultaneously is obtained through training, and 2D and 3D multi-task prediction results are obtained through this domain-specific model; the six tasks include: 2D classification, 2D instance segmentation, 2D object detection, 3D classification, 3D top view semantic segmentation and 3D object detection. 2) Based on sensor input, an open-set model is obtained by combining a series of basic models. Combined with a 2D-to-3D object conversion module, 2D and 3D multi-task prediction results are obtained. Through a 2D open-set detection model, 2D object detection bounding boxes, semantic features, and confidence scores are obtained. The semantic features are decoded using a natural language text decoder to obtain corresponding semantic predictions, thus yielding open-set 2D object detection prediction results. The 2D object detection bounding boxes are used as cues, and combined with multi-camera image input through a 2D instance segmentation basic model to obtain 2D instance segmentation prediction results. The pixels segmented from the 2D instances are combined with their point cloud depth or a depth estimation basic model to obtain their 3D coordinates, thus obtaining pseudo-point clouds. These pseudo-point clouds are aggregated to obtain 3D bounding boxes, which correspond one-to-one with the semantic predictions and confidence scores of the 2D detection. The bounding boxes, confidence scores, and semantic predictions together constitute the 3D object detection prediction results. For 2D or 3D classification tasks, cue words are designed, and the results are obtained directly using a large visual-language model. 3) The multi-task prediction results of the domain-specific model and the multi-task prediction results of the open set model are integrated through the integration module to obtain the final result. For 2D object detection and 3D object detection, after aligning the confidence distribution, integration is carried out by dual threshold non-maximum suppression based on semantic feature distance and intersection-union ratio. For 2D instance segmentation, integration is guided by the 2D object detection prediction results. For classification tasks, the category selection is determined based on the confidence. Step 3) specifically includes the following steps: 3-1) Classification task ensemble: determine class selection based on confidence level, and for domain-specific 2D classification prediction results... Open set 2D classification prediction results The prediction result with the highest confidence level is adopted as the final 2D classification prediction result: The confidence level is then updated: if the two predictions are consistent, the confidence level is increased; otherwise, the confidence level is decreased. Finally, the integrated 2D classification prediction results are obtained. The integration process for 3D classification is exactly the same as that for 2D classification. 3-2) Detection task integration, for domain-specific 2D target detection prediction results Open set 2D object detection prediction results After aligning the confidence distribution, a dual threshold nonmaximum suppression based on semantic feature distance and intersection-union ratio is employed for ensemble analysis. Specifically, the confidence scores of domain-specific 2D object detection predictions on a specified dataset are first statistically analyzed. | Distribution, to obtain the mean with standard deviation Then, the confidence level of the open set 2D object detection prediction results is calculated. | The redistribution follows a Gaussian distribution. confidence distribution | Finally, non-maximum suppression (NMS) is applied to the combined set of domain-specific detection prediction results and open set detection prediction results after confidence redistribution. The combined set is as follows: Specifically, for any two detection prediction results in the union set of the detection prediction results, let them be the i-th and j-th, when the intersection-union ratio of the bounding boxes of the two results is... If the score exceeds a specified threshold T, results with lower confidence levels (s) are removed from the set; finally, the integrated 2D object detection prediction results are obtained. The integration of 3D target detection is exactly the same as the integration process of 2D target detection. 3-3) Segmentation task ensemble: For 2D instance segmentation tasks, ensemble is guided by 2D object detection and prediction results, with each 2D segmentation instance result... All of these are related to a 2D object detection prediction result. One-to-one correspondence; therefore, record the object detection prediction results removed by NMS in step 3-2), and transfer the corresponding segmented instances from... Removing the 'm' will yield the integrated 2D instance segmentation prediction result. For the 3D top-view semantic segmentation task, the prediction results are... .
2. The method as described in claim 1, characterized in that, Step 1) specifically includes the following steps: 1-1) Domain-specific model training During training, different multimodal data augmentation strategies are used for different inputs; During training, different optimizers and learning rate schedulers are selected based on the actual training situation of the model; During training, the multi-task loss function is designed as follows: classification and segmentation tasks use a classification loss function; detection tasks use a regression loss function for bounding box prediction and a classification loss function for class prediction; based on the increase or decrease in accuracy of multi-task compared to single-task, the weights of the multi-task loss function are adjusted manually or automatically. 1-2) Perform task prediction inference on the trained domain-specific model, including the following steps: 1-2-1) Sensor input feature extraction: Based on the type of input sensor and the required task, the necessary backbone network and neck network are selected as feature extraction networks. For multi-camera image input, the backbone network is used to extract multi-scale features of the image, and the neck network is used to fuse the multi-scale features of the image, resulting in a 2D image feature sequence. When there is also multi-modal input of radar point cloud, the radar point cloud is first voxelized to obtain feature voxels. Then, based on the needs of the task, the necessary backbone network and neck network are selected to extract 3D features of the radar point cloud, and these features are fused with the 3D features of the image in step 1-2-3). 1-2-2) 2D-3D feature conversion: For the image backbone network, select a suitable 2D to 3D view conversion module, and use a method based on depth estimation and projection according to the depth distribution to project the two-dimensional features to the three-dimensional features, or perform position encoding on the BEV grid and extract features directly from multiple frames and multiple view images through the attention mechanism to achieve 2D to 3D feature conversion. 1-2-3) Temporal fusion of 2D and 3D features: For 2D tasks, the input of the 2D feature temporal fusion network is a sequence of 2D image features, and the output is the fused 2D features; for 3D tasks, the input of the 3D feature temporal fusion network is a sequence of 3D feature maps after 2D-3D feature conversion. If there is radar point cloud input, it also includes the 3D features of the radar point cloud. The output is the fused 3D features. 1-2-4) For each task, select the feature map generated for that task and connect it to the corresponding task's decoding network to predict the results for each task. The corresponding task's decoding network includes: a 2D classification task decoder, a 3D classification task decoder, a 2D object detection task decoder, a 3D object detection task decoder, a 2D instance segmentation task decoder, and a 3D top-view semantic segmentation decoder. This yields the domain-specific results for each task, including: 2D classification prediction results. and 3D classification prediction results ,in and For category prediction, and Confidence level; 2D object detection prediction results | ,in It is the 2D bounding box corresponding to the i-th object. It represents the confidence score corresponding to the i-th object. It is the category corresponding to the i-th object. It represents the predicted number of objects; 3D object detection prediction results. | ,in It is the 3D bounding box corresponding to the i-th object. It represents the confidence score corresponding to the i-th object. It is the category corresponding to the i-th object. This refers to the predicted number of objects; 2D instance segmentation prediction results. | ,in Refers to the mask of the i-th instance. It is the category corresponding to the i-th instance. This refers to the number of predicted instances; the 3D top-down view semantic segmentation prediction result. .
3. The method as described in claim 1, characterized in that, Step 2) specifically includes the following steps: 2-1) Open set 2D object detection prediction: An open set detection model consisting of an image encoder, a 2D open set detector, and a text decoder is used to obtain the prediction results for open set 2D object detection. | ,in It is the 2D bounding box corresponding to the i-th object. It represents the confidence score corresponding to the i-th object. It is the category corresponding to the i-th object. It is the predicted number of objects; 2-2) Open set 2D instance segmentation prediction task: Using the instance segmentation basic model, firstly, multi-camera images are used as input. Then, the bounding boxes of the open set 2D object detection prediction results obtained in step 2-1) are... As a hint, obtain the mask corresponding to each instance. By combining the categories of open set 2D object detection, the open set 2D instance segmentation prediction results are obtained. | The number of instances ; 2-3) Open set 3D object detection prediction: Based on the 2D object detection prediction results and 2D instance segmentation prediction results, a 3D object detection prediction is performed using a 2D-3D object conversion module; this includes the following steps: 2-3-1) Using the basic depth estimation model, depth estimation is performed on the image to obtain the depth estimation result matrix D; for each instance mask in the 2D instance segmentation prediction result. Each pixel in The corresponding depth can be found in the depth estimation results. When radar point cloud input is provided, the point cloud is projected onto the image plane, using... The depth d is obtained by interpolating the depth of the k nearest neighbor point cloud. 2-3-2) For instance masks Each pixel and its depth By using the camera's intrinsic and extrinsic parameter matrices to perform coordinate system transformation, a pseudo-point cloud in the corresponding space is obtained. ; 2-3-3) For a mask corresponding to all pseudo-point clouds, find the smallest volume cuboid containing all point clouds, which is transformed into a 3D minimum directed bounding box problem; use a heuristic search algorithm to approximate the solution and find the parameters of the corresponding 3D bounding box. Alternatively, a learning-based approach can be used, employing a neural network model. This model takes all pseudo-point clouds corresponding to a mask as input, uses PointNet to extract features, and then uses an MLP to predict the parameters of the corresponding 3D bounding box. The final open-set 3D object detection prediction results are as follows: | ,in , ;in It is the 3D bounding box corresponding to the i-th object. It represents the confidence score corresponding to the i-th object. It is the category corresponding to the i-th object. It is the predicted number of objects; 2-4) Open set 2D and 3D classification task prediction: Using a large vision-language model, the desired classification is directly input as the prompt text to obtain the open set 2D classification prediction results. Open set 3D classification prediction results ,in and For category prediction, and , where is the confidence level.
Citation Information
Patent Citations
Human-machine decision logic online verification method for highly automatic driving
CN114675742A
End-to-end multi-mode multi-task automatic driving perception method and device based on long and short time sequence hybrid coding
CN117710917A
