Labeling model training method, road labeling method, readable medium and electronic device
By introducing multi-modal information into autonomous driving for semantic supervision, the annotation model training method solves the problem of low data annotation accuracy and efficiency from a top-down perspective, improves the accuracy of the autonomous driving perception algorithm and the accuracy of three-dimensional reconstruction, and reduces Dependence on high-precision maps.
Patent Information
- Application Number
- CN202310923602.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-07-25
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2043-07-25
AI Technical Summary
In autonomous driving scenarios, the accuracy and efficiency of data annotation from a bird's-eye view are low, which affects the accuracy of the perception algorithm and autonomous driving decisions.
An annotation model training method is adopted, including an annotation module, a first supervision module and a second supervision module, and semantic supervision is performed through multi-modal information (such as lidar point cloud) to reduce the convergence difficulty of the annotation model and improve the accuracy of semantic category information. Accuracy, reducing dependence on high-precision maps.
It improves the accuracy of 3D reconstruction results and the training efficiency of annotation models, expands the scope of application, reduces dependence on high-precision maps, and improves the accuracy of autonomous driving perception algorithms.
Smart Images

Figure CN117132980B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of image processing, and in particular to a labeling model training method, a readable medium, a program product and an electronic device, a road labeling method, a readable medium, a program product and an electronic device. Background Art
[0002] Autonomous driving is an important application in the field of artificial intelligence. In the field of autonomous driving, after collecting video streams, laser point clouds and other information about the surrounding environment, the vehicle processes the collected information through the autonomous driving algorithm to output information such as the road structure and obstacle location and size in the surrounding environment to assist the vehicle in making reasonable decisions. However, in the current autonomous driving business, the accuracy of the perception results is heavily dependent on the accuracy of the autonomous driving perception algorithm, and the accuracy of the perception algorithm depends on the amount and diversity of the labeled data.
[0003] At the same time, compared with perception under traditional perspective, perception under overhead perspective has gradually become the mainstream framework of the next generation of autonomous driving perception algorithms. Therefore, in the scenario of autonomous driving, how to improve the accuracy and efficiency of data annotation under overhead perspective has become a technical problem that needs to be solved in the field of autonomous driving. Summary of the invention
[0004] In order to solve the above problems, the present application provides a labeling model training method, a readable medium, a program product and an electronic device, a road labeling method, a readable medium, a program product and an electronic device.
[0005] The annotation model training method is used to train the annotation model, and the annotation model includes an annotation module, a first supervision module and a second supervision module. The annotation model training method includes inputting sample data into the annotation module and obtaining the output result of the annotation module. The sample data includes plane position information corresponding to the valid grid points, and the output result includes spatial position information and semantic category information corresponding to the valid grid points calculated according to the sample data. Then, the spatial position information is input into the first supervision module, and the annotation module is adjusted according to the first adjustment instruction output by the first supervision module, and the semantic category information is input into the second supervision module, and the annotation module is adjusted according to the second adjustment instruction output by the second supervision module.
[0006] The above-mentioned annotation model training method introduces other modal information during the annotation model training process, and implements supervision of the spatial position information corresponding to the valid grid points through the reference position information obtained from the other modal information, and then implements supervision of the semantic category information corresponding to the valid grid points based on the reference category information. First, the reference position information provided by other modal information is a high-precision true value corresponding to the valid grid point. In addition, the first stage of the annotation model training is preliminarily implemented through the spatial position information supervised by the reference position information, and then the second stage of the annotation model training is implemented through the semantic category information supervised by the reference category information. The semantic supervision mode under multimodality is realized through two dimensions, which reduces the convergence difficulty of the annotation model, accelerates the convergence speed of the annotation model, and improves the accuracy of the semantic category information. Finally, this application does not need to rely on high-precision maps, which expands the scope of application.
[0007] The road annotation method includes obtaining data to be annotated, wherein the data to be annotated includes plane position information corresponding to valid grid points; inputting the data to be annotated into an annotation model to obtain an annotation result. The annotation result includes spatial position information and semantic category information corresponding to the valid grid points obtained based on the plane position information. Finally, a three-dimensional reconstruction result is obtained based on the annotation result.
[0008] The above road annotation method uses the above annotation model to perform road annotation, which can improve the accuracy of the three-dimensional reconstruction result.
[0009] The first aspect of the present application provides a method for training a labeling model, which includes a labeling module, a first supervision module, and a second supervision module. The labeling model training method includes inputting sample data into the labeling module. Obtaining the output result of the labeling module, the output result includes spatial position information and semantic category information corresponding to the valid grid point calculated according to the sample data. Inputting the spatial position information into the first supervision module, adjusting the labeling module according to the first adjustment instruction output by the first supervision module, and inputting the semantic category information into the second supervision module, adjusting the labeling module according to the second adjustment instruction output by the second supervision module.
[0010] The annotation model training method in the present application is applicable to the training of the annotation model. The annotation model can be at least partially applied to the data collection vehicle. The annotation model integrated in the data collection vehicle can be used to collect relevant data of the surrounding environment during the automatic driving process of the vehicle, can train the annotation model according to the collected relevant data of the surrounding environment, and can annotate objects in the surrounding environment during the automatic driving process according to the collected relevant data of the surrounding environment when implementing the training of the annotation model.
[0011] Among them, the sample data can be relevant data of the surrounding environment during the automatic driving of the vehicle. The valid grid point refers to the grid point associated with the self-vehicle motion trajectory of the data collection vehicle. Each valid grid point corresponds to a position feature. The position feature refers to the coordinate value of the valid grid point from the perspective of the BEV, which can be an absolute coordinate value in the world coordinate system or a relative coordinate value after the coordinate is normalized in the world coordinate system. This application does not specifically limit this. The plane position information represents the position feature corresponding to the valid grid point in one of the planes. For example, the plane position information is the position feature in this application. The annotation model is a model obtained through training and can be used to complete the road annotation. The annotation model includes an annotation module, a first supervision module and a second supervision module. The annotation module is used to obtain the corresponding spatial position information and semantic category information according to the plane position information. The first supervision module can generate a first adjustment instruction based on the spatial position information, and the first adjustment instruction is used to adjust the annotation module in one dimension. The second supervision module can generate a second adjustment instruction based on the semantic category information, and the second adjustment instruction is used to adjust the annotation module in another dimension, and finally realize the training of the annotation module, that is, finally realize the training of the annotation model.
[0012] In some implementations of the present application, the annotation model includes an annotation device and an MLP network model, and the annotation device includes a high-level supervision unit and a semantic supervision unit. The annotation module corresponds to the MLP network model, the first supervision module corresponds to the high-level supervision unit, and the second supervision module corresponds to the semantic supervision unit.
[0013] The spatial position information refers to the coordinate value of another dimension corresponding to the valid grid point in the coordinate system corresponding to one of the planes. In some implementations, the spatial position information may be a regression height. For example, the spatial position information includes height information or depth information.
[0014] In some of the implementations, the semantic category information may be a top-down semantic category.
[0015] The above-mentioned annotation model training method introduces multimodal information during the annotation model training process, supervises the spatial position information corresponding to the valid grid points, and preliminarily realizes the first stage of training the annotation model. The semantic category information corresponding to the valid grid points is supervised to realize the second stage of training the annotation model. The above-mentioned annotation model training method realizes the semantic supervision mode under multimodality in two dimensions, reduces the convergence difficulty of the annotation model, accelerates the convergence speed of the annotation model, and improves the accuracy of the semantic category information. In addition, this application does not need to rely on high-precision maps, which expands the scope of application.
[0016] In some possible implementations of the first aspect, the annotation model training method further includes the first supervision module generating a first adjustment instruction based on the spatial position information when the first supervision module determines that the spatial position information does not satisfy the first condition. The second supervision module generates a second adjustment instruction based on the semantic category information when the second supervision module determines that the semantic category information does not satisfy the second condition.
[0017] That is, in the implementation of the present application, when the first supervisory module determines that the spatial position information does not meet the first condition, it indicates that the part of the annotation module related to the spatial position information has not yet completed training. In this case, the first supervisory module generates a first adjustment instruction based on the spatial position information, and sends the first adjustment instruction to the annotation module to complete the adjustment of the part of the annotation module related to the spatial position information. Similarly, when the second supervisory module determines that the semantic category information does not meet the second condition, it indicates that the part of the annotation module related to the semantic category information has not yet completed training. In this case, the second supervisory module generates a second adjustment instruction based on the semantic category information, and sends the second adjustment instruction to the annotation module to complete the adjustment of the part of the annotation module related to the semantic category information.
[0018] In some possible implementations of the first aspect above, the annotation model training method also includes the first supervision module generating a first adjustment instruction for adjusting the annotation module when it is determined that the spatial position information does not meet the first condition. After the annotation module is adjusted according to the first adjustment instruction, the sample data is input into the adjusted annotation module, and the adjusted output result of the adjusted annotation module is obtained. Among them, the adjusted output result includes the adjusted spatial position information and the adjusted semantic category information corresponding to the valid grid point calculated according to the sample data. The first supervision module determines whether the adjusted spatial position information meets the first condition, and then determines whether it is necessary to generate a new first adjustment instruction based on the adjusted spatial position information.
[0019] In some possible implementations of the first aspect above, the annotation model training method also includes the second supervision module generating a second adjustment instruction for adjusting the annotation module when it is determined that the semantic category information does not meet the second condition. After the annotation module is adjusted according to the second adjustment instruction, the sample data is adjusted according to the adjusted annotation module, and the adjusted output result of the adjusted annotation module is obtained. Among them, the adjusted output result includes the adjusted spatial position information and the adjusted semantic category information corresponding to the valid grid point calculated according to the sample data. The second supervision module determines whether the adjusted semantic category information meets the second condition, and then determines whether it is necessary to generate a new second adjustment instruction based on the adjusted semantic category information.
[0020] In some possible implementations of the first aspect, in the annotation model training method, the first supervision module determines whether the spatial position information satisfies the first condition. When the first supervision module determines that the spatial position information satisfies the first condition, the second supervision module determines whether the semantic category information satisfies the second condition. When the second supervision module determines that the semantic category information satisfies the second condition, the adjustment of the annotation module is completed, that is, the training of the annotation model is completed.
[0021] In some possible implementations of the first aspect, in the annotation model training method, the first supervision module determines whether the spatial position information satisfies the first condition. When the first supervision module determines that the spatial position information satisfies the first condition, the second supervision module determines whether the semantic category information satisfies the second condition, and the first supervision module determines whether the spatial position information satisfies the third condition. When the second supervision module determines that the semantic category information satisfies the second condition, and the first supervision module determines that the spatial position information satisfies the third condition, the adjustment of the annotation module is completed, that is, the training of the annotation model is completed.
[0022] In some possible implementations of the first aspect, in the above-mentioned annotation model training method, the first supervision module determines whether the spatial position information satisfies the first condition, and the second supervision module determines whether the semantic category information satisfies the second condition. When the first supervision module determines that the spatial position information satisfies the first condition, and the second supervision module determines whether the semantic category information satisfies the second condition. When the first supervision module determines that the spatial position information satisfies the first condition, and the second supervision module determines that the semantic category information satisfies the second condition, the adjustment of the annotation module is completed, that is, the training of the annotation model is completed.
[0023] In some possible implementations of the first aspect above, in the above-mentioned annotation model training method, the first supervisory module determines whether the first condition is satisfied based on the spatial position information, including obtaining reference position information corresponding to the valid grid point. In the case where it is determined that the deviation value between the spatial position information and the reference position information is within a preset distance threshold range, the first supervisory module determines that the spatial position information satisfies the first condition. In the case where it is determined that the deviation value between the spatial position information and the reference position information is outside the preset distance threshold range, the first supervisory module determines that the spatial position information does not satisfy the first condition.
[0024] The reference position information refers to position information used to determine whether the spatial position information satisfies the first condition. For example, the reference position information may be a laser height. The reference position information corresponds to the sample data. In some implementations, the sample data may be data collected during the training process, and the reference position information may be position information obtained by other methods. In some other alternative implementations, the sample data may be historical data, and the reference position information may be position information obtained based on the sample data by other methods.
[0025] That is, in the implementation of the present application, after the first supervisory module obtains the spatial position information, the corresponding reference position information is obtained. Then, the spatial position information is judged whether it meets the first condition based on the deviation between the spatial position information and the reference position information. When the deviation between the spatial position information and the reference position information is small, the first supervisory module judges that the spatial position information meets the first condition. When the deviation between the spatial position information and the reference position information is large, the first supervisory module judges that the spatial position information does not meet the first condition.
[0026] In some possible implementations of the first aspect above, in the annotation model training method in the present application, the comparison method of the spatial position information and the reference position information can be: when the spatial position information and the reference position information are two height values, and the difference between the two height values is within a preset range, the first supervision module determines that the spatial position information meets the first condition; when the difference between the two height values is outside the preset range, the first supervision module determines that the spatial position information does not meet the first condition.
[0027] The above-mentioned annotation model training method introduces reference position information during the annotation model training process, and supervises the spatial position information corresponding to the valid grid points through the reference position information, thereby preliminarily realizing the first stage of training of the annotation model, reducing the convergence difficulty of the annotation model and accelerating the convergence speed of the annotation model.
[0028] In some possible implementations of the first aspect, in the annotation model training method in the present application, a method for determining whether the spatial position information satisfies the first condition includes: determining a projection point of a valid grid point in the first plane based on the plane position information and the spatial position information; obtaining reference position information corresponding to the valid grid point, and determining a reference point of the valid grid point in the first plane based on the reference position information; when it is determined that the distance between the projection point and the reference point is within a preset distance threshold range, determining that the spatial position information satisfies the first condition; when it is determined that the distance between the projection point and the reference point is outside the preset distance threshold range, determining that the spatial position information does not satisfy the first condition.
[0029] In some implementations, the first plane may be a plane under the BEV perspective, or the first plane may also be a plane under the PV perspective. Among them, Bird's Eye View (BEV): Bird's Eye View is also called a bird's-eye view, which refers to a perspective from top to bottom that depicts features in a three-dimensional space into a two-dimensional space. Image Perspective View (PV): Image Perspective View refers to a perspective that depicts features in a three-dimensional space into a two-dimensional space.
[0030] The projection point refers to a point determined in the first plane based on the plane position information and the spatial position information. The reference point refers to a point determined in the first plane based on the reference position information. The preset distance threshold range refers to the distribution range of the distance between the projection point and the reference point when the spatial position information meets the first condition, which is determined based on empirical data. For example, when the spatial position information is the regression height and the reference position information is the reference height, the preset distance threshold range can be the first height deviation range in this application. Among them, the first height deviation range is (0, 0.5).
[0031] That is, in the implementation of the present application, the distance between the projection point and the reference point is within the preset distance threshold range, and the spatial position information meets the first condition; the distance between the projection point and the reference point is outside the preset distance threshold range, and the spatial position information does not meet the first condition.
[0032] In some possible implementations of the first aspect, in the road marking method of the present application, the spatial position information includes height information, that is, the spatial position information is the regression height, and correspondingly, the reference position information is the reference height, such as the laser height mentioned below.
[0033] In some possible implementations of the first aspect, in the annotation model training method in the present application, the method for obtaining the reference position information includes: obtaining a lidar point cloud corresponding to the valid grid points; performing laser three-dimensional reconstruction of the valid grid points based on the lidar point cloud, determining the laser height corresponding to the valid grid points, and using the laser height as the reference position information.
[0034] Among them, the LiDAR point cloud is a collection of point data of the appearance surface of objects in the surrounding environment obtained by LiDAR. The LiDAR point cloud is a set of separate, unrelated data points with defined positions. The laser height is the high-precision true height value corresponding to the valid grid point. The laser height is the height value obtained by the annotation device based on the LiDAR point cloud.
[0035] In the above-mentioned annotation model training method, the laser height provided by the lidar point cloud is a high-precision height true value corresponding to the valid grid point. Therefore, the spatial position information supervised by the reference position information in this application is closer to the height true value of the valid grid point. Even at the beginning of training, most of the valid grid points can be back-projected into the effective range in the first plane, which facilitates effective training and reduces the difficulty of network initialization.
[0036] In some possible implementations of the first aspect, in the annotation model training method in the present application, the spatial position information includes depth information. That is, in the implementation of the present application, the spatial position information may also be depth information, and the plane position information and the depth information may jointly determine the position of the grid point in space.
[0037] In some possible implementations of the first aspect, in the annotation model training method in the present application, a method for determining whether the semantic category information satisfies the second condition includes: obtaining reference category information corresponding to the valid grid points; when it is determined that the similarity between the semantic category information and the reference category information is within a preset similarity threshold range, determining that the semantic category information satisfies the second condition; when it is determined that the similarity between the semantic category information and the reference category information is outside the preset similarity threshold range, determining that the semantic category information does not satisfy the second condition.
[0038] The reference category information refers to category information used to determine whether the semantic category information meets the second condition. In some implementations, the reference category information may be a perspective semantic category. The preset similarity threshold range refers to the distribution range of the similarity between the semantic category information and the reference category information when the semantic category information meets the second condition, determined based on empirical data.
[0039] That is, in the implementation of the present application, when the semantic category information is a top-view semantic category, the reference category information is a perspective semantic category. When the similarity between the top-view semantic category and the perspective semantic category reaches a preset similarity threshold, that is, the similarity between the top-view semantic category and the perspective semantic category is within the preset similarity threshold range, the semantic category information meets the second condition. When the similarity between the top-view semantic category and the perspective semantic category does not reach the preset similarity threshold, that is, the similarity between the top-view semantic category and the perspective semantic category is outside the preset similarity threshold range, the semantic category information does not meet the second condition.
[0040] The above-mentioned annotation model training method introduces reference category information during the annotation model training process, and supervises the semantic category information corresponding to the valid grid points through the reference category information, thereby preliminarily realizing the second stage of training of the annotation model, reducing the convergence difficulty of the annotation model and accelerating the convergence speed of the annotation model.
[0041] In some possible implementations of the first aspect, in the above-mentioned annotation model training method, the second supervision module determines whether the second condition is met based on the semantic category information, including determining the predicted label of the valid grid point in the second plane based on the plane position information and the semantic category information. Determine the reference label of the valid grid point in the second plane based on the plane position information and the reference position information. In the case where it is determined that the similarity between the predicted label and the reference label is within a preset similarity threshold range, the second supervision module determines that the semantic category information meets the second condition. In the case where it is determined that the similarity between the predicted label and the reference label is outside the preset similarity threshold range, the second supervision module determines that the semantic category information does not meet the second condition.
[0042] In some implementations, the second plane may be a plane from a PV perspective.
[0043] In some possible implementations of the first aspect, in the annotation model training method in the present application, the method for obtaining reference category information includes: obtaining a video stream corresponding to a valid grid point, wherein the video stream includes at least one frame of reference image; performing image semantic segmentation on each reference image in the at least one frame of reference image, and determining the semantic category corresponding to each pixel point in each frame of reference image; in each frame of reference image, using the semantic category information corresponding to the pixel point corresponding to the valid grid point as the reference category information corresponding to the valid grid point.
[0044] Among them, the video stream includes at least one frame of reference image, each frame of reference image corresponds to a state (which can be understood as a moment), and each frame of reference image includes an image of the surrounding environment under the corresponding state. At the same time, each frame of reference image has rich semantic information, that is, each frame of reference image can be semantically segmented into multiple semantic categories. Image semantic segmentation combines image classification, target detection, and image segmentation technologies, and mainly performs pixel-level classification on images. Image semantic segmentation can transform images into color blocks with certain semantic information. Image semantic segmentation technology can identify the semantic category of each color block and label each pixel in the image with a corresponding label, thereby realizing the semantic reasoning process from the bottom layer to the high layer, and finally obtaining a segmented image with semantic annotation information of each pixel.
[0045] In some possible implementations of the first aspect, in the annotation model training method in the present application, the method of obtaining valid grid points includes: obtaining the posture of the self-vehicle, and determining the motion trajectory of the self-vehicle based on the posture of the self-vehicle; determining the reconstruction area corresponding to the second plane based on the motion trajectory of the self-vehicle; gridding the reconstruction area to obtain multiple grid points, and screening out grid points related to the motion trajectory of the self-vehicle from the multiple grid points as valid grid points.
[0046] Among them, the vehicle position includes the vehicle position and the vehicle attitude. In some of the implementations, the vehicle position can be characterized by the position characteristics of the vehicle in the world coordinate system. The vehicle attitude can be characterized by attitude coordinates. Specifically, the vehicle attitude is characterized by the inclination angle between the x-axis in the coordinate system where the vehicle is located and the x-axis in the world coordinate system, the pitch angle between the y-axis in the coordinate system where the vehicle is located and the y-axis in the world coordinate system, and the azimuth angle between the z-axis in the coordinate system where the vehicle is located and the z-axis in the world coordinate system. The self-vehicle motion trajectory is the motion trajectory of the vehicle. The second plane is the plane to be reconstructed. The reconstruction area refers to the area associated with the self-vehicle motion trajectory of the vehicle. The reconstruction area can be an area with the road area where the self-vehicle motion trajectory of the vehicle as the center area, and the reconstruction area can also be an area with the self-vehicle motion trajectory of the vehicle as the center line.
[0047] That is, in the implementation of the present application, the labeling device determines the vehicle's own vehicle motion trajectory based on the acquired vehicle posture. Subsequently, the labeling device determines the reconstruction area corresponding to the second plane based on the vehicle's own vehicle motion trajectory. Then, the labeling device grids the reconstructed area to obtain a plurality of grid points. Finally, the labeling device selects the grid points related to the vehicle's own vehicle motion trajectory from the plurality of grid points as valid grid points. The above-mentioned road labeling method reduces unnecessary calculations and shortens the training cycle of the labeling model by screening out valid grid points. For example, the effective reconstruction area in the scene is screened by the vehicle's own vehicle motion trajectory, thereby removing a large number of invalid grid points introduced by the vehicle's turning and other behaviors, greatly improving the training and reasoning efficiency.
[0048] In some possible implementations of the first aspect, in the road marking method in the present application, the first plane is a plane from a BEV perspective, and the second plane is a plane from a PV perspective.
[0049] It can be understood that some embodiments of the present application are used to achieve semantic three-dimensional reconstruction from a BEV perspective.
[0050] In some possible implementations of the first aspect, in the annotation model training method in the present application, the annotation module in the annotation model includes an MLP network model.
[0051] Among them, the MLP network model includes at least one MLP network structure. It can be understood that the annotation device can adjust the relationship between the input data and the output data of the MLP network model by adjusting the parameters in the MLP network structure. The annotation model in this application can also be a model in other forms. Any annotation model that can determine the corresponding spatial position information and semantic category information based on the plane position information is within the protection scope of this application, and this application does not make specific limitations on this.
[0052] In some possible implementations of the first aspect, the annotation model training method in the present application further includes determining whether the spatial position information satisfies the first condition. In the case where the spatial position information satisfies the first condition, determining whether the semantic category information satisfies the second condition, and determining whether the spatial position information satisfies the third condition.
[0053] In some possible implementations of the first aspect, the annotation model training method in the present application also includes determining whether the spatial position information satisfies a first condition, and when determining that the spatial position information satisfies the first condition, determining whether the semantic category information satisfies a second condition, and determining whether the spatial position information satisfies a third condition.
[0054] In some possible implementations of the first aspect, it is determined whether the spatial position information satisfies the first condition, and it is determined whether the semantic category information satisfies the second condition.
[0055] In some possible implementations of the first aspect, the annotation model training method in the present application also includes: when it is determined that the spatial position information does not meet the first condition, generating a first adjustment instruction, and adjusting the annotation model (for example, the annotation module (or MLP network model) in the annotation model) according to the first adjustment instruction; inputting the sample data into the adjusted annotation model, and receiving the spatial position information corresponding to the valid grid point, and determining whether the spatial position information meets the first condition.
[0056] That is, in the implementation of the present application, the labeling device monitors the spatial position information based on the reference position information, and determines whether to generate the first adjustment instruction by judging whether the spatial position information satisfies the first condition. If the spatial position information does not satisfy the first condition, the first adjustment instruction is generated, and if the first adjustment instruction is generated, the labeling model is adjusted according to the first adjustment instruction. The above process is repeated until the spatial position information obtained by the labeling model adjusted according to the first adjustment instruction satisfies the first condition, at which time the adjustment of the first stage of the labeling model is preliminarily completed.
[0057] For example, the annotation device preliminarily determines whether the MLP network model meets the first preset requirement based on whether the difference between the measured height and the reference height at the same valid grid point is within a preset range: if the MLP network model does not meet the first preset requirement, a first adjustment instruction is sent to the MLP network model to adjust the annotation model. The above process is repeated until the measured height obtained by the MLP network model adjusted according to the first adjustment instruction meets the first condition, that is, the first stage of adjustment of the MLP network model is completed.
[0058] In the above-mentioned annotation model training method, when the spatial position information does not meet the first condition, the annotation model is adjusted according to the first adjustment instruction, and the first stage adjustment process of the annotation model is simple. The effective grid point position estimation only depends on the position information of the effective grid point, thereby utilizing the characteristic that the height of the grid point changes slowly relative to the spatial position, and solving the problem of fluctuations in the height estimation of the grid point caused by laser supervision sparseness.
[0059] In some possible implementations of the first aspect, the annotation model training method in the present application also includes: generating a second adjustment instruction when it is determined that the semantic category information does not meet the second condition; adjusting the annotation model according to the second adjustment instruction; inputting the sample data into the adjusted annotation model, and receiving the semantic category information corresponding to the valid grid points, and determining whether the semantic category information meets the second condition.
[0060] That is, in the implementation of the present application, the annotation device supervises the semantic category information based on the reference category information, and determines whether to generate the second adjustment instruction by judging whether the semantic category information satisfies the second condition. If the semantic category information does not satisfy the second condition, a second adjustment instruction is generated, and if the second adjustment instruction is generated, the annotation model is adjusted according to the second adjustment instruction. The above process is repeated until the semantic category information obtained by the annotation model adjusted according to the second adjustment instruction satisfies the second condition, at which time the second stage adjustment of the annotation model is completed.
[0061] For example, the labeling device further determines whether the MLP network model meets the second preset requirement based on whether the similarity between the reference semantic category and the measured semantic category at the same valid grid point reaches a preset similarity threshold: if the MLP network model does not meet the second preset requirement, a second adjustment instruction is sent to the MLP network model to adjust the MLP network model. The above process is repeated until the measured semantic category obtained by the MLP network model adjusted according to the second adjustment instruction meets the second condition, that is, the second stage of adjustment of the MLP network model is completed.
[0062] The above-mentioned annotation model training method adjusts the annotation model according to the second adjustment instruction when the semantic category information does not meet the second condition, thereby reducing the convergence difficulty of the annotation model, accelerating the convergence speed of the annotation model, and simplifying the adjustment process of the second stage of the annotation model.
[0063] In some possible implementations of the first aspect, the annotation model training method in the present application further includes: determining whether the spatial position information satisfies a first condition; if the spatial position information satisfies the first condition, determining whether the semantic category information satisfies a second condition; if the semantic category information satisfies the second condition, implementing the training of the annotation model. The annotation model can then be used to perform semantic 3D reconstruction of valid grid points.
[0064] That is, in the implementation of the present application, the annotation device first determines whether the spatial position information satisfies the first condition, and then determines whether the semantic category information satisfies the second condition when the spatial position information satisfies the first condition. When the annotation device determines that the semantic category information satisfies the second condition, the annotation device uses the annotation model to perform semantic three-dimensional reconstruction on the valid grid points.
[0065] The above-mentioned annotation model training method firstly determines whether the spatial position information satisfies the first condition, and adjusts the annotation model to a preset spatial position outputted by the annotation model, and then adjusts the annotation model when the spatial position outputted by the annotation model satisfies the preset requirement, so as to adjust the annotation model to a preset requirement for the outputted semantic category information. The above-mentioned annotation model training method divides the annotation model training steps into two parts with lower difficulty, thereby reducing the difficulty of adjusting the annotation device.
[0066] In some possible implementations of the first aspect, the annotation model training method in the present application further includes: determining whether the spatial position information satisfies the first condition; when determining that the spatial position information satisfies the first condition, determining whether the semantic category information satisfies the second condition, and determining whether the spatial position information satisfies the third condition; when determining that the semantic category information satisfies the second condition, and determining that the spatial position information satisfies the third condition, implementing the training of the annotation model. The annotation model can then be used to perform semantic 3D reconstruction of valid grid points.
[0067] In some possible implementations of the first aspect, the annotation model training method in the present application further includes: determining whether the spatial position information satisfies the first condition, and determining whether the semantic category information satisfies the second condition; and when determining that the spatial position information satisfies the first condition and the semantic category information satisfies the second condition, implementing the training of the annotation model. The annotation model can then be used to perform semantic 3D reconstruction of valid grid points.
[0068] That is, in the implementation of the present application, the annotation device simultaneously determines whether the spatial position information satisfies the first condition and determines whether the semantic category information satisfies the second condition. When determining whether the spatial position information satisfies the first condition and determining whether the semantic category information satisfies the second condition, the annotation device uses the annotation model to perform semantic three-dimensional reconstruction on the valid grid points.
[0069] In the above-mentioned annotation model training method, the annotation device simultaneously determines whether the spatial position information satisfies the first condition and whether the semantic category information satisfies the second condition, which shortens the judgment cycle and further shortens the training cycle of the annotation model.
[0070] In some possible implementations of the first aspect, the annotation model training method in the present application also includes: performing high-frequency processing on the plane position information to obtain high-frequency position information; inputting the high-frequency position information into the annotation module, and receiving the spatial position information and semantic category information corresponding to the valid grid points output by the annotation module.
[0071] In some possible implementations of the first aspect, the annotation model training method in the present application also includes high-frequency processing of the plane position information through position coding to obtain high-frequency position information.
[0072] In the above-mentioned annotation model training method, position encoding is introduced to solve the differentiation problem that the road height changes smoothly relative to the spatial position while the semantic category has a jump relative to the spatial position.
[0073] The second aspect of the present application provides a labeling model. The labeling model includes a labeling module, a first supervision module and a second supervision module. The labeling module is used to receive sample data and output output results according to the sample data. The sample data includes plane position information, and the output results include spatial position information and semantic category information corresponding to valid grid points calculated according to the sample data.
[0074] In some possible implementations of the second aspect, the labeling module includes an MLP network model.
[0075] The third aspect of the present application provides an electronic device, wherein the electronic device includes a memory for storing instructions, and one or more processors, and when the instructions are executed by the one or more processors, the processors execute the labeling model training method as described in the first aspect and any one of the implementations in the first aspect.
[0076] The fourth aspect of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores instructions, which, when executed on an electronic device, cause the electronic device to execute the annotation model training method as described in any one of the first aspect and the implementation methods in the first aspect.
[0077] The fifth aspect of the present application provides a computer program product, wherein the computer program product includes instructions, which, when executed by one or more processors, are used to implement the annotation model training method as described in the first aspect and any one of the implementations in the first aspect.
[0078] The sixth aspect of the present application provides a road labeling method. Among them, the road labeling method includes obtaining data to be labeled, wherein the labeled data includes plane position information corresponding to valid grid points. The data to be labeled is input into the labeling model to obtain a labeling result, wherein the labeling result includes spatial position information and semantic category information corresponding to the valid grid points obtained based on the plane position information. A three-dimensional reconstruction result is obtained based on the labeling result. Among them, semantic three-dimensional reconstruction refers to assigning semantic categories to each part of the scene on the basis of three-dimensional reconstruction. Semantic category refers to the type of language expression corresponding to the pixel after the image is semantically segmented. Semantic categories include static semantic categories and dynamic semantic categories. In some of the implementations, the semantic three-dimensional reconstruction in the present application is a semantic three-dimensional reconstruction for static semantic categories.
[0079] The road labeling method is associated with some of the schemes in the aforementioned labeling model training method. The data to be labeled corresponds to the sample data. The valid grid points, plane position information, spatial position information and semantic category information are also associated with the corresponding concepts in the labeling model training method, which will not be described in detail here.
[0080] It can be understood that the annotation model in the road annotation method is a model obtained after training based on the annotation model training scheme. However, it is worth noting that the annotation model in the road annotation method does not necessarily install the annotation model obtained after thorough training by the aforementioned annotation model training method. In some implementations, after the annotation model is trained to a certain extent using the annotation model training method, the annotation model can be used for annotation. At the same time, the annotation model can continue to be trained according to the annotation model training method until a thoroughly trained annotation model is obtained. That is, the training process and the annotation process at least partially overlap in time sequence. In some other alternative implementations, after the annotation model is thoroughly trained using the annotation model training method, the thoroughly trained annotation model is used for annotation. That is, the training process and the annotation process do not overlap at all in time sequence.
[0081] In some possible implementation methods of the sixth aspect mentioned above, the road labeling solution can be applied to a data collection vehicle, which is used to collect relevant data of the surrounding environment during the vehicle's automatic driving process, and can label objects in the surrounding environment during the automatic driving process based on the collected relevant data of the surrounding environment.
[0082] In a seventh aspect, the present application provides an electronic device, wherein the electronic device includes a memory for storing instructions, and one or more processors, and when the instructions are executed by the one or more processors, the processors execute the road marking method in any one of the above sixth aspect and the implementation manner in the sixth aspect.
[0083] In an eighth aspect, the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores instructions, which, when executed on an electronic device, cause the electronic device to execute the road marking method in any one of the sixth aspect and the implementation manner in the sixth aspect.
[0084] In a ninth aspect, the present application provides a computer program product, wherein the computer program product includes instructions, and when the instructions are executed by one or more processors, the instructions are used to implement the road marking method in the sixth aspect and any one of the implementations in the sixth aspect. BRIEF DESCRIPTION OF THE DRAWINGS
[0085] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the background technology, the drawings required for use in the embodiments of the present application or the background technology will be described below.
[0086] Figure 1 A schematic diagram showing a data collection vehicle C traveling on a road R from the perspective of a BEV in some technical solutions of the present application is shown;
[0087] Figure 2 A flowchart of a labeling model training scheme and a road labeling scheme in some technical solutions of the present application is shown;
[0088] Figure 3 A schematic diagram of a labeling model training scheme in some technical solutions of the present application is shown;
[0089] Figure 4 A schematic diagram showing whether the MLP network model meets the preset requirements in the annotation model training scheme in some technical solutions of the present application is shown;
[0090] Figure 5 The effect diagram of the road marking scheme in some other technical solutions of the present application is shown;
[0091] FIG6( a) shows a schematic diagram of a labeling model training scheme and a road labeling scheme in some embodiments of the present application;
[0092] FIG6( b ) shows a flow chart of a labeling model training scheme and a road labeling scheme in some embodiments of the present application;
[0093] Figure 7 A system architecture diagram of a labeling device 1 and an MLP network structure 2 in some embodiments of the present application is shown;
[0094] Figure 8 A flowchart of a road marking solution in some embodiments of the present application is shown;
[0095] FIG. 9( a ) shows a reconstruction area R from a BEV perspective in some embodiments of the present application. rFlowchart of the scheme for obtaining the effective grid point G;
[0096] FIG9( b ) shows a top view of a road from the perspective of a BEV in some embodiments of the present application;
[0097] Figure 9(c) shows the S m A partial magnified view of the area;
[0098] FIG9( d ) shows the reconstructed region R in some of the implementations. r Schematic diagram of
[0099] FIG. 9( e ) shows a reconstruction region R in some other alternative implementations. r Schematic diagram of
[0100] FIG. 9( f ) shows some implementations of S in FIG. 9( d ) n Schematic diagram of the valid grid points G corresponding to the region;
[0101] FIG. 10( a ) shows a schematic diagram of a labeling model training scheme and a road labeling scheme in some embodiments of the present application;
[0102] FIG. 10( b ) shows a module interaction diagram of a labeling model training solution and a road labeling solution in some embodiments of the present application;
[0103] FIG. 11( a ) shows a schematic diagram of a labeling model training scheme and a road labeling scheme in some other embodiments of the present application;
[0104] FIG. 11( b ) shows a module interaction diagram of a labeling model training solution and a road labeling solution in some other embodiments of the present application;
[0105] Fig.12 A flowchart showing a technical solution for determining whether the MLP network model 2 meets the second preset requirement in some embodiments of the present application;
[0106] Fig.13 A flowchart of a labeling model training scheme in some embodiments of the present application is shown;
[0107] Fig.14 A flowchart of a road marking solution in some embodiments of the present application is shown;
[0108] Fig.15 A flowchart of a road marking solution in some embodiments of the present application is shown. DETAILED DESCRIPTION
[0109] The illustrative embodiments of the present application include, but are not limited to, a labeling model training method, a road labeling method, a readable medium, a program product, and an electronic device.
[0110] For ease of understanding, the terms involved in this application are first explained:
[0111] Self Driving (SD): Self Driving is a cutting-edge technology that relies on computers and artificial intelligence technology to complete complete, safe and effective driving without human control. In the field of self-driving, the perception system obtains information about the vehicle itself and the surrounding environment, and the processor analyzes and processes the relevant information obtained to make decisions and enable the vehicle to drive normally.
[0112] Bird's Eye View (BEV): Bird's Eye View, also known as the bird's-eye view, refers to the perspective that depicts the features in three-dimensional space into two-dimensional space from top to bottom.
[0113] Image perspective (PV): Image perspective refers to the perspective from which features in three-dimensional space are depicted in two-dimensional space.
[0114] Semantic Segmentation (SS) is a technology that combines image classification, object detection, and image segmentation to classify images at the pixel level.
[0115] Image Semantic Segmentation (ISS) combines image classification, object detection, and image segmentation technologies, and mainly performs pixel-level classification on images. Image semantic segmentation can transform images into color blocks with certain semantic information. Image semantic segmentation technology can identify the semantic category of each color block and label each pixel in the image with a corresponding label, thereby realizing the semantic reasoning process from the bottom layer to the top layer, and finally obtaining a segmented image with semantic labeling information for each pixel.
[0116] Semantic Categories (SC) refer to the type of language expression corresponding to pixels after semantic segmentation of an image. When the vehicle is driving, after the camera or lidar collects relevant data and inputs it into the neural network, the trained algorithm model in the background can classify the collected data into different semantic categories. In the field of autonomous driving, semantic categories can be divided into static semantic categories and dynamic semantic categories according to their own characteristics. Among them, static semantic categories may include but are not limited to any of the following: lane lines (e.g., solid white lines, dashed white lines, single yellow solid lines, dashed yellow lines, and dashed yellow lines, etc.), drivable areas of roads, sidewalks, road arrows (e.g., straight arrows, turn arrows, and U-turn arrows, etc.), speed bumps, railings / barriers / stone piers, poles, roadside buildings, green vegetation, street lights, traffic lights, vehicles parked on the roadside, traffic lights, speed limit signs, etc. Dynamic semantic categories may include but are not limited to any of the following: moving vehicles, people in moving vehicles, and people walking or riding.
[0117] Multi-layer Perceptron (MLP): Multi-layer Perceptron can also be called Artificial Neural Network (ANN). Multi-layer Perceptron includes an input layer, an output layer, and multiple hidden layers between the input layer and the output layer. Artificial neural network connects multiple feature values through a combination of linear and nonlinear, and finally learns and predicts data. The MLP network model includes at least one MLP network structure. Adjusting the parameters in the MLP network structure can adjust the relationship between the input data and the output data of the MLP network model.
[0118] 3D reconstruction: In the field of autonomous driving technology, 3D reconstruction is a technology that restores the 3D spatial information of a scene based on laser perception information and visual perception information. The laser perception information can be a lidar point cloud, the visual perception information can be an image, and the 3D spatial information of the scene can be the 3D position and 3D shape of the scene.
[0119] Semantic 3D reconstruction: also known as 3D semantic reconstruction, which assigns semantic categories to each part of the scene based on 3D reconstruction.
[0120] Neural Radiance Fields (NeRF): The input of the radiation field is a five-dimensional function, including three coordinate dimensions and two angle dimensions. The output of the radiation field is the RGB color value, as shown in formula (1):
[0121] L(x,y,z,θ,Φ)=(r,g,b) (1)
[0122] In formula (1), L is the input function, x, y and z are three coordinate dimensions, θ and Φ are two angle dimensions, and r, g and b are color values.
[0123] The "neuron" in the neural radiation field refers to the neural network. Neural networks can be used to approximate any complex function and can achieve any approximation accuracy. The neural radiation field refers to the use of neural networks to approximate the radiation field.
[0124] Simultaneous Localization And Mapping (SLAM): SLAM is mainly used to solve the positioning and mapping problems of robots when they move in unknown environments. Using SLAM technology, the robot starts from an unknown location in an unknown environment, locates its own position and posture through repeated observations of map features during movement, and then incrementally constructs a map based on its own position, thereby achieving the purpose of simultaneous positioning and mapping.
[0125] Cross-Entropy (CE): It is a commonly used concept in deep learning and is generally used to measure the similarity between two probability distributions. The larger the cross-entropy, the greater the difference between the two probability distributions. Conversely, the smaller the cross-entropy, the smaller the difference between the two probability distributions.
[0126] Mean Square Error (MSE): Mean Square Error refers to the mean of the squares of the differences between the estimated parameter and the true parameter value. MSE can evaluate the degree of data variation. The smaller the MSE value, the better the accuracy of the experimental data described by the prediction model. Among them, MSE can be calculated by formula (2):
[0127]
[0128] In formula (2), MSE is the mean square error between the true value of the parameter and the estimated value of the parameter, N is the number of data, and observed t is the true value of the parameter, predicted t is the parameter estimate.
[0129] Camera intrinsic and extrinsic parameters are parameters determined based on camera calibration. Camera intrinsic parameters refer to parameters related to the camera's own characteristics and will not change due to changes in the external environment. For example, camera intrinsic parameters can be the camera's focal length and pixel size. Camera extrinsic parameters are parameters relative to the world coordinate system. For example, camera extrinsic parameters can be the camera's position, rotation direction, etc.
[0130] The ego vehicle posture includes the vehicle position and vehicle attitude. In some implementations, the vehicle position can be represented by position coordinates (x, y, z), where x represents the coordinate corresponding to the x-axis of the vehicle in the world coordinate system, y represents the coordinate corresponding to the y-axis of the vehicle in the world coordinate system, and z represents the coordinate corresponding to the z-axis of the vehicle in the world coordinate system. n It represents the heading angle of the vehicle. The vehicle posture can be expressed by the posture coordinates (θ x ,θ y ,θ z ) is used to characterize, where θ x is the inclination angle, which represents the angle between the x-axis in the vehicle's coordinate system and the x-axis in the world coordinate system, θ y is the pitch angle, which represents the angle between the y-axis in the vehicle's coordinate system and the y-axis in the world coordinate system, θ z is the azimuth, which represents the angle between the z-axis in the vehicle's coordinate system and the z-axis in the world coordinate system.
[0131] LiDAR (Light Detection and Ranging) is a device used to collect LiDAR point clouds. LiDAR is one of the sensors in the perception system and a new type of active aerial sensor. LiDAR point cloud is also called point cloud data. LiDAR point cloud is a collection of point data on the surface of objects in the surrounding environment obtained by LiDAR. LiDAR point cloud is a group of individual, unrelated data points with defined positions.
[0132] The embodiment of the present application provides a method for training a labeling model, which is used to train a labeling model to obtain a trained labeling model. The embodiment of the present application also provides a road labeling method, which is used to label images corresponding to the BEV perspective according to the trained labeling model to obtain a semantic three-dimensional reconstruction result.
[0133] The present application provides a method for training a labeling model, which can be executed by a labeling model, that is, the labeling model can complete self-training. In some embodiments of the present application, the labeling model training method may include: obtaining training results based on sample data, regressing the training results, and adjusting the labeling model during the regression process to complete the training of the labeling model to obtain a trained labeling model. For example, the sample data includes sample plane position information corresponding to the valid grid points, and the training results include sample spatial position information and sample semantic category information corresponding to the valid grid points calculated based on the sample data (sample plane position information).
[0134] The embodiment of the present application also provides a road labeling method, which can be executed by a trained labeling model (hereinafter referred to as the labeling model for the convenience of description). The labeling model (or the labeling module in the labeling model) can be specifically an electronic device, or the labeling model (or the labeling module in the labeling model) can be built into the electronic device, for example, the labeling model (or the labeling module in the labeling model) is a chip in the electronic device, etc.
[0135] Among them, the electronic device can be various forms of digital computers, for example, servers, blade servers, mainframe computers, and other suitable computers. In addition, the electronic device can also be a terminal device, and the terminal device in this application can be stationary or mobile. The terminal device can include a communication terminal, a vehicle-mounted device, a mobile device, a user terminal, a wireless communication device, a portable terminal, a user agent, a service device or a user device, which is the most peripheral device in the network, and is mainly used for the input of data and the output or display of processing results, etc. It can also be a software client, application program, etc. installed or running on any of the above devices. For example, the terminal device can include but is not limited to any of the following: a laptop computer, a desktop computer, a workbench, a personal digital assistant (Personal Digital Assistant, PDA), a server, a blade server, a mainframe computer, and other suitable computers, handheld devices with wireless communication functions, computing devices, drones, unmanned transport vehicles, vehicle-mounted communication modules, etc.
[0136] In some application scenarios, the annotation model (or the annotation module in the annotation model) can be applied to the data collection vehicle. The following description will be based on the example of the annotation model integrated into the data collection vehicle. The data collection vehicle is used to collect relevant data about the surrounding environment during the vehicle's automatic driving process, and can annotate objects in the surrounding environment during the automatic driving process based on the collected relevant data about the surrounding environment.
[0137] The annotation model training scheme in this application will be described in detail below with reference to the accompanying drawings.
[0138] Figure 1 Schematic diagram showing a data collection vehicle C driving on a road R from the perspective of a BEV in some technical solutions of the present application. Figure 1 As shown, the data collection vehicle C is traveling on the road R, and the self-vehicle motion trajectory of the data collection vehicle C on the road R is T. In the figure, B represents a building, and P represents a fence.
[0139] Among them, the ego vehicle motion trajectory T is the motion trajectory of the data collection vehicle C, as shown in the following figure: Figure 1 As shown, the dashed line data collection vehicle icon is used to represent t 1The position P of vehicle C at the time of data collection 1 , the data collection vehicle icon drawn with solid lines is used to represent t 2 The position P of vehicle C at the time of data collection 2 , and t 1 Time is t 2 At a certain moment before time t, the trajectory T of the vehicle is the data collection vehicle C from t 1 The position at the moment P 1 Drive to t 2 The position at the moment P 2 The trajectory of movement in the process.
[0140] Figure 2 A flowchart of a labeling model training scheme in some technical solutions of the present application is shown. Figure 3 A schematic diagram of the principle of the annotation model training scheme in some technical solutions of the present application is shown. Figure 4 A schematic diagram is shown for determining whether an MLP network model meets preset requirements in a labeling model training scheme in some technical solutions of the present application.
[0141] Combine the following Figures 2 to 4 The annotation model training scheme and the road annotation scheme in some technical solutions of the present application are described in detail. Among them, the annotation model includes an annotation device 1 and an MLP network model 2. Figure 2 As shown, in some technical solutions, the annotation model training solution specifically includes the following steps:
[0142] S201: The labeling device 1 obtains the reconstruction area R from the BEV perspective r , extract the reconstruction area R r The valid grid points G in the , and obtain the position feature L corresponding to each valid grid point G c (x, y).
[0143] Among them, the reconstruction area R r Refers to the area associated with the vehicle motion trajectory T of the data collection vehicle C. Reconstruction area R r It can be an area with the road area where the vehicle motion trajectory T of the data collection vehicle C is located as the center area, and the reconstruction area R r It can also be an area with the data collection vehicle C's own vehicle motion trajectory T as the center line. The valid grid point G refers to the grid point associated with the data collection vehicle C's own vehicle motion trajectory T. Each valid grid point G corresponds to a position feature L c (x, y). Position feature L c(x, y) refers to the coordinate value of the effective grid point G in the BEV perspective, which can be an absolute coordinate value in the world coordinate system or a relative coordinate value after the coordinates in the world coordinate system are normalized. This application does not make specific restrictions on this. In some implementations of this application, the position feature L c (x, y) can be obtained from the position coordinates (x, y, z).
[0144] S202: The labeling device 1 obtains the MLP network model 2.
[0145] In some embodiments of the present application, the MLP network model 2 includes at least one MLP network structure, and the relationship between the input data and the output data of the MLP network model 2 can be adjusted by adjusting the parameters in the MLP network structure.
[0146] It can be understood that the MLP network model 2 obtained by the labeling device 1 can be the initial MLP network model or the adjusted intermediate MLP network model. The MLP network model 2 obtained by the labeling device 1 should be the latest MLP network model in the current state. That is, if the MLP network model is adjusted in the previous step, the MLP network model 2 obtained by the labeling device 1 is the adjusted MLP network model.
[0147] S203: The labeling device 1 labels each valid grid point G according to the position feature L corresponding to the valid grid point G. c (x, y) and MLP network model 2 to obtain the regression height H corresponding to each valid grid point G b and the overlooking semantic category S b .
[0148] Among them, the return height H b It refers to the position feature L corresponding to each grid point G c (x, y) and MLP network model 2 obtain the height value corresponding to each grid point G. The height value can be understood as the height value of the ground corresponding to the valid grid point G position in the above given coordinate system. It can be understood that the regression height H b and position feature L c (x, y) can be used to determine the spatial location of the valid grid point G (in a given coordinate system). b It refers to the position feature L corresponding to each valid grid point G based on the labeling device 1 c (x, y) and the semantic category corresponding to each valid grid point G obtained by MLP network model 2.
[0149] In some embodiments of the present application, the labeling device 1 labels each grid point G corresponding to the position feature L c(x, y) is input into MLP network model 2, and then MLP network model 2 outputs the regression height H corresponding to each grid point G b and the overlooking semantic category S b .
[0150] S204: The labeling device 1 obtains the coverage reconstruction area R under the PV viewing angle r A video stream is provided, wherein the video stream includes at least one frame of reference image I.
[0151] In some embodiments of the present application, the labeling device 1 collects the coverage reconstruction area R under the PV viewing angle. r The video stream includes at least one reference image I, each reference image I corresponds to a state (which can be understood as a moment), and each reference image I includes an image of the surrounding environment in the corresponding state. At the same time, each reference image I has rich semantic information, that is, each reference image I can be semantically segmented into multiple semantic categories.
[0152] S205: The labeling device 1 obtains the perspective semantic category S corresponding to each pixel point in each frame of the reference image I p .
[0153] Among them, the perspective semantic category S p It refers to the semantic category corresponding to each pixel point in each frame of the reference image I obtained after the labeling device 1 performs image semantic segmentation based on each frame of the reference image I in the video stream under the PV perspective.
[0154] In some embodiments of the present application, the reconstruction area R is covered under the PV viewing angle. r The video stream includes at least one frame of reference image I. The annotation device 1 performs semantic 3D reconstruction on the video stream obtained by the video stream to obtain the perspective semantic category S corresponding to each pixel point in each frame of reference image I p For example, the labeling device 1 performs image semantic segmentation on each frame of the reference image I, and obtains the perspective semantic category S corresponding to each pixel point in each frame of the reference image I. p .
[0155] S206: The labeling device 1 labels each pixel in each frame of the reference image I according to the perspective semantic category S p , and the position feature L corresponding to each valid grid point G c (x, y), return height H b and the overlooking semantic category S b , determine whether the MLP network model 2 meets the preset requirements. If the judgment result is no, it means that the MLP network model 2 has not completed training, and enter step S207; if the judgment result is yes, it means that the MLP network model 2 has completed training, and enter step S208.
[0156] In some embodiments of the present application, the marking device 1 is based on the position feature L corresponding to each valid grid point G. c (x, y), return height H b The labeling device 1 projects each valid grid point G to each frame of reference image I according to the camera internal and external parameters, and obtains the projection point corresponding to the valid grid point G in each frame of reference image I. The labeling device 1 labels the top-view semantic category S corresponding to the projection point in each frame of reference image I according to the pixel points in each frame of reference image I. b and perspective semantic category S p The MLP network model 2 is supervised trained to obtain the MLP network model 2 after supervised training.
[0157] In some embodiments of the present application, the method in which the labeling device 1 determines whether the MLP network model 2 meets the preset requirements can be: the labeling device 1 determines the top-view semantic category S corresponding to the projection point in each frame of the reference image I corresponding to each pixel point in each frame of the reference image I b and perspective semantic category S p If the judgment result is that each pixel point in each frame of the reference image I corresponds to the top-view semantic category S corresponding to the projection point in each frame of the reference image I, the similarity of the pixel point in each frame of the reference image I corresponds to the top-view semantic category S corresponding to the projection point in each frame of the reference image I. b and perspective semantic category S p reaches the preset similarity threshold, it means that the MLP network model 2 meets the preset requirements and there is no need to further adjust the MLP network model 2; otherwise, if the judgment result is that the top-view semantic category S corresponding to the projection point in each frame of the reference image I corresponding to each pixel point in each frame of the reference image I b and perspective semantic category S p If the similarity does not reach the preset similarity threshold, it means that the MLP network model 2 does not meet the preset requirements, and it is necessary to continue to adjust the MLP network model 2 so that the MLP network model 2 can meet the preset requirements.
[0158] S207: The labeling device 1 adjusts the MLP network model 2 to obtain the adjusted MLP network model 2.
[0159] In some embodiments of the present application, the MLP network model 2 includes at least one MLP network structure. The labeling device 1 sends an adjustment instruction to the MLP network model 2 to adjust the parameters in the MLP network structure so that the top-view semantic category S corresponding to the valid grid point G generated by the MLP network model 2 is b The perspective semantic category S regressed from semantic 3D reconstruction p The similarity reaches the preset similarity threshold.
[0160] In some embodiments of the present application, after executing S207, return to S202. It is understandable that after the labeling device 1 obtains the adjusted MLP network model 2, return to S202. It is understandable that in the case of entering S202 from S207, the MLP network model 2 obtained by the labeling device 1 in S202 is the adjusted MLP network model 2 in S207.
[0161] S208: The annotation model is updated according to the annotation device 1 and the MLP network model 2, and the updated annotation model is used as the trained annotation model.
[0162] Among them, the annotation model is updated according to the annotation device 1 and the latest MLP network model 2 in the current state obtained by the annotation device 1. That is, after the annotation device 1 updates the MLP network model 2, when it is judged that the updated MLP network model 2 meets the preset requirements, it is judged that the annotation device 1 has completed the effective update of the MLP network model 2. Thereafter, the annotation model is updated according to the annotation device 1 and the updated MLP network model 2 to obtain the trained annotation model.
[0163] The above annotation model training method only considers using the semantic segmentation categories in the image to supervise the regression height H of the effective grid points b and the overlooking semantic category S b , there will be two problems: On the one hand, the network initialization is difficult. At the beginning of the training of MLP network model 2, due to the poor performance of MLP network model 2, the regression height H b The actual height is usually quite different, which results in only a small number of valid grid points G being able to be back-projected to cover the reconstruction area R from the PV perspective at the beginning of training. r It is difficult to achieve effective training within the effective range of the reference image I in the video stream. On the other hand, the MLP network model 2 is difficult to converge. The annotation device 1 only relies on the perspective semantic category S obtained by image semantic segmentation. p For the return height H b It is difficult for supervision to obtain accurate scene spatial location information, which makes it difficult for the network to regress the height H corresponding to the effective grid point G. b Achieve accurate regression.
[0164] After describing the annotation model training scheme in the present application, the road annotation scheme in the present application will be described in detail with reference to the accompanying drawings.
[0165] Figure 2 A flowchart of the road annotation scheme in some technical solutions of the present application is also shown. In some embodiments of the present application, after the annotation model training is completed, the trained annotation model performs semantic 3D reconstruction of the scene from the BEV perspective. Figure 2Describe the road marking scheme in this application, such as Figure 2 As shown, the road labeling scheme includes:
[0166] S209: The trained annotation model performs semantic 3D reconstruction of the scene from the BEV perspective.
[0167] In some embodiments of the present application, when the MLP network model 2 meets the preset requirements, that is, when the supervised training of the MLP network model 2 is completed, the labeling model can be based on the position feature L corresponding to each valid grid point G obtained by the labeling device 1 and the MLP network model 2. c (x, y), return height H b and the overlooking semantic category S b Perform semantic 3D reconstruction of the scene from the BEV perspective.
[0168] That is, when the MLP network model 2 can meet the preset requirements, it means that the previous round of adjustment of the MLP network model 2 by the labeling device 1 has completed the preliminary adjustment of the MLP network model 2. In other words, the MLP network model 2 after the previous round of adjustment can already meet the basic requirements and can be used. Based on this, the regression height H obtained according to the MLP network model 2 after the previous round of adjustment is b and the overlooking semantic category S b It can be used to perform semantic 3D reconstruction of scenes from the BEV perspective.
[0169] In some other embodiments of the present application, when the MLP network model 2 meets the preset requirements, the annotation model can be obtained by the annotation device 1 and the subsequent reconstruction area R of the MLP network model 2. r The corresponding position feature L of each valid grid point G c (x, y), return height H b and the overlooking semantic category S b , and then according to the subsequent reconstruction area R r The corresponding position feature L of each valid grid point G c (x, y), return height H b and the overlooking semantic category S b Perform semantic 3D reconstruction of the scene from the BEV perspective.
[0170] In some implementations of the present application, the marking device 1 obtains the subsequent reconstruction area R under the BEV perspective. r , extract the subsequent reconstruction area R r The valid grid points G in the , and obtain the position feature L corresponding to each valid grid point G c (x, y). The labeling device 1 obtains the MLP network model 2. The labeling device 1 obtains the MLP network model 2 according to the position feature L corresponding to each valid grid point G.c (x, y) and MLP network model 2 to obtain the regression height H corresponding to each valid grid point G b and the overlooking semantic category S b The annotation model is based on the position feature L corresponding to each valid grid point G. c (x, y), return height H b and the overlooking semantic category S b The semantic 3D reconstruction result of the scene from the BEV perspective is obtained.
[0171] In the above-mentioned road labeling method, the network initialization of the labeling model used is difficult, and the MLP network model 2 is difficult to converge, which may lead to a relatively low accuracy of the labeling model, and may further cause a low accuracy of the road labeling method.
[0172] In some other technical solutions, Figure 5 The effect diagram of the road marking scheme in some other technical solutions of the present application is shown. When the marking device 1 obtains the high-precision map of the specified marking area, it can use the laser SLAM method to achieve 3D point cloud reconstruction based on the vehicle posture and each frame of the laser radar point cloud, and project the high-precision map annotation content back to the reconstructed scene, thereby achieving static automatic ground marking in the BEV scene. The specific marking effect is as follows: Figure 5 shown.
[0173] The above road marking method relies on high-precision maps, so it cannot be used in areas where high-precision maps do not exist. At the same time, due to the high cost of high-precision map production, the actual coverage of high-precision maps is very limited, which directly limits the scope of application of this method. Finally, the current high-precision map annotation content can usually only cover some of the annotation needs of autonomous driving services. For example, the roadside and other related information required by autonomous driving services are usually not marked in high-precision maps.
[0174] In order to solve the above problems, the present application provides a method for training a labeling model, which introduces multimodal information (such as lidar point cloud), redesigns the MLP network model, and proposes a multimodal road labeling method from the perspective of BEV. The present application also provides a road labeling method, which is suitable for labeling static features of the labeling model. The labeling model training method and the road labeling method in the present application will be briefly described below in conjunction with the accompanying drawings.
[0175] Figure 6(a) shows a schematic diagram of a labeling model training method and a road labeling solution in some embodiments of the present application. Figure 6(b) shows a flow chart of a labeling model training method and a road labeling solution in some embodiments of the present application.
[0176] In some embodiments of the present application, in combination with FIG. 6(a) and FIG. 6(b), it can be seen that the annotation model training method (corresponding to area A in FIG. 6(a)) includes: the annotation device 1 generates measurement features according to the vehicle posture corresponding to the BEV perspective and the MLP network model 2, wherein the measurement features specifically include the position feature L corresponding to the BEV perspective 1 (x, y), measured height H 1 and measure semantic category S 1 The labeling device 1 can also generate a reference height H according to other modal information (such as a laser radar point cloud). 2 The annotation device 1 can also generate a reference semantic category S according to the video stream corresponding to the area covered by the BEV perspective under the PV perspective and the camera internal and external parameters. 2 .
[0177] The marking device 1 is based on the reference height H 2 For measuring height H 1 That is, the labeling device 1 measures the height H at the same valid grid point G. 1 and reference height H 2 Whether the difference between them is within the preset range is preliminarily judged whether the MLP network model 2 meets the first preset requirement: when the MLP network model 2 does not meet the first preset requirement, a first adjustment instruction is sent to the MLP network model 2 to adjust the MLP network model 2.
[0178] When the MLP network model 2 meets the first preset requirement, the labeling device 1 2 For measuring semantic category S 1 That is, the labeling device 1 is based on the reference semantic category S at the same valid grid point G. 2 and measure semantic category S 1 Whether the similarity between them reaches the preset similarity threshold is further used to determine whether the MLP network model 2 meets the second preset requirement: when the MLP network model 2 does not meet the second preset requirement, a second adjustment instruction is sent to the MLP network model 2 to adjust the MLP network model 2; when the MLP network model 2 meets the second preset requirement, it means that the MLP network model 2 has been trained, and the labeling device 1 can use the MLP network model 2 to perform three-dimensional semantic reconstruction on the image corresponding to the BEV perspective.
[0179] In the above embodiment, in the training process of the MLP network model 2 in the annotation model, other modal information (such as a laser radar point cloud) is introduced, and the reference height H obtained by the other modal information is 2 Realize the measurement height H corresponding to the effective grid point G 1 supervision, that is, the initial training of the first stage of the MLP network model 2, and then based on the reference semantic category S2 Realize the measurement semantic category S corresponding to the valid grid point G 1 Supervision, that is, to realize the second stage training of MLP network model 2.
[0180] It is worth noting that the reference height H provided by other modal information 2 is the high-precision true height value corresponding to the valid grid point G. For example, the laser height H provided by the lidar point cloud l is the high-precision true value of the height corresponding to the effective grid point G. Therefore, this application uses the reference height H 2 Monitored measurement height H 1 Closer to the true value of the effective grid point G height. Even at the beginning of training, most of the effective grid points G can be back-projected into the effective range of the PV image, which facilitates effective training and reduces the difficulty of network initialization. In addition, by referring to the height H 2 Monitored measurement height H 1 , initially implement the first stage training of MLP network model 2, and then refer to the semantic category S 2 The supervised measurement semantic category S 1 , realize the second stage training of MLP network model 2, realize the semantic supervision mode under multimodality through two dimensions, reduce the convergence difficulty of MLP network model 2, accelerate the convergence speed of MLP network model 2, and improve the measurement semantic category S 2 Finally, this application does not need to rely on high-precision maps, which expands the scope of application.
[0181] In some embodiments of the present application, in combination with FIG. 6(a) and FIG. 6(b), it can be seen that the road annotation method (corresponding to area B in FIG. 6(a)) includes: an annotation device 1 generates measurement features according to the vehicle posture corresponding to the BEV perspective and the MLP network model 2, wherein the measurement features specifically include the position feature L corresponding to the BEV perspective 1 (x, y), measured height H 1 and measure semantic category S 1 The labeling device 1 is based on the position feature L corresponding to the BEV perspective. 1 (x, y), measured height H 1 and measure semantic category S 1 Perform 3D semantic reconstruction on the image corresponding to the BEV perspective.
[0182] The following will further describe the annotation model training scheme and the road annotation scheme in the present application in conjunction with the system architecture of the annotation model. Prior to this, the following will first describe the system architecture of the annotation model in some embodiments of the present application in conjunction with the accompanying drawings. Figure 7 The system architecture diagram of the annotation model in some embodiments of the present application is shown. Figure 7As shown, in some embodiments of the present application, the annotation model includes an annotation device 1 and an MLP network model 2.
[0183] The following will be combined Figure 7 Describe the marking device 1 in some embodiments of the present application. Figure 7 As shown, in some embodiments of the present application, the labeling device 1 includes a perception module 10, a pre-processing module 20, a feature generation module 30, a synchronous positioning and map construction module 40, an MLP training module 50 and a BEV feature labeling module 60. The following will describe each module in the labeling device 1 in detail.
[0184] The perception module 10 is a measurement source for perceiving the autonomous driving environment. As the degree of human intervention in autonomous driving decreases, the accuracy, efficiency and comprehensiveness of the vehicle's own information and surrounding environment information obtained by the perception module 10 gradually increase. The perception module 10 can perceive the perception data corresponding to the autonomous driving environment, and can provide the perceived perception data to at least one of the modules such as the pre-processing module 20, the feature generation module 30, the synchronous positioning and map construction module 40, the MLP training module 50, and the BEV feature annotation module 60. Figure 7 The perception module 10 in the labeling device 1 is described in detail.
[0185] In some embodiments of the present application, Figure 7 As shown, the perception module 10 includes but is not limited to at least one of the submodules such as an inertial measurement unit (IMU) 11, a velocity sensor (VS) 12, a camera 13, a position sensor (PS) 14, and a laser radar (LiDAR) 15. The inertial measurement unit 11, the velocity sensor 12, the camera 13, the position sensor 14, and the laser radar 15 will be introduced below.
[0186] Among them, the inertial measurement unit 11 is a device for measuring the three-axis acceleration signal and the three-axis angular velocity signal of the vehicle, and can send the acceleration signal and the angular velocity signal as perception data to the pre-processing module 20. Generally speaking, the inertial measurement unit 11 includes three single-axis accelerometers and three single-axis gyroscopes. Among them, the accelerometer is used to detect the acceleration signal of the vehicle in the independent three-axis of the carrier coordinate system, and the gyroscope is used to detect the angular velocity signal of the carrier relative to the navigation coordinate system. The inertial measurement unit 11 measures the acceleration and angular velocity of the vehicle in three-dimensional space, and uses this to calculate the posture of the vehicle.
[0187] The speed sensor 12 is a device for determining the running speed of the vehicle, and can send a speed signal as sensing data to the pre-processing module 20. In some embodiments of the present application, the speed sensor 12 can be a Hall sensor. The Hall sensor determines the running speed of the vehicle by measuring the number of wheel rotations per unit time.
[0188] The camera 13 is a device for collecting images or video streams of the surrounding environment during the vehicle's driving process. In the present application, the number of cameras 13 can be several, and the present application does not make specific restrictions on this.
[0189] In some implementations, the camera 13 is used to capture a video stream, and can send the captured video stream as perception data to the pre-processing module 20. The video stream includes at least one frame of image, each frame of image corresponds to a state (which can be understood as a moment), and each frame of image includes an image of the surrounding environment captured by the camera 13 in the corresponding state. At the same time, since the resolution of the camera 13 is very high, each frame of image has rich semantic information, that is, the video stream has rich semantic information.
[0190] In addition, the camera 13 can also provide the camera internal and external parameters (i.e., camera intrinsic parameters and camera extrinsic parameters) to the forward processing module 20. Among them, the camera intrinsic parameters are parameters related to the camera's own characteristics, that is, parameters inside the camera. For example, the camera intrinsic parameters may include the focal length and pixel size of the camera, etc. The camera extrinsic parameters are parameters in the world coordinate system, which determine the position and orientation of the camera in a certain three-dimensional space. For example, the camera extrinsic parameters may include the position, rotation direction, etc. of the camera.
[0191] The position sensor 14 is a device for determining the position characteristics of the vehicle in the world coordinate system. The position sensor 14 can send the position characteristics as perception data to the pre-processing module 20. In some embodiments of the present application, the position sensor 14 may include but is not limited to any one of the Global Positioning System (GPS), the Global Navigation Satellite System (GNSS), the Galileo Satellite Navigation System (GSNS) and the BeiDou Navigation Satellite System (BDS), and the present application does not make specific limitations on this.
[0192] The laser radar 15 can collect laser radar point clouds and send the collected laser radar point clouds as perception data to the pre-processing module 20. In general, the laser radar point clouds need to be aligned, colored and generally classified, and effectively processed by CAD or GIS software for 3D modeling, digital terrain model (DTM) creation, vectorization, etc. The point cloud output by the laser radar 15 and the 3D information of the obstacle output by the detection model include 3D position and 3D shape. Among them, the 3D position can be represented by the center point position of the obstacle, and the 3D shape can be represented by the length, width and height of the obstacle.
[0193] After describing the perception module 10 in the labeling device 1, the following will continue to describe the pre-processing module 20 in the labeling device 1. The pre-processing module 20 can receive the perception data collected by the perception module 10, and can pre-process the perception data, and can also send the processed perception data to other modules in the labeling device 1.
[0194] In some embodiments of the present application, Figure 7 As shown, the pre-processing module 20 may include a self-vehicle posture determination unit 21, a self-vehicle posture optimization unit 22 and a camera internal and external parameter correction unit 23 according to specific functions.
[0195] Among them, the self-vehicle posture determination unit 21 can determine the self-vehicle posture of the data collection vehicle according to the acceleration signal, the angular velocity signal and the speed signal. The self-vehicle posture optimization unit 22 is used to optimize the self-vehicle posture of the data collection vehicle. For example, the self-vehicle posture optimization unit 22 optimizes the self-vehicle posture of the data collection vehicle using laser SLAM and / or visual SLAM. The camera internal and external parameter correction unit 23 is used to correct the camera internal parameters and camera external parameters.
[0196] After describing the pre-processing module 20 in the labeling device 1, the feature generation module 30 in the labeling device 1 will be described below. The feature generation module 30 is used to generate measurement features based on the perception data or the pre-processed perception data in combination with the MLP network model 2, and is used to refer to features based on the perception data or the pre-processed perception data.
[0197] In some embodiments of the present application, Figure 7 As shown, the feature generation module 30 includes a position feature generation unit 31, a laser height acquisition unit 32 and an image semantic segmentation unit 33. The position feature generation unit 31, the laser height acquisition unit 32 and the image semantic segmentation unit 33 will be described below.
[0198] The position feature generating unit 31 is used to generate the position feature L corresponding to the effective grid point G based on the image under the BEV perspective. c(x, y). The laser height acquisition unit 32 is used to acquire the corresponding laser height according to the laser point cloud. The image semantic segmentation unit 33 is used to perform semantic segmentation and pre-labeling on multiple frames of images in the video stream under the PV perspective.
[0199] In some embodiments of the present application, Figure 7 As shown, the position feature generating unit 31 may include a motion track acquiring subunit 31a, a reconstruction region determining subunit 31b, a valid grid point extracting subunit 31c and a position feature generating subunit 31d. The motion track acquiring subunit 31a, the reconstruction region determining subunit 31b, the valid grid point extracting subunit 31c and the position feature generating subunit 31d will be described below respectively.
[0200] The motion trajectory acquisition subunit 31a is used to acquire the motion trajectory of the vehicle for data collection. It can be understood that the motion trajectory of the vehicle for data collection is the motion trajectory of the vehicle for data collection determined after the vehicle posture is optimized. For example, the motion trajectory of the vehicle for data collection is a straight line or an arc.
[0201] The reconstruction area determination subunit 31b is used to determine the reconstruction area under the BEV perspective according to the vehicle motion trajectory. In some implementations, the vehicle motion trajectory is a straight line, and the reconstruction area corresponding to the vehicle motion trajectory is a rectangle. In some other alternative implementations, the vehicle motion trajectory is an arc, and the reconstruction area corresponding to the vehicle motion trajectory is an arc-shaped area. In some other alternative implementations, the vehicle motion trajectory is an arc, and the reconstruction area corresponding to the vehicle motion trajectory is a rectangular area covering the arc.
[0202] The effective grid point extraction subunit 31c is used to divide the grid points in the reconstruction area according to the required reconstruction resolution, and to extract the grid points associated with the vehicle motion trajectory from the reconstruction area according to the vehicle motion trajectory. For example, the effective grid point extraction subunit divides the reconstruction area according to 0.01 meters.
[0203] It is understandable that since the image information obtained by the camera can only cover a limited range around the vehicle, if the data collection vehicle has behaviors such as turning, the rectangular reconstruction area will introduce a large number of invalid supervised grid points, greatly reducing the training and reasoning efficiency. Therefore, during specific training and reasoning, only grid points within a limited range of the vehicle's trajectory are selected for training and reasoning, for example, only grid points within 16 meters of the vehicle's trajectory are selected.
[0204] The position feature generation subunit 31d is used to obtain the position feature L corresponding to the valid grid point G. c (x, y), and the position feature L corresponding to the effective grid point G c(x, y) is sent to MLP network model 2, so that MLP network model 2 can calculate the position feature L corresponding to each valid grid point G. c (x, y) Get the regression height H corresponding to each valid grid point G b and the overlooking semantic category S b That is, the measurement feature is the position feature L corresponding to each valid grid point G c (x, y), return height H b and the overlooking semantic category S b .
[0205] After describing the feature generation module 30 in the annotation device 1, the following will continue to describe the synchronous positioning and map construction module 40 in the annotation device 1. The synchronous positioning and map construction module 40 is used to perform semantic three-dimensional reconstruction through synchronous positioning and map construction. The synchronous positioning and map construction module 40 performs semantic three-dimensional reconstruction through laser SLAM and / or visual SLAM.
[0206] After describing the synchronous positioning and map building module 40 in the annotation device 1, the following will continue to describe the MLP training module 50 in the annotation device 1. The MLP training module 50 is used to send adjustment instructions to the MLP network model 2 based on high-level supervision and semantic supervision, thereby completing the training of the MLP network model 2.
[0207] In some embodiments of the present application, Figure 7 As shown, the MLP training module 50 includes a high-level supervision unit 51 and a semantic supervision unit 52.
[0208] Among them, the high-level supervision unit 51 refers to a submodule that completes the supervision of the spatial position of the effective grid point G in a given coordinate system through high-level supervision, thereby preliminarily realizing the first-stage training of the MLP network model 2.
[0209] In some embodiments of the present application, the laser height H corresponding to the effective grid point G given by the reconstructed laser radar point cloud is l Supervise the regression height H of the effective grid point G based on the MLP network model 2 b , to determine whether the MLP network model 2 meets the first preset requirement, and then preliminarily implement the first stage training of the MLP network model 2. However, it is worth noting that due to the sparseness of the reconstructed lidar point cloud, it is impossible to calculate the regression height H corresponding to each valid grid point G. b Provide the corresponding laser height H l , therefore, the laser height H l For the return height H b The height supervision process is only applicable to the presence of laser height H l The effective grid points G are trained.
[0210] The semantic supervision unit 52 refers to a submodule that completes the supervision of the semantic category of the effective grid point G in a given coordinate system through semantic supervision, thereby realizing the second stage training of the MLP network model 2.
[0211] In some embodiments of the present application, Figure 7 As shown, the semantic supervision unit 52 may include a PV-BEV semantic projection subunit 52a and a PV-BEV semantic comparison subunit 52b. b After that, the PV-BEV semantic projection subunit 52a combines the position feature L of the effective grid point G c (x, y), project the coordinate points in the regressed three-dimensional space back to the reference image I space under the PV perspective based on the ego-vehicle posture and the camera internal and external parameters to obtain the corresponding image pixel position. The PV-BEV semantic comparison subunit 52b uses the perspective semantic category S under the PV perspective p The top-view semantic category S corresponding to the valid grid point G b Supervise whether the MLP network model 2 meets the second preset requirement, thereby completing the second stage of training of the MLP network model 2.
[0212] In some other embodiments of the present application, the MLP training module 50 may also include a deep supervision unit (not shown) and a semantic supervision unit (not shown). The deep supervision unit refers to a submodule that completes the supervision of the spatial position of the effective grid point G in a given coordinate system through deep supervision, thereby preliminarily realizing the first stage training of the MLP network model 2. The semantic supervision unit refers to a submodule that completes the supervision of the semantic category of the effective grid point G in a given coordinate system through semantic supervision, thereby realizing the second stage training of the MLP network model 2.
[0213] After describing the MLP training module 50 in the labeling device 1, the following will continue to describe the BEV feature labeling module 60 in the labeling device 1. The BEV feature labeling module 60 is used to perform semantic three-dimensional reconstruction based on the trained MLP network model 2 after the MLP network model 2 completes the first stage of training and the second stage of training, and can output the semantic three-dimensional reconstruction result.
[0214] In some embodiments of the present application, Figure 7 As shown, the annotation device 1 also includes a semantic reconstruction fusion module 70. That is, the annotation device 1 in the present application can also realize functions such as post-processing. The semantic reconstruction fusion module 70 performs fusion based on the semantic 3D reconstruction results of multiple video streams covering the same scene, thereby further improving the accuracy and solving the occlusion problem caused by dynamic people and vehicles in the scene.
[0215] In some embodiments of the present application, the annotation device 1 further includes a BEV vectorization module 80. That is, the annotation device 1 in the present application can also implement post-processing and other functions. The BEV vectorization module 80 obtains a vectorized annotation result through semantic denoising, element instantiation and element vectorization operations based on the fused semantic 3D reconstruction result.
[0216] In some other embodiments of the present application, the annotation device 1 includes a feature generation module 30, a synchronous positioning and map construction module 40, an MLP training module 50 and a BEV feature annotation module 60. That is, the annotation device 1 in the present application is used for pre-processing perception data, generating feature data, training the MLP network model 2 and BEV feature annotation.
[0217] It can be understood that the above-mentioned marking device 1 is only some of the implementation methods in the present application. The marking device 1 in the present application can also be implemented in other forms. For example, the implementation methods obtained by splitting, reorganizing, deleting, adding, etc. of the modules, units, sub-units, etc. of the above-mentioned marking device 1 are also within the protection scope of the present application, and the present application does not make specific limitations on this.
[0218] After introducing the annotation device 1 in the annotation model, Figure 7 Describe the MLP model 2 in the annotation model. Figure 7 As shown, in some embodiments of the present application, the MLP network model 2 includes a position feature extractor 2a, a height regression layer 2b, a position encoding module 2c and a semantic feature fusion module 2d. Among them, the position feature extractor 2a is used to receive the position feature L c (x, y), and can be based on the position feature L c (x, y) to obtain the position feature of a specific dimension. The height regression layer 2b is used to obtain the regression height H based on the position feature of the specific dimension. b The position encoding module 2c is used to encode the position feature L c (x, y) is processed for high frequency to obtain high frequency position features. The semantic feature fusion module 2d is used to fuse the position features of a specific dimension with the high frequency position features to obtain the top view semantic category S b .
[0219] After introducing the system architecture of the annotation device 1 and the MLP network model 2 in the annotation model, the annotation model training scheme and the road annotation scheme in this application will be described in detail in combination with the application scenario.
[0220] Figure 8 A flowchart of a labeling model training scheme in some embodiments of the present application is shown.
[0221] The following will be combined Figure 7 and Figure 8Describe the annotation model training scheme in some embodiments of the present application. Figure 8 As shown, the annotation model training scheme in some embodiments of the present application specifically includes the following steps:
[0222] 1. Measurement feature generation step (corresponding to S in Figure 10(a) below) 1 area)
[0223] The measurement feature refers to a technical feature used for semantic 3D reconstruction. In some embodiments of the present application, the measurement feature includes a position feature L corresponding to each valid grid point G. c (x, y), return height H b and the overlooking semantic category S b It can be understood that in some other embodiments of the present application, the measurement feature may also include other technical features, which are not specifically limited in the present application. For ease of understanding, the following will take the measurement feature as including the position feature L corresponding to each valid grid point G. c (x, y), return height H b and the overlooking semantic category S b This is described as an example and will not be repeated later.
[0224] S801a: The labeling device 1 obtains the reconstruction area R under the BEV perspective r , extract the reconstruction area R r The valid grid points G in the , and obtain the position feature L corresponding to each valid grid point G c (x, y).
[0225] It can be understood that in the process of labeling model training, the reconstruction area R under the BEV perspective obtained by the labeling device 1 r Corresponding to the sample data. The sample data can be the data used to train the annotation model, and is not necessarily the data that the user actually needs for semantic 3D reconstruction. Similarly, the valid grid point G and the position feature L corresponding to the valid grid point G c (x, y) also corresponds to the sample data.
[0226] It can be understood that the characteristic parameters in S801a correspond to the characteristic parameters in S201, and will not be described repeatedly here.
[0227] Combination Figure 7 and Figure 8 It can be seen that in some embodiments of the present application, in the labeling device 1, the position feature generation unit 31 in the feature generation module 30 obtains the reconstruction area R under the BEV perspective r , extract the reconstruction area R r The valid grid points G in the , and obtain the position feature L corresponding to each valid grid point G c (x, y).
[0228] From the above, we can see that Figure 7 and Figure 8 It can be seen that the position feature generation unit 31 may include a motion trajectory acquisition subunit 31a, a reconstruction area determination subunit 31b, a valid grid point extraction subunit 31c and a position feature generation subunit 31d. In some embodiments of the present application, the motion trajectory acquisition subunit 31a acquires the self-vehicle motion trajectory T of the data acquisition vehicle C according to the self-vehicle posture (if there is an optimization step, it can be the optimized self-vehicle posture), and the reconstruction area determination subunit 31b determines the reconstruction area R under the BEV perspective according to the self-vehicle motion trajectory T. r The effective grid point extraction subunit 31c extracts the grid points in the reconstruction area R according to the required reconstruction resolution. r Divide the grid points and reconstruct the area R according to the vehicle motion trajectory T r The grid points associated with the vehicle motion trajectory T are extracted as valid grid points G, and the position feature generation subunit 31d finally generates the position information L determined by the position sensor 14. 0 (x, y) Get the position feature L corresponding to the valid grid point G c (x, y). Wherein, the position information L 0 (x, y) may be a reference feature corresponding to the acquisition vehicle C determined by the position sensor 14 .
[0229] In some embodiments of the present application, the position feature L c (x, y) is the absolute coordinate in the world coordinate system, wherein the absolute coordinate in the world coordinate system may be determined by the position sensor 14 .
[0230] In some other embodiments of the present application, the position feature L c (x, y) is the relative coordinate in the given coordinate system, wherein the absolute coordinate in the given coordinate system may be determined by the position sensor 14. In some implementations, after the labeling device 1 obtains the absolute coordinates corresponding to all valid grid points G in the world coordinate system, the absolute coordinates corresponding to all valid grid points G in the world coordinate system are normalized to obtain the position features L corresponding to all valid grid points G in the given coordinate system. c (x, y). The position feature L in the above embodiment c (x, y) is the data obtained after normalization, so subsequent processing can be simplified.
[0231] The above annotation model training method uses the vehicle motion trajectory T to screen the effective reconstruction area R in the scene r , removing a large number of invalid grid points introduced by behaviors such as vehicle turning, greatly improving the training efficiency and inference efficiency of MLP network model 2.
[0232] In addition, in some embodiments of the present application, before S801a, the perception module 10 in the labeling device 1 perceives the perception data of the surrounding environment of the data collection vehicle C: the inertial measurement unit 11 obtains the three-axis acceleration signal a and the three-axis angular velocity signal w of the data collection vehicle C, the speed sensor 12 obtains the speed signal v of the data collection vehicle, the camera 13 obtains the top view from the BEV's perspective and the internal and external parameters of the camera, and the position sensor 14 obtains the absolute coordinates of the data collection vehicle in the world coordinate system.
[0233] In addition, in some embodiments of the present application, before S801a, in the labeling device 1, the self-vehicle posture determination unit 21 in the pre-processing module 20 pre-processes the three-axis acceleration signal a, the three-axis angular velocity signal w and the velocity signal v in the above-mentioned perception data to obtain the self-vehicle posture of the data collection vehicle C. The self-vehicle posture optimization unit 22 is used to optimize the obtained self-vehicle posture to obtain the optimized self-vehicle posture. The camera internal and external parameter correction unit 23 is used to correct the camera internal and external parameters in the perception data to obtain the corrected camera internal and external parameters.
[0234] The following will introduce one of the labeling devices 1 to obtain the reconstruction area R under the BEV perspective. r FIG9( a) shows a reconstruction area R under the BEV perspective in some embodiments of the present application. r 9(a), in some embodiments of the present application, the labeling device 1 obtains the reconstruction area R under the BEV perspective. r The technical solution for obtaining the effective grid point G in the grid specifically comprises the following steps:
[0235] S901: The labeling device 1 obtains the vehicle motion trajectory T of the data collection vehicle C from the perspective of the BEV.
[0236] FIG9( b ) shows a top view of a road from the perspective of a BEV in some embodiments of the present application. Figure 7 As shown in FIG9(b), in some implementations, the inertial measurement unit 11 obtains the three-axis acceleration signal a and the three-axis angular velocity signal w of the data acquisition vehicle C, and the speed sensor 12 obtains the speed signal v of the data acquisition vehicle C. The self-vehicle posture determination unit 21 can determine the self-vehicle posture of the data acquisition vehicle C according to the three-axis acceleration signal a, the three-axis angular velocity signal w and the speed signal v. The self-vehicle posture optimization unit 22 optimizes the self-vehicle posture of the data acquisition vehicle C to obtain the optimized self-vehicle posture. The motion trajectory acquisition subunit 31a obtains the self-vehicle motion trajectory T of the data acquisition vehicle C according to the self-vehicle posture of the data acquisition vehicle C (or, if there is an optimization step, the optimized self-vehicle posture).
[0237] S902: The labeling device 1 determines the reconstruction area R from the BEV perspective according to the acquired vehicle motion trajectory T r .
[0238] In some embodiments of the present application, the reconstruction area determination subunit 31b in the position feature generation unit 31 determines the reconstruction area R under the BEV perspective according to the vehicle motion trajectory T. r .
[0239] Figure 9(c) shows the S m FIG9( d ) shows a partial enlarged view of the reconstructed region R in some of the implementations. r In some implementations, as shown in FIG9( d ), the reconstruction area determination subunit 31 b determines an area within a preset distance range from the self-vehicle motion trajectory T according to the acquired self-vehicle motion trajectory T, and uses the determined area as the reconstruction area R under the BEV perspective. r That is, reconstruct the region R r It can also be a preset area with the motion trajectory T of the data collection vehicle C as the center line. For example, the reconstruction area R r It is the area within 16 meters of the vehicle's motion trajectory T.
[0240] FIG. 9( e ) shows a reconstruction region R in some other alternative implementations. r In some other alternative implementations, as shown in FIG9( e), the reconstruction area determination subunit 31 b determines the lane where the data acquisition vehicle C is located according to the acquired vehicle motion trajectory T, and then uses the area within the preset distance range of the determined lane as the reconstruction area R from the BEV perspective. r That is, reconstruct the region R r It may be an area related to the road where the vehicle motion trajectory T of the data collection vehicle C is located.
[0241] In some alternative implementations, the reconstruction area determination subunit 31b determines the lane where the data collection vehicle C is located according to the acquired vehicle motion trajectory T, and uses the area where the determined lane is located as the reconstruction area R under the BEV perspective. r That is, reconstruct the region R r It may be the road area where the motion trajectory of the data collection vehicle C is located.
[0242] In some alternative implementations, the reconstruction region determination subunit 31b determines the circumscribed matrix of the vehicle motion trajectory T in the global coordinate system according to the acquired vehicle motion trajectory T as the reconstruction region R r .
[0243] S903: The labeling device 1 obtains the reconstruction area R r Perform grid point division to obtain effective grid points G.
[0244] For ease of description and understanding, the following will use the reconstructed region R in FIG. 9( d ) as an example. r S n The extraction scheme of effective grid points G in the present application is described by taking the region as an example. FIG9(f) shows S in FIG9(d) in some of the implementations. n Schematic diagram of the effective grid points G corresponding to the region. As shown in Figure 9(f), the dark gray grid points are S n The valid grid point G corresponding to the region, and each valid grid point G corresponds to a location feature L c (x, y).
[0245] In some embodiments of the present application, the effective grid point extraction subunit 31c in the position feature generation unit 31 obtains the reconstruction area R r Divide the grid points and reconstruct the area R r All covered grid points are regarded as valid grid points G.
[0246] In some other embodiments, the present application also provides another marking device 1 to obtain the reconstruction area R under the BEV perspective r In some other embodiments of the present application, the motion trajectory acquisition subunit 31a acquires the vehicle motion trajectory T of the data acquisition vehicle C, and the reconstruction area determination subunit 31b determines the reconstruction area R under the BEV perspective according to the acquired vehicle motion trajectory T. r , where the reconstruction area R r Cover the vehicle motion trajectory T. The effective grid point extraction subunit 31c obtains the reconstruction area R r It can be understood that the grid points obtained by the grid point division of the effective grid point extraction subunit 31c can be grid points related to the vehicle motion trajectory T or grid points unrelated to the vehicle motion trajectory T. The effective grid point extraction subunit 31c selects effective grid points G from the divided grid points.
[0247] S802a: The labeling device 1 obtains the MLP network model 2.
[0248] Among them, the MLP network model 2 obtained by the labeling device 1 can be the initial MLP network model or the adjusted intermediate MLP network model. It can be understood that the MLP network model 2 obtained by the labeling device 1 should be the latest MLP network model in the current state. That is, if the MLP network model 2 is adjusted in the previous step, the MLP network model 2 obtained by the labeling device 1 is the adjusted MLP network model.
[0249] FIG10(a) shows a schematic diagram of a labeling model training scheme in some embodiments of the present application, and FIG10(b) shows a module interaction diagram of a labeling model training scheme in some embodiments of the present application. Figure 7 As shown in Figures 10(a) and 10(b), the MLP network model 2 includes a position feature extractor 2a, a height regression layer 2b, a position encoding module 2c and a semantic feature fusion module 2d.
[0250] In some implementations, the position feature extractor 2a is a first MLP structure, and the first MLP structure includes 8 layers in total. In the first MLP structure, the first layer extracts the 2D position feature (i.e., the position feature L c (x, y)) is upgraded to 256-dimensional features, and the last 7 layers are fully connected and maintain the dimension of 256-dimensional features unchanged. At the same time, in the first MLP structure, each layer is connected to the relu layer, and a skip connection structure is designed. Among them, the skip connection structure is used to directly concatenate the input features with the i-th layer fully connected output as the input of the i+1-th layer fully connected. For example, the skip connection structure directly concatenates the input features with the 4th layer fully connected output as the input of the 5th layer fully connected.
[0251] In some implementations, the height regression layer 2b is a fully connected layer used to reduce the feature dimension from 256 dimensions to 1 dimension so as to be able to regress the regression height H corresponding to the valid grid point G b .
[0252] In some implementations, the position encoding module 2c is based on the position feature L corresponding to the valid grid point G. c (x, y), position encoding (PE) is performed through sin function and / or cos function to increase the 2D position feature (i.e. position feature (x, y)) to 42 dimensions. Position encoding refers to mapping the original low-dimensional position feature to a high-dimensional position feature through a high-frequency function, so that the position feature carries more high-frequency information.
[0253] In some implementations, the semantic feature fusion module 2d is a second MLP structure, and the second MLP structure includes 17 layers in total. In the second MLP structure, the first layer converts the 298-dimensional features obtained by the position feature extractor 2a and the 42-dimensional features obtained by the position encoding module 2c into 256-dimensional features, and the next 15 layers are fully connected and maintain the 256-dimensional feature dimension unchanged. The last layer is fully connected to convert the 256-dimensional features into the top-view semantic category S bAt the same time, in the second MLP structure, each fully connected layer is connected to a relu layer, and a skip connection structure is designed. The skip connection structure is used to directly concatenate the input features with the fully connected output of the i-th layer as the input of the i+1-th fully connected layer. For example, the skip connection structure concatenates the input features with the fully connected output of the 4th layer as the input of the 5th fully connected layer. For another example, the skip connection structure concatenates the output of the 4th layer with the output of the 8th layer as the input of the 9th layer. For another example, the skip connection structure concatenates the output of the 8th layer with the output of the 12th layer as the input of the 13th layer.
[0254] FIG11(a) shows a schematic diagram of a labeling model training scheme in some other embodiments of the present application, and FIG11(b) shows a module interaction diagram of a labeling model training scheme in some other embodiments of the present application. Figure 7 As shown in FIG. 11(a) and FIG. 11(b), the MLP network model 2 includes a position feature extractor 2a, a height regression layer 2b, and a semantic feature regression module 2e. The position feature extractor 2a in this embodiment is the same as the position feature extractor 2a in the previous embodiment, and the height regression layer 2b in this embodiment is the same as the height regression layer 2b in the previous embodiment, and will not be described repeatedly here. The semantic feature regression module 2e is used to obtain the top-view semantic category S according to the position feature of a specific dimension. b .
[0255] In some other embodiments of the present application, the MLP network model 2 includes a position feature extractor and a regression module. The position feature extractor in this embodiment is the same as the position feature extractor 2a in the previous embodiment, and the regression module is used to obtain the regression height H according to the position feature of a specific dimension. b and the overlooking semantic category S b In some implementations, the regression module may be similar to the semantic feature regression module 2b in the previous embodiment, that is, the regression module is a second MLP structure.
[0256] It can be understood that the above-mentioned MLP network model 2 is only some implementation methods in this application. The MLP network model 2 in this application can also be implemented in other forms, and this application does not make specific limitations on this.
[0257] S803a: The labeling device 1 labels each valid grid point G according to the position feature L corresponding to the c (x, y) and MLP network model 2 to obtain the regression height H corresponding to each valid grid point G b and the overlooking semantic category S b .
[0258] In some embodiments of the present application, as shown in FIG. 10( a ), 1As shown in the region, in the labeling device 1, the position feature generation subunit 31d in the position feature generation unit 31 generates the position feature L corresponding to each valid grid point G. c (x, y) is input into the MLP network model 2 to obtain the regression height H corresponding to each valid grid point G b and the overlooking semantic category S b .
[0259] In some embodiments of the present application, as shown in FIG. 10( a ), 1 As shown in the area, the position feature generating subunit 31d in the position feature generating unit 31 converts the position feature L c (x, y) is input into the position feature extractor 2a to obtain the position feature of a specific dimension. Subsequently, the position feature extractor 2a inputs the position feature of the specific dimension into the height regression layer 2b to obtain the regression height H b After obtaining the position feature of a specific dimension, the position feature extractor 2a inputs the position feature of the specific dimension into the semantic feature fusion module 2d. At the same time, the position feature generation subunit 31d in the position feature generation unit 31 converts the position feature L c (x, y) is input to the position encoding module 2c, and the position feature L c (x, y) is processed for high frequency to obtain high frequency position features. Then the position encoding module 2c inputs the high frequency position features to the semantic feature fusion module 2d. The semantic feature fusion module 2d obtains the top view semantic category S according to the position features of the specific dimension and the high frequency position features. b That is, after the position feature extractor 2a inputs the position feature of a specific dimension into the semantic feature fusion module 2d, and the position encoding module 2c inputs the high-frequency position feature into the semantic feature fusion module 2d, the semantic feature fusion module 2d concatenates the position feature of the specific dimension with the high-frequency position feature and transforms it to obtain the top-view semantic category S corresponding to the effective grid point G b .
[0260] The above embodiment introduces position encoding and designs a multi-head MLP network to regress the effective grid point height and semantic category respectively, which solves the differentiation problem that the road height changes smoothly relative to the spatial position while the semantic category has a jump relative to the spatial position.
[0261] 2. Laser height generation step (corresponding to S in FIG. 10( a ) below) 2 area)
[0262] S801b: The labeling device 1 obtains the coverage reconstruction area R r LiDAR point cloud.
[0263] In some of the implementations, the laser radar 15 can directly acquire high-precision point cloud data by integrating a position and orientation system (POS) and a laser rangefinder.
[0264] In some embodiments of the present application, as shown in FIG. 10( a ) and FIG. 10( b ), in the labeling device 1 , the laser radar 15 of the perception module 10 acquires the coverage reconstruction area R r LiDAR point cloud.
[0265] S802b: The labeling device 1 determines the corresponding laser height H corresponding to each valid grid point G according to the laser radar point cloud. l .
[0266] Among them, the laser height H l It is the height value obtained by the labeling device 1 based on the laser radar point cloud.
[0267] In some embodiments of the present application, as shown in FIG. 10( a ), 2 As shown in the area, in the labeling device 1, the laser height acquisition unit 32 reconstructs the laser result according to the laser radar point cloud and determines the laser height H corresponding to each valid grid point G l .
[0268] 3. The first training step of MLP network model 2 (corresponding to S in Figure 10(a) below) 3 area)
[0269] In the labeling device 1, the height supervision unit 51 in the MLP training module 50 is based on the laser height H corresponding to the acquired effective grid point G. l And the regression height H corresponding to the effective grid point G by the MSE loss function b After supervision, the MLP network model 2 after supervised training is obtained.
[0270] S804: The marking device 1 is based on the laser height H corresponding to each effective grid point G. l , and the position feature L corresponding to each valid grid point G c (x, y) and the return height H b , determine whether the MLP network model 2 meets the first preset requirement. If the determination result is no, proceed to step S805; if the determination result is yes, proceed to step S806a and / or step S806b.
[0271] In some embodiments of the present application, as shown in FIG. 10( a ), 3 As shown in the area, the height supervision unit 51 determines the regression height H corresponding to the valid grid point G b Laser height H corresponding to the effective grid point G lThe deviation value between , is used to determine whether the MLP network model 2 meets the first preset requirement. When the height supervision unit 51 determines the regression height H corresponding to the valid grid point G b Laser height H corresponding to the effective grid point G l When the difference between the two is within the first height deviation range, the MLP network model 2 meets the first preset requirement; when the height supervision unit 51 determines the regression height H corresponding to the valid grid point G b Laser height H corresponding to the effective grid point G l When the difference between the values is within the first height deviation range, the MLP network model 2 does not meet the first preset requirement, and the height supervision unit 51 sends a first adjustment instruction to the MLP network model 2 to adjust the MLP network model 2 and preliminarily implement the first stage training of the MLP network model 2. The first height deviation range can be an empirical value set according to historical data, for example, the first height deviation range is (0, 0.5).
[0272] In some implementations, the method by which the labeling device 1 determines whether the MLP network model 2 meets the first preset requirement may be to calculate the regression height H corresponding to the effective grid point G. b The laser height H corresponding to the effective grid point G l Whether the deviation value between them is within the first height deviation range. If the judgment result is that the regression height H corresponding to the valid grid point G b The laser height H corresponding to the effective grid point G l If the deviation value between is within the first height deviation range, it means that the MLP network model 2 meets the first preset requirement; otherwise, if the judgment result is that the regression height H corresponding to the valid grid point G b The laser height H corresponding to the effective grid point G l If the deviation value between them is outside the first height deviation range, it means that the MLP network model 2 does not meet the first preset requirement, and it is necessary to continue to adjust the MLP network model 2 so that the MLP network model 2 can meet the first preset requirement.
[0273] In some other alternative implementations, the method in which the labeling device 1 determines whether the MLP network model 2 meets the first preset requirement may be to calculate the regression height H corresponding to the effective grid point G. b The laser height H corresponding to the effective grid point G l Project to the preset plane to determine whether the deviation between the two projection points is within the first height deviation range. c (x, y) and the return height H b Determine the projection point, the position feature L corresponding to the effective grid point G c (x, y) and laser height H lDetermine the reference point. If the judgment result is that the deviation value between the projection point and the reference point is within the first height deviation range, it means that the MLP network model 2 meets the first preset requirement; otherwise, if the judgment result is that the deviation value between the projection point and the reference point is outside the first height deviation range, it means that the MLP network model 2 does not meet the first preset requirement, and it is necessary to continue to adjust the MLP network model 2 so that the MLP network model 2 can meet the first preset requirement.
[0274] The preset plane may be a plane under the BEV perspective or a plane under the PV perspective.
[0275] S805: The labeling device 1 adjusts the MLP network model 2.
[0276] In some embodiments of the present application, as shown in FIG10( a), the height supervision unit 51 in the labeling device 1 sends a first adjustment instruction to the MLP network model 2. The MLP network model 2 adjusts the parameters in the position feature extractor 2a according to the first adjustment instruction so that the regression height H obtained by the MLP network model 2 is b With laser height H l The difference between them is within the height deviation range.
[0277] In some other embodiments of the present application, the height supervision unit 51 in the labeling device 1 sends a first adjustment instruction to the MLP network model 2. The MLP network model 2 adjusts the parameters in the position feature extractor 2a and the parameters in the height regression layer 2b according to the first adjustment instruction, so that the regression height H obtained by the MLP network model 2 b With laser height H l The difference between them is within the height deviation range.
[0278] 4. Perspective semantic category generation step (corresponding to S in Figure 10(a) 4 area)
[0279] S801c: The labeling device 1 obtains the coverage reconstruction area R under the PV viewing angle r A video stream is provided, wherein the video stream includes at least one frame of reference image I.
[0280] In some embodiments of the present application, in the labeling device 1, the camera 13 in the perception module 10 collects the coverage reconstruction area R under the PV perspective. r The video stream includes at least one frame of reference image I, each frame of reference image I corresponds to a state (which can be understood as a moment), and each frame of reference image I includes an image of the surrounding environment captured by the camera 13 in the corresponding state. At the same time, since the resolution of the camera 13 is very high, each frame of reference image I has rich semantic information, and each frame of reference image I includes a variety of semantic categories.
[0281] S802c: The labeling device 1 obtains the perspective semantic category S corresponding to each pixel point in each frame of the reference image I p .
[0282] In some embodiments of the present application, as shown in FIG. 10( a ), 4 As shown in the region, in the labeling device 1, the image semantic segmentation unit 33 performs image semantic segmentation on each frame of the reference image I to obtain the perspective semantic category S corresponding to each pixel in each frame of the reference image I p .
[0283] 5. The second training step of MLP network model 2 (corresponding to S in Figure 10(a) 5 area)
[0284] S806a: The labeling device 1 labels each pixel in each frame of the reference image I according to the perspective semantic category S p , and the position feature L corresponding to each valid grid point G c (x, y) and the return height H b , determine whether the MLP network model 2 meets the second preset requirement. If the judgment result is no, return to step S807; if the judgment result is yes, enter step S808.
[0285] In some embodiments of the present application, as shown in FIG. 10( a ), 5 As shown in the region, in the labeling device 1, the semantic supervision unit 52 in the MLP training module 50 obtains the perspective semantic category S corresponding to the valid grid point G p and MSE loss function for the top-view semantic category S corresponding to the effective grid point G b The supervised training MLP network model 2 is obtained. That is, the semantic supervision unit 52 determines the perspective semantic category S corresponding to the valid grid point G. p The top-view semantic category S corresponding to the valid grid point G b Whether the similarity is within the similarity threshold range is used to determine whether the MLP network model 2 meets the second preset requirement, and when the MLP network model 2 does not meet the second preset requirement, a second adjustment instruction is sent to the MLP network model 2 to adjust the MLP network model 2.
[0286] In some implementations, the semantic supervision unit 52 may include a PV-BEV semantic projection subunit 52a and a PV-BEV semantic comparison subunit 52b. After obtaining the height corresponding to the effective grid point G, the PV-BEV semantic projection subunit 52a combines the vehicle posture and the camera internal and external parameters to calculate the height of the effective grid point G according to the position feature L c (x, y), projecting the coordinate point in the regressed three-dimensional space back to the reference image I space to obtain the position of the projection point corresponding to the pixel point in the reference image I. The PV-BEV semantic comparison subunit 52b uses the perspective semantic category S under the PV perspectivep The top-view semantic category S corresponding to the valid grid point G b Supervise whether the MLP network model 2 meets the second preset requirement, thereby completing the second stage of training of the MLP network model 2.
[0287] In addition, the present application also provides a technical solution for determining whether the MLP network model 2 meets the second preset requirement. Fig.12 The flowchart of the technical solution for determining whether the MLP network model 2 meets the second preset requirement in some embodiments of the present application is shown. Fig.12 It can be seen that in some embodiments of the present application, the judgment scheme of whether the MLP network model 2 meets the second preset requirement specifically includes the following steps:
[0288] S1201: The labeling device 1 labels each valid grid point G corresponding to the position feature L c (x, y) and the return height H b Projected onto each frame of the reference image I, the predicted label is obtained. As shown in Figures 10(a) and 10(b), in the annotation device 1, the PV-BEV semantic projection subunit 52a projects the position feature L corresponding to each valid grid point G c (x, y) and the return height H b Projected onto each frame of the reference image I, the predicted label is obtained. The predicted label can be c (x, y) and the return height H b The corresponding top-down semantic category S b .
[0289] S1202: the labeling device 1 labels each pixel in each frame of the reference image I according to the perspective semantic category S p Generate reference labels. As shown in Figures 10(a) and 10(b), the PV-BEV semantic projection subunit 52a generates reference labels according to the perspective semantic category S corresponding to each pixel in each frame of the reference image I. p Generate reference labels.
[0290] S1203: The labeling device 1 determines whether the MLP network model 2 meets the second preset requirement based on the predicted label and the reference label. In some embodiments of the present application, as shown in FIG. 10(a) and FIG. 10(b), in the labeling device 1, the PV-BEV semantic comparison subunit 52b determines whether the MLP network model 2 meets the second preset requirement by comparing the predicted label and the reference label. In some implementations, the PV-BEV semantic comparison subunit uses cross entropy to supervise the semantic category of the three-dimensional space point.
[0291] In some embodiments of the present application, in the annotation device 1, the PV-BEV semantic projection subunit 52a is based on the position feature L corresponding to each valid grid point G.c (x, y), return height H b Each valid grid point G is projected onto each frame of reference image I by using the camera internal and external parameters, and the projection point corresponding to the valid grid point G in each frame of reference image I is obtained. In the annotation device 1, the PV-BEV semantic comparison subunit 52b calculates the top-view semantic category S corresponding to the projection point in each frame of reference image I according to the pixel points in each frame of reference image I. b and perspective semantic category S p The second stage of supervised training is performed on the MLP network model 2 to obtain the MLP network model 2 after supervised training.
[0292] In some embodiments of the present application, the method by which the labeling device 1 determines whether the MLP network model 2 meets the second preset requirement can be that each pixel point in each frame of the reference image I corresponds to the top-view semantic category S corresponding to the projection point in each frame of the reference image I b and perspective semantic category S p If the judgment result is that each pixel point in each frame of reference image I corresponds to the top-view semantic category S corresponding to the projection point in each frame of reference image I b and perspective semantic category S p If the same, it means that the MLP network model 2 meets the preset requirements; otherwise, if the judgment result is that each pixel point in each frame of the reference image I corresponds to the top-view semantic category S corresponding to the projection point in each frame of the reference image I b and perspective semantic category S p If they are different, it means that MLP network model 2 does not meet the preset requirements, and it is necessary to continue to adjust MLP network model 2 so that MLP network model 2 can meet the second preset requirements.
[0293] S807: The labeling device 1 adjusts the MLP network model 2.
[0294] In some embodiments of the present application, as shown in FIG. 10( a) and FIG. 10( b), the semantic supervision unit 52 in the labeling device 1 sends a second adjustment instruction to the MLP network model 2. The MLP network model 2 adjusts the parameters in the position feature extractor 2a according to the second adjustment instruction so that the top-view semantic category S obtained by the MLP network model 2 b and perspective semantic category S p Whether the similarity reaches a similarity threshold. The similarity threshold may be an empirical value set according to historical data, for example, the similarity threshold is 0.7.
[0295] In some other embodiments of the present application, the semantic supervision unit 52 in the labeling device 1 sends a second adjustment instruction to the MLP network model 2. The MLP network model 2 adjusts the parameters in the position feature extractor 2a and the parameters in the semantic feature fusion module 2d according to the second adjustment instruction, so that the top-view semantic category S obtained by the MLP network model 2 b and perspective semantic category S p The similarity reaches the similarity threshold.
[0296] 6. The third training step of MLP network model 2 (corresponding to S in Figure 10(a) 3 area)
[0297] In the labeling device 1, the height supervision unit 51 in the MLP training module 50 is based on the laser height H corresponding to the acquired effective grid point G. l And the regression height H corresponding to the effective grid point G by the MSE loss function b After supervision, the MLP network model 2 after supervised training is obtained.
[0298] S806b: The marking device 1 is based on the laser height H corresponding to each effective grid point G. l , and the position feature L corresponding to each valid grid point G c (x, y) and the return height H b , determine whether the MLP network model 2 meets the third preset requirement.
[0299] In some embodiments of the present application, as shown in FIG. 10( a ), 3 As shown in the area, the height supervision unit 51 determines the regression height H corresponding to the valid grid point G b Laser height H corresponding to the effective grid point G l The deviation value between , is used to determine whether the MLP network model 2 meets the third preset requirement. When the height supervision unit 51 determines the regression height H corresponding to the valid grid point G b Laser height H corresponding to the effective grid point G l When the difference between the two is within the second height deviation range, the MLP network model 2 meets the third preset requirement; when the height supervision unit 51 determines the regression height H corresponding to the valid grid point G b Laser height H corresponding to the effective grid point G l When the difference between the values of θ and θ is outside the second height deviation range, the MLP network model 2 does not meet the third preset requirement, and the height supervision unit 51 sends a third adjustment instruction to the MLP network model 2 to adjust the MLP network model 2 and preliminarily implement the third stage training of the MLP network model 2. The second height deviation range may be an empirical value set according to historical data, for example, the second height deviation range is (0, 0.2).
[0300] In some implementations, the method by which the labeling device 1 determines whether the MLP network model 2 meets the third preset requirement may be to calculate the regression height H corresponding to the valid grid point G. b The laser height H corresponding to the effective grid point G l Whether the deviation value between them is within the second height deviation range. If the judgment result is that the regression height H corresponding to the valid grid point G b The laser height H corresponding to the effective grid point G l If the deviation value between is within the second height deviation range, it means that the MLP network model 2 meets the third preset requirement; otherwise, if the judgment result is that the regression height H corresponding to the valid grid point G b The laser height H corresponding to the effective grid point G l If the deviation value between them is outside the second height deviation range, it means that the MLP network model 2 does not meet the third preset requirement, and it is necessary to continue to adjust the MLP network model 2 so that the MLP network model 2 can meet the third preset requirement.
[0301] S809: The labeling device 1 adjusts the MLP network model 2.
[0302] In some embodiments of the present application, as shown in FIG10( a), the height supervision unit 51 in the labeling device 1 sends a third adjustment instruction to the MLP network model 2. The MLP network model 2 adjusts the parameters in the position feature extractor 2a according to the third adjustment instruction so that the regression height H obtained by the MLP network model 2 is b With laser height H l The difference between them is within the second height deviation range.
[0303] In some other embodiments of the present application, the height supervision unit 51 in the labeling device 1 sends a third adjustment instruction to the MLP network model 2. The MLP network model 2 adjusts the parameters in the position feature extractor 2a and the parameters in the height regression layer 2b according to the first adjustment instruction, so that the regression height H obtained by the MLP network model 2 is b With laser height H l The difference between them is within the second height deviation range.
[0304] 7. The labeling model completes the training step based on the labeling device 1 and the adjusted MLP network model 2
[0305] S808: The labeling model is trained according to the labeling device 1 and the MLP network model 2.
[0306] In some embodiments of the present application, the labeling model updates the MLP network model 2 therein to the MLP network model 2 in the latest state, and the updated labeling model is the trained labeling model.
[0307] After introducing the training scheme of the annotation model, the road annotation scheme in this application will be described in detail in combination with application scenarios.
[0308] In some embodiments of the present application, when the MLP network model 2 meets the preset requirements, the labeling device 1 can obtain the position feature L corresponding to each valid grid point G obtained by the MLP network model 2. c (x, y), return height H b and the overlooking semantic category S b Perform scene semantic 3D reconstruction from the BEV perspective.
[0309] In some other embodiments of the present application, when the MLP network model 2 meets the preset requirements, the labeling device 1 can obtain the subsequent reconstruction area R through the MLP network model 2. r The corresponding position feature L of each valid grid point G c (x, y), return height H b and the overlooking semantic category S b , and then according to the subsequent reconstruction area R r The corresponding position feature L of each valid grid point G c (x, y), return height H b and the overlooking semantic category S b Perform scene semantic 3D reconstruction from the BEV perspective.
[0310] Fig.13 A flowchart of a labeling model training scheme in some embodiments of the present application is shown. Fig.13 As shown, the annotation model training scheme in some embodiments of the present application specifically includes the following steps:
[0311] The steps of scene semantic 3D reconstruction from the BEV perspective (corresponding to S in Figure 10(a)) 6 area)
[0312] S1301: The labeling device 1 obtains the reconstruction area R from the BEV perspective r , extract the reconstruction area R r The valid grid points G in the , and obtain the position feature L corresponding to each valid grid point G c (x, y).
[0313] It can be understood that in the process of road marking, the reconstructed area R under the BEV perspective obtained by the marking device 1 r It corresponds to the data to be annotated collected by the data collection vehicle C during the annotation process. Similarly, the valid grid point G and the position feature L corresponding to the valid grid point G c (x, y) also corresponds to the data to be labeled collected by the data collection vehicle C.
[0314] It can be understood that S1301 may refer to S801a for details, and this application will not describe it in detail.
[0315] S1302: The labeling device 1 obtains the MLP network model 2.
[0316] It can be understood that S1302 may refer to S802a for details, and this application will not describe it in detail.
[0317] S1303: the labeling device 1 labels each valid grid point G according to the position feature L corresponding to the c (x, y) and MLP network model 2 to obtain the regression height H corresponding to each valid grid point G b and the overlooking semantic category S b .
[0318] In some embodiments of the present application, the marking device 1 marks the position feature L c (x, y) is input into MLP network model 2, and MLP network model 2 is based on the position feature L c (x, y) to obtain the annotation result, that is, the regression height H corresponding to each valid grid point G b and the overlooking semantic category S b .
[0319] It can be understood that the details of S1303 may refer to S803a, and this application will not describe it in detail.
[0320] S1304: the labeling device 1 labels each valid grid point G according to the position feature L corresponding to the c (x, y), return height H b and the overlooking semantic category S b Perform scene semantic 3D reconstruction from the BEV perspective.
[0321] The road labeling method in this application uses the vehicle posture, lidar point cloud, video stream and camera internal and external parameters as input to complete the road labeling of static features from the BEV perspective. It is a road semantic 3D reconstruction network based on a multi-modal multi-head MLP network model 2.
[0322] In addition, in some embodiments of the present application, the semantic reconstruction fusion module 70 in the labeling device 1 performs fusion based on the semantic 3D reconstruction results of multiple video streams covering the same scene, so as to further improve the accuracy and solve the occlusion problem caused by dynamic people and vehicles in the scene.
[0323] In some implementations, the semantic reconstruction fusion module 70 fuses the semantic 3D reconstruction results of multiple video streams covering the same scene.
[0324] In some other alternative implementations, the semantic reconstruction fusion module 70 fuses multiple video streams covering the same scene, and ultimately achieves semantic 3D reconstruction results of the multiple video streams.
[0325] In addition, in some embodiments of the present application, the BEV vectorization module 80 in the annotation device 1 performs operations such as semantic denoising, element instantiation, and element vectorization based on the fused semantic three-dimensional reconstruction result according to preset rules to finally obtain a vectorized annotation result.
[0326] After introducing the annotation model training method and the road annotation method in some embodiments of the present application, it is not difficult to find that the annotation model training method includes a measurement feature generation step, a laser height generation step, a first training step of the MLP network model 2, a perspective semantic category generation step, a second training step of the MLP network model 2, a third training step of the MLP network model 2, and the annotation model completes the training step according to the annotation device 1 and the adjusted MLP network model 2, a total of 7 parts. Among them, the measurement feature generation step and the laser height generation step must occur before the first training step of the MLP network model 2, the measurement feature generation step and the perspective semantic category generation step must occur before the second training step of the MLP network model 2, and the measurement feature generation step and the laser height generation step must occur before the third training step of the MLP network model 2. However, it is worth noting that the order of the three groups of the measurement feature generation step and the laser height generation step, the measurement feature generation step and the perspective semantic category generation step, the first training step, the second training step, and the third training step is not further discussed in this application.
[0327] Several possible schemes for the execution order of the measurement feature generation step and the laser height generation step will be described below in conjunction with the accompanying drawings.
[0328] Fig.14 A flowchart of a labeling model training scheme and a road labeling scheme in some embodiments of the present application is shown. Fig.14 The relevant scheme of the execution order between the measurement feature generation step and the laser height generation step is shown in FIG.
[0329] like Fig.14 As shown, the laser height generation step (step S801b and step S802b) occurs at any time after step S801a in the measurement feature generation step. Fig.14 As shown by the dotted line ① in FIG, after the labeling device 1 executes step S801a, it executes step S801b and step S802a. Fig.14 As shown by the dotted line ② in FIG, after the labeling device 1 executes step S802a, it executes step S801b and step S803a. Fig.14As shown by the dotted line ③ in FIG, after the labeling device 1 executes step S803a, it executes step S801b and step S804.
[0330] Fig.15 A flowchart of a labeling model training scheme and a road labeling scheme in some embodiments of the present application is shown. Fig.15 The relevant scheme of the execution order between the measurement feature generation step and the perspective semantic category generation step is shown in FIG.
[0331] like Fig.15 As shown, the perspective semantic category generation step (step S801c and step S802c) occurs at any time after step S801a in the measurement feature generation step. Fig.15 As shown by the dotted line ① in FIG, after the labeling device 1 executes step S801a, it executes step S801c and step S802a. Fig.15 As shown by the dotted line ② in FIG, after the labeling device 1 executes step S802a, it executes step S801c and step S803a. Fig.15 As shown by the dotted line ③ in FIG, after the labeling device 1 executes step S803a, it executes step S801c and step S804.
[0332] Fig.15 It is also shown in Fig.15 As shown by the dotted line ④ in FIG, after the labeling device 1 executes step S804, it executes step S801c. That is, as long as step S801c and step S802c are executed before step S806a, the requirements can be met.
[0333] In addition, with respect to the execution order of the first training step, the second training step, and the third training step, in some embodiments of the present application, the labeling device 1 first executes the first training step at least once, then enters the second training step and the third training step, and returns to execute the first training step under the condition that the MLP network model needs to be adjusted according to the second training step and the third training step. Specifically, after the second training step confirms that the MLP network model 2 needs to be further adjusted, the MLP network model 2 is adjusted, and then the first training step is entered. Similarly, after the third training step confirms that the MLP network model 2 needs to be further adjusted, the MLP network model 2 is adjusted, and then the first training step is entered. That is, there is no certain execution order for the first training step, the second training step, and the third training step. If the MLP network model 2 needs to be adjusted according to the second training step and / or the third training step, the labeling device 1 needs to return to execute the first training step.
[0334] In addition, with respect to the execution order of the first training step, the second training step, and the third training step, in some other embodiments of the present application, the labeling device 1 first executes the first training step at least once, and cyclically executes the second training step and the third training step under the condition that the MLP network model needs to be adjusted according to the second training step and the third training step. After the second training step confirms that the MLP network model 2 needs to be further adjusted, the MLP network model 2 is adjusted, and then the third training step is entered. Similarly, after the third training step confirms that the MLP network model 2 needs to be further adjusted, the MLP network model 2 is adjusted, and then the second training step is entered. That is, after the first training step is executed, the parameters corresponding to the first training step in the MLP network model have been adjusted, and no further adjustments will be made subsequently. There is a cyclic execution process between the second training step and the third training step. If the MLP network model 2 needs to be adjusted according to the second training step, the labeling device 1 needs to return to execute the third training step. Conversely, if the MLP network model 2 needs to be adjusted according to the third training step, the labeling device 1 needs to return to execute the second training step.
[0335] In some embodiments of the present application, step S804 is first executed, and after step S804 is executed, step S806a is executed. That is, the annotation device 1 first determines whether the spatial position information satisfies the first condition, and when it is determined that the spatial position information satisfies the first condition, it determines whether the semantic category information satisfies the second condition. When the annotation device 1 determines that the semantic category information satisfies the second condition, it uses the annotation model to perform semantic three-dimensional reconstruction on the valid grid points.
[0336] In some embodiments of the present application, step S804 is first executed, and after step S804 is executed, step S806a and step S806b are executed. When the labeling device 1 determines that the spatial position information satisfies the first condition, it determines whether the semantic category information satisfies the second condition, and determines whether the spatial position information satisfies the third condition. When the labeling device 1 determines that the semantic category information satisfies the second condition, and determines that the spatial position information satisfies the third condition, the labeling device 1 uses the labeling model to perform semantic three-dimensional reconstruction on the valid grid points.
[0337] In some embodiments of the present application, step S804 and step S806a are performed simultaneously. The labeling device 1 determines whether the spatial position information satisfies the first condition, and determines whether the semantic category information satisfies the second condition. When the labeling device 1 determines that the spatial position information satisfies the first condition, and determines that the semantic category information satisfies the second condition, the labeling device 1 uses the labeling model to perform semantic three-dimensional reconstruction on the valid grid points.
[0338] It can be understood that the execution order of the above-mentioned first training step, the second training step and the third training step is only some implementation methods in the present application. The execution order of the first training step, the second training step and the third training step in the present application can also be other forms of implementation methods, and the present application does not make specific limitations on this.
[0339] The present application also provides an electronic device, wherein the electronic device includes a memory for storing instructions and one or more processors, and when the instructions are executed by the one or more processors, the processors execute any one of the above-mentioned road marking methods.
[0340] The present application also provides a computer-readable storage medium, wherein the computer-readable storage medium stores instructions, which, when executed on an electronic device, enable the electronic device to execute any one of the road marking methods described above.
[0341] The present application also provides a computer program product, wherein the computer program product includes instructions, and when the instructions are executed by one or more processors, they are used to implement any of the above-mentioned road marking methods.
[0342] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from a website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium may be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrated. The available medium may be a magnetic medium, (e.g., a floppy disk, a storage disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state storage disk Solid State Disk (SSD)), etc.
Claims
1. A labeling model training method, characterized in that: The annotation model includes an annotation module, a first supervision module and a second supervision module. The annotation model is used to annotate an image corresponding to a bird's-eye view. The method includes: Inputting sample data into the annotation module, the sample data including plane position information corresponding to valid grid points, the sample data being relevant data collected about the surrounding environment during the automatic driving process of the vehicle, and the valid grid points being associated with the vehicle motion trajectory of the data collection vehicle; Obtaining an output result of the labeling module, the output result comprising spatial position information and semantic category information corresponding to the valid grid point calculated according to the sample data; inputting the spatial position information and reference position information of other modalities into the first supervisory module, adjusting the annotation module according to a first adjustment instruction output by the first supervisory module, and The semantic category information and the reference category information are input into the second supervisory module, and the labeling module is adjusted according to a second adjustment instruction output by the second supervisory module.
2. The method according to claim 1, characterized in that: The method further comprises: The first supervision module generates the first adjustment instruction according to the spatial position information when it is determined that the spatial position information does not satisfy the first condition; When the second supervision module determines that the semantic category information does not satisfy the second condition, the second adjustment instruction is generated according to the semantic category information.
3. The method according to claim 2, characterized in that The first supervision module determines whether the first condition is satisfied according to the spatial position information, including: Acquire reference position information corresponding to the valid grid point; In the case where it is determined that the deviation value between the spatial position information and the reference position information is within a preset distance threshold range, the first supervision module determines that the spatial position information satisfies the first condition; In the case where it is determined that the deviation value between the spatial position information and the reference position information is outside the preset distance threshold range, the first supervision module determines that the spatial position information does not satisfy the first condition.
4. The method according to claim 3, characterized in that The method for determining whether the spatial position information satisfies the first condition includes: Determine a projection point of the valid grid point in the first plane according to the plane position information and the spatial position information; Determine a reference point of the valid grid point in the first plane according to the reference position information; In the case where it is determined that the distance between the projection point and the reference point is within a preset distance threshold range, determining that the spatial position information satisfies the first condition; When it is determined that the distance between the projection point and the reference point is outside the preset distance threshold range, it is determined that the spatial position information does not satisfy the first condition.
5. The method according to claim 4, characterized in that The first plane is a plane from the perspective of the BEV or a plane from the perspective of the PV.
6. The method according to any one of claims 3 to 5, characterized in that The spatial position information includes altitude information.
7. The method according to claim 6, characterized in that The method for obtaining the reference position information includes: Obtaining a laser radar point cloud corresponding to the valid grid point; The effective grid points are laser-reconstructed in three dimensions according to the laser radar point cloud, the laser height corresponding to the effective grid points is determined, and the laser height is used as the reference position information.
8. The method according to any one of claims 3 to 5, characterized in that The spatial position information includes depth information.
9. The method according to any one of claims 3 to 5 and 7, characterized in that: The second supervision module determines whether the second condition is satisfied according to the semantic category information, including: Acquire reference category information corresponding to the valid grid point; In the case where it is determined that the similarity between the semantic category information and the reference category information is within a preset similarity threshold range, determining that the semantic category information satisfies the second condition; When it is determined that the similarity between the semantic category information and the reference category information is outside the preset similarity threshold range, it is determined that the semantic category information does not satisfy the second condition.
10. The method according to claim 9, characterized in that The second supervision module determines whether the second condition is satisfied according to the semantic category information, including: Determine a predicted label of the valid grid point in the second plane according to the plane position information and the semantic category information; Determine a reference label of the valid grid point in the second plane according to the plane position information and the reference position information; In the case where it is determined that the similarity between the predicted label and the reference label is within a preset similarity threshold range, the second supervision module determines that the semantic category information satisfies the second condition; In the case where it is determined that the similarity between the predicted label and the reference label is outside the preset similarity threshold range, the second supervision module determines that the semantic category information does not satisfy the second condition.
11. The method according to claim 10, characterized in that The second plane is a plane from a PV perspective.
12. The method according to claim 10 or 11, characterized in that: The method for obtaining the reference category information includes: Acquire a video stream corresponding to the valid grid point, wherein the video stream includes at least one frame of reference image; Performing image semantic segmentation on each reference image in the at least one reference image frame to determine a semantic category corresponding to each pixel in each reference image frame; In each frame of the reference image, the semantic category information corresponding to the pixel point corresponding to the valid grid point is used as the reference category information corresponding to the valid grid point.
13. The method according to any one of claims 10 or 11, characterized in that The method for obtaining the valid grid points includes: Obtaining the position and posture of the ego vehicle, and determining the motion trajectory of the ego vehicle according to the position and posture of the ego vehicle; Determining a reconstruction area corresponding to the second plane according to the vehicle motion trajectory; The reconstruction area is grid-divided to obtain a plurality of grid points, and the grid points related to the motion trajectory of the vehicle are screened out from the plurality of grid points as the valid grid points.
14. The method according to any one of claims 1 to 5, 7, 10 and 11, characterized in that: The labeling module includes an MLP network model.
15. The method according to any one of claims 2 to 5, 7, 10 and 11, characterized in that The method further comprises: Determining whether the spatial position information satisfies the first condition; When it is determined that the spatial position information satisfies the first condition, it is determined whether the semantic category information satisfies the second condition.
16. The method according to any one of claims 2 to 5, 7, 10 and 11, characterized in that: The method further comprises: Determining whether the spatial position information satisfies the first condition; In the case of determining whether the spatial position information satisfies the first condition, determining whether the semantic category information satisfies the second condition, and determining whether the spatial position information satisfies the third condition.
17. The method according to any one of claims 2 to 5, 7, 10 and 11, characterized in that The method further comprises: It is determined whether the spatial position information satisfies the first condition, and it is determined whether the semantic category information satisfies the second condition.
18. The method according to any one of claims 1 to 5, 7, 10 and 11, characterized in that The method further comprises: Performing high-frequency processing on the plane position information to obtain high-frequency position information; The high-frequency position information is input into the labeling module, and the spatial position information and semantic category information corresponding to the valid grid points output by the labeling module are received.
19. The method according to claim 18, characterized in that The method further comprises: The plane position information is processed into a high frequency through position coding to obtain the high frequency position information.
20. An electronic device, characterized in that: The electronic device includes a labeling model, and the labeling model is used to label an image corresponding to a top-down perspective, and the labeling model includes: A labeling module, the labeling module is used to receive sample data and output an output result according to the sample data, wherein the sample data includes plane position information corresponding to a valid grid point, the sample data is collected data related to the surrounding environment during the automatic driving process of the vehicle, the valid grid point is associated with the vehicle motion trajectory of the data collection vehicle, and the output result includes spatial position information and semantic category information corresponding to the valid grid point calculated according to the sample data; A first supervisory module, the first supervisory module is used to generate a first adjustment instruction for adjusting the annotation module based on the spatial position information and reference position information of other modalities; A second supervision module, wherein the second supervision module is used to generate a second adjustment instruction for adjusting the labeling module based on the semantic category information and the reference category information.
21. The electronic device according to claim 20, characterized in that: The labeling module includes an MLP network model.
22. An electronic device, characterized in that: include: memory for storing instructions, and One or more processors, when the instructions are executed by the one or more processors, the processors execute the labeling model training method as described in any one of claims 1 to 19.
23. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores instructions, which, when executed on an electronic device, enable the electronic device to execute the labeling model training method as described in any one of claims 1 to 19.
24. A computer program product, characterized in that The computer program product includes instructions, which, when executed by one or more processors, are used to implement the annotation model training method as described in any one of claims 1 to 19.
25. A road marking method, characterized in that: The method comprises: Acquire data to be annotated from a bird's-eye view, wherein the data to be annotated includes plane position information corresponding to valid grid points; Inputting the data to be annotated into an annotation model to obtain an annotation result, wherein the annotation result includes spatial position information and semantic category information corresponding to the valid grid point obtained based on the plane position information; the annotation model includes an annotation module, a first supervision module and a second supervision module; the annotation model is trained using the annotation model training method described in any one of claims 1 to 19; A three-dimensional reconstruction result is obtained based on the result to be labeled.
26. An electronic device, characterized in that: include: memory for storing instructions, and One or more processors, when the instructions are executed by the one or more processors, the processors perform the road marking method as claimed in claim 25.
27. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores instructions, which, when executed on an electronic device, cause the electronic device to execute the road marking method as claimed in claim 25.
28. A computer program product, characterized in that The computer program product comprises instructions, which are used to implement the road marking method of claim 25 when executed by one or more processors.
Citation Information
Patent Citations
Point cloud data annotation method, segmentation model determination method, target detection method and related equipment
CN110264468A
Training and using methods of driving detection model, training and using devices of driving detection model, equipment and medium
CN111860255A
High-precision map drawing method and device, equipment and storage medium
CN113674287A
Visible light, infrared and radar fusion target detection method based on deep learning
CN114254696A
Model training method and device, image recognition method and device, equipment and storage medium
CN114792417A
