Laser radar super-resolution method and device, electronic device and storage medium
By combining generative and discriminant models, using signed distance function values and linear interpolation technology, the problem of super-resolution reconstruction of single-frame 3D lidar data is solved, and efficient point cloud data processing at any resolution is achieved, which is suitable for modern applications. There is a lidar system.
Patent Information
- Application Number
- CN202111109236.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-09-22
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2041-09-22
AI Technical Summary
Existing technology is difficult to achieve super-resolution reconstruction on single-frame 3D lidar data, and has problems such as high complexity, slow processing speed, high equipment cost, and the inability to reconstruct to any resolution.
Using a method that combines generative models and discriminative models, by constraining and shape embedding processing on the original point cloud, a signed distance function value is generated to achieve super-resolution reconstruction of lidar data, and is optimized through linear interpolation and preset threshold screening Complete point cloud.
It achieves super-resolution reconstruction of lidar point cloud data at any resolution, improves processing speed and resolution, reduces equipment requirements, and is suitable for existing lidar systems.
Smart Images

Figure CN114764746B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of optics, and in particular to a laser radar super-resolution method and device, electronic equipment and storage medium. Background Art
[0002] LiDAR is an optical remote sensing technology that measures the distance and other parameters of a target by emitting pulsed lasers at the target. Super-resolution is the process of improving the resolution of the original image through hardware or software methods. The signed distance function can be expressed as a signed distance value from a point in a metric space to the boundary of a subset region of the space: the point is positive inside the region boundary, negative outside, and 0 on the boundary.
[0003] There are many existing technologies for processing lidar data and super-resolution reconstruction of images, but there are fewer studies on super-resolution reconstruction technology for lidar data. Among these technologies, most of them use methods that combine multiple frames of images or combine 3D lidar data with 2D image data to achieve super-resolution reconstruction. There is no technology that directly performs super-resolution reconstruction on single-frame 3D lidar data, and there are defects such as high complexity, slow processing speed, and high equipment cost. More importantly, the super-resolution reconstruction of existing technologies is limited to reconstruction to a specified high resolution, and cannot achieve the goal of reconstruction to any resolution. Summary of the invention
[0004] The present invention provides a laser radar super-resolution method and device, electronic equipment and storage medium, which are used to solve the technical defects existing in the prior art.
[0005] The present invention provides a laser radar super-resolution method, comprising:
[0006] Inputting the original point cloud into the discriminant model to obtain the shape embedding of the point cloud block corresponding to the original point cloud; wherein the original point cloud is obtained by constraining the laser radar point cloud data obtained by scanning;
[0007] The three-dimensional coordinates of the target grid point of the target resolution and the corresponding shape embedding values are stitched together and input into the generative model to obtain the signed distance function value of the target grid point; the shape embedding value corresponding to the target grid point is obtained by linear interpolation based on the shape embedding of the point cloud block; the signed distance function value is used to form the point cloud result after super-resolution reconstruction;
[0008] The discriminant model and the generative model are obtained through collaborative training based on the point cloud sample data and the corresponding reconstructed point cloud sample data.
[0009] According to the laser radar super-resolution method of the present invention, wherein the three-dimensional coordinates of the target grid point and the corresponding shape embedding values are spliced together and input into the generative model to obtain the signed distance function value of the target grid point, comprising:
[0010] Based on the comparison result between the absolute value of the signed distance function value of the target grid point and a preset threshold, the grid points for optimization and completion are selected to form a point cloud result after super-resolution reconstruction.
[0011] According to the laser radar super-resolution method of the present invention, the grid points for optimization and completion are selected based on the comparison result of the absolute value of the signed distance function value of the target grid point and a preset threshold, including:
[0012] Compare the absolute value of the signed distance function value of the target grid point with a preset threshold to obtain a comparison result;
[0013] If the comparison result is that the absolute value of the signed distance function value of the target grid point is less than a preset threshold, the target grid point is used as a grid point for optimization and completion.
[0014] According to the laser radar super-resolution method of the present invention, the method further comprises:
[0015] Inputting the original point cloud into the discriminant model to obtain the corresponding completed point cloud with category probability values at the same resolution;
[0016] The discriminant model is obtained after training based on point cloud sample data and corresponding reconstructed point cloud category samples.
[0017] According to the laser radar super-resolution method of the present invention, the loss function of the collaborative training of the discriminant model and the generative model is for:
[0018]
[0019]
[0020]
[0021] in, The first loss function of the discriminant model is the binary cross entropy loss function: i represents each layer of the discriminant model, with a total of m layers; j represents the jth point in the grid obtained in the i-th layer, with a total of n points in each layer. i points; y i,j represents the true probability of the jth point in the i-th layer, p i,jIndicates the predicted probability of the existence of the jth point in the i-th layer;
[0022] The second loss function of the discriminant model is the multi-classification cross entropy loss function: n refers to the n points in the completed point cloud, k is the total number of categories, and y i,c refers to the true probability that the i-th point belongs to the c-th class, p i,c is the predicted probability that the i-th point belongs to the c-th category;
[0023]
[0024] represents the loss function of the generative model, Ω is the entire three-dimensional space, Ω 0 is the surface of the object, function φ is the signed distance function represented by the generative model, x is the three-dimensional coordinate point, is the gradient of the signed distance function, n(x) is the normal vector of the coordinate point x, ψ(φ (x))=exp(-α|φ(x)|), α>>1.
[0025] The present invention also provides a laser radar super-resolution device, comprising:
[0026] A shape embedding determination module, used to input the original point cloud into the discriminant model to obtain the shape embedding of the point cloud block corresponding to the original point cloud; wherein the original point cloud is obtained by constraining the laser radar point cloud data obtained by scanning;
[0027] A signed distance function value determination module is used to stitch together the three-dimensional coordinates of the target grid point of the target resolution and the corresponding shape embedding value and input them into the generative model to obtain the signed distance function value of the target grid point; the shape embedding value corresponding to the target grid point is obtained by linear interpolation based on the shape embedding of the point cloud block; the signed distance function value is used to form the point cloud result after super-resolution reconstruction;
[0028] The discriminant model and the generative model are obtained through collaborative training based on the point cloud sample data and the corresponding reconstructed point cloud sample data.
[0029] According to the laser radar super-resolution device of the present invention, the laser radar super-resolution device further comprises:
[0030] A grid point screening module, used to select grid points for optimization and completion based on a comparison result between the absolute value of the signed distance function value of the target grid point and a preset threshold;
[0031] The super-resolution reconstruction module is used to perform super-resolution reconstruction on the target point cloud based on the grid points used for optimization and completion to obtain an optimized target point cloud.
[0032] According to the laser radar super-resolution device of the present invention, the laser radar super-resolution device further includes a classification module, and the classification module is used to:
[0033] Inputting the original point cloud into the discriminant model to obtain the corresponding completed point cloud with category probability values at the same resolution;
[0034] The discriminant model is obtained after training based on point cloud sample data and corresponding reconstructed point cloud category samples.
[0035] The present invention also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the steps of the laser radar super-resolution method as described in any one of the above-mentioned methods are implemented.
[0036] The present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of any of the laser radar super-resolution methods described above.
[0037] The present invention combines a generative model with a discriminant model, and realizes a fast super-resolution reconstruction process of new laser radar data by learning existing high-resolution data. Since the present invention models the signed distance function of scene objects, it can predict the signed distance function used to reconstruct results to any resolution, and realizes the continuous representation of the surface of the object, so it can realize super-resolution reconstruction of laser radar point cloud data at any resolution; by learning the information in a large amount of scene data, the completion process further utilizes the prior knowledge of big data on the basis of utilizing geometric principles, thereby obtaining a better super-resolution reconstruction result than the existing technology; the target point cloud data obtained by laser radar scanning can be quickly completed and the resolution can be improved, thereby realizing the effect of real-time feedback optimization and improvement of the point cloud results; the present invention does not require the support of complex hardware equipment, and only needs to use the simple electronic equipment and storage medium, and execute the program to process the point cloud data to realize super-resolution reconstruction, so it can be directly applied to the existing system using laser radar equipment, and has strong portability. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. 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.
[0039] Figure 1 It is a schematic flow chart of the laser radar super-resolution method provided by the present invention;
[0040] Figure 2 It is a structural schematic diagram of a super-resolution device of a laser radar provided by the present invention;
[0041] Figure 3 It is a structural schematic diagram of the electronic device provided by the present invention. DETAILED DESCRIPTION
[0042] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0043] Combine the following Figure 1 A laser radar super-resolution method of the present invention is described, the method comprising:
[0044] S1. Inputting the original point cloud into the discriminant model to obtain the shape embedding of the point cloud block corresponding to the original point cloud; wherein the original point cloud is obtained by constraining the laser radar point cloud data obtained by scanning;
[0045] The original point cloud is used to generate the shape embedding of the point cloud blocks corresponding to the original point cloud. By constraining the scanned LiDAR point cloud data, an original point cloud containing several point cloud blocks can be obtained. The constraint can be: constraining the point cloud data scanned by the LiDAR to a specified rectangular range, which is the part that needs to be paid attention to in the actual application scenario.
[0046] In the discriminant model: the first half uses the U-Net structure and connects several convolutional neural network layers to complete the sparse point cloud and classify each point, and output the classification results; the second half connects several convolutional neural network layers and finally outputs the shape embedding of the point cloud block. At this time, the discriminant model has the following input and output forms: input "constrained lidar point cloud"; output "corresponding completed point cloud with category probability value at the same resolution" and "shape embedding of point cloud block".
[0047] S2, splicing together the three-dimensional coordinates of the target grid point of the target resolution and the corresponding shape embedding value and inputting them into the generative model to obtain the signed distance function value of the target grid point; the shape embedding value corresponding to the target grid point is obtained by linear interpolation based on the shape embedding of the point cloud block; the generative model is a neural network composed of several fully connected layers; the signed distance function value is used to form the point cloud result after super-resolution reconstruction;
[0048] When these points are input into the generative model, not only the 3D coordinates (x, y, z values) of the points are input, but the coordinates are concatenated with the shape embedding of each target grid point predicted from the discriminant model and then linearly interpolated. That is, the input has the following form: (S 1 ,S 2 ,...,S n ,x,y,z), where (S 1 ,S 2 ,...,S n ) is the shape embedding vector corresponding to the point (x, y, z), with a total of n dimensions.
[0049] The final output of the training process is the signed distance function value corresponding to each point input into the generative model.
[0050] The discriminant model and the generative model are obtained through collaborative training based on the point cloud sample data and the corresponding reconstructed point cloud sample data. During the training process, a combination of self-supervised training and supervised training is used to optimize the discriminant model for predicting shape embedding and the generative model for fitting the signed distance function through gradient descent and back propagation.
[0051] Specifically, in the training phase: first, the constrained original point cloud is input into a discriminant model. The network maps the original sparse point cloud scanned by each frame of the lidar to some shape embeddings of its corresponding evenly distributed and low-sparse point cloud data. Then, the points in the optimized reconstructed point cloud corresponding to the frame, the points randomly obtained in the constraint space, and the shape embedding corresponding to each point are input into the generative model to fit and train the generative model. In the generative model, multiple frames of point cloud data are trained simultaneously, and all point clouds share the same generative model during the training process. In order to distinguish the signed distance functions of different point clouds, the three-dimensional coordinates of the point cloud are spliced with the shape embedding value representing the scene and position of the point in the input. Since there are many similar scenes in each frame of the point cloud, each scene is evenly divided into several point cloud blocks when training the discriminant model for predicting shape embedding, and a shape embedding value is assigned to each block. For each point in the optimized reconstructed point cloud provided by the training data, the shape embedding value corresponding to the point is obtained by linear interpolation, and then input into the generative model for training. Since the entire computation process is differentiable, training can be performed in the above end-to-end manner.
[0052] The 3D coordinates input into the generative model can be improved by encoding. That is, the 3D coordinates are mapped to m dimensions. In this way, the input of the generative model becomes (m+n)-dimensional data. There are m-dimensional encoded coordinates and n-dimensional shape embeddings. That is, x, y, and z are encoded as:
[0053] (sin(πx),cos(πx),sin(2πx),cos(2πx),……)
[0054] (sin(πy),cos(πy),sin(2πy),cos(2πy),…)
[0055] (sin(πz),cos(πz),sin(2πz),cos(2πz),……)
[0056] Each is m / 3 dimensional.
[0057] The present invention combines the generative model with the discriminative model, and realizes the fast super-resolution reconstruction process of new LiDAR data by learning the existing high-resolution data. Since the present invention models the signed distance function of the scene objects and realizes the continuous representation of the object surface, it can realize the super-resolution reconstruction of LiDAR point cloud data at any resolution; this feature allows users to independently select the resolution size after reconstruction according to the application scenario without the need for complex algorithm modification or hardware equipment replacement. At the same time, the modeling of the signed distance function of the object makes it possible to render the object, meeting more application requirements.
[0058] The present invention learns the information in large quantities of scene data, so that the completion process further utilizes big data prior knowledge on the basis of geometric principles, thereby achieving super-resolution reconstruction results that are better than the existing technology; the target point cloud data obtained by laser radar scanning can be quickly completed and processed to improve the resolution, thereby achieving the effect of real-time feedback of optimized and perfected point cloud results; the present invention does not require the support of complex hardware equipment, but only needs to use the simple electronic equipment and storage medium, and execute the program to process the point cloud data to achieve super-resolution reconstruction, so it can be directly applied to existing systems using laser radar equipment, and has strong portability.
[0059] According to the laser radar super-resolution method of the present invention, wherein the three-dimensional coordinates of the target grid point and the corresponding shape embedding values are spliced together and input into the generative model to obtain the signed distance function value of the target grid point, including:
[0060] Based on the comparison result of the absolute value of the signed distance function value of the target grid point and the preset threshold, the grid points for optimization and completion are selected. All the obtained grid points for optimization and completion can constitute the point cloud result after super-resolution reconstruction.
[0061] That is to say, after obtaining the signed distance function value, a smaller preset threshold can be defined (the preset threshold can be set to a number close to zero, such as 0.001, 0.01, etc.), and the points whose absolute value of the signed distance function value is less than the threshold are regarded as points with a signed distance function value of zero, that is, points on the surface of the object, and other points are regarded as points not on the surface. In this way, the result obtained after optimizing and improving the input point cloud and super-resolution reconstruction is predicted.
[0062] According to the laser radar super-resolution method of the present invention, the grid points for optimization and completion are selected based on the comparison result of the absolute value of the signed distance function value of the target grid point and a preset threshold, including:
[0063] Compare the absolute value of the signed distance function value of the target grid point with a preset threshold to obtain a comparison result;
[0064] If the comparison result is that the absolute value of the signed distance function value of the target grid point is less than a preset threshold, the target grid point is used as a grid point for optimization and completion.
[0065] If the comparison result is that the absolute value of the signed distance function value of the target grid point is not less than the preset threshold, the target grid point is regarded as a grid point not on the surface of the object, and the grid point not on the surface of the object can be discarded without consideration.
[0066] According to the laser radar super-resolution method of the present invention, the method further comprises:
[0067] Inputting the original point cloud into the discriminant model to obtain the corresponding completed point cloud with category probability values at the same resolution;
[0068] The discriminant model is obtained after training based on point cloud sample data and corresponding reconstructed point cloud category samples.
[0069] During super-resolution reconstruction, we input the sparse point cloud into the super-resolution reconstruction network and obtain the final predicted reconstructed point cloud A at any resolution and the reconstructed point cloud B with category information at the resolution corresponding to the input point cloud. Then, for each point a in A, the nearest neighbor search is used to find the point b closest to a in B, and the category information of point b is assigned to point a. In this way, each point in A has category information. In other words, the super-resolution point cloud reconstruction result with category information at any resolution is finally obtained.
[0070] Since the output of the discriminant model is connected to the generative model, the entire calculation process is differentiable, so the simultaneous training of the discriminant model and the generative model can be achieved through the optimization process of the following loss function. According to the laser radar super-resolution method of the present invention, the loss function for the collaborative training of the discriminant model and the generative model is for:
[0071]
[0072]
[0073]
[0074] in, The first loss function of the discriminant model is the binary cross entropy loss function: (the corresponding training process is: the training process of outputting the shape embedding of the point cloud block), i represents each layer of the discriminant model, a total of m layers; j represents the jth point in the grid obtained in the i-th layer, and each layer has a total of n i points; y i,j represents the true probability of the jth point in the i-th layer, p i,j Indicates the predicted probability of the existence of the jth point in the i-th layer;
[0075] represents the second loss function of the discriminant model, which is a multi-class cross entropy loss function (the corresponding training process is: the training process of the completed point cloud with class probability values at the same resolution corresponding to the output point cloud block), n refers to the n points in the completed point cloud, k is the total number of categories, and y i,crefers to the true probability that the i-th point belongs to the c-th category (for each point i, the true probability under one and only one category is 1, and the true probability under other categories is 0, that is, the true category of the point can only be one category), p i,c is the predicted probability that the i-th point belongs to the c-th category;
[0076] In the discriminant model: the first half uses the U-Net structure and connects several convolutional neural network layers to complete the sparse point cloud and classify each point, and output the classification results; the second half connects several convolutional neural network layers and finally outputs the shape embedding of the point cloud block. At this time, our discriminant model has the following input and output forms: input "constrained lidar point cloud"; output "corresponding completed point cloud with category probability values at the same resolution" and "shape embedding of point cloud block". The above classification and generation of shape embedding of point cloud blocks are carried out simultaneously, and are also trained together during the training phase.
[0077]
[0078] represents the loss function of the generative model, Ω is the entire three-dimensional space, Ω 0 is the surface of the object, function φ is the signed distance function represented by the generative model, x is the three-dimensional coordinate point, is the gradient of the signed distance function, n(x) is the normal vector of the coordinate point x, ψ(φ (x)) = exp(-α|φ(x)|), α>>1. When minimizing the loss: the first integral term in the formula makes the modulus of the gradient of the signed distance function in the entire space tend to 1 (physically reflects the characteristics of the signed distance function in the spatial field); the first addition term in the second integral term makes the signed distance function value of the point on the surface tend to 0 (physically reflects that the distance from the point on the surface to the surface is 0), and the second addition term makes the gradient of the point on the surface and the normal vector of the point tend to the same direction (physically, the gradient represents the direction in which the function value changes fastest. For the signed distance function, the direction of the surface normal vector happens to be the direction in which the function value changes fastest); the third integral term uses the exp exponential function to make the signed distance function value of the point not on the surface tend to infinity.
[0079] In the generative model, when using this loss function for training: for the points in the optimized reconstructed point cloud corresponding to each frame (on the surface of the object), their predicted signed distance function values are optimized to zero; for the points randomly obtained in the constraint space (not on the surface of the object), their predicted signed distance function values can be optimized to their true signed distance function values, but because the focus in the super-resolution reconstruction process is the surface of the object, that is, the points with zero signed distance function values, the predicted signed distance function values of these points not on the surface are optimized to infinity, thereby enhancing the degree of surface recognition.
[0080] For LiDAR data, its point cloud is quite sparse. Although it is possible to directly perform super-resolution reconstruction on the original point cloud data using only a single degraded generative model, the result obtained will have problems such as uneven distribution, unsatisfactory details of the reconstruction result, and large data noise. Therefore, in order to achieve better super-resolution reconstruction results, it is necessary to compensate for this sparsity, that is, to complete the sparse areas. The combination of the generative model and the discriminant model in the present invention allows the completion process to be carried out along with the super-resolution reconstruction process.
[0081] See also Figure 2 The laser radar super-resolution device provided by the present invention is described below. The laser radar super-resolution device described below and the laser radar super-resolution method described above can be referred to each other. The laser radar super-resolution device includes:
[0082] The shape embedding determination module 10 is used to input the original point cloud into the discriminant model to obtain the shape embedding of the point cloud block corresponding to the original point cloud; wherein the original point cloud is obtained by constraining the laser radar point cloud data obtained by scanning;
[0083] The original point cloud is used to generate the shape embedding of the point cloud block corresponding to the original point cloud. By constraining the scanned LiDAR point cloud data, the original point cloud containing several point cloud blocks can be obtained. The specific constraints can be: first constrain the point cloud data scanned by the LiDAR to a specified rectangular range, which is the part that needs to be paid attention to in the actual application scenario.
[0084] A signed distance function value determination module 20 is used to stitch together the three-dimensional coordinates of the target grid point of the target resolution and the corresponding shape embedding value and input them into the generative model to obtain the signed distance function value of the target grid point; the shape embedding value corresponding to the target grid point is obtained by linear interpolation based on the shape embedding of the point cloud block; the signed distance function value is used to form a point cloud result after super-resolution reconstruction;
[0085] The discriminant model and the generative model are obtained through collaborative training based on the point cloud sample data and the corresponding reconstructed point cloud sample data.
[0086] When these points are input into the generative model, not only the three-dimensional coordinates (x, y, z values) of the points are input, but the coordinates are concatenated with the shape embedding value (i.e., shape embedding vector) of each target grid point obtained by linear interpolation from the shape embedding of the point cloud block predicted from the discriminant model. That is, the input has the following form: (S 1 , S 2 , ..., S n , x, y, z), where (S 1 ,S 2 ,...,S n ) is the shape embedding vector corresponding to the point (x, y, z), with a total of n dimensions.
[0087] The final output of the training process is the signed distance function value corresponding to each point input into the generative model.
[0088] The discriminant model and the generative model are obtained through collaborative training based on the point cloud sample data and the corresponding reconstructed point cloud sample data. During the training process, a combination of self-supervised training and supervised training is used to optimize the discriminant model for predicting shape embedding and the generative model for fitting the signed distance function through gradient descent and back propagation.
[0089] Specifically, in the training phase: first, the constrained original point cloud is input into a discriminant model. The network maps the original sparse point cloud scanned by each frame of the lidar to some shape embeddings of its corresponding evenly distributed and low-sparse point cloud data. Then, the points in the optimized reconstructed point cloud corresponding to the frame, the points randomly obtained in the constraint space, and the shape embedding corresponding to each point are input into the generative model to fit and train the generative model. In the generative model, multiple frames of point cloud data are trained simultaneously, and all point clouds share the same generative model during the training process. In order to distinguish the signed distance functions of different point clouds, the three-dimensional coordinates of the point cloud are spliced with the shape embedding value representing the scene and position of the point in the input. Since there are many similar scenes in each frame of the point cloud, each scene is evenly divided into several point cloud blocks when training the discriminant model for predicting shape embedding, and a shape embedding value is assigned to each block. For each point in the optimized reconstructed point cloud provided by the training data, the shape embedding value corresponding to the point is obtained by linear interpolation, and then input into the generative model for training. Since the entire computation process is differentiable, training can be performed in the above end-to-end manner.
[0090] According to the laser radar super-resolution device of the present invention, the laser radar super-resolution device further comprises:
[0091] The super-resolution reconstruction module is used to select grid points for optimization and completion based on the comparison result between the absolute value of the signed distance function value of the target grid point and a preset threshold value to form a point cloud result after super-resolution reconstruction.
[0092] That is to say, after obtaining the signed distance function value, a smaller preset threshold can be defined (the preset threshold can be set to a number close to zero, such as 0.001, 0.01, etc.), and the points whose absolute value of the signed distance function value is less than the threshold are regarded as points with a signed distance function value of zero, that is, points on the surface of the object, and other points are regarded as points not on the surface. In this way, the result obtained after optimizing and improving the input point cloud and super-resolution reconstruction is predicted.
[0093] According to the super-resolution device of the laser radar of the present invention, the super-resolution reconstruction module is specifically used for:
[0094] Compare the absolute value of the signed distance function value of the target grid point with a preset threshold to obtain a comparison result;
[0095] If the comparison result is that the absolute value of the signed distance function value of the target grid point is less than a preset threshold, the target grid point is used as a grid point for optimization and completion.
[0096] If the comparison result is that the absolute value of the signed distance function value of the target grid point is not less than the preset threshold, the target grid point is regarded as a grid point not on the surface of the object, and the grid point not on the surface of the object can be discarded without consideration.
[0097] Since the output of the discriminant model is connected to the generative model, the entire calculation process is differentiable, so the discriminant model and the generative model can be trained simultaneously by optimizing the following loss function. According to the laser radar super-resolution method of the present invention,
[0098] The loss function of the discriminative model and the generative model for collaborative training for:
[0099]
[0100]
[0101]
[0102] in, represents the first loss function of the discriminant model (the corresponding training process is: the training process of outputting the shape embedding of the point cloud block), i represents each layer of the discriminant model, a total of m layers; j represents the jth point in the grid obtained in the i-th layer, and each layer has a total of n i points; y i,j represents the true probability of the jth point in the i-th layer, p i,j Indicates the predicted probability of the existence of the jth point in the i-th layer;
[0103] represents the second loss function of the discriminative model (the corresponding training process is: the training process of the completed point cloud with category probability values at the same resolution corresponding to the output point cloud block), n refers to the n points in the completed point cloud, k is the total number of categories, and y i,c refers to the true probability that the ith point belongs to the cth class (for each point i, the true probability under one and only one class is 1, and the true probability under other classes is 0, that is, the true category of the point can only be one class), p i,c is the predicted probability that the i-th point belongs to the c-th category;
[0104] In the discriminant model: the first half uses the U-Net structure and connects several convolutional neural network layers to complete the sparse point cloud and classify each point, and output the classification results; the second half connects several convolutional neural network layers and finally outputs the shape embedding of the point cloud block. At this time, our discriminant model has the following input and output forms: input "constrained lidar point cloud"; output "corresponding completed point cloud with category probability values at the same resolution" and "shape embedding of point cloud block". The above classification and generation of shape embedding of point cloud blocks are carried out simultaneously, and are also trained together during the training phase.
[0105]
[0106] represents the loss function of the generative model, Ω is the entire three-dimensional space, Ω 0 is the surface of the object, function φ is the signed distance function represented by the generative model, x is the three-dimensional coordinate point, is the gradient of the signed distance function, n(x) is the normal vector of the coordinate point x, ψ(φ (x)) = exp(-α|φ(x)|), α>>1. When minimizing the loss: the first integral term in the formula makes the gradient modulus of the signed distance function in the entire space tend to 1 (physically reflects the characteristics of the signed distance function in the spatial field); the first addition term in the second integral term makes the signed distance function value of the point on the surface tend to 0 (physically reflects that the distance from the point on the surface to the surface is 0), and the second addition term makes the gradient of the point on the surface and the normal vector of the point tend to the same direction (physically, the gradient represents the direction in which the function value changes fastest. For the signed distance function, the direction of the surface normal vector happens to be the direction in which the function value changes fastest); the third integral term uses the exp exponential function to make the signed distance function value of the point not on the surface tend to infinity.
[0107] In the generative model, when using this loss function for training: for the points in the optimized reconstructed point cloud corresponding to each frame (on the surface of the object), their predicted signed distance function values are optimized to zero; for the points randomly obtained in the constraint space (not on the surface of the object), their predicted signed distance function values can be optimized to their true signed distance function values, but because the focus in the super-resolution reconstruction process is the surface of the object, that is, the points with zero signed distance function values, the predicted signed distance function values of these points not on the surface are optimized to infinity, thereby enhancing the degree of surface recognition.
[0108] For LiDAR data, its point cloud is quite sparse. Although it is possible to directly perform super-resolution reconstruction on the original point cloud data using only a single degraded generative model, the result obtained will have problems such as uneven distribution, unsatisfactory details of the reconstruction result, and large data noise. Therefore, in order to achieve better super-resolution reconstruction results, it is necessary to compensate for this sparsity, that is, to complete the sparse areas. The combination of the generative model and the discriminant model in the present invention allows the completion process to be carried out along with the super-resolution reconstruction process.
[0109] According to the laser radar super-resolution device of the present invention, the laser radar super-resolution device further includes a classification module, and the classification module is used to:
[0110] Inputting the original point cloud into the discriminant model to obtain the corresponding completed point cloud with category probability values at the same resolution;
[0111] The discriminant model is obtained after training based on point cloud sample data and corresponding reconstructed point cloud category samples.
[0112] Figure 3An example of a physical structure diagram of an electronic device is shown, and the electronic device may include: a processor 310, a communication interface 320, a memory 330, and a communication bus 340, wherein the processor 310, the communication interface 320, and the memory 330 communicate with each other through the communication bus 340. The processor 310 may call the logic instructions in the memory 330 to execute the super-resolution method of the laser radar, and the method includes:
[0113] S1. Inputting the original point cloud into the discriminant model to obtain the shape embedding of the point cloud block corresponding to the original point cloud; wherein the original point cloud is obtained by constraining the laser radar point cloud data obtained by scanning;
[0114] S2, splicing the three-dimensional coordinates of the target grid point of the target resolution and the corresponding shape embedding value together and inputting them into the generative model to obtain the signed distance function value of the target grid point; the shape embedding value corresponding to the target grid point is obtained by linear interpolation based on the shape embedding of the point cloud block; the signed distance function value is used to form the point cloud result after super-resolution reconstruction;
[0115] The discriminant model and the generative model are obtained through collaborative training based on the point cloud sample data and the corresponding reconstructed point cloud sample data.
[0116] In addition, the logic instructions in the above-mentioned memory 330 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.
[0117] On the other hand, the present invention further provides a computer program product, the computer program product comprising a computer program stored on a non-transitory computer-readable storage medium, the computer program comprising program instructions, and when the program instructions are executed by a computer, the computer can execute the laser radar super-resolution method provided by the above methods, the method comprising:
[0118] S1. Inputting the original point cloud into the discriminant model to obtain the shape embedding of the point cloud block corresponding to the original point cloud; wherein the original point cloud is obtained by constraining the laser radar point cloud data obtained by scanning;
[0119] S2, splicing the three-dimensional coordinates of the target grid point of the target resolution and the corresponding shape embedding value together and inputting them into the generative model to obtain the signed distance function value of the target grid point; the shape embedding value corresponding to the target grid point is obtained by linear interpolation based on the shape embedding of the point cloud block; the signed distance function value is used to form the point cloud result after super-resolution reconstruction;
[0120] The discriminant model and the generative model are obtained through collaborative training based on the point cloud sample data and the corresponding reconstructed point cloud sample data.
[0121] In another aspect, the present invention further provides a non-transitory computer-readable storage medium having a computer program stored thereon, which is implemented when the computer program is executed by a processor to perform the laser radar super-resolution method provided above, the method comprising:
[0122] S1. Inputting the original point cloud into the discriminant model to obtain the shape embedding of the point cloud block corresponding to the original point cloud; wherein the original point cloud is obtained by constraining the laser radar point cloud data obtained by scanning;
[0123] S2, splicing the three-dimensional coordinates of the target grid point of the target resolution and the corresponding shape embedding value together and inputting them into the generative model to obtain the signed distance function value of the target grid point; the shape embedding value corresponding to the target grid point is obtained by linear interpolation based on the shape embedding of the point cloud block; the signed distance function value is used to form the point cloud result after super-resolution reconstruction;
[0124] The discriminant model and the generative model are obtained through collaborative training based on the point cloud sample data and the corresponding reconstructed point cloud sample data.
[0125] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.
[0126] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.
[0127] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A laser radar super-resolution method, characterized in that: include: Inputting the original point cloud into the discriminant model to obtain the shape embedding of the point cloud block corresponding to the original point cloud; wherein the original point cloud is obtained by constraining the laser radar point cloud data obtained by scanning; The three-dimensional coordinates of the target grid point of the target resolution and the corresponding shape embedding values are stitched together and input into the generative model to obtain the signed distance function value of the target grid point; the shape embedding value corresponding to the target grid point is obtained by linear interpolation based on the shape embedding of the point cloud block; the signed distance function value is used to form the point cloud result after super-resolution reconstruction; Wherein, the discriminant model and the generative model are obtained after collaborative training based on the point cloud sample data and the corresponding reconstructed point cloud sample data; The method further comprises: Inputting the original point cloud into the discriminant model to obtain the corresponding completed point cloud with category probability values at the same resolution; Wherein, the discriminant model is obtained after training based on point cloud sample data and corresponding reconstructed point cloud category samples; The loss function of the discriminative model and the generative model for collaborative training for: in, The first loss function of the discriminant model is the binary cross entropy loss function: i represents each layer of the discriminant model, with a total of m layers; j represents the jth point in the grid obtained in the i-th layer, with a total of n points in each layer. i points; y i,j represents the true probability of the jth point in the i-th layer, p i,j Indicates the predicted probability of the existence of the jth point in the i-th layer; The second loss function of the discriminant model is the multi-classification cross entropy loss function: n refers to the n points in the completed point cloud, k is the total number of categories, and y i,c refers to the true probability that the i-th point belongs to the c-th class, p i,c is the predicted probability that the i-th point belongs to the c-th category; represents the loss function of the generative model, Ω is the entire three-dimensional space, Ω0 is the surface of the object, function φ is the signed distance function represented by the generative model, x is the three-dimensional coordinate point, ▽φ is the gradient of the signed distance function, n(x) is the normal vector of the coordinate point x, ψ(φ(x))=exp(-α|φ(x)|), α>>1.
2. The laser radar super-resolution method according to claim 1, characterized in that: The three-dimensional coordinates of the target grid point and the corresponding shape embedding values are spliced together and input into the generative model to obtain the signed distance function value of the target grid point, including: Based on the comparison result between the absolute value of the signed distance function value of the target grid point and a preset threshold, the grid points for optimization and completion are selected to form a point cloud result after super-resolution reconstruction.
3. The laser radar super-resolution method according to claim 2, characterized in that: The selecting of the grid points for optimization and completion based on the comparison result of the absolute value of the signed distance function value of the target grid point and a preset threshold value comprises: Compare the absolute value of the signed distance function value of the target grid point with a preset threshold to obtain a comparison result; If the comparison result is that the absolute value of the signed distance function value of the target grid point is less than a preset threshold, the target grid point is used as a grid point for optimization and completion.
4. A laser radar super-resolution device, characterized in that: include: A shape embedding determination module, used to input the original point cloud into the discriminant model to obtain the shape embedding of the point cloud block corresponding to the original point cloud; wherein the original point cloud is obtained by constraining the laser radar point cloud data obtained by scanning; A signed distance function value determination module is used to stitch together the three-dimensional coordinates of the target grid point of the target resolution and the corresponding shape embedding value and input them into the generative model to obtain the signed distance function value of the target grid point; the shape embedding value corresponding to the target grid point is obtained by linear interpolation based on the shape embedding of the point cloud block; the signed distance function value is used to form the point cloud result after super-resolution reconstruction; Wherein, the discriminant model and the generative model are obtained after collaborative training based on the point cloud sample data and the corresponding reconstructed point cloud sample data; The device also includes: Inputting the original point cloud into the discriminant model to obtain the corresponding completed point cloud with category probability values at the same resolution; Wherein, the discriminant model is obtained after training based on point cloud sample data and corresponding reconstructed point cloud category samples; The loss function of the discriminative model and the generative model for collaborative training for: in, The first loss function of the discriminant model is the binary cross entropy loss function: i represents each layer of the discriminant model, with a total of m layers; j represents the jth point in the grid obtained in the i-th layer, with a total of n points in each layer. i points; y i,j represents the true probability of the jth point in the i-th layer, p i,j Indicates the predicted probability of the existence of the jth point in the i-th layer; The second loss function of the discriminant model is the multi-classification cross entropy loss function: n refers to the n points in the completed point cloud, k is the total number of categories, and y i,c refers to the true probability that the i-th point belongs to the c-th class, p i,c is the predicted probability that the i-th point belongs to the c-th category; represents the loss function of the generative model, Ω is the entire three-dimensional space, Ω0 is the surface of the object, function φ is the signed distance function represented by the generative model, x is the three-dimensional coordinate point, ▽φ is the gradient of the signed distance function, n(x) is the normal vector of the coordinate point x, ψ(φ(x))=exp(-α|φ(x)|), α>>1.
5. The laser radar super-resolution device according to claim 4, characterized in that: The super-resolution device of the laser radar also includes: The super-resolution reconstruction module is used to select grid points for optimization and completion based on the comparison result between the absolute value of the signed distance function value of the target grid point and a preset threshold value to form a point cloud result after super-resolution reconstruction.
6. The laser radar super-resolution device according to claim 4, characterized in that: The super-resolution device of the laser radar further includes a classification module, which is used for: Inputting the original point cloud into the discriminant model to obtain the corresponding completed point cloud with category probability values at the same resolution; The discriminant model is obtained after training based on point cloud sample data and corresponding reconstructed point cloud category samples.
7. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the steps of the laser radar super-resolution method as described in any one of claims 1 to 3 are implemented.
8. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the laser radar super-resolution method as described in any one of claims 1 to 3 are implemented.
