An online vector map construction method and device based on volume rendering knowledge distillation

By using volume rendering knowledge distillation technology in the autonomous driving system, multi-modal and single-modal vector map construction models are built for supervised training, which solves the accuracy and timeliness issues of semantic vector map construction in the autonomous driving system in complex environments. Achieve high-accuracy and high-timeliness vector map construction.

CN118644603BInactive Publication Date: 2024-10-29BEIJING UNIV OF TECH +1
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411125785.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-08-16
Publication Date
2024-10-29
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

It is difficult for existing semantic vector map construction methods for autonomous driving systems in complex driving environments to meet accuracy and timeliness at the same time, resulting in poor efficiency and accuracy.

Method used

An online vector map construction method based on volume rendering knowledge distillation is adopted. By building a multi-modal vector map construction model as a teacher model and a lightweight single-modal vector map construction model as a student model, the volume rendering technology and knowledge distillation method are used in depth Supervisory training is conducted from both the perspective of features and semantic features to improve the accuracy and timeliness of the student model.

Benefits of technology

It achieves high accuracy and high timeliness in constructing vector maps in the autonomous driving system, ensures the ability to understand driving scenes in complex environments, and meets the safety and accuracy requirements of autonomous driving technology.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118644603B_ABST
    Figure CN118644603B_ABST
Patent Text Reader

Abstract

The present invention discloses an online vector map construction method and device based on volume rendering knowledge distillation, which belongs to the field of autonomous driving perception technology. The method includes: building a multimodal vector map construction model, taking lidar three-dimensional image data and multi-view two-dimensional image data as input, and taking a pre-trained multimodal vector map construction model as a teacher model; building a single-modal vector map construction model with multi-view two-dimensional image data as input as a student model; using volume rendering technology and knowledge distillation methods to realize the teacher model's supervised training of the student model from two perspectives of depth features and semantic features, and the total loss function in the supervised training process is determined by the volume rendering depth loss and volume rendering semantic loss of the student model relative to the teacher model; using the trained student model to construct an online vector map. The present invention can meet both accuracy and timeliness when constructing a vector map.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of autonomous driving perception technology, and in particular to an online vector map construction method and device based on volume rendering knowledge distillation. Background Art

[0002] With the rapid development of artificial intelligence technology, the requirements for the safety and accuracy of autonomous driving technology have become more stringent. Autonomous driving systems must have high-performance environmental perception capabilities in complex driving environments. Therefore, the ability to understand the semantics of driving scenes, especially the ability to build semantic vector maps of driving environments, has become a key cornerstone for the practical application of autonomous driving technology.

[0003] In the related technologies, one part uses multi-view two-dimensional images as input to construct semantic vector maps online, but the model architecture required to be implemented is very complex, resulting in poor efficiency and accuracy; the other part uses multi-view two-dimensional image data and lidar three-dimensional image data as input to construct semantic vector maps online. Although this method has high accuracy, it has poor data processing efficiency and cannot guarantee the timeliness of vector map construction.

[0004] It can be seen that there is an urgent need to provide a vector map construction method that can meet both accuracy and timeliness. Summary of the invention

[0005] The present invention provides an online vector map construction method and device based on volume rendering knowledge distillation. The technical solution is as follows:

[0006] On the one hand, a method for constructing an online vector map based on volume rendering knowledge distillation is provided, the method comprising:

[0007] Build a multimodal vector map construction model, use the lidar 3D image data and multi-view 2D image data as input and the vector map as output, pre-train the multimodal vector map construction model, and use the pre-trained multimodal vector map construction model as a teacher model;

[0008] Build a single-mode vector map construction model with multi-view two-dimensional image data as input and vector map as output, and use the single-mode vector map construction model as the student model;

[0009] Using volume rendering technology and knowledge distillation methods, the teacher model supervises the student model in terms of depth features and semantic features to obtain a trained student model. The total loss function in the supervised training process is determined by the volume rendering depth loss and volume rendering semantic loss of the student model relative to the teacher model.

[0010] Use the trained student model to build online vector maps.

[0011] On the other hand, an online vector map construction device based on volume rendering knowledge distillation is provided, the device comprising:

[0012] A teacher model generation unit is used to build a multimodal vector map construction model, take the lidar three-dimensional image data and the multi-view two-dimensional image data as input and the vector map as output, pre-train the multimodal vector map construction model, and use the pre-trained multimodal vector map construction model as a teacher model;

[0013] A student model generation unit is used to build a single-mode vector map construction model with multi-view two-dimensional image data as input and vector map as output, and use the single-mode vector map construction model as the student model;

[0014] The model supervision training unit is used to use volume rendering technology and knowledge distillation methods to realize the supervised training of the teacher model on the student model from the two perspectives of depth features and semantic features, and obtain the trained student model; the total loss function in the supervised training process is determined by the volume rendering depth loss and volume rendering semantic loss of the student model relative to the teacher model; the trained student model is used to construct an online vector map.

[0015] On the other hand, a computer device is provided, comprising a memory and a processor, wherein the memory is used to store a computer program, and the processor is used to execute the computer program stored in the memory to implement the steps of the above-mentioned method for constructing an online vector map based on volume rendering knowledge distillation.

[0016] On the other hand, a computer-readable storage medium is provided, wherein a computer program is stored in the storage medium, and when the computer program is executed by a processor, the steps of the online vector map construction method based on volume rendering knowledge distillation are implemented.

[0017] On the other hand, a computer program product is provided, comprising a computer program, which, when executed by a processor, implements the steps of the above-mentioned method for constructing an online vector map based on volume rendering knowledge distillation.

[0018] The technical solution provided by the present invention can at least bring the following beneficial effects:

[0019] By building a complex multi-modal vector map construction model as the teacher model, building a lightweight single-modal vector map construction model as the student model, and using the knowledge distillation method to implement the supervised training of the teacher model on the student model to improve the accuracy of the student model, and using volume rendering technology to supervise the depth features and semantic features in the supervised training process, the accuracy of the student model can be further improved, so that the student model can have the high accuracy of the teacher model, and the student model is a lightweight single-modal vector map construction model, which can ensure the high timeliness of the vector map construction process. It can be seen that this solution can meet both accuracy and timeliness when constructing vector maps. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0021] Figure 1 It is a flow chart of an online vector map construction method based on volume rendering knowledge distillation provided by an embodiment of the present invention;

[0022] Figure 2 It is a teacher model architecture diagram provided by an embodiment of the present invention;

[0023] Figure 3 It is a student model architecture diagram provided by an embodiment of the present invention;

[0024] Figure 4 It is a structural diagram of an online vector map construction device based on volume rendering knowledge distillation provided by an embodiment of the present invention;

[0025] Figure 5 It is a hardware architecture diagram of a computer device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0026] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments in the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.

[0027] Please refer to Figure 1, an embodiment of the present invention provides an online vector map construction method based on volume rendering knowledge distillation, the method comprising:

[0028] Step 100, building a multimodal vector map construction model, taking the laser radar three-dimensional image data and the multi-view two-dimensional image data as input and the vector map as output, pre-training the multimodal vector map construction model, and using the pre-trained multimodal vector map construction model as a teacher model;

[0029] Step 102, building a single-mode vector map construction model with multi-view two-dimensional image data as input and vector map as output, and using the single-mode vector map construction model as a student model;

[0030] Step 104, using volume rendering technology and knowledge distillation method, the teacher model is used to supervise the student model from the perspectives of depth features and semantic features, and a trained student model is obtained; the total loss function in the supervised training process is determined by the volume rendering depth loss and volume rendering semantic loss of the student model relative to the teacher model;

[0031] Step 106: construct an online vector map using the trained student model.

[0032] In the embodiment of the present invention, a complex multi-modal vector map construction model is constructed as a teacher model, a lightweight single-modal vector map construction model is constructed as a student model, and the knowledge distillation method is used to implement supervised training of the teacher model on the student model to improve the accuracy of the student model. In the supervised training process, volume rendering technology is used to supervise the depth features and semantic features respectively, which can further improve the accuracy of the student model, so that the student model can have the high accuracy of the teacher model, and the student model is a lightweight single-modal vector map construction model, which can ensure the high timeliness of the vector map construction process. It can be seen that this solution can meet both accuracy and timeliness when constructing a vector map.

[0033] Described below Figure 1 How the various steps are performed.

[0034] First, step 100 "building a multimodal vector map construction model, taking the lidar three-dimensional image data and the multi-view two-dimensional image data as input and the vector map as output, pre-training the multimodal vector map construction model, and using the pre-trained multimodal vector map construction model as a teacher model" and step 102 "building a unimodal vector map construction model with multi-view two-dimensional image data as input and vector map as output, and using the unimodal vector map construction model as a student model" are explained at the same time.

[0035] In one embodiment of the present invention, in order to achieve high accuracy in constructing a vector map, please refer to Figure 2 The constructed multimodal vector map construction model may include the following structure: a first backbone network, a second backbone network, a third backbone network, a feature fusion device, a first bird's-eye view feature extractor, and a first map decoder; wherein the multimodal vector map construction model processes input data including the following steps S1000-S1008:

[0036] S1000: extracting three-dimensional point cloud features from input laser radar three-dimensional image data using the first backbone network;

[0037] The laser radar obtains three-dimensional image data for the autonomous driving environment, and the first backbone network is used to extract three-dimensional point cloud features from the three-dimensional image data. In one implementation, the PointPillars network can be used as the first backbone network to extract the three-dimensional point cloud features.

[0038] S1002: extracting multi-view teacher two-dimensional semantic features from the input multi-view two-dimensional image data using the second backbone network; and performing depth estimation on the multi-view teacher two-dimensional semantic features using the third backbone network to obtain teacher three-dimensional semantic features;

[0039] The on-board surround view camera obtains two-dimensional image data for the self-driving environment. In actual applications, there are multiple on-board cameras, and multiple on-board cameras are installed on the vehicle at intervals to obtain multi-view two-dimensional image data. For example, if there are 6 on-board cameras, two-dimensional image data from 6 perspectives can be obtained.

[0040] In an embodiment of the present invention, the second backbone network may adopt a ResNet network. In order to improve the accuracy of semantic feature extraction of multi-view two-dimensional image data, in one implementation, the second backbone network may be a ResNet101 network. In step S1002, the teacher's two-dimensional semantic features under the corresponding perspective may be extracted for the two-dimensional image data of each perspective, thereby obtaining the multi-view teacher's two-dimensional semantic features.

[0041] In order to obtain three-dimensional semantic features based on two-dimensional semantic features, in one embodiment of the present invention, the third backbone network can use a VIT network (‌Vision Transformer, an image classification network based on the Transformer architecture). Specifically, the VIT network can be used to perform depth estimation on the teacher's two-dimensional semantic features of each perspective, and obtain the depth information of each feature point in the three-dimensional prism-shaped feature space under the corresponding perspective. The three-dimensional spatial position corresponding to each feature point can be determined using the depth information of each feature point and the internal and external parameters of the camera. According to the three-dimensional spatial position of each feature point, the semantic information of the voxels corresponding to the same three-dimensional spatial position under multiple perspectives is fused to obtain the three-dimensional semantic features of each voxel in the three-dimensional space. Thus, after the multi-perspective teacher's two-dimensional semantic features are input into the third backbone network, the teacher's three-dimensional semantic features are output.

[0042] It should be noted that step S1000 and step S1002 may be performed simultaneously or separately in a sequence, and this embodiment does not limit the sequence.

[0043] S1004: using a feature fusion device to fuse the three-dimensional point cloud features and the teacher's three-dimensional semantic features to obtain a three-dimensional mixed feature;

[0044] The feature fuser in the embodiment of the present invention can be implemented based on a convolutional network to utilize the convolutional network to achieve feature fusion of three-dimensional point cloud features and teacher three-dimensional semantic features.

[0045] S1006: Projecting the three-dimensional mixed features into teacher's bird's-eye view features using a first bird's-eye view feature extractor;

[0046] S1008: Utilize the first map decoder to output a predicted vector map based on the teacher's bird's-eye view feature.

[0047] In an embodiment of the present invention, the first bird's-eye view feature extractor can be implemented based on convolution, and is used to project the three-dimensional mixed features into the teacher's bird's-eye view features.

[0048] The teacher's bird's-eye view feature is input into the first map decoder, which generates a vector map to obtain the prediction result of the multimodal vector map construction model. The first map decoder is implemented based on Transformer.

[0049] Since the input of the multimodal vector map construction model includes lidar three-dimensional image data and multi-view two-dimensional image data, a highly accurate teacher model can be obtained after pre-training the multimodal vector map construction model with a large number of samples.

[0050] In one embodiment of the present invention, in order to achieve high timeliness of vector map construction, please refer to Figure 3 The constructed single-mode vector map construction model may include the following structure: a fourth backbone network, a fifth backbone network, a second bird's-eye view feature extractor and a second map decoder; wherein the single-mode vector map construction model processes input data including the following steps S2000-S2004:

[0051] S2000: extracting multi-view student two-dimensional semantic features from the input multi-view two-dimensional image data using the fourth backbone network; and performing depth estimation on the multi-view student two-dimensional semantic features using the fifth backbone network to obtain student three-dimensional semantic features;

[0052] S2002: Projecting the student's three-dimensional semantic features into student's bird's-eye view features using a second bird's-eye view feature extractor;

[0053] S2004: Utilize a second map decoder to output a predicted vector map based on the student's bird's-eye view features.

[0054] Among them, the implementation method of step S2000 is the same as the implementation method of step S1002, the implementation method of step S2002 is the same as the implementation method of step S1006, and the implementation method of step S2004 is the same as the implementation method of step S1008.

[0055] The fourth backbone network can also use the ResNet network. Since the multimodal vector map construction model as the teacher model needs to be used to supervise the training of the unimodal vector map construction model as the student model in the subsequent process, when the second backbone network and the fourth backbone network both use the ResNet network, the number of layers of the fourth backbone network can be less than the number of layers of the second backbone network. For example, the second backbone network uses ResNet101 and the fourth backbone network uses ResNet18.

[0056] It can be seen that compared with the multimodal vector map construction model, the unimodal vector map construction model not only eliminates the dependence of three-dimensional semantic features on point cloud data, but also has fewer backbone network layers, thus realizing a lightweight unimodal vector map construction model and ensuring the high timeliness of the unimodal vector map construction model.

[0057] Then, for step 104, volume rendering technology and knowledge distillation method are used to implement supervised training of the teacher model on the student model from two perspectives of depth features and semantic features, thereby obtaining a trained student model.

[0058] The knowledge distillation method is a technique that transfers the knowledge of the teacher model to the student model to improve the performance of the student model. Since the student model has lightweight features and the input only includes multi-view 2D image data, the depth information only comes from the depth estimation of the 2D semantic features; while the input of the teacher model includes not only multi-view 2D image data, but also LiDAR 3D image data, and the point cloud features in the 3D image data include very accurate depth information. The depth information after the fusion of the 2D semantic features is estimated, which shows that the depth information in the teacher model is very accurate. Therefore, using the knowledge distillation method to implement the supervised training of the teacher model on the student model can make the student model close to the teacher model in terms of the accuracy of the depth information, thereby improving the accuracy of the student model.

[0059] Furthermore, since the student's three-dimensional semantic features include not only semantic features but also depth features, and the semantic features can be accurately obtained from multi-view two-dimensional image data, while the depth features need to be obtained through depth estimation. In order to improve the accuracy of the student model at the depth estimation level, in an embodiment of the present invention, a volume rendering technique is used to project the three-dimensional features onto the two-dimensional features, so as to divide the three-dimensional features into two angles of semantic features and depth features, and then supervised training is performed on the two angles respectively. Compared with directly using three-dimensional features for supervised training, the student model trained in this way has better training effects in both semantic features and depth features.

[0060] Specifically, the total loss function during supervised training is determined by the volume rendering depth loss and volume rendering semantic loss of the student model relative to the teacher model.

[0061] In one implementation, the volume rendering depth loss of the student model relative to the teacher model is calculated as:

[0062] S1040: performing classification query on each voxel in the three-dimensional space according to the three-dimensional mixed feature to obtain a teacher density matrix of the teacher model; and accumulating the voxel size and density using volume rendering technology according to the teacher density matrix and the three-dimensional mixed feature to obtain teacher depth features under multiple perspectives in the teacher model;

[0063] S1042: performing classification query on each voxel in the three-dimensional space according to the student three-dimensional semantic features to obtain a student density matrix of the student model; accumulating voxel size and density using volume rendering technology according to the student density matrix and the student three-dimensional semantic features to obtain student depth features under multiple perspectives in the student model;

[0064] S1044: Perform KL divergence calculation on the teacher depth feature and the student depth feature to obtain a volume rendering depth loss of the student model relative to the teacher model.

[0065] Volume rendering is a technology used to project three-dimensional data into two dimensions. In the process of projecting three-dimensional features into two-dimensional features, a density matrix is ​​required. Therefore, for both the teacher model and the student model, it is necessary to obtain the density matrix of the corresponding three-dimensional features.

[0066] In the embodiment of the present invention, the density matrix can be implemented by a classifier based on MLP.

[0067] In addition, the volume rendering depth loss needs to be calculated using depth features. For the teacher model, the 3D hybrid feature is the depth information after the depth information of the LiDAR 3D image data and the depth information of the multi-view 2D image data are fused, which is more accurate in depth information. Therefore, when obtaining the teacher depth feature of the teacher model, the 3D hybrid feature is used to perform a 2D projection of the depth feature in multiple viewing directions. For the student model, its depth information only comes from the depth estimation of the multi-view 2D image data. Therefore, when obtaining the student depth feature of the student model, the student 3D semantic feature is used to perform a 2D projection of the depth feature in multiple viewing directions.

[0068] Specifically, for the teacher model, the three-dimensional mixed features are input into the classifier, and the classifier is used to classify each voxel in the three-dimensional space to obtain the voxel classification matrix; then the Argmax layer in the classifier is used to select the category of each voxel based on the voxel classification matrix, and then the density information of each voxel is obtained by querying known parameters, and finally the teacher density matrix is ​​obtained.

[0069] Similarly, for the student model, the student three-dimensional semantic features are input into the classifier to obtain the student density matrix.

[0070] After obtaining the teacher density matrix, the three-dimensional mixed features can be projected in two dimensions using volume rendering technology to obtain the teacher depth features under multiple perspectives. Specifically, for each camera corresponding to each perspective, the following is performed: the center of each pixel on the imaging plane of the camera is used as the starting point of the light path, and the direction from the camera optical center to the pixel center is used as the light path direction. According to the three-dimensional mixed features and the teacher density matrix, all visible voxel sizes and densities on the light path are accumulated, and the density accumulation result is combined with the volume rendering formula for judgment. If the density accumulation result obtained after accumulating the density of each voxel on the light path reaches a critical value, it is considered invisible, otherwise it is considered visible. Therefore, according to the teacher density matrix and the three-dimensional mixed features, the voxel size and density can be accumulated using volume rendering technology to obtain the teacher depth features under multiple perspectives in the teacher model.

[0071] Similarly, after obtaining the student density matrix, the volume rendering technology can be used to perform two-dimensional projection on the student's three-dimensional semantic features to obtain the student's depth features under multiple perspectives.

[0072] In step S1044, after obtaining the teacher depth feature and the student depth feature, the volume rendering depth loss can be calculated by the following formula:

[0073]

[0074] in, is the volume rendering depth loss, n is the total number of viewing angles, is the height of the two-dimensional semantic feature, is the width of the two-dimensional semantic feature, is the matrix corresponding to the student depth feature of the i-th perspective j Line k Column data, is the first matrix corresponding to the teacher's deep feature of the i-th perspective j Line k Column data.

[0075] In one implementation, the volume rendering semantic loss of the student model relative to the teacher model is calculated as:

[0076] S1046: performing classification query on each voxel in the three-dimensional space according to the student three-dimensional semantic features to obtain a student density matrix of the student model; accumulating semantic information and density using volume rendering technology according to the student density matrix and the student three-dimensional semantic features to obtain student semantic features under multiple perspectives in the student model; and calculating a student affinity matrix according to the student semantic features;

[0077] S1048: Calculating a teacher affinity matrix according to the two-dimensional semantic features of the multi-perspective teachers;

[0078] S10410: Calculate the volume rendering semantic loss of the student model relative to the teacher model using the student affinity matrix and the teacher affinity matrix.

[0079] In an embodiment of the present invention, the volume rendering semantic loss needs to be calculated using semantic features. For the teacher model, the LiDAR three-dimensional image data is used to provide geometric features, that is, depth features, and the semantic features are mainly derived from multi-view two-dimensional image data. In addition, the teacher's two-dimensional semantic features will increase errors and losses for the semantic features after passing through the third backbone network and the feature fuser, while the semantic feature information in the teacher's two-dimensional semantic features is more accurate. Therefore, in order to improve the understanding of semantic features when supervising the training of the student model, when calculating the volume rendering semantic loss, the teacher model directly uses the teacher's two-dimensional semantic features for calculation.

[0080] For the student model, what is supervised during the supervised training process is the entire neural network of the student model. It is necessary to ensure that the semantic feature understanding after passing through the fifth backbone network is still very accurate. Therefore, when calculating the volume rendering semantic loss, the student model uses the student 3D semantic features obtained after passing through the fifth backbone network, and uses volume rendering technology to perform two-dimensional projection on the student 3D semantic features to obtain student semantic features under multiple perspectives, ensuring that the student semantic features are as close as possible to the teacher 2D semantic features in the teacher model.

[0081] Therefore, for the student model, it is also necessary to use volume rendering technology to obtain two-dimensional projection to the student semantic features. First, it is necessary to obtain the student density matrix. For the method of obtaining the student density matrix, please refer to the description of the calculation method of the volume rendering depth loss of the student model relative to the teacher model in the above embodiment, which will not be repeated here.

[0082] When projecting into two dimensions, the projection into semantic features is different from the projection into depth features. Volume rendering technology needs to accumulate semantic information and also uses the density accumulation result to determine whether it is visible. Finally, the student semantic features under multiple perspectives in the student model are obtained.

[0083] In order to calculate the volume rendering semantic loss of the student model relative to the teacher model, the teacher semantic features and the student two-dimensional semantic features need to be semantically embedded first to adjust the feature dimension for subsequent calculations, and obtain the teacher semantic embedding features and the student semantic embedding features respectively; then, the teacher affinity matrix can be calculated for the teacher semantic embedding features, and the student affinity matrix can be calculated for the student semantic embedding features to obtain the affinity between pixels in each model. The affinity matrix is ​​calculated as follows:

[0084]

[0085] in, Affinity Matrix Location data, is the data of the xth row and zth column of the semantic embedding feature, The data of the yth row and zth column of the semantic embedding feature, , It is the vector composed of the xth and yth row data of the semantic embedding feature.

[0086] According to the above formulas, the teacher affinity matrix and the student affinity matrix can be calculated respectively. Then, the volume rendering semantic loss is calculated using the following formula:

[0087]

[0088] in, refers to the semantic affinity loss, is the volume rendering semantic loss, is a hyperparameter, Affinity Matrix for Teachers, Affinity Matrix for Students, is the number of channels of the two-dimensional semantic feature, M is the size of the semantic embedding feature after pooling and dimensionality reduction, is the feature tensor of the two-dimensional semantic features of the multi-view teacher of the teacher model; It is the feature tensor of the student semantic features under multiple views of the student model.

[0089] After obtaining the volume rendering depth loss and volume rendering semantic loss, in order to further improve the accuracy of the student model, the total loss function not only integrates the volume rendering depth loss and volume rendering semantic loss, but also needs to integrate the prediction loss of the student model relative to the true value. Specifically, the point-to-point loss and edge direction loss are calculated for the vector map of the student model's predicted output and the vector map of the true value, and the point-to-point loss and edge direction loss are used to calculate the prediction loss of the student model relative to the true value. The prediction loss for:

[0090]

[0091] in, is the point-to-point loss, is the edge direction loss, , is a hyperparameter.

[0092] Then, the volume rendering depth loss, volume rendering semantic loss and prediction loss are combined to obtain the total loss function. for:

[0093]

[0094] in, is the volume rendering depth loss, is the volume rendering semantic loss, , are all hyperparameters.

[0095] The total loss function is used to implement supervised training of the teacher model on the student model, so that the trained student model can be obtained, and the trained student model can be further used to construct an online vector map.

[0096] In the embodiment of the present invention, the trained student model is a lightweight single-mode vector map construction model, which can ensure high timeliness in the vector map construction process; the knowledge distillation method is used to supervise the student model by using a complex multi-modal vector map construction model as a teacher model, which can ensure that the student model has almost the same high accuracy as the teacher model; and in the supervised training process, the volume rendering technology is used to perform supervised training from the two perspectives of depth features and semantic features, thereby further improving the accuracy of the student model. In this way, the online vector map construction using the trained student model is not only highly timely, but also highly accurate.

[0097] Please refer to Figure 4 , an embodiment of the present invention provides an online vector map construction device based on volume rendering knowledge distillation, the device comprising:

[0098] The teacher model generation unit 400 is used to build a multimodal vector map construction model, take the laser radar three-dimensional image data and the multi-view two-dimensional image data as input and the vector map as output, pre-train the multimodal vector map construction model, and use the pre-trained multimodal vector map construction model as the teacher model;

[0099] The student model generating unit 402 is used to build a single-mode vector map construction model with multi-view two-dimensional image data as input and vector map as output, and use the single-mode vector map construction model as the student model;

[0100] The model supervision training unit 404 is used to use volume rendering technology and knowledge distillation methods to implement supervised training of the teacher model on the student model from two perspectives: depth features and semantic features, to obtain a trained student model; the total loss function in the supervised training process is determined by the volume rendering depth loss and volume rendering semantic loss of the student model relative to the teacher model; and the trained student model is used to construct an online vector map.

[0101] In one embodiment of the present invention, the multimodal vector map construction model includes: a first backbone network, a second backbone network, a third backbone network, a feature fusion device, a first bird's-eye view feature extractor, and a first map decoder;

[0102] Extracting three-dimensional point cloud features from input laser radar three-dimensional image data using the first backbone network;

[0103] The second backbone network is used to extract the multi-view teacher's two-dimensional semantic features from the input multi-view two-dimensional image data; and the third backbone network is used to perform depth estimation on the multi-view teacher's two-dimensional semantic features to obtain the teacher's three-dimensional semantic features;

[0104] Using a feature fusion device to fuse the three-dimensional point cloud features and the teacher's three-dimensional semantic features to obtain a three-dimensional mixed feature;

[0105] Projecting the three-dimensional mixed features into teacher's bird's-eye view features using a first bird's-eye view feature extractor;

[0106] Outputting a predicted vector map according to the teacher's bird's-eye view feature using a first map decoder;

[0107] The single-mode vector map construction model includes: a fourth backbone network, a fifth backbone network, a second bird's-eye view feature extractor, and a second map decoder;

[0108] The fourth backbone network is used to extract the multi-view pupil two-dimensional semantic features from the input multi-view two-dimensional image data; and the fifth backbone network is used to perform depth estimation on the multi-view pupil two-dimensional semantic features to obtain the pupil three-dimensional semantic features;

[0109] Projecting the student's three-dimensional semantic features into student's bird's-eye view features using a second bird's-eye view feature extractor;

[0110] A second map decoder is used to output a predicted vector map based on the student's bird's-eye view feature.

[0111] In one embodiment of the present invention, the fourth backbone network and the second backbone network both adopt ResNet networks; and the number of layers of the fourth backbone network is less than the number of layers of the second backbone network.

[0112] In one embodiment of the present invention, the volume rendering depth loss of the student model relative to the teacher model is calculated as follows:

[0113] Classify and query each voxel in the three-dimensional space according to the three-dimensional mixed features to obtain a teacher density matrix of the teacher model; and accumulate the voxel size and density using volume rendering technology according to the teacher density matrix and the three-dimensional mixed features to obtain teacher depth features under multiple perspectives in the teacher model;

[0114] Classify and query each voxel in the three-dimensional space according to the student three-dimensional semantic features to obtain a student density matrix of the student model; accumulate the voxel size and density using volume rendering technology according to the student density matrix and the student three-dimensional semantic features to obtain student depth features under multiple perspectives in the student model;

[0115] KL divergence calculation is performed on the teacher depth feature and the student depth feature to obtain the volume rendering depth loss of the student model relative to the teacher model.

[0116] In one embodiment of the present invention, the volume rendering semantic loss of the student model relative to the teacher model is calculated as follows:

[0117] According to the student three-dimensional semantic features, each voxel in the three-dimensional space is classified and queried to obtain a student density matrix of the student model; according to the student density matrix and the student three-dimensional semantic features, the semantic information and density are accumulated using volume rendering technology to obtain the student semantic features under multiple perspectives in the student model; and the student affinity matrix is ​​calculated according to the student semantic features;

[0118] Calculating a teacher affinity matrix based on the two-dimensional semantic features of the multi-perspective teachers;

[0119] The volume rendering semantic loss of the student model relative to the teacher model is calculated using the student affinity matrix and the teacher affinity matrix.

[0120] In one embodiment of the present invention, the total loss function is obtained by the following formula:

[0121]

[0122] in, is the total loss function, is the volume rendering depth loss, is the volume rendering semantic loss, is the point-to-point loss of the student model relative to the true value, is the edge direction loss of the student model relative to the true value, , , , are all hyperparameters.

[0123] It should be noted that the online vector map construction device based on volume rendering knowledge distillation provided in the above embodiment is only illustrated by the division of the above functional modules. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the online vector map construction device based on volume rendering knowledge distillation provided in the above embodiment and the online vector map construction method embodiment based on volume rendering knowledge distillation belong to the same concept. The specific implementation process is detailed in the method embodiment and will not be repeated here.

[0124] The embodiment of the present application also provides a computer device, please refer to Figure 5The computer device includes a processor and a memory, wherein at least one instruction, at least one program, a code set or an instruction set is stored in the memory, and the at least one instruction, at least one program, a code set or an instruction set is loaded and executed by the processor to implement the online vector map construction method based on volume rendering knowledge distillation provided by the above-mentioned method embodiments.

[0125] An embodiment of the present application also provides a computer-readable storage medium, on which is stored at least one instruction, at least one program, code set or instruction set, and the at least one instruction, at least one program, code set or instruction set is loaded and executed by a processor to implement the online vector map construction method based on volume rendering knowledge distillation provided in the above-mentioned method embodiments.

[0126] An embodiment of the present application also provides a computer program product, which includes a computer program. A processor of a computer device reads the computer program from a computer-readable storage medium, and the processor executes the computer program, so that the computer device executes the online vector map construction method based on volume rendering knowledge distillation described in any of the above embodiments.

[0127] For the convenience of description, the above system or device is described by dividing it into various modules or units according to its functions. Of course, when implementing the present application, the functions of each unit can be implemented in the same or multiple software and / or hardware.

[0128] It can be known from the description of the above implementation methods that those skilled in the art can clearly understand that the present application can be implemented by means of software plus a necessary general hardware platform. Based on such an understanding, the technical solution of the present application can be essentially or partly contributed to the prior art in the form of a software product, which can be stored in a storage medium such as ROM / RAM, a magnetic disk, an optical disk, etc., and includes several instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in the various embodiments of the present application or certain parts of the embodiments.

[0129] Finally, it should be noted that, in this article, relational terms such as first, second, third and fourth are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the statement "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.

[0130] The above is only a preferred implementation of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.

Claims

1. An online vector map construction method based on volume rendering knowledge distillation, It is characterized in that The method comprises: Build a multimodal vector map construction model, use the lidar 3D image data and multi-view 2D image data as input and the vector map as output, pre-train the multimodal vector map construction model, and use the pre-trained multimodal vector map construction model as a teacher model; Build a single-mode vector map construction model with multi-view two-dimensional image data as input and vector map as output, and use the single-mode vector map construction model as the student model; Using volume rendering technology and knowledge distillation methods, the teacher model supervises the student model in terms of depth features and semantic features to obtain a trained student model. The total loss function in the supervised training process is determined by the volume rendering depth loss and volume rendering semantic loss of the student model relative to the teacher model. Use the trained student model to build online vector maps; The multimodal vector map construction model includes: a first backbone network, a second backbone network, a third backbone network, a feature fusion device, a first bird's-eye view feature extractor and a first map decoder; The first backbone network is used to extract three-dimensional point cloud features from input laser radar three-dimensional image data; the second backbone network is used to extract multi-view teacher two-dimensional semantic features from input multi-view two-dimensional image data; and the third backbone network is used to perform depth estimation on the multi-view teacher two-dimensional semantic features to obtain teacher three-dimensional semantic features; the feature fusion device is used to perform feature fusion on the three-dimensional point cloud features and the teacher three-dimensional semantic features to obtain three-dimensional mixed features; the first bird's-eye view feature extractor is used to project the three-dimensional mixed features into teacher bird's-eye view features; and the first map decoder is used to output a predicted vector map for the teacher bird's-eye view features; The single-mode vector map construction model includes: a fourth backbone network, a fifth backbone network, a second bird's-eye view feature extractor, and a second map decoder; The fourth backbone network is used to extract multi-perspective student two-dimensional semantic features from the input multi-perspective two-dimensional image data; and the fifth backbone network is used to perform depth estimation on the multi-perspective student two-dimensional semantic features to obtain student three-dimensional semantic features; the second bird's-eye view feature extractor is used to project the student three-dimensional semantic features into student bird's-eye view features; and the second map decoder is used to output a predicted vector map for the student bird's-eye view features.

2. The method according to claim 1, It is characterized in that The fourth backbone network and the second backbone network both adopt ResNet networks; and the number of layers of the fourth backbone network is less than the number of layers of the second backbone network.

3. The method according to claim 1, It is characterized in that The volume rendering depth loss of the student model relative to the teacher model is calculated as: Classify and query each voxel in the three-dimensional space according to the three-dimensional mixed features to obtain a teacher density matrix of the teacher model; and accumulate the voxel size and density using volume rendering technology according to the teacher density matrix and the three-dimensional mixed features to obtain teacher depth features under multiple perspectives in the teacher model; Classify and query each voxel in the three-dimensional space according to the student three-dimensional semantic features to obtain a student density matrix of the student model; accumulate the voxel size and density using volume rendering technology according to the student density matrix and the student three-dimensional semantic features to obtain student depth features under multiple perspectives in the student model; KL divergence calculation is performed on the teacher depth feature and the student depth feature to obtain the volume rendering depth loss of the student model relative to the teacher model.

4. The method according to claim 1, It is characterized in that The volume rendering semantic loss of the student model relative to the teacher model is calculated as: According to the student three-dimensional semantic features, each voxel in the three-dimensional space is classified and queried to obtain a student density matrix of the student model; according to the student density matrix and the student three-dimensional semantic features, the semantic information and density are accumulated using volume rendering technology to obtain the student semantic features under multiple perspectives in the student model; and the student affinity matrix is ​​calculated according to the student semantic features; Calculating a teacher affinity matrix based on the two-dimensional semantic features of the multi-perspective teachers; The volume rendering semantic loss of the student model relative to the teacher model is calculated using the student affinity matrix and the teacher affinity matrix.

5. The method according to claim 1, It is characterized in that The total loss function is obtained by the following formula: in, is the total loss function, is the volume rendering depth loss, is the volume rendering semantic loss, is the point-to-point loss of the student model relative to the true value, is the edge direction loss of the student model relative to the true value, , , , are all hyperparameters.

6. An online vector map construction device based on volume rendering knowledge distillation, It is characterized in that The device comprises: A teacher model generation unit is used to build a multimodal vector map construction model, take the lidar three-dimensional image data and the multi-view two-dimensional image data as input and the vector map as output, pre-train the multimodal vector map construction model, and use the pre-trained multimodal vector map construction model as a teacher model; A student model generation unit is used to build a single-mode vector map construction model with multi-view two-dimensional image data as input and vector map as output, and use the single-mode vector map construction model as the student model; The model supervision training unit is used to use volume rendering technology and knowledge distillation methods to implement the teacher model's supervision training of the student model from the perspectives of depth features and semantic features, and obtain the trained student model; the total loss function in the supervised training process is determined by the volume rendering depth loss and volume rendering semantic loss of the student model relative to the teacher model; the trained student model is used to construct an online vector map; The multimodal vector map construction model includes: a first backbone network, a second backbone network, a third backbone network, a feature fusion device, a first bird's-eye view feature extractor and a first map decoder; The first backbone network is used to extract three-dimensional point cloud features from input laser radar three-dimensional image data; the second backbone network is used to extract multi-view teacher two-dimensional semantic features from input multi-view two-dimensional image data; and the third backbone network is used to perform depth estimation on the multi-view teacher two-dimensional semantic features to obtain teacher three-dimensional semantic features; the feature fusion device is used to perform feature fusion on the three-dimensional point cloud features and the teacher three-dimensional semantic features to obtain three-dimensional mixed features; the first bird's-eye view feature extractor is used to project the three-dimensional mixed features into teacher bird's-eye view features; and the first map decoder is used to output a predicted vector map for the teacher bird's-eye view features; The single-mode vector map construction model includes: a fourth backbone network, a fifth backbone network, a second bird's-eye view feature extractor, and a second map decoder; The fourth backbone network is used to extract multi-perspective student two-dimensional semantic features from the input multi-perspective two-dimensional image data; and the fifth backbone network is used to perform depth estimation on the multi-perspective student two-dimensional semantic features to obtain student three-dimensional semantic features; the second bird's-eye view feature extractor is used to project the student three-dimensional semantic features into student bird's-eye view features; and the second map decoder is used to output a predicted vector map for the student bird's-eye view features.

7. A computer device, It is characterized in that The computer device includes a memory and a processor, the memory is used to store a computer program, and the processor is used to execute the computer program stored in the memory to implement the steps of any one of the methods described in claims 1-5.

8. A computer-readable storage medium, It is characterized in that The storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the method described in any one of claims 1 to 5 are implemented.

9. A computer program product, It is characterized in that The method comprises a computer program, which, when executed by a processor, implements the steps of the method according to any one of claims 1 to 5.

Citation Information

Patent Citations

  • Point cloud rendering enhancement method based on knowledge distillation

    CN116863053A

  • Semantic segmentation model training method and apparatus, electronic device, and storage medium

    WO2024012255A1