A method and device for 3D reconstruction of sparse point clouds
Patent Information
- Application Number
- CN202410651088.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-24
- Publication Date
- 2024-09-27
- Estimated Expiration
- 2044-05-24
AI Technical Summary
When faced with sparse and noisy data, existing 3D vehicle reconstruction methods are prone to overfitting the noise in the data and cannot effectively capture the global characteristics of the object, resulting in inaccurate reconstruction.
By introducing standardized flow training, the original distribution space of latent encodings is converted into a simpler and more compact target optimization space, and the analytic LM optimizer combining signed distance loss and latent variable regularization loss optimizes latent encodings to improve reconstruction accuracy and robustness.
When dealing with noise and incomplete data, it improves the accuracy and reliability of 3D shape reconstruction, reduces convergence time, adapts to the accuracy requirements of different application scenarios, and reduces memory requirements.
Smart Images

Figure CN118229893B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of three-dimensional modeling, and in particular to a method and device for three-dimensional reconstruction of sparse point clouds. Background Art
[0002] Autonomous driving systems need to accurately perceive and understand the surrounding environment, which includes identifying and reconstructing vehicles on the road. Since image data acquired in real environments often contains noise and may only be a partial view of an object, reconstructing the 3D shape of a vehicle from sparse and partial point clouds has become a basic requirement of the autonomous driving industry.
[0003] Existing methods for 3D reconstruction of vehicles can be roughly divided into two categories: explicit modeling methods and implicit modeling methods; explicit modeling methods, whether based on points, voxels or grids, have their inherent limitations. For example, point-based methods are limited by resolution and topological description and cannot generate closed surfaces; voxel-based methods require a lot of memory and computation, resulting in slow training speed and low resolution; grid-based methods are limited by the topological structure of fixed templates and may not be able to generate closed surfaces or handle complex shapes. Implicit modeling methods such as DeepSDF, a network based on learning implicit space to recover 3D shapes, can learn low-dimensional mapping of 3D shapes from local point clouds, but when faced with sparse and noisy data in real scenes, it is often difficult to reconstruct normal vehicle models. This is mainly because the network is prone to overfitting the noise in the data during training and cannot effectively capture the global features of the object.
[0004] In the above schemes, whether it is an explicit modeling method or an implicit modeling method, the network is prone to overfitting the noise in the data during training and cannot effectively capture the global features of the object, resulting in the inability to reconstruct the accurate three-dimensional shape of the vehicle. Summary of the invention
[0005] In view of this, the present invention provides a sparse point cloud three-dimensional reconstruction method and device to solve the problem that explicit modeling methods and implicit modeling methods are prone to overfitting the noise in the data during the training process, and are unable to effectively capture the global features of the object, resulting in the inability to reconstruct the accurate three-dimensional shape of the vehicle.
[0006] In a first aspect, the present invention provides a sparse point cloud three-dimensional reconstruction method, the method comprising:
[0007] Obtain target sparse point cloud data;
[0008] Converting an initial first latent code in the target optimization space to an original latent code space corresponding to the target sparse point cloud data to obtain a current second latent code;
[0009] Processing the target sparse point cloud data and the current second potential code by a target automatic decoder to obtain a first signed distance function value;
[0010] Based on the first signed distance function value, updating and optimizing the initial first latent code to obtain an optimal first latent code;
[0011] Converting the best first latent code to the original latent code space corresponding to the target sparse point cloud data to obtain the best second latent code;
[0012] Processing the optimal second latent code and the target sparse point cloud data by the target automatic decoder to obtain a second signed distance function value;
[0013] Three-dimensional reconstruction is performed based on the second signed distance function value to obtain a three-dimensional model corresponding to the target sparse point cloud data.
[0014] During training, the above scheme introduces standardized flow training to transform the original distribution space of the latent code into a simpler and more compact target optimization space. By making the target optimization space more continuous and smooth, the model can more robustly cope with noise and incompleteness in the data, thereby improving the accuracy and reliability of the reconstructed shape. In application, the above scheme combines the signed distance loss with the latent variable regularization loss to construct an analytical LM optimizer, which reduces the convergence time and can quickly obtain model results when the data set is large and computing resources are limited.
[0015] In an optional implementation, before acquiring the target sparse point cloud data, the method further includes:
[0016] Obtain a target three-dimensional model dataset;
[0017] Preprocessing the target three-dimensional model data set to obtain target point cloud data with a third signed distance function value;
[0018] Based on the third signed distance function value, training the target automatic decoder to obtain a training second latent code corresponding to each three-dimensional model in the target three-dimensional model data set;
[0019] A normalized flow network is trained based on the training second latent code to map the training second latent code from the original latent code space to the target optimization space.
[0020] In an optional implementation, the training a normalized flow network based on the training second latent code to map the training second latent code from the original latent code space to the target optimization space includes:
[0021] Constructing a reversible transformation layer of a standardized flow network based on the target optimization space;
[0022] constructing the standardized flow network based on the reversible transformation layer;
[0023] Based on the reversible transformation layer, the normalized flow network is trained with the training second latent representation as training data to map the training second latent code from the original latent code space to the target optimization space.
[0024] During training, the above scheme introduces standardized flow training to transform the original latent coding space of the latent code into a simpler and more compact target optimization space. By making the target optimization space more continuous and smooth, the model can more robustly cope with noise and incompleteness in the data, thereby improving the accuracy and reliability of the reconstructed shape.
[0025] In an optional implementation, converting the initial first latent code in the target optimization space to the original latent code space corresponding to the target sparse point cloud data to obtain the current second latent code includes:
[0026] Fixing the network weights of the normalized flow network and the network weights of the target automatic decoder;
[0027] The initial first latent code in the target optimization space is input into the standardized flow network, and an inverse process of the standardized flow network is performed to convert the initial first latent code into the original latent code space corresponding to the target sparse point cloud data, and obtain the current second latent code.
[0028] In an optional implementation, the processing of the target sparse point cloud data and the current second potential code by the target automatic decoder to obtain a first signed distance function value includes:
[0029] The target sparse point cloud data is concatenated with the current second potential code, and the concatenated result is input into the target automatic decoder to obtain a first signed distance function value.
[0030] In an optional implementation, the updating and optimizing the initial first potential code based on the first signed distance function value to obtain the best first potential code includes:
[0031] Establishing a loss objective function according to the first signed distance function value;
[0032] The LM optimization process is performed based on the loss objective function to obtain the best first potential encoding.
[0033] The above scheme executes the LM optimization process by parsing the LM optimizer, which can simultaneously consider the accuracy of shape reconstruction and the regularization of implicit encoding during the optimization process, reducing the convergence time. When the data set is large and the computing resources are limited, the model results can be obtained quickly.
[0034] In an optional implementation, converting the best first latent code to an original latent code space corresponding to the target sparse point cloud data to obtain the best second latent code includes:
[0035] Based on the best first latent code, a secondary inverse process of the normalized flow network is performed to convert the best first latent code into an original latent code space corresponding to the target sparse point cloud data to obtain an best second latent code.
[0036] In an optional implementation, the processing of the optimal second potential code and the target sparse point cloud data by the target automatic decoder to obtain a second signed distance function value includes:
[0037] Based on the optimal second potential code, the three-dimensional space where the target sparse point cloud data is located is gridded, and a second signed distance function value is obtained through the target automatic decoder.
[0038] In an optional implementation, obtaining the second symbol distance function value through the target automatic decoder includes:
[0039] For each grid point after the gridding process, the three-dimensional coordinates of the grid point and the optimal second latent code are input into the target automatic decoder to obtain the second signed distance function value corresponding to the grid point.
[0040] The above scheme achieves efficient, accurate and flexible 3D shape reconstruction by utilizing the standardized flow transformation objective optimization space and the analytical LM optimizer that combines the signed distance loss with the latent variable regularization loss.
[0041] In a second aspect, the present invention provides a sparse point cloud three-dimensional reconstruction device, the device comprising:
[0042] A target sparse point cloud data acquisition module is used to acquire target sparse point cloud data;
[0043] A current second potential code acquisition module is used to convert the initial first potential code in the target optimization space to the original potential code space corresponding to the target sparse point cloud data to obtain the current second potential code;
[0044] A first signed distance function value acquisition module, configured to process the target sparse point cloud data and the current second potential code through a target automatic decoder to obtain a first signed distance function value;
[0045] An optimal first potential code acquisition module, configured to update and optimize the initial first potential code based on the first signed distance function value to obtain an optimal first potential code;
[0046] An optimal second potential code acquisition module, used for converting the optimal first potential code into an original potential code space corresponding to the target sparse point cloud data to obtain an optimal second potential code;
[0047] A second signed distance function value acquisition module, used for processing the optimal second potential code and the target sparse point cloud data through the target automatic decoder, and obtaining a second signed distance function value;
[0048] The three-dimensional model building module is used to perform three-dimensional reconstruction based on the second signed distance function value to obtain a three-dimensional model corresponding to the target sparse point cloud data.
[0049] In a third aspect, the present invention provides a computer device, comprising: a memory and a processor, the memory and the processor being communicatively connected to each other, the memory storing computer instructions, and the processor executing the computer instructions to execute a sparse point cloud three-dimensional reconstruction method according to the first aspect or any corresponding embodiment thereof.
[0050] In a fourth aspect, the present invention provides a computer-readable storage medium having computer instructions stored thereon, the computer instructions being used to enable a computer to execute a sparse point cloud three-dimensional reconstruction method according to the first aspect or any corresponding embodiment thereof.
[0051] In a fifth aspect, the present invention provides a computer program product, comprising computer instructions for causing a computer to execute a sparse point cloud three-dimensional reconstruction method according to the first aspect or any corresponding embodiment thereof.
[0052] The technical solution provided by the present invention may include the following beneficial effects:
[0053] During training, the present invention introduces standardized flow training to convert the original distribution space of latent coding into a simpler and more compact target optimization space. By making the target optimization space more continuous and smooth, the model can more robustly cope with noise and incompleteness in the data, thereby improving the accuracy and reliability of the reconstructed shape. In application, the loss objective function combines the signed distance loss with the latent variable regularization loss to perform the LM optimization process, which reduces the convergence time and can quickly obtain model results when the data set is large and computing resources are limited.
[0054] Furthermore, the implicit latent coding in the present invention can capture the intrinsic structure and topological information of the shape and store the three-dimensional shape features, so that complex shape features can be represented in a more compact manner, further reducing the memory requirements;
[0055] Furthermore, by training the normalized flow network, the model can learn the mapping relationship from implicit latent coding to the three-dimensional shape surface, which makes the present invention highly flexible and scalable, and can adapt to the requirements of reconstruction accuracy in different application scenarios; when faced with incomplete sparse point cloud data, the present invention can reconstruct a three-dimensional shape that fits the actual point cloud data and has a reasonable structure by combining the powerful capabilities of implicit latent representation and deep learning, which makes the present invention have high robustness and accuracy when processing incomplete data, and can reconstruct a high-quality three-dimensional model. BRIEF DESCRIPTION OF THE DRAWINGS
[0056] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0057] Figure 1 is a schematic flow chart of a sparse point cloud 3D reconstruction method according to an embodiment of the present invention;
[0058] Figure 2 is a flow chart of another sparse point cloud 3D reconstruction method according to an embodiment of the present invention;
[0059] Figure 3 is a schematic diagram of training a target automatic decoder according to an embodiment of the present invention;
[0060] Figure 4 is a schematic diagram of training a standardized flow network according to an embodiment of the present invention;
[0061] Figure 5 is a schematic diagram of a sparse point cloud 3D reconstruction framework according to an embodiment of the present invention;
[0062] Figure 6 is a structural block diagram of a sparse point cloud 3D reconstruction device according to an embodiment of the present invention;
[0063] Figure 7 It is a schematic diagram of the hardware structure of a computer device according to an embodiment of the present invention. DETAILED DESCRIPTION
[0064] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution 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, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.
[0065] It should be noted that the present invention uses standardized flow to transform the target optimization space, making the algorithm optimization more continuous. Standardized flow is a deep generative model that transforms complex distributions into simple distributions (such as standard Gaussian distribution) through a series of reversible transformations. The main purpose of introducing standardized flow is to transform the target optimization space to make it more continuous and smooth, which means that during the optimization process, the changes in parameters will be smoother, reducing the risk of sudden jumps or local minima, thereby improving the convergence speed and stability of the algorithm. By transforming the target optimization space through standardized flow, the model can better handle complex optimization tasks, especially when dealing with partial observations and noisy data.
[0066] In addition, the present invention constructs a loss objective function based on signed distance loss and latent variable regularization loss, that is, the present invention performs the LM optimization process through an analytical LM optimizer that combines signed distance loss (Signed Distance Loss) and latent variable regularization loss. Signed distance loss is a loss function commonly used in implicit surface reconstruction, which measures the difference in signed distance between the predicted surface and the actual surface. The latent variable regularization loss is used to constrain the complexity of implicit coding or avoid overfitting. The analytical LM optimizer that combines these two losses can simultaneously consider the accuracy of shape reconstruction and the regularization of implicit coding during the optimization process. The present invention aims to achieve more accurate and stable three-dimensional shape reconstruction, especially when processing incomplete point cloud observations, it can effectively capture the global features of the object and reconstruct accurate three-dimensional shapes.
[0067] According to an embodiment of the present invention, an embodiment of a sparse point cloud three-dimensional reconstruction method is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0068] In this embodiment, a sparse point cloud 3D reconstruction method is provided. Figure 1 is a flow chart of a sparse point cloud 3D reconstruction method according to an embodiment of the present invention. Figure 1 As shown, the process includes the following steps:
[0069] Step S101, obtaining target sparse point cloud data.
[0070] Specifically, after the standardized flow network training is completed, this embodiment obtains target sparse point cloud data mainly for three-dimensional reconstruction. The target sparse point cloud data in this embodiment is usually obtained by sensors such as lidar, and is characterized by a large amount of data, uneven distribution, and contains a large amount of noise and irrelevant information.
[0071] Step S102, converting the initial first latent code in the target optimization space to the original latent code space corresponding to the target sparse point cloud data to obtain the current second latent code.
[0072] Specifically, the standardized flow network is a reversible deep generative model that can convert a complex original latent coding space into a simple target optimization space (such as a standard normal distribution space and a standard Gaussian distribution space) through a series of reversible transformations, and can convert a simple distribution back to the original distribution through an inverse process. This embodiment involves a process of coding space conversion and mapping. First, an initial first latent coding is preset, and an inverse process of the standardized flow network is performed based on the initial first latent coding, thereby converting the initial first latent coding in the target optimization space to the original latent coding space corresponding to the target sparse point cloud data, which provides an important basis for subsequent point cloud data processing and analysis. In this embodiment, the target optimization space is the space where the optimization variable w is located; the original latent coding space is a high-dimensional latent space that can characterize the shape of the point cloud, that is, the space where the original variable z is located.
[0073] Step S103, processing the target sparse point cloud data and the current second latent code through a target automatic decoder to obtain a first signed distance function value.
[0074] Specifically, this embodiment involves the process of point cloud data decoding and signed distance calculation, the target automatic decoder can accurately decode shape information from the potential code, and the generated implicit function needs to be able to accurately calculate the signed distance. The target automatic decoder can be a DeepSDF automatic decoder.
[0075] Step S104, based on the first signed distance function value, updating and optimizing the initial first latent code to obtain an optimal first latent code;
[0076] Specifically, this embodiment updates and optimizes the initial first latent code based on the first signed distance function value to obtain the best first latent code. It is an iterative optimization process, which aims to find the latent code that can best represent the target sparse point cloud data, that is, the best first latent code. The best first latent code is an effective representation of the target sparse point cloud data and can be used for subsequent shape analysis, reconstruction or other related tasks.
[0077] Step S105, converting the best first latent code to the original latent code space corresponding to the target sparse point cloud data to obtain the best second latent code;
[0078] Specifically, this embodiment performs a secondary inverse process of the normalized flow network based on the best first latent code, ensuring that the best first latent code can be mapped back to the original latent code space matching the target sparse point cloud data to obtain the best second latent code.
[0079] Step S106, processing the optimal second potential code and the target sparse point cloud data by the target automatic decoder to obtain a second signed distance function value;
[0080] Specifically, this embodiment further verifies and evaluates the degree of matching between the latent code and the point cloud data through the target automatic decoder, and obtains the second signed distance function value as a quantitative indicator, which helps to evaluate the relationship between the latent code and the point cloud data, and provides important information for subsequent shape analysis, optimization or reconstruction tasks.
[0081] Step S107 , performing three-dimensional reconstruction based on the second signed distance function value to obtain a three-dimensional model corresponding to the target sparse point cloud data.
[0082] Specifically, this embodiment uses signed distance information to restore and reconstruct the three-dimensional shape, and performs three-dimensional reconstruction based on the second signed distance function value, so as to obtain a three-dimensional model corresponding to the target sparse point cloud data. The constructed three-dimensional model can more accurately reflect the structure and details of the original shape.
[0083] In summary, during training, the present invention introduces standardized flow training to convert the original distribution space of the latent code into a simpler and more compact target optimization space. By making the target optimization space more continuous and smooth, the model can more robustly cope with noise and incompleteness in the data, thereby improving the accuracy and reliability of the reconstructed shape; and in application, the loss objective function combines the signed distance loss with the latent variable regularization loss to perform the LM optimization process, which reduces the convergence time, and can quickly obtain model results when the data set is large and computing resources are limited.
[0084] Furthermore, the implicit latent coding in the present invention can capture the intrinsic structure and topological information of the shape and store the three-dimensional shape features, so that complex shape features can be represented in a more compact manner, further reducing the memory requirements;
[0085] Furthermore, by training the normalized flow network, the model can learn the mapping relationship from implicit latent coding to the three-dimensional shape surface, which makes the present invention highly flexible and scalable, and can adapt to the requirements of reconstruction accuracy in different application scenarios; when faced with incomplete sparse point cloud data, the present invention can reconstruct a three-dimensional shape that fits the actual point cloud data and has a reasonable structure by combining the powerful capabilities of implicit latent representation and deep learning, which makes the present invention have high robustness and accuracy when processing incomplete data, and can reconstruct a high-quality three-dimensional model.
[0086] According to an embodiment of the present invention, another embodiment of a sparse point cloud three-dimensional reconstruction method is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0087] In this embodiment, a sparse point cloud 3D reconstruction method is provided. Figure 2 is a flow chart of a sparse point cloud 3D reconstruction method according to an embodiment of the present invention. Figure 2 As shown, the process includes the following steps:
[0088] Step S201, obtaining a target three-dimensional model data set;
[0089] Optionally, the target 3D model dataset may be a ShapeNet car model dataset. The ShapeNet car model dataset is a large 3D model dataset that includes 3D models of various categories. The ShapeNet car model dataset may be used to train and test algorithms related to 3D model processing.
[0090] Step S202: preprocess the target three-dimensional model data set to obtain target point cloud data with a third signed distance function value.
[0091] Specifically, this embodiment first obtains the OBJ format data in the target three-dimensional model dataset, and preprocesses the OBJ format data into point cloud data with SDF values, that is, the target point cloud data with the third signed distance function value mentioned above. The preprocessing step includes reading the OBJ file in the target three-dimensional model dataset, converting the OBJ file into point cloud data, and calculating the SDF value (that is, the third signed distance function value) for each point. The SDF value (Signed Distance Function) is a function that represents the closest distance from each point in the point cloud to the model surface. If the point is inside the model, the SDF value is negative; if the point is outside the model, the SDF value is positive; if the point is on the surface of the model, the SDF value is zero.
[0092] Step S203: training the target automatic decoder based on the third signed distance function value to obtain a training second latent code corresponding to each three-dimensional model in the target three-dimensional model data set.
[0093] Specifically, when the target automatic decoder is a DeepSDF automatic decoder, this embodiment uses the third signed distance function value as a supervisory signal to train the DeepSDF automatic decoder alone. DeepSDF is a neural network structure that decodes the SDF value of the three-dimensional model from the potential vector, and optimizes the parameters of the DeepSDF automatic decoder by minimizing the error between the predicted SDF value and the actual SDF value, so as to obtain the training second potential code z corresponding to each three-dimensional model in the target three-dimensional model data set. x .
[0094] Please see Figure 3 The training diagram of the target automatic decoder is shown. Based on the point cloud data p in the target point cloud data, the DeepSDF automatic decoder is trained to predict the error between the SDF value s' and the SDF value s of the actual point cloud data p, and the second potential code z is obtained. x . Target auto-decoder for representing latent encoding.
[0095] Step S204: training a normalized flow network based on the training second latent code to map the training second latent code from the original latent code space to the target optimization space.
[0096] Specifically, step S204 includes:
[0097] Step S2041, constructing a reversible transformation layer of a standardized flow network based on the target optimization space;
[0098] Step S2042, constructing the standardized flow network based on the reversible transformation layer;
[0099] Step S2043: Based on the reversible transformation layer, the normalized flow network is trained with the training second latent representation as training data to map the training second latent code from the original latent code space to the target optimization space.
[0100] Specifically, during the training of the DeepSDF automatic decoder, for each 3D model, the encoder part generates a potential representation (i.e., the second potential encoding z in the above training) x ). Train the second latent code z x It captures the important features of the model and can be used to reconstruct the SDF value of the model. After the training is completed, these training second potential codes z are saved x , and train the second latent code z x As the training input of the next step of the Normalizing Flows network. In the training of the Normalizing Flows network, it is usually assumed that there is a basic distribution (also called the prior distribution, i.e. the target optimization space mentioned above, and the multivariate Gaussian distribution is preferred in this embodiment), and all data will eventually be mapped to this basic distribution through a series of reversible transformations. The multivariate Gaussian distribution is a multivariate probability distribution that can capture the correlation between variables, and its shape can be flexibly adjusted through the mean vector and covariance matrix.
[0101] The core of the standardized flow network is to gradually transform the data distribution into the base distribution through a series of reversible transformations. These transformations are reversible so that the original data distribution can be restored from the base distribution. When the target optimization space is a multivariate Gaussian distribution, the reversible transformation layer of the standardized flow network includes Gaussian transformation and rotation transformation. Gaussian transformation refers to adjusting the mean and covariance of the data to make it closer to the base distribution. Rotation transformation is a linear transformation that does not change the shape or size of the data, but only changes its direction. Rotation transformation is used in the standardized flow to further adjust the directionality of the data to make it closer to the shape of the multivariate Gaussian distribution. The standardized flow network consists of several Gaussian transformations. and rotation transformation Combination.
[0102] Among them, the Gaussian transformation formula is:
[0103] ;
[0104] in, Represents a standard Gaussian distribution The cumulative distribution function of k represents the dimension of vector x, s i represents the scale factor, t irepresents the translation factor;
[0105] The rotation transformation formula is:
[0106] ;
[0107] Among them, R represents the orthogonal rotation matrix, and C represents the square matrix;
[0108] The goal of training the Normalized Flow Network is to learn a series of reversible transformations through reversible transformation layers that can transform the trained second latent representation z x Convert to train the first latent representation w x , where the first latent representation w is trained x Obey the multivariate standard Gaussian distribution and train the first potential representation w x It can be further decoded into the SDF value of the three-dimensional model through the DeepSDF automatic decoder.
[0109] For details, see Figure 4 The training diagram of the standardized flow network is shown. Figure 4 The second potential representation z is trained with x The normalized flow network is trained for the training data to train the second latent representation z x Transformed to the first latent representation w that obeys the objective optimization space distribution x , the standard Gaussian distribution is , the reversible transformation layer includes GaussianizationTransform and rotationTransform. Represents the inverse process of normalizing a flow network.
[0110] Step S205, obtain the target sparse point cloud data. For details, see Figure 1 Step S101 of the illustrated embodiment will not be described in detail here.
[0111] Step S206, input the initial first latent code in the target optimization space into the standardized flow network, and perform an inverse process of the standardized flow network to convert the initial first latent code into the original latent code space corresponding to the target sparse point cloud data, and obtain the current second latent code.
[0112] Specifically, this embodiment uses an all-zero vector to initialize a set of new variables to obtain an initial first potential code w0. The initial first potential code w0 will be used as the input of the standardized flow network to perform an inverse process (also called a decoding process), which converts the initial first potential code w0 from the standard multivariate Gaussian distribution space back to the original potential code space, and outputs the current second potential code z1. In the standardized flow, the inverse process is reversible, so the current second potential code z1 can be restored from the initial first potential code w0 through a series of inverse transformations.
[0113] Specifically, before step S206, the network weights of the standardized flow network and the network weights of the target automatic decoder need to be fixed. Fixing the network weights of the standardized flow network and the target automatic decoder means that during the optimization process, the parameters of the two networks will not change, so that the main focus of this embodiment is to optimize the newly introduced initial first potential code w0, rather than the network weights.
[0114] Step S207, concatenating the target sparse point cloud data with the current second potential code, and inputting the concatenated result into the target automatic decoder to obtain a first signed distance function value.
[0115] Specifically, in this embodiment, the current second potential code z1 output from the normalized flow network is concatenated with the target sparse point cloud to form a complete input of the target automatic decoder, so that the target automatic decoder can simultaneously use the current second potential code z1 and the target sparse point cloud data to generate each three-dimensional query point p in the target sparse point cloud data. j The first signed distance function value s j The first signed distance function value s j It represents the shortest distance from each point in the target sparse point cloud data to the model surface, which is the key information for supervising the training of the target automatic decoder.
[0116] Step S208, based on the first signed distance function value, updating and optimizing the initial first latent code to obtain an optimal first latent code;
[0117] Specifically, step S208 includes:
[0118] Step S2081, establishing a loss objective function according to the first signed distance function value;
[0119] Step S2082: Execute the LM optimization process based on the loss objective function to obtain the best first latent code.
[0120] Specifically, this embodiment defines a loss minimization objective function, which consists of two parts: sdf_loss (signed distance loss) and w_norm_loss (latent variable regularization loss). sdf_loss measures the difference between the SDF value generated by the target automatic decoder and the true SDF value, while w_norm_loss is a regularization term applied to the initial first latent code w0 itself. This embodiment uses an optimization algorithm to minimize the defined loss objective function, such as the Levenberg-Marquardt (LM) algorithm, to update the value of the initial first latent code w0. In this process, the present embodiment continuously adjusts the initial first latent code w0 so that the target automatic decoder can more accurately generate an SDF value that matches the input target sparse point cloud data. The LM algorithm is an iterative optimization method suitable for solving nonlinear least squares problems. Through the LM optimization process, the present embodiment can find the optimal first latent code that minimizes the loss objective function, denoted as .
[0121] Specifically, the formula of the loss objective function is:
[0122] ;
[0123] Where w represents the optimization variable of Normalizing flow. represents the signed distance loss, represents the latent variable regularization loss, represents the best first latent code, N represents the number of 3D points of each object, and p j represents a three-dimensional query point, The target automatic decoder representing the latent code, when inputting a 3D query point and a latent code, can calculate the SDF value of the 3D query point. Represents a normalized flow network.
[0124] Step S209, based on the best first latent code, performing a secondary inverse process of the normalized flow network to convert the best first latent code into the original latent code space corresponding to the target sparse point cloud data, to obtain the best second latent code;
[0125] Specifically, after the above steps, this embodiment has obtained the best first potential code through LM , then, this embodiment uses the best first potential code To perform the secondary inverse process of the normalized flow network, the corresponding optimal second latent code is obtained .
[0126] Step S210, based on the best second potential code, gridding the three-dimensional space where the target sparse point cloud data is located, and obtaining a second signed distance function value through the target automatic decoder;
[0127] Specifically, the step S210 of “obtaining a second symbol distance function value by using the target automatic decoder” includes:
[0128] Step S211, for each grid point after the gridding process, the three-dimensional coordinates of the grid point and the optimal second latent code are input into the target automatic decoder to obtain the second signed distance function value corresponding to the grid point.
[0129] Specifically, this embodiment divides the three-dimensional space (usually a three-dimensional space area) corresponding to the target sparse point cloud data into a series of small grids, each of which has a clear three-dimensional coordinate. This gridding process is to evaluate the SDF value (i.e., the second signed distance function value) of each grid point in the next step. For each grid point, this embodiment compares its three-dimensional coordinates with the best second latent code previously obtained. The target automatic decoder will calculate the SDF value (i.e., the second signed distance function value) of the grid point based on this information. The SDF value represents the closest distance from the point to the model surface, which is negative inside the model, positive outside, and zero on the surface.
[0130] Step S211: Perform three-dimensional reconstruction based on the second signed distance function value to obtain a three-dimensional model corresponding to the target sparse point cloud data.
[0131] Specifically, finally, this embodiment uses the second signed distance function values of all grid points as input and calls the Marching Cubes algorithm to reconstruct or generate a complete three-dimensional model. The Marching Cubes algorithm is a widely used voxelization algorithm that determines whether each grid point is inside or outside the model based on the SDF value and constructs the surface of the model accordingly. This process combines the latent space transformation of the normalized flow network, the decoding capability of the automatic decoder, and the voxelization technology of the Marching Cubes algorithm to extract the latent code from the sparse point cloud data and reconstruct the corresponding three-dimensional model.
[0132] For details, see Figure 5The schematic diagram of the sparse point cloud 3D reconstruction framework is shown, the initial first latent code w0 is converted from the standard multivariate Gaussian distribution space back to the original latent code space, and the output is the current second latent code z1, and then the current second latent code z1 is concatenated with the target sparse point cloud data p to form a complete input of the target automatic decoder, so that the target automatic decoder can simultaneously use the current second latent code z1 and the target sparse point cloud data p to generate each 3D query point p in the target sparse point cloud data j The first signed distance function value s j , and finally call the Marching Cubes algorithm to reconstruct or generate a complete three-dimensional model.
[0133] In summary, during training, the present invention introduces standardized flow training to convert the original distribution space of the latent code into a simpler and more compact target optimization space. By making the target optimization space more continuous and smooth, the model can more robustly cope with noise and incompleteness in the data, thereby improving the accuracy and reliability of the reconstructed shape; and in application, the loss objective function combines the signed distance loss with the latent variable regularization loss to perform the LM optimization process, which reduces the convergence time, and can quickly obtain model results when the data set is large and computing resources are limited.
[0134] Furthermore, the implicit latent coding in the present invention can capture the intrinsic structure and topological information of the shape and store the three-dimensional shape features, so that complex shape features can be represented in a more compact manner, further reducing the memory requirements;
[0135] Furthermore, by training the normalized flow network, the model can learn the mapping relationship from implicit latent coding to the three-dimensional shape surface, which makes the present invention highly flexible and scalable, and can adapt to the requirements of reconstruction accuracy in different application scenarios; when faced with incomplete sparse point cloud data, the present invention can reconstruct a three-dimensional shape that fits the actual point cloud data and has a reasonable structure by combining the powerful capabilities of implicit latent representation and deep learning, which makes the present invention have high robustness and accuracy when processing incomplete data, and can reconstruct a high-quality three-dimensional model.
[0136] In this embodiment, a sparse point cloud three-dimensional reconstruction device is also provided, which is used to implement the above-mentioned embodiments and preferred implementation modes, and the descriptions that have been made will not be repeated. As used below, the term "module" can be a combination of software and / or hardware that implements a predetermined function. Although the device described in the following embodiments is preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.
[0137] This embodiment provides a sparse point cloud 3D reconstruction device, such as Figure 6 As shown, including:
[0138] The target sparse point cloud data acquisition module 601 is used to acquire target sparse point cloud data;
[0139] A current second potential code acquisition module 602 is used to convert the initial first potential code in the target optimization space to the original potential code space corresponding to the target sparse point cloud data to obtain the current second potential code;
[0140] A first signed distance function value acquisition module 603 is used to process the target sparse point cloud data and the current second potential code through a target automatic decoder to obtain a first signed distance function value;
[0141] An optimal first potential code acquisition module 604 is used to update and optimize the initial first potential code based on the first signed distance function value to obtain an optimal first potential code;
[0142] The best second potential code acquisition module 605 is used to convert the best first potential code into the original potential code space corresponding to the target sparse point cloud data to obtain the best second potential code;
[0143] A second signed distance function value acquisition module 606 is used to process the optimal second potential code and the target sparse point cloud data through the target automatic decoder to obtain a second signed distance function value;
[0144] The three-dimensional model building module 607 is used to perform three-dimensional reconstruction based on the second signed distance function value to obtain a three-dimensional model corresponding to the target sparse point cloud data.
[0145] In some optional embodiments, the device is also used for:
[0146] Obtain a target three-dimensional model dataset;
[0147] Preprocessing the target three-dimensional model data set to obtain target point cloud data with a third signed distance function value;
[0148] Based on the third signed distance function value, the target automatic decoder is trained to obtain a training second potential code corresponding to each three-dimensional model in the target three-dimensional model data set;
[0149] A normalized flow network is trained based on the training second latent code to map the training second latent code from the original latent code space to the target optimization space.
[0150] In some optional embodiments, the device is also used for:
[0151] Based on the target optimization space, a reversible transformation layer of a standardized flow network is constructed;
[0152] Constructing the standardized flow network based on the reversible transformation layer;
[0153] Based on the reversible transformation layer, the normalized flow network is trained with the training second latent representation as training data to map the training second latent code from the original latent code space to the target optimization space.
[0154] In some optional implementations, the best second potential code acquisition module 605 is further used to:
[0155] Fix the network weights of the normalized flow network and the network weights of the target automatic decoder;
[0156] The initial first latent code in the target optimization space is input into the standardized flow network, and an inverse process of the standardized flow network is performed to convert the initial first latent code into the original latent code space corresponding to the target sparse point cloud data, and obtain the current second latent code.
[0157] In some optional implementations, the first signed distance function value obtaining module 603 is further used for:
[0158] The target sparse point cloud data is concatenated with the current second potential code, and the concatenated result is input into the target automatic decoder to obtain a first signed distance function value.
[0159] In some optional implementations, the best first potential code acquisition module 604 is further used to:
[0160] Establishing a loss objective function according to the first signed distance function value;
[0161] The LM optimization process is performed based on the loss objective function to obtain the best first latent code.
[0162] In some optional implementations, the best second potential code acquisition module 605 is further used to:
[0163] Based on the best first latent code, a secondary inverse process of the normalized flow network is performed to convert the best first latent code into an original latent code space corresponding to the target sparse point cloud data to obtain an optimal second latent code.
[0164] In some optional implementations, the second signed distance function value obtaining module 606 is further used to:
[0165] Based on the optimal second potential code, the three-dimensional space where the target sparse point cloud data is located is gridded, and the second signed distance function value is obtained through the target automatic decoder.
[0166] In some optional implementations, the second signed distance function value obtaining module 606 is further used to:
[0167] For each grid point after the gridding process, the three-dimensional coordinates of the grid point and the optimal second potential code are input into the target automatic decoder to obtain the second signed distance function value corresponding to the grid point.
[0168] The further functional description of each of the above modules and units is the same as that of the above corresponding embodiments and will not be repeated here.
[0169] In this embodiment, a sparse point cloud three-dimensional reconstruction device is presented in the form of a functional unit, where the unit refers to an ASIC (Application Specific Integrated Circuit) circuit, a processor and memory that executes one or more software or fixed programs, and / or other devices that can provide the above-mentioned functions.
[0170] The embodiment of the present invention also provides a computer device having the above Figure 6 A sparse point cloud three-dimensional reconstruction device is shown.
[0171] See also Figure 7 , Figure 7 Schematic diagram of the hardware structure of the computer device according to the embodiment of the present invention. Figure 7 As shown, the computer device includes: one or more processors 10, a memory 20, and interfaces for connecting various components, including high-speed interfaces and low-speed interfaces. Various components are connected to each other using different buses for communication, and can be installed on a common mainboard or installed in other ways as needed. The processor can process the instructions executed in the computer device, including instructions stored in or on the memory to display the graphical information of the GUI on an external input / output device (such as, a display device coupled to the interface). In some optional embodiments, if necessary, multiple processors and / or multiple buses can be used together with multiple memories and multiple memories. Similarly, multiple computer devices can be connected, and each device provides some necessary operations (for example, as a server array, a group of blade servers, or a multi-processor system). Figure 7 A processor 10 is taken as an example.
[0172] The processor 10 may be a central processing unit, a network processor or a combination thereof. The processor 10 may further include a hardware chip. The hardware chip may be a dedicated integrated circuit, a programmable logic device or a combination thereof. The programmable logic device may be a complex programmable logic device, a field programmable gate array, a general purpose array logic or any combination thereof.
[0173] The memory 20 stores instructions executable by at least one processor 10, so that the at least one processor 10 executes the method shown in the above embodiment.
[0174] The memory 20 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created according to the use of the computer device, etc. In addition, the memory 20 may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some optional embodiments, the memory 20 may optionally include a memory remotely arranged relative to the processor 10, and these remote memories may be connected to the computer device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0175] The memory 20 may include a volatile memory, such as a random access memory; the memory may also include a non-volatile memory, such as a flash memory, a hard disk or a solid state drive; the memory 20 may also include a combination of the above types of memory.
[0176] The computer device further comprises a communication interface 30 for the computer device to communicate with other devices or a communication network.
[0177] The embodiment of the present invention also provides a computer-readable storage medium. The method according to the embodiment of the present invention can be implemented in hardware, firmware, or can be implemented as a computer code that can be recorded in a storage medium, or can be implemented as a computer code that is originally stored in a remote storage medium or a non-temporary machine-readable storage medium and will be stored in a local storage medium through a network download, so that the method described herein can be stored in such software processing on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. Among them, the storage medium can be a magnetic disk, an optical disk, a read-only storage memory, a random access memory, a flash memory, a hard disk or a solid-state hard disk, etc.; further, the storage medium can also include a combination of the above types of memories. It can be understood that a computer, a processor, a microprocessor controller, or programmable hardware includes a storage component that can store or receive software or computer code. When the software or computer code is accessed and executed by a computer, a processor, or hardware, the method shown in the above embodiment is implemented.
[0178] A part of the present invention may be applied as a computer program product, such as a computer program instruction, which, when executed by a computer, can call or provide the method and / or technical solution according to the present invention through the operation of the computer. Those skilled in the art should understand that the existence of the computer program instruction in a computer-readable medium includes, but is not limited to, a source file, an executable file, an installation package file, etc., and accordingly, the way in which the computer program instruction is executed by the computer includes, but is not limited to: the computer directly executes the instruction, or the computer compiles the instruction and then executes the corresponding compiled program, or the computer reads and executes the instruction, or the computer reads and installs the instruction and then executes the corresponding installed program. Here, the computer-readable medium may be any available computer-readable storage medium or communication medium accessible to the computer.
[0179] Although the embodiments of the present invention have been described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the present invention, and such modifications and variations are all within the scope defined by the appended claims.
Claims
1. A sparse point cloud 3D reconstruction method, It is characterized in that The method comprises: After the normalized flow network training is completed, the target sparse point cloud data is obtained; Based on the initial first latent code, an inverse process of the normalized flow network is performed to convert the initial first latent code in the target optimization space into the original latent code space corresponding to the target sparse point cloud data to obtain a current second latent code; Processing the target sparse point cloud data and the current second potential code by a target automatic decoder to obtain a first signed distance function value; Based on the first signed distance function value, updating and optimizing the initial first latent code to obtain an optimal first latent code; Converting the best first latent code to the original latent code space corresponding to the target sparse point cloud data to obtain the best second latent code; Processing the optimal second latent code and the target sparse point cloud data by the target automatic decoder to obtain a second signed distance function value; Performing three-dimensional reconstruction based on the second signed distance function value to obtain a three-dimensional model corresponding to the target sparse point cloud data; The updating and optimizing the initial first potential code based on the first signed distance function value to obtain the best first potential code includes: According to the first signed distance function value, a loss objective function is established; the loss objective function includes a signed distance loss and a latent variable regularization loss; Performing a Levenberg-Marquardt optimization process based on the loss objective function to obtain an optimal first latent code; The converting the best first latent code to the original latent code space corresponding to the target sparse point cloud data to obtain the best second latent code includes: Based on the best first latent code, a secondary inverse process of the normalized flow network is performed to convert the best first latent code into an original latent code space corresponding to the target sparse point cloud data to obtain an best second latent code.
2. The method according to claim 1, It is characterized in that Before acquiring the target sparse point cloud data, the method further includes: Obtain a target three-dimensional model dataset; Preprocessing the target three-dimensional model data set to obtain target point cloud data with a third signed distance function value; Based on the third signed distance function value, the target automatic decoder is trained to obtain a training second potential code corresponding to each three-dimensional model in the target three-dimensional model data set; A normalized flow network is trained based on the training second latent code to map the training second latent code from the original latent code space to the target optimization space.
3. The method according to claim 2, It is characterized in that The step of training a normalized flow network based on the training second latent code to map the training second latent code from the original latent code space to the target optimization space includes: Constructing a reversible transformation layer of a standardized flow network based on the target optimization space; constructing the standardized flow network based on the reversible transformation layer; Based on the reversible transformation layer, the normalized flow network is trained with the training second latent code as training data to map the training second latent code from the original latent code space to the target optimization space.
4. The method according to claim 3, It is characterized in that The performing an inverse process of the standardized flow network based on the initial first potential code, converting the initial first potential code in the target optimization space to the original potential code space corresponding to the target sparse point cloud data, and obtaining the current second potential code, includes: Fixing the network weights of the normalized flow network and the network weights of the target automatic decoder; The initial first latent code in the target optimization space is input into the standardized flow network, and an inverse process of the standardized flow network is performed to convert the initial first latent code into the original latent code space corresponding to the target sparse point cloud data, and obtain the current second latent code.
5. The method according to claim 1, It is characterized in that The step of processing the target sparse point cloud data and the current second potential code by the target automatic decoder to obtain a first signed distance function value includes: The target sparse point cloud data is concatenated with the current second potential code, and the concatenated result is input into the target automatic decoder to obtain a first signed distance function value.
6. The method according to claim 1, It is characterized in that The step of processing the optimal second potential code and the target sparse point cloud data by the target automatic decoder and obtaining a second signed distance function value includes: Based on the optimal second potential code, the three-dimensional space where the target sparse point cloud data is located is gridded, and a second signed distance function value is obtained through the target automatic decoder.
7. The method according to claim 6, It is characterized in that The step of obtaining a second symbol distance function value by the target automatic decoder comprises: For each grid point after the gridding process, the three-dimensional coordinates of the grid point and the optimal second latent code are input into the target automatic decoder to obtain the second signed distance function value corresponding to the grid point.
8. A sparse point cloud 3D reconstruction device, It is characterized in that The device comprises: The target sparse point cloud data acquisition module is used to obtain the target sparse point cloud data after the standardized flow network training is completed; A current second potential code acquisition module is used to perform an inverse process of the normalized flow network based on the initial first potential code, convert the initial first potential code in the target optimization space into the original potential code space corresponding to the target sparse point cloud data, and obtain the current second potential code; A first signed distance function value acquisition module, configured to process the target sparse point cloud data and the current second potential code through a target automatic decoder to obtain a first signed distance function value; An optimal first potential code acquisition module, configured to update and optimize the initial first potential code based on the first signed distance function value to obtain an optimal first potential code; An optimal second potential code acquisition module, used for converting the optimal first potential code into an original potential code space corresponding to the target sparse point cloud data to obtain an optimal second potential code; A second signed distance function value acquisition module, used for processing the optimal second potential code and the target sparse point cloud data through the target automatic decoder, and obtaining a second signed distance function value; A three-dimensional model building module, used for performing three-dimensional reconstruction based on the second signed distance function value to obtain a three-dimensional model corresponding to the target sparse point cloud data; The best first potential coding acquisition module is further used for: According to the first signed distance function value, a loss objective function is established; the loss objective function includes a signed distance loss and a latent variable regularization loss; Performing a Levenberg-Marquardt optimization process based on the loss objective function to obtain an optimal first latent code; The optimal second potential coding acquisition module is further used for: Based on the best first latent code, a secondary inverse process of the normalized flow network is performed to convert the best first latent code into an original latent code space corresponding to the target sparse point cloud data to obtain an best second latent code.
9. A computer device, It is characterized in that include: A memory and a processor, wherein the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes a sparse point cloud three-dimensional reconstruction method according to any one of claims 1 to 7 by executing the computer instructions.
10. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a computer to execute a sparse point cloud three-dimensional reconstruction method according to any one of claims 1 to 7.
11. A computer program product, It is characterized in that The method comprises computer instructions, wherein the computer instructions are used to enable a computer to execute a sparse point cloud three-dimensional reconstruction method according to any one of claims 1 to 7.
Citation Information
Cited By
Nerve field and grid hybrid generation method and system of rendering engine
CN122618065A
