Road test method and system for automatic driving
By using an obstacle detection model connected with multiple neck networks and detection heads in the autonomous driving system, the model is updated to cope with the obstacle edge cases in the road test task, which solves the high cost of data annotation and consumption of computing resources in the existing technology. Large problem, achieving more efficient model updates and detection accuracy.
Patent Information
- Application Number
- CN202410550144.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-06
- Publication Date
- 2024-08-23
AI Technical Summary
Existing autonomous driving road testing methods rely on a large amount of real data collection and annotation, resulting in inaccurate annotation or incomplete data, and model updates require a large amount of computing resources, causing pressure on hardware and energy resources.
Use an obstacle detection model connected with multiple neck networks and detection heads to detect the road environment perception data obtained by the autonomous driving system. The model is updated through the obstacle edge cases in each road test result to reduce the use of computing resources. and improve model performance.
With almost no increase in computational cost, the labeling cost is reduced, the model performance is improved, and the obstacle detection accuracy and model update efficiency of the autonomous driving system under complex road conditions are improved.
Smart Images

Figure CN118535459A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of autonomous driving technology, and in particular to a road testing method and system for autonomous driving. Background Art
[0002] Advanced assisted driving and L3 and above autonomous driving systems require a lot of road testing to verify their performance, adapt to different road conditions, obtain real data, meet regulatory requirements, and discover potential problems. In the actual road environment, various unexpected situations and potential problems may occur, such as sudden obstacles and irregular traffic behaviors, which will pose challenges to the autonomous driving system.
[0003] Currently, the update of the obstacle perception model for road testing still relies on the collection and labeling of a large amount of real data. This process is time-consuming and labor-intensive, and there are problems with inaccurate labeling or incomplete data. At the same time, updating the model requires a lot of computing resources for training and optimization, which puts pressure on hardware and energy resources.
[0004] Therefore, there is an urgent need for a road testing method and system for autonomous driving to solve the above problems. Summary of the invention
[0005] In view of the problems existing in the prior art, the present invention provides a road testing method and system for autonomous driving.
[0006] The present invention provides a road test method for autonomous driving, comprising: acquiring first road environment perception data, wherein the first road environment perception data represents road environment perception data collected by a current road test task;
[0007] Inputting the first road environment perception data into a trained obstacle detection model to obtain an obstacle detection result in a road scene environment corresponding to the current road test task output by the trained obstacle detection model;
[0008] The trained obstacle detection model includes a plurality of neck networks, the neck networks are connected to corresponding detection heads, and each detection head corresponds to a different obstacle feature detection result.
[0009] According to a road test method for autonomous driving provided by the present invention, the trained obstacle detection model includes a backbone network, three neck networks and four detection heads, the three neck networks are respectively a first neck network, a second neck network and a third neck network, and the four detection heads are respectively a first detection head, a second detection head, a third detection head and a fourth detection head, wherein:
[0010] The backbone network is connected to the three neck networks respectively, the backbone network is used to extract features in the road environment perception data, and each neck network performs enhancement processing on the features in the road environment perception data;
[0011] Each of the detection heads makes predictions based on the enhanced features output by the corresponding neck network, wherein the first detection head is used to generate a two-dimensional rectangular box and corresponding type information for the obstacle, and the first detection head is connected to the first neck network; the second detection head is used to generate a three-dimensional rectangular box and corresponding type information for the obstacle, the third detection head is used to predict the azimuth angle of the obstacle, and the second detection head and the third detection head are respectively connected to the second neck network; the fourth detection head is used to mark the grounding point between the vehicle and the ground, and the fourth detection head is connected to the third neck network.
[0012] According to a road test method for autonomous driving provided by the present invention, after inputting the first road environment perception data into a trained obstacle detection model to obtain an obstacle detection result in a road scene environment corresponding to the current road test task output by the trained obstacle detection model, the method further includes:
[0013] Determining that a target obstacle exists in the obstacle detection result in the road scene environment corresponding to the current road test task, acquiring first road obstacle sample image data according to the category information of the target obstacle, wherein the first road obstacle sample image data represents road obstacle sample image data corresponding to a sample obstacle having the same category information as the target obstacle, and the target obstacle represents an obstacle that is not successfully identified in the obstacle detection result or an obstacle for which the obstacle detection result is erroneous;
[0014] Marking the sample obstacles in the first road obstacle sample image data with a two-dimensional rectangular frame and a corresponding type label to obtain a potential obstacle data set;
[0015] According to the potential obstacle data set, training the target neck network in the trained obstacle detection model and the target detection head corresponding to the target neck network to obtain an updated obstacle detection model;
[0016] Acquire second road environment perception data, wherein the second road environment perception data represents the road environment perception data collected by the next road test task;
[0017] The second road environment perception data is input into the updated obstacle detection model to obtain an obstacle detection result in the road scene environment corresponding to the next road detection task output by the updated obstacle detection model.
[0018] According to a road test method for autonomous driving provided by the present invention, the target neck network in the trained obstacle detection model and the target detection head corresponding to the target neck network are trained according to the potential obstacle data set to obtain an updated obstacle detection model, including:
[0019] Determine the first neck network as the target neck network, and determine the first detection head as the target detection head;
[0020] The first neck network and the first detection head in the trained obstacle detection model are trained according to the potential obstacle data set to obtain the updated obstacle detection model.
[0021] According to a road test method for autonomous driving provided by the present invention, the trained obstacle detection model is obtained by training through the following steps:
[0022] Based on a preset road detection training set, pre-training the obstacle detection model to be trained to obtain a pre-trained obstacle detection model, wherein the preset road detection training set includes a first road test training set for training the first detection head to mark a two-dimensional rectangular box, a second road test training set for training the second detection head to mark a three-dimensional rectangular box, a third road test training set for training the third detection head to predict the azimuth angle of obstacles, and a fourth road test training set for training the fourth detection head to predict the ground contact point between the vehicle and the ground;
[0023] Acquire a fifth drive test training set, wherein the sample obstacles marked with two-dimensional rectangular frames in the fifth drive test training set have different category labels from the sample obstacles marked with two-dimensional rectangular frames in the first drive test training set;
[0024] The first neck network and the first detection head in the pre-trained obstacle detection model are trained according to the fifth road test training set to obtain the trained obstacle detection model.
[0025] According to a road test method for autonomous driving provided by the present invention, the method further includes:
[0026] Based on the potential obstacle data set generated in each road test task, the first neck network and the first detection head in the current obstacle detection model are trained, and the weights of the loss functions corresponding to the detection heads are adjusted during the training process, wherein the weight adjustment range of the loss function of the first detection head is 0.35 to 0.75, the weight adjustment range of the loss function of the second detection head is 0.85 to 1.25, the weight adjustment range of the loss function of the third detection head is 0.85 to 1.25, and the weight adjustment range of the loss function of the fourth detection head is 0.35 to 0.5.
[0027] The present invention also provides a road test system for autonomous driving, comprising:
[0028] A drive test data acquisition module, used to acquire first road environment perception data, wherein the first road environment perception data represents the road environment perception data collected by the current drive test task;
[0029] An obstacle detection module, used to input the first road environment perception data into a trained obstacle detection model to obtain an obstacle detection result in a road scene environment corresponding to the current road test task output by the trained obstacle detection model;
[0030] The trained obstacle detection model includes a plurality of neck networks, the neck networks are connected to corresponding detection heads, and each detection head corresponds to a different obstacle feature detection result.
[0031] The present invention also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, a road test method for autonomous driving as described in any one of the above is implemented.
[0032] The present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements any of the above-described road testing methods for autonomous driving.
[0033] The present invention also provides a computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the computer program implements any of the above-described road testing methods for autonomous driving.
[0034] The road test method and system for autonomous driving provided by the present invention use an obstacle detection model including multiple neck networks and neck networks connected to corresponding detection heads to detect road environment perception data acquired by the autonomous driving system, and obtain obstacle detection results in the road scene environment, so that the model can be updated more efficiently for different road test tasks in autonomous driving, and computing resources can be reduced during the update process. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0036] Figure 1 A schematic diagram of a process flow of a road test method for autonomous driving provided by the present invention;
[0037] Figure 2 A schematic diagram of the structure of the improved CenterNet model provided by the present invention;
[0038] Figure 3 A schematic diagram of the structure of a road test system for autonomous driving provided by the present invention;
[0039] Figure 4 This is a schematic structural diagram of an electronic device provided by the present invention. DETAILED DESCRIPTION
[0040] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0041] When facing various situations in road testing, the autonomous driving system needs to be updated quickly and solve the corner cases of road testing in a timely and effective manner, especially in the perception of obstacle detection. For example, in extreme weather conditions, abnormal road signs, road construction and temporary traffic signs, the autonomous driving system needs to be able to accurately identify and understand obstacles in a real-time environment to ensure safe driving and normal road conditions. Therefore, obstacle detection is particularly important for the perception part of the autonomous driving system. Only when the autonomous driving system can reliably detect and correctly respond to various potential obstacles can it ensure the safe operation of the vehicle under various complex road conditions.
[0042] In the existing road test model, model updating still relies on the collection and labeling of a large amount of real data. Updating the model also requires a lot of computing resources for training and optimization, resulting in excessively high data labeling costs and computing resource costs for model updating.
[0043] In view of the problems existing in the prior art, the present invention updates the corresponding neck network and detection head in the improved CenterNet model according to the obstacle edge cases in each road test result, thereby greatly reducing the labeling cost at the cost of almost no increase in computational complexity, thereby improving the model performance and quickly applying it to the next road test task.
[0044] Figure 1 A schematic diagram of a process flow of a road test method for autonomous driving provided by the present invention is shown in FIG. Figure 1 As shown, the present invention provides a road test method for autonomous driving, comprising:
[0045] Step 101: Acquire first road environment perception data, wherein the first road environment perception data represents the road environment perception data collected by the current road test task.
[0046] In the present invention, for the current road test task, perception data about the road environment are collected in real time during the vehicle's driving process. These perception data are provided by various sensor devices, such as lidar, camera, millimeter-wave radar and ultrasonic sensor, among which lidar can provide high-precision distance and three-dimensional space information, camera can capture visual information such as road signs, vehicles and pedestrians, millimeter-wave radar can detect moving objects around the vehicle, ultrasonic sensor can be used for close-range obstacle detection, etc.
[0047] Step 102, inputting the first road environment perception data into a trained obstacle detection model to obtain an obstacle detection result in a road scene environment corresponding to the current road test task output by the trained obstacle detection model;
[0048] The trained obstacle detection model includes a plurality of neck networks, the neck networks are connected to corresponding detection heads, and each detection head corresponds to a different obstacle feature detection result.
[0049] In the present invention, the existing CenterNet3D model is improved to obtain an improved CenterNet model, wherein the structure of the improved CenterNet model is basically divided into three parts: a backbone network (Backbone), a neck network (Neck) and a detection head (Head), wherein the backbone network and the neck network are shared structures, specifically, the backbone network and the neck network use the same weight parameters; further, in the present invention, different detection heads are responsible for detecting different results, including a rotation (azimuth angle) detection head, a two-dimensional detection head (marking a two-dimensional rectangular box and an output type), a three-dimensional detection head (marking a three-dimensional rectangular box and an output type) and a ground control point (GCP) detection head. In the present invention, the improved CenterNet model realizes the learning and representation of different features through multiple neck networks, each neck network is connected to a corresponding detection head, and each detection head is responsible for predicting the obstacle detection results under a specific road test feature.
[0050] Specifically, in the present invention, the first road environment perception data obtained from the sensor and vehicle status data is first preprocessed so as to be input into the trained obstacle detection model, including data standardization, conversion and clipping operations to ensure that the quality and format of the data meet the requirements of the model. The trained obstacle detection model predicts the obstacle conditions under different road test characteristics through multiple detection heads. For example, one detection head may be responsible for predicting obstacles in lidar data, and another may be responsible for predicting obstacles in camera data. Finally, by integrating and analyzing the prediction results of multiple detection heads, the trained obstacle detection model generates obstacle detection results in the road scene environment corresponding to the current road test task, including information such as the location, size, shape and motion state of the obstacle. Through such a process, the obstacle detection model obtained by training based on the improved CenterNet model can effectively extract various road test features from the first road environment perception data, and accurately detect obstacles in the road scene, providing key environmental perception capabilities for the autonomous driving system. In addition, after the training of the azimuth angle detection head, three-dimensional detection head (marked with a three-dimensional rectangular box and output type) and ground point detection head in the improved CenterNet model, as well as the neck networks corresponding to these three detection heads are completed, in the subsequent model update process, only the two-dimensional detection head and its corresponding neck network are retrained, and there is no need to train other detection heads. This allows the obstacle detection model to improve the model update efficiency and reduce the model update cost while ensuring the accuracy of the road test results.
[0051] The road test method for autonomous driving provided by the present invention uses an obstacle detection model including multiple neck networks and neck networks connected to corresponding detection heads to detect road environment perception data acquired by the autonomous driving system, and obtains obstacle detection results in the road scene environment, so that the model can be updated more efficiently for different road test tasks in autonomous driving, and computing resources can be reduced during the update process.
[0052] On the basis of the above embodiment, after inputting the first road environment perception data into the trained obstacle detection model to obtain the obstacle detection result in the road scene environment corresponding to the current road test task output by the trained obstacle detection model, the method further includes:
[0053] After determining that a target obstacle exists in the obstacle detection result in the road scene environment corresponding to the current road test task, first road obstacle sample image data is obtained according to the category information of the target obstacle, wherein the first road obstacle sample image data represents road obstacle sample image data corresponding to a sample obstacle having the same category information as the target obstacle, and the target obstacle represents an obstacle that is not successfully identified in the obstacle detection result or an obstacle for which the obstacle detection result is erroneous.
[0054] In the present invention, the existence of a target obstacle is determined from the obstacle detection results, and its category information is obtained. These category information may include different types of obstacles such as pedestrians, vehicles, bicycles, etc. In some edge cases, the target obstacle is an obstacle that is not successfully identified in the obstacle detection results, or it may be an obstacle that is incorrectly identified in the detection results. For example, in extreme weather conditions, the obstacle is blocked in the image due to fog or heavy rain, and the obstacle cannot be accurately detected in the obstacle detection results, or the obstacle detection results are erroneous due to the distortion caused by the occlusion. Therefore, by obtaining sample obstacle data, the model can be further improved to improve the recognition ability of these target obstacles, thereby enhancing the system's perception and decision-making capabilities in complex road scenes.
[0055] In the present invention, according to the category information of the target obstacle, sample image data matching the target obstacle category is retrieved and obtained from the stored road obstacle sample image data, that is, the first road obstacle sample image data. These sample image data are usually collected and labeled when training the model and are used for model learning and training.
[0056] The sample obstacles in the first road obstacle sample image data are marked with a two-dimensional rectangular frame and a corresponding type label to obtain a potential obstacle data set.
[0057] In the present invention, the position and bounding box of the sample obstacle are marked in each sample image, that is, a two-dimensional rectangular box is marked to select the position of each obstacle. Then, each marked two-dimensional rectangular box is annotated with a type label, and these type labels correspond to the category information of each obstacle, such as pedestrians, vehicles, bicycles, etc.
[0058] After completing the sample obstacle marking and type labeling, these annotation information are sorted and stored to form a potential obstacle dataset, which contains multiple sample images, each of which is marked with the obstacle's location, bounding box and corresponding type label information.
[0059] According to the potential obstacle data set, the target neck network in the trained obstacle detection model and the target detection head corresponding to the target neck network are trained to obtain an updated obstacle detection model.
[0060] In the present invention, the potential obstacle dataset can be preprocessed, including standardizing, scaling, cropping and other operations on the image, as well as encoding and processing the label data to make it suitable for the input and output formats of the model. The potential obstacle dataset is then used to optimize and update the target neck network and target detection head in the obstacle detection model, thereby improving the perception and safety of the autonomous driving system for road obstacles.
[0061] Specifically, the training of the target neck network and the target detection head corresponding to the target neck network in the trained obstacle detection model according to the potential obstacle data set to obtain an updated obstacle detection model includes:
[0062] Determine the first neck network as the target neck network, and determine the first detection head as the target detection head;
[0063] The first neck network and the first detection head in the trained obstacle detection model are trained according to the potential obstacle data set to obtain the updated obstacle detection model.
[0064] In the present invention, after each road test task is completed, it is only necessary to update the corresponding neck network (i.e., the target neck network) and the detection head (i.e., the target detection head) in the obstacle detection model. More specifically, when a pedestrian is falsely detected in the road test task, it is only necessary to update the two-dimensional detection head (i.e., the first detection head) and the neck network corresponding to the two-dimensional detection head (i.e., the first neck network), which greatly reduces the training cost and effectively solves the problem without interfering with other detection heads and neck networks.
[0065] In the present invention, the target neck network and the target detection head are trained using a potential obstacle dataset. The training process includes inputting the dataset into the network for forward propagation, calculating the loss function, and then using the backpropagation algorithm to adjust the network parameters to minimize the loss and improve the model performance. After the training process is completed, the updated obstacle detection model obtained is compared to the road test model in the prior art. The present invention no longer annotates all obstacle information (especially three-dimensional rectangular box annotation). By adding three neck networks to the CenterNet model, the overall number of floating-point operations (GFLOPs) is only increased by 2%, significantly reducing the annotation cost. At the same time, since the two-dimensional detection head and the ground point detection head do not require depth information, the present invention can reduce the depth of the neck network (the neck network parameter amount in the present invention is half of the neck network parameter amount of the existing CenterNet model), and appropriately increase the corresponding neck network parameter amount for the three-dimensional detection head and the azimuth angle (compared with the neck network parameter amount of the existing CenterNet model, the parameter amount is increased by one quarter), thereby reducing the parameter amount in the entire model structure as a whole; and, in the present invention, the weight of the loss function loss is adjusted according to the parameter amount of different neck networks.
[0066] Acquire second road environment perception data, wherein the second road environment perception data represents the road environment perception data collected by the next road test task;
[0067] The second road environment perception data is input into the updated obstacle detection model to obtain an obstacle detection result in the road scene environment corresponding to the next road detection task output by the updated obstacle detection model.
[0068] In the present invention, the collected second road environment perception data is preprocessed to ensure that its format and structure meet the requirements of the model input. Then, the prepared second road environment perception data is input into the updated obstacle detection model, and the model will analyze the input road scene environment and try to identify the obstacles therein. The output obtained by model reasoning is the obstacle detection result, including the position, shape, size and other relevant information of the detected obstacle. In one embodiment, the obtained obstacle detection results are interpreted and evaluated, including checking whether the model successfully identifies all obstacles, the accuracy and robustness of the detection results, etc.
[0069] On the basis of the above embodiment, the trained obstacle detection model includes 1 backbone network, 3 neck networks and 4 detection heads, the 3 neck networks are respectively the first neck network, the second neck network and the third neck network, the 4 detection heads are respectively the first detection head, the second detection head, the third detection head and the fourth detection head, wherein:
[0070] The backbone network is connected to the three neck networks respectively, the backbone network is used to extract features in the road environment perception data, and each neck network performs enhancement processing on the features in the road environment perception data;
[0071] Each of the detection heads makes predictions based on the enhanced features output by the corresponding neck network, wherein the first detection head is used to generate a two-dimensional rectangular box and corresponding type information for the obstacle, and the first detection head is connected to the first neck network; the second detection head is used to generate a three-dimensional rectangular box and corresponding type information for the obstacle, the third detection head is used to predict the azimuth angle of the obstacle, and the second detection head and the third detection head are respectively connected to the second neck network; the fourth detection head is used to mark the grounding point between the vehicle and the ground, and the fourth detection head is connected to the third neck network.
[0072] Figure 2 The structural diagram of the improved CenterNet model provided by the present invention can be referred to Figure 2 As shown, the backbone network is the basic part of the CenterNet model, which is responsible for extracting features from the input point cloud or three-dimensional data, and these features are used for target detection tasks in subsequent processing. In one embodiment, the backbone network can use a pre-trained convolutional neural network (CNN) for feature extraction of input data. The neck network is the part that connects the backbone network and the detection head, and is usually responsible for further processing and enhancing feature representation to improve the performance of the model. In the present invention, the backbone network and the neck network are shared structures, thereby realizing parameter sharing. The detection head is a key part of the CenterNet model, which is responsible for performing target detection tasks based on the extracted features. In the present invention, there are multiple detection heads, each of which is responsible for detecting different types of target attributes, including a first detection head, which is responsible for predicting the direction or orientation of the target; a second detection head, which is responsible for locating the target in a 2D image and predicting its category; a third detection head, which is responsible for locating the target in a 3D space and predicting its category; and a fourth detection head, which is responsible for predicting the grounding point of the target, that is, the point where the vehicle contacts the ground.
[0073] In the present invention, the existing CenterNet model is improved, and the four detection heads connected to the single neck network in the existing model are changed into three independent neck networks respectively connected to the corresponding detection heads, wherein the neck network related to three-dimensional detection (i.e., the second neck network) is respectively connected to the access angle detection head (i.e., the second detection head) and the three-dimensional rectangular frame detection head (i.e., the third detection head), so that the computational amount of the first neck network and the third neck network in the improved CenterNet model is only half of the computational amount of the neck network of the existing CenterNet model, and the computational amount of the second neck network in the improved CenterNet model is only increased by one-fourth of the computational amount of the neck network of the existing CenterNet model, so that the computational amount of the model is greatly reduced.
[0074] Based on the above embodiment, the trained obstacle detection model is obtained by training through the following steps:
[0075] Based on a preset road detection training set, pre-training the obstacle detection model to be trained to obtain a pre-trained obstacle detection model model, wherein the preset road detection training set includes a first road test training set for training the first detection head to mark a two-dimensional rectangular box, a second road test training set for training the second detection head to mark a three-dimensional rectangular box, a third road test training set for training the third detection head to predict the azimuth angle of obstacles, and a fourth road test training set for training the fourth detection head to predict the ground contact point between the vehicle and the ground;
[0076] Acquire a fifth drive test training set, wherein the sample obstacles marked with two-dimensional rectangular frames in the fifth drive test training set have different category labels from the sample obstacles marked with two-dimensional rectangular frames in the first drive test training set;
[0077] The first neck network and the first detection head in the pre-trained obstacle detection model are trained according to the fifth road test training set to obtain the trained obstacle detection model.
[0078] In the present invention, for the training process, by adding a new road test training set (i.e., the fifth road test training set), compared with the previous training results, the sample data in each newly added road test training set only needs to be marked with a two-dimensional rectangular frame. At the same time, for the false detection samples of edge cases in the training process, new sample data is collected for two-dimensional rectangular frame marking, and then these new marked samples are used to train the first neck network and the first detection head in the model again. Since it is no longer necessary to mark all types (such as three-dimensional label data) in each training process, the data labeling cost of the model is greatly reduced. At the same time, the re-training process only trains part of the neck network and part of the detection head, so that the amount of calculation in the training process is also greatly reduced.
[0079] Based on the above embodiment, the method further includes:
[0080] Based on the potential obstacle data set generated in each road test task, the first neck network and the first detection head in the current obstacle detection model are trained, and the weights of the loss functions corresponding to the detection heads are adjusted during the training process, wherein the weight adjustment range of the loss function of the first detection head is 0.35 to 0.75, the weight adjustment range of the loss function of the second detection head is 0.85 to 1.25, the weight adjustment range of the loss function of the third detection head is 0.85 to 1.25, and the weight adjustment range of the loss function of the fourth detection head is 0.35 to 0.5.
[0081] In the present invention, taking the scenario where only the low beam lights are turned on in the road test task, resulting in false detection of pedestrians, as an example, firstly, relevant low beam pedestrian data is collected and annotated. At the same time, when annotating obstacles, only the two-dimensional information needs to be annotated. Compared with annotating the two-dimensional information and the three-dimensional information at the same time, the annotation cost and time cost are reduced by half, and the model performance optimization is more targeted, so that the three-dimensional detection part in the original model is not interfered. In the present invention, a new potential obstacle data set is obtained through the above process, and the model is trained. During the training process, only the first neck network and the first detection head in the model need to be updated. Under the same training environment, compared with the existing model update method, the training cost is reduced by two-thirds.
[0082] Furthermore, in the scenario where pedestrians are misdetected due to only turning on the low beam in the road test task, the improved CenterNet model provided by the present invention, compared with the network structure scheme of the existing CenterNet model, has an increase of more than 3% in all indicators of the 3D detection head while the amount of calculation is only increased by 2%. The total loss function of the model is:
[0083] loss_total=1 / 2*loss_2d+1.25*loss_3d+1.25*loss_rotation+1 / 2*loss_gcps;
[0084] Among them, the weight of the loss function loss corresponding to each detection head can be adjusted based on the parameter ratio of the neck network. In the present invention, for the scene where only the low beam is turned on in the road test task, resulting in false detection of pedestrians, the parameter ratios of each neck network are 0.5, 1.25, 1.25, and 0.5. In the present invention, for different road test environment scenes, the weight ratio of the loss function of each detection head is dynamically adjusted. During the training process, the weights of the loss functions corresponding to different detection heads will be dynamically adjusted. The range of these weight adjustments is based on experiments or previous road tests. By dynamically adjusting the weight of the loss function, the model can better adapt to the contribution of different detection heads during the training process, thereby improving the overall detection performance and generalization ability.
[0085] The road test system for autonomous driving provided by the present invention is described below. The road test system for autonomous driving described below and the road test method for autonomous driving described above can refer to each other.
[0086] Figure 3 The schematic diagram of the structure of the road test system for autonomous driving provided by the present invention is as follows: Figure 3 As shown, the present invention provides a road test system for autonomous driving, including a road test data acquisition module 301 and an obstacle detection module 302, wherein the road test data acquisition module 301 is used to acquire first road environment perception data, wherein the first road environment perception data represents the road environment perception data collected by the current road test task; the obstacle detection module 302 is used to input the first road environment perception data into a trained obstacle detection model to obtain an obstacle detection result in a road scene environment corresponding to the current road test task output by the trained obstacle detection model; wherein the trained obstacle detection model includes a plurality of neck networks, the neck networks are connected to corresponding detection heads, and each of the detection heads corresponds to different obstacle feature detection results.
[0087] In the present invention, for the current road test task, the road test data acquisition module 301 collects perception data about the road environment in real time during the vehicle driving process. These perception data are provided by various sensor devices, such as lidar, camera, millimeter wave radar and ultrasonic sensor, among which lidar can provide high-precision distance and three-dimensional space information, camera can capture visual information such as road signs, vehicles and pedestrians, millimeter wave radar can detect moving objects around the vehicle, ultrasonic sensor can be used for close-range obstacle detection, etc.
[0088] In the present invention, the existing CenterNet3D model is improved to obtain an improved CenterNet model, wherein the structure of the improved CenterNet model is basically divided into three parts: a backbone network (Backbone), a neck network (Neck) and a detection head (Head), wherein the backbone network and the neck network are shared structures, and different detection heads are responsible for detecting different results, including a rotation (azimuth angle) detection head, a two-dimensional detection head (marking a two-dimensional rectangular box and an output type), a three-dimensional detection head (marking a three-dimensional rectangular box and an output type) and a GCP (ground point) detection head. In the present invention, the improved CenterNet model realizes the learning and representation of different features through multiple neck networks, each neck network is connected to a corresponding detection head, and each detection head is responsible for predicting the obstacle detection results under a specific road test feature.
[0089] Furthermore, the obstacle detection module 302 preprocesses the first road environment perception data so as to input it into the trained obstacle detection model, including data standardization, conversion and clipping operations to ensure that the quality and format of the data meet the requirements of the model. Then, the multiple detection heads in the trained obstacle detection model are used to predict the obstacle conditions under different road test characteristics. For example, one detection head may be responsible for predicting obstacles in the laser radar data, and another may be responsible for predicting obstacles in the camera data. Finally, the obstacle detection module 302 integrates and analyzes the prediction results of multiple detection heads, and generates obstacle detection results in the road scene environment corresponding to the current road test task through the trained obstacle detection model, including information such as the position, size, shape and motion state of the obstacle. Through such a process, the obstacle detection model obtained by training based on the improved CenterNet model can effectively extract various road test features from the first road environment perception data, and accurately detect obstacles in the road scene, providing key environmental perception capabilities for the autonomous driving system. In addition, after the training of the azimuth angle detection head, three-dimensional detection head (marked with a three-dimensional rectangular box and output type) and ground point detection head in the improved CenterNet model, as well as the neck networks corresponding to these three detection heads are completed, in the subsequent model update process, only the two-dimensional detection head and its corresponding neck network are retrained, and there is no need to train other detection heads. This ensures that the obstacle detection model can improve the model update efficiency and reduce the model update cost while ensuring the accuracy of the road test results.
[0090] The road test system for autonomous driving provided by the present invention uses an obstacle detection model including multiple neck networks and neck networks connected to corresponding detection heads to detect road environment perception data acquired by the autonomous driving system, and obtains obstacle detection results in the road scene environment, so that the model can be updated more efficiently for different road test tasks in autonomous driving, and computing resources can be reduced during the update process.
[0091] The system provided by the present invention is used to execute the above-mentioned method embodiments. Please refer to the above-mentioned embodiments for the specific processes and detailed contents, which will not be repeated here.
[0092] Figure 4 A schematic diagram of the structure of an electronic device provided by the present invention, such as Figure 4 As shown, the electronic device may include: a processor (Processor) 401, a communication interface (Communications Interface) 402, a memory (Memory) 403 and a communication bus 404, wherein the processor 401, the communication interface 402, and the memory 403 complete mutual communication through the communication bus 404. The processor 401 may call the logic instructions in the memory 403 to execute a road test method for autonomous driving, the method comprising: obtaining first road environment perception data, wherein the first road environment perception data represents the road environment perception data collected by the current road test task; inputting the first road environment perception data into the trained obstacle detection model to obtain the obstacle detection result in the road scene environment corresponding to the current road test task output by the trained obstacle detection model; wherein the trained obstacle detection model includes a plurality of neck networks, the neck networks are connected to corresponding detection heads, and each of the detection heads corresponds to different obstacle feature detection results.
[0093] In addition, the logic instructions in the above-mentioned memory 403 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on such an understanding, the technical solution of the present invention can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0094] On the other hand, the present invention also provides a computer program product, which includes a computer program stored on a non-transitory computer-readable storage medium, and the computer program includes program instructions. When the program instructions are executed by a computer, the computer can execute the road test method for autonomous driving provided by the above-mentioned methods, and the method includes: obtaining first road environment perception data, wherein the first road environment perception data represents the road environment perception data collected by the current road test task; inputting the first road environment perception data into a trained obstacle detection model to obtain an obstacle detection result in the road scene environment corresponding to the current road test task output by the trained obstacle detection model; wherein the trained obstacle detection model includes multiple neck networks, the neck networks are connected to corresponding detection heads, and each of the detection heads corresponds to different obstacle feature detection results.
[0095] On the other hand, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, is implemented to execute the road test method for autonomous driving provided in the above-mentioned embodiments, the method comprising: obtaining first road environment perception data, wherein the first road environment perception data represents the road environment perception data collected by the current road test task; inputting the first road environment perception data into a trained obstacle detection model to obtain an obstacle detection result in the road scene environment corresponding to the current road test task output by the trained obstacle detection model; wherein the trained obstacle detection model comprises a plurality of neck networks, the neck networks are connected to corresponding detection heads, and each of the detection heads corresponds to different obstacle feature detection results.
[0096] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.
[0097] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.
[0098] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A road test method for autonomous driving, characterized in that: include: Acquire first road environment perception data, wherein the first road environment perception data represents the road environment perception data collected by the current road test task; Inputting the first road environment perception data into a trained obstacle detection model to obtain an obstacle detection result in a road scene environment corresponding to the current road test task output by the trained obstacle detection model; The trained obstacle detection model includes a plurality of neck networks, the neck networks are connected to corresponding detection heads, and each detection head corresponds to a different obstacle feature detection result.
2. The road test method for autonomous driving according to claim 1, characterized in that: The trained obstacle detection model includes 1 backbone network, 3 neck networks and 4 detection heads, the 3 neck networks are respectively the first neck network, the second neck network and the third neck network, and the 4 detection heads are respectively the first detection head, the second detection head, the third detection head and the fourth detection head, wherein: The backbone network is connected to the three neck networks respectively, the backbone network is used to extract features in the road environment perception data, and each neck network performs enhancement processing on the features in the road environment perception data; Each of the detection heads makes predictions based on the enhanced features output by the corresponding neck network, wherein the first detection head is used to generate a two-dimensional rectangular box and corresponding type information for the obstacle, and the first detection head is connected to the first neck network; the second detection head is used to generate a three-dimensional rectangular box and corresponding type information for the obstacle, the third detection head is used to predict the azimuth angle of the obstacle, and the second detection head and the third detection head are respectively connected to the second neck network; the fourth detection head is used to mark the grounding point between the vehicle and the ground, and the fourth detection head is connected to the third neck network.
3. The road test method for autonomous driving according to claim 2, characterized in that: After inputting the first road environment perception data into the trained obstacle detection model to obtain the obstacle detection result in the road scene environment corresponding to the current road test task output by the trained obstacle detection model, the method further includes: Determining that a target obstacle exists in the obstacle detection result in the road scene environment corresponding to the current road test task, acquiring first road obstacle sample image data according to the category information of the target obstacle, wherein the first road obstacle sample image data represents road obstacle sample image data corresponding to a sample obstacle having the same category information as the target obstacle, and the target obstacle represents an obstacle that is not successfully identified in the obstacle detection result or an obstacle for which the obstacle detection result is erroneous; Marking the sample obstacles in the first road obstacle sample image data with a two-dimensional rectangular frame and a corresponding type label to obtain a potential obstacle data set; According to the potential obstacle data set, training the target neck network in the trained obstacle detection model and the target detection head corresponding to the target neck network to obtain an updated obstacle detection model; Acquire second road environment perception data, wherein the second road environment perception data represents the road environment perception data collected by the next road test task; The second road environment perception data is input into the updated obstacle detection model to obtain an obstacle detection result in the road scene environment corresponding to the next road detection task output by the updated obstacle detection model.
4. The road test method for autonomous driving according to claim 3, characterized in that: The step of training the target neck network and the target detection head corresponding to the target neck network in the trained obstacle detection model according to the potential obstacle data set to obtain an updated obstacle detection model includes: Determine the first neck network as the target neck network, and determine the first detection head as the target detection head; The first neck network and the first detection head in the trained obstacle detection model are trained according to the potential obstacle data set to obtain the updated obstacle detection model.
5. The road test method for autonomous driving according to claim 3, characterized in that: The trained obstacle detection model is obtained by training in the following steps: Based on a preset road detection training set, pre-training the obstacle detection model to be trained to obtain a pre-trained obstacle detection model, wherein the preset road detection training set includes a first road test training set for training the first detection head to mark a two-dimensional rectangular box, a second road test training set for training the second detection head to mark a three-dimensional rectangular box, a third road test training set for training the third detection head to predict the azimuth angle of obstacles, and a fourth road test training set for training the fourth detection head to predict the ground contact point between the vehicle and the ground; Acquire a fifth drive test training set, wherein the sample obstacles marked with two-dimensional rectangular frames in the fifth drive test training set have different category labels from the sample obstacles marked with two-dimensional rectangular frames in the first drive test training set; The first neck network and the first detection head in the pre-trained obstacle detection model are trained according to the fifth road test training set to obtain the trained obstacle detection model.
6. The road test method for autonomous driving according to claim 4, characterized in that: The method further comprises: Based on the potential obstacle data set generated in each road test task, the first neck network and the first detection head in the current obstacle detection model are trained, and the weights of the loss functions corresponding to the detection heads are adjusted during the training process, wherein the weight adjustment range of the loss function of the first detection head is 0.35 to 0.75, the weight adjustment range of the loss function of the second detection head is 0.85 to 1.25, the weight adjustment range of the loss function of the third detection head is 0.85 to 1.25, and the weight adjustment range of the loss function of the fourth detection head is 0.35 to 0.
5.
7. A road test system for autonomous driving, characterized in that: include: A drive test data acquisition module, used to acquire first road environment perception data, wherein the first road environment perception data represents the road environment perception data collected by the current drive test task; An obstacle detection module, used to input the first road environment perception data into a trained obstacle detection model to obtain an obstacle detection result in a road scene environment corresponding to the current road test task output by the trained obstacle detection model; The trained obstacle detection model includes a plurality of neck networks, the neck networks are connected to corresponding detection heads, and each detection head corresponds to a different obstacle feature detection result.
8. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the computer program, the road testing method for autonomous driving is implemented as described in any one of claims 1 to 6.
9. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the road testing method for autonomous driving as claimed in any one of claims 1 to 6 is implemented.
10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the road testing method for autonomous driving as claimed in any one of claims 1 to 6 is implemented.
Citation Information
Cited By
Obstacle detection method and device, electronic equipment and storage medium
CN118781579A
