Method for training point cloud data processing model and related product thereof
By using isometric blocking and optimal transmission theory to train the encoder and decoder in the point cloud data processing model, the problem of insufficient perceptual quality of the point cloud data compression model is solved, and the consistency of point cloud data processing and downstream tasks are improved. accuracy.
Patent Information
- Application Number
- CN202410785899.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-18
- Publication Date
- 2024-09-10
AI Technical Summary
Existing point cloud data compression models have deficiencies in perceptual quality, causing the decompressed point cloud distribution to be inconsistent with the initial point cloud distribution, affecting the accuracy of downstream tasks such as point cloud recognition and segmentation.
The initial point cloud data set is obtained by using equidistant block operations, and the point cloud encoder and decoder are trained under the constraints of the optimal transmission distance. The optimal transmission theory and the quadratic Wasserstein distance optimization joint optimization function are used to improve the point cloud data. Processing the perceived quality of the model.
Under the same compression rate, the error between the decompressed point cloud data and the initial point cloud data is reduced, and the accuracy of point cloud recognition and segmentation tasks is improved.
Smart Images

Figure CN118628867A
Abstract
Description
Technical Field
[0001] The present disclosure generally relates to the field of point cloud data processing technology. More specifically, the present disclosure relates to a method, device, and computer-readable storage medium for training a point cloud data processing model. Further, the present disclosure also relates to a method, device, and computer-readable storage medium for compressing point cloud data. Further, the present disclosure also relates to a method, device, and computer-readable storage medium for decompressing point cloud data. Background Art
[0002] With the rapid development of 3D scanning technology, 3D lidar sensors, which are commonly used in self-driving cars or mobile robots, can generate millions of points in seconds. These large point clouds can effectively represent complex geometries, but this also poses severe challenges to data transmission. Although 5G networks can achieve higher transmission rates, representing 3D point cloud data in a compact and structured way is still the key to processing massive data. To solve this problem, point cloud compression and decoding technology has been widely studied. In particular, in recent years, with the increase in point cloud datasets, deep neural networks have played a huge role in point cloud compression.
[0003] In the application of deep neural networks in point cloud compression, the Rate-Distortion (RD) model based on bit rate and distortion has received widespread attention and brought excellent solutions. However, D in the RD model measures the global geometric error and often ignores the perceptual quality determined by the point cloud distribution. This situation causes the point cloud distribution obtained by decompressing the RD model to be inconsistent with the initial point cloud distribution, with lower perceptual quality (Pereeption), which has a greater impact on the accuracy of downstream tasks such as point cloud recognition and point cloud segmentation.
[0004] In view of this, there is an urgent need to provide a solution for training the point cloud data processing model, so as to provide a point cloud encoder and point cloud decoder with higher perceptual quality, improve the consistency between the decompressed point cloud distribution and the initial point cloud distribution, thereby reducing the impact on the accuracy of downstream tasks such as point cloud recognition and point cloud segmentation. Summary of the invention
[0005] In order to at least solve one or more of the technical problems mentioned above, the present disclosure proposes a solution for training a point cloud data processing model in the following aspects.
[0006] In a first aspect, the present disclosure provides a method for training a point cloud data processing model, wherein the point cloud data processing model includes a point cloud encoder, a point cloud decoder and a point cloud judger, the method comprising: obtaining an initial point cloud data set for training the point cloud data processing model using an equidistant blocking operation; training the point cloud encoder and the point cloud decoder using the initial point cloud data set; and training the point cloud judger based on the initial point cloud data set, the point cloud encoder and the point cloud decoder to achieve training of the point cloud data processing model.
[0007] In some embodiments, the use of an equidistant blocking operation to obtain an initial point cloud data set for training the point cloud processing model includes: acquiring a target point cloud data set; and performing an equidistant blocking operation on each target point cloud data set in the target point cloud data set according to coordinate equidistant to obtain point cloud blocks of the initial point cloud data set that constitute the initial point cloud data set.
[0008] In some embodiments, the training of the point cloud encoder and the point cloud decoder using the initial point cloud data set includes: inputting the initial point cloud data in the initial point cloud data set into the point cloud encoder for compression operation to obtain first point cloud data; inputting the first point cloud data into the point cloud decoder for decompression operation to obtain second point cloud data; under the constraint of optimal transmission distance, obtaining a joint optimization function based on the initial point cloud data and the second point cloud data; and training the point cloud encoder and the point cloud decoder based on the joint optimization function.
[0009] In some embodiments, the encoder includes a feature extractor and a sampler, and the compression operation includes: inputting the initial point cloud data into the feature extractor to perform a feature extraction operation to obtain a first feature of the initial point cloud data; inputting the initial point cloud data into the sampler to perform a downsampling operation to obtain the first point cloud data; based on the point correspondence relationship between the first point cloud data and the initial point cloud data, obtaining a second feature of the first point cloud data from the first feature of the initial point cloud data; and performing a quantization encoding operation on the first point cloud data and the second feature.
[0010] In a second aspect, the present disclosure provides a device for training a point cloud data processing model, comprising: a processor; and a memory storing program instructions for training a point cloud data processing model, wherein when the program instructions are executed by the processor, the method described in the aforementioned first aspect and its multiple embodiments are implemented.
[0011] In a third aspect, the present disclosure provides a method for compressing point cloud data, comprising: obtaining point cloud data to be compressed; and inputting the point cloud data to be compressed into a point cloud encoder trained by the method described in the first aspect and its multiple embodiments, performing a compression operation to output compressed point cloud data.
[0012] In a fourth aspect, the present disclosure provides a device for compressing point cloud data, comprising: a processor; and a memory storing program instructions for compressing point cloud data, wherein when the program instructions are executed by the processor, the method described in the aforementioned third aspect is implemented.
[0013] In the fifth aspect, the present disclosure provides a method for decompressing point cloud data, comprising: receiving compressed point cloud data; and inputting the compressed point cloud data into a point cloud decoder trained by the method described in the first aspect and its multiple embodiments to perform a decompression operation to output decompressed point cloud data.
[0014] In a sixth aspect, the present disclosure provides a device for decompressing point cloud data, comprising: a processor; and a memory storing program instructions for decompressing point cloud data, wherein when the program instructions are executed by the processor, the method described in the aforementioned fifth aspect is implemented.
[0015] In the seventh aspect, the present disclosure provides a computer-readable storage medium having stored thereon program instructions for training a point cloud data processing model, for compressing point cloud data and / or for decompressing point cloud data. When the program instructions are executed by a processor, the method described in the first aspect and its multiple embodiments, the method described in the third aspect and / or the method described in the fifth aspect are implemented.
[0016] By using the solution for training the point cloud data processing model as provided above, a trained point cloud encoder and point cloud decoder can be obtained. The point cloud encoder and point cloud decoder disclosed in the present invention have high perceptual quality, so that the distribution of the decompressed point cloud data is consistent with the distribution of the initial point cloud data. By using the point cloud encoder and point cloud decoder provided in the present invention to realize the compression and decompression of point cloud data, the error between the decompressed point cloud data and the initial point cloud data can be reduced under the same compression rate conditions, thereby reducing the impact on the accuracy of downstream tasks such as point cloud recognition and point cloud segmentation.
[0017] Furthermore, in some embodiments, considering that large point clouds have too high requirements on the data processing capabilities of computing devices, the present disclosure adopts a strategy of reducing the large to the small to obtain an initial point cloud data set for training the point cloud data processing model. Specifically, an equidistant block operation is performed on each target point cloud data in the target point cloud data set according to coordinate equidistantness to obtain point cloud blocks of each target point cloud data constituting the initial point cloud data set. Compared with the target point cloud data, the initial point cloud data has significantly lower requirements on the data processing capabilities of the computing device, which allows more computing devices to execute the disclosed solution for training the point cloud data processing model, thereby improving the applicability of the disclosed solution. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] By reading the detailed description below with reference to the accompanying drawings, the above and other objects, features and advantages of the exemplary embodiments of the present disclosure will become readily understood. In the accompanying drawings, several embodiments of the present disclosure are shown in an exemplary and non-limiting manner, and the same or corresponding reference numerals represent the same or corresponding parts, wherein:
[0019] Figure 1 is a schematic diagram showing an exemplary structure of a point cloud data processing system according to an embodiment of the present disclosure;
[0020] Figure 2 is an exemplary flow chart illustrating a method for training a point cloud data processing model according to an embodiment of the present disclosure;
[0021] Figure 3 is an exemplary network structure diagram showing a point cloud data processing model according to an embodiment of the present disclosure;
[0022] Figure 4 is an exemplary network structure diagram showing a sampler according to an embodiment of the present disclosure;
[0023] Figure 5 is an exemplary network structure diagram showing EdgeConv according to an embodiment of the present disclosure;
[0024] Figure 6 is an exemplary process diagram illustrating a compression operation according to an embodiment of the present disclosure;
[0025] Figure 7 is an exemplary flow chart showing a method for compressing point cloud data according to an embodiment of the present disclosure;
[0026] Figure 8 is an exemplary flow chart illustrating a method for decompressing point cloud data according to an embodiment of the present disclosure;
[0027] Fig. 9 is a schematic diagram showing an exemplary structure of a device according to an embodiment of the present disclosure. DETAILED DESCRIPTION
[0028] The following will be combined with the drawings in the embodiments of the present disclosure to clearly and completely describe the technical solutions in the embodiments of the present disclosure. Obviously, the described embodiments are part of the embodiments of the present disclosure, not all of the embodiments. Based on the embodiments in the present disclosure, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present disclosure.
[0029] Overview of this Disclosure
[0030] As known to those skilled in the art, the point cloud compression task is to find an optimal mapping from the initial point cloud space to the compressed point cloud space and from the compressed point cloud space to the initial point cloud space, which is essentially the optimal mapping between two distributions. In the process of realizing the present disclosure, the inventors found that on the one hand, there is a problem of low perceived quality in the application of deep neural networks in point cloud compression, and on the other hand, the optimal transport theory is very suitable for solving the mapping problem between two distributions. The optimal transport theory was first proposed by the French mathematician Monge in 1791. The core idea of the theory is that given two metrics X, Y, and the distributions μ, ν in the corresponding space, it is hoped to find a transmission transformation T: X→Y, transform the random variables corresponding to the distribution μ into random variables obeying the distribution ν, and minimize the expectation of the transmission cost c(x, T(x)).
[0031] Based on this, the solution for training the point cloud data processing model provided in the present disclosure will complete the training of the point cloud data processing model under the constraint of the optimal transmission distance, so as to obtain a point cloud encoder and point cloud decoder with higher perceptual quality, which can improve the consistency between the decompressed point cloud distribution and the initial point cloud distribution.
[0032] Exemplary Systems
[0033] Figure 1 is a schematic diagram showing an exemplary structure of a point cloud data processing system 100 according to an embodiment of the present disclosure. Figure 1 As shown in , the point cloud data processing system 100 may include but is not limited to a training device 101, a compression device 102, and a decompression device 103. It is understandable that the training device 101, the compression device 102, and the decompression device 103 here may be any appropriate device with data processing capabilities, for example, may include but is not limited to a terminal device and a server, etc. In actual operation, the training device 101, the compression device 102, and the decompression device 103 may work together to complete the processing of the point cloud data.
[0034] In the point cloud data processing model training phase, the training device 101 may first obtain an initial point cloud data set. Then, the point cloud encoder, point cloud decoder and point cloud judge in the point cloud data processing model may be trained based on the initial point cloud data set to obtain trained point cloud encoder and point cloud decoder. Thereafter, the training device 101 may also transmit the trained point cloud encoder and point cloud decoder to the outside, for example, the trained point cloud encoder may be transmitted to the compression device 102, and the trained point cloud decoder may be transmitted to the decompression device 103.
[0035] In the point cloud data compression stage, the compression device 102 first obtains the point cloud data to be compressed. Then, the point cloud encoder mounted thereon can be used to perform a compression operation on the point cloud data to be compressed to obtain compressed point cloud data. Thereafter, the compression device 102 can transmit the compressed point cloud data to the outside, for example, the compressed point cloud data can be transmitted to the decompression device 103.
[0036] Next, in the point cloud data decompression stage, after receiving the compressed point cloud data generated by the compression device 102, the decompression device 103 can use the point cloud decoder mounted thereon to perform a decompression operation on the compressed point cloud data to obtain decompressed point cloud data. In some implementation scenarios, the decompression device 103 of the present disclosure can also output the decompressed point cloud data in a visual manner. Additionally or optionally, the electrolytic compression device 103 can also perform downstream operations such as point cloud recognition and point cloud segmentation on the decompressed point cloud data.
[0037] The disclosed point cloud data processing system 100 realizes the training of the point cloud data processing model, point cloud data compression and point cloud data decompression. Using the disclosed point cloud data processing system, the error between the decompressed point cloud data and the initial point cloud data can be reduced under the same compression rate condition, thereby reducing the impact on the accuracy of downstream tasks such as point cloud recognition and point cloud segmentation.
[0038] Exemplary Methods
[0039] Figure 2 2 is an exemplary flow chart showing a method 200 for training a point cloud data processing model according to an embodiment of the present disclosure. It is understood that the method 200 may be executed by any appropriate device with data processing capabilities, such as but not limited to a terminal device and a server.
[0040] like Figure 2As shown in , at step S201, method 200 can construct an initial point cloud data set for training. In one embodiment, method 200 can use an equidistant blocking operation to obtain an initial point cloud data set for training a point cloud data processing model. Specifically, method 200 can first obtain a target point cloud data set, where the target point cloud data set can be any public point cloud data set (such as a SemanticKITTI data set, or a ShapeNet data set). Then, method 200 can perform an equidistant blocking operation on each target point cloud data in the target point cloud data set according to coordinate equidistant, so as to divide each target point cloud data into a plurality of non-overlapping point cloud blocks, thereby forming an initial point cloud data set.
[0041] After obtaining the initial point cloud data set, at step S202, method 200 may use the initial point cloud data set to train the point cloud encoder and the point cloud decoder. Specifically, method 200 may first input the initial point cloud data in the initial point cloud data set into the point cloud encoder for compression operation to obtain compressed point cloud data (for example, for distinction, it may be referred to as the first point cloud data). Then, method 200 may input the first point cloud data into the point cloud decoder for decompression operation to obtain decompressed point cloud data (for example, for distinction, it may be referred to as the second point cloud data). Thereafter, method 200 may obtain a joint optimization function based on the initial point cloud data and the second point cloud data under the constraint of the optimal transmission distance, and train the point cloud encoder and the point cloud decoder based on the joint optimization function.
[0042] In the solution disclosed herein, the optimal transmission distance may be a quadratic Wasserstein distance based on a quadratic transmission cost, for example, it may be a quadratic Wasserstein distance between the initial point cloud data and the second point cloud data. According to the Monge-Kantorovich duality problem in the optimal transmission theory, by using the quadratic Wasserstein distance based on the quadratic transmission cost as a measure of the distance between the initial point cloud data and the second point cloud data, and continuously optimizing the distance, the second point cloud data may be made closer and closer to the initial point cloud data, thereby achieving a higher perceived quality.
[0043] In one implementation scenario, a joint optimization function based on the quadratic Wasserstein distance can be constructed to optimize the cloud encoder f E and point cloud decoder f DIn this scenario, the point cloud encoder and the point cloud decoder can be trained by minimizing the joint optimization function so that the network composed of the point cloud encoder and the point cloud decoder can continuously approach the optimal mapping. Specifically, by minimizing the joint optimization function, the point cloud encoder can learn the optimal mapping from the distribution of the initial point cloud data to the distribution of the first point cloud data, and the point cloud decoder can learn the optimal mapping from the distribution of the first point cloud data to the distribution of the initial point cloud data. In this scenario, the quadratic Wasserstein distance It can be determined by the following mathematical function:
[0044]
[0045] Among them, X, They refer to the initial point cloud data and the second point cloud data respectively. X is f E Input and satisfy X~p X , f D The output and satisfy J represents the point cloud discriminator.
[0046] In another implementation scenario, the quadratic Wasserstein distance The joint optimization function based on the point cloud reconstruction loss and the information entropy loss can also be included. Based on this, compared with the aforementioned RD model based on bit rate and distortion, the method 200 can implement the RDP model based on bit rate, distortion and point cloud distribution. By continuously optimizing the joint optimization function, the second point cloud data can be made closer and closer to the initial point cloud data, thereby achieving a higher perceived quality. In this scenario, the joint optimization function can be expressed by the following mathematical function formula:
[0047]
[0048] in, is the distribution P obeyed by the initial point cloud data X X , λ and β are weight coefficients; Refers to f D , f E The composite of, c(X,T(X)) is the chamfer distance between X and T(X), indicating the point cloud reconstruction loss; Z represents the first point cloud data, H(Z)=H(f E (X)) is a random variable f E The Shannon entropy of (X) indicates the information entropy loss and constrains the single point bit rate of the first point cloud data.
[0049] In one example, the weight coefficient λ in formula (2) can be set to 0.001, and the weight coefficient β can be set to 100. It should be noted that the weight coefficient values 0.001 and 100 here are only exemplary or illustrative, and those skilled in the art can select different weight coefficient values according to actual needs to obtain an appropriate joint optimization function.
[0050] At step S202, method 200 completes the training of the point cloud encoder and the point cloud decoder. Thereafter, method 200 may flow to step S203 to perform training of the point cloud discriminator based on the initial point cloud data set, the point cloud encoder, and the point cloud decoder. In one embodiment, method 200 may again train and optimize the point cloud discriminator under the constraint of the optimal transmission distance until the point cloud data processing model converges to an equilibrium point. In actual operational applications, the point cloud discriminator may maximize the quadratic Wasserstein distance between the second point cloud data and the initial point cloud data so as to distinguish the initial point cloud data from the second point cloud data as much as possible.
[0051] In the disclosed solution, method 200 may use the optimal transmission regularization term L OTR To constrain the solution space and stabilize the training of the point cloud discriminator J. The optimal transmission regularization term L OTR It can be expressed by the following mathematical function:
[0052]
[0053] in, is the partial derivative with respect to x.
[0054] Furthermore, the method 200 can be combined with the quadratic Wasserstein distance and the optimal transmission regularization term L OTR Determine a joint optimization function for training and optimizing the point cloud discriminator J. Thereafter, the point cloud discriminator J can be continuously approached to the optimal discriminator by continuously optimizing the joint optimization function. Here, the joint optimization function for training and optimizing the point cloud discriminator J can be expressed by the following mathematical function formula:
[0055]
[0056] Among them, γ is the optimal transmission regularization term L OTP In one example, the weight coefficient γ in formula (4) can be 0.001. It should be noted that the γ value of 0.001 here is only exemplary or illustrative, and those skilled in the art can select different γ values according to actual needs to obtain an appropriate joint optimization function.
[0057] In one implementation scenario, the method 200 disclosed herein may use adversarial learning to alternately optimize the point cloud encoder, point cloud decoder, and point cloud discriminator until the point cloud data processing model converges to an equilibrium point. In this scenario, the joint optimization function for alternately optimizing the point cloud encoder, point cloud decoder, and point cloud discriminator may be expressed by the following mathematical function:
[0058]
[0059] In one implementation scenario, the optimizer used to perform gradient update on the joint optimization function (5) may be an AdamW optimizer, and the learning rate of the point cloud data processing model may adopt a cosine annealing learning rate. In this scenario, the initial learning rate, the minimum learning rate, and the total number of iterations may be preset. Then, the training of the point cloud data processing model may be completed based on the preset initial learning rate, the minimum learning rate, and the total number of iterations. As an example, the initial learning rate may be preset to 1e-3, the minimum learning rate to 1e-6, and the total number of iterations to 50. After multiple rounds (e.g., 15 rounds) of training, the learning rate may be attenuated by a factor of 0.5 until the trained point cloud encoder and point cloud decoder models are obtained.
[0060] After obtaining the trained point cloud encoder and point cloud decoder, method 200 can verify the compression effect of the point cloud encoder and the decompression effect of the point cloud decoder. In an implementation scenario, method 200 can use LiDAR point cloud data or CAD point cloud data as verification data to verify the compression effect of the point cloud encoder and the decompression effect of the point cloud decoder disclosed in the present invention to obtain a verification result. Additionally or optionally, method 200 can further optimize the point cloud encoder and point cloud decoder disclosed in the present invention based on the verification result.
[0061] Combination of the above Figure 2 A method 200 for training a point cloud data processing model is described. Through the method 200, a point cloud encoder for compressing point cloud data and a point cloud decoder for decompressing point cloud data can be obtained. The point cloud encoder and point cloud decoder disclosed in the present invention have high perceptual quality and can ensure that the distribution of decompressed point cloud data is consistent with the distribution of initial point cloud data. By using the point cloud encoder and point cloud decoder provided by the present disclosure to realize compression and decompression of point cloud data, the error between the decompressed point cloud data and the initial point cloud data can be reduced under the same compression rate condition, thereby reducing the impact on the accuracy of downstream tasks such as point cloud recognition and point cloud segmentation.
[0062] Next, combine Figure 3 The network structure of the point cloud data processing model 300 provided in the embodiment of the present disclosure is introduced as an example. Figure 3 As shown in , the point cloud data processing model may include a point cloud encoder 301, a point cloud decoder 302, and a point cloud discriminator 303. In actual operation, the initial point cloud data may be first input into the point cloud encoder 301 to perform a compression operation to output the first point cloud data. Then, the first point cloud data may be input into the point cloud decoder 302 to perform a decompression operation to output the second point cloud data. Thereafter, the initial point cloud data and the second point cloud data may be input into the point cloud discriminator 303 to perform a true or false discrimination operation, and the quadratic Wasserstein distance between the second point cloud data and the initial point cloud data may be obtained.
[0063] Further, the point cloud encoder 301 may include a feature extractor and a sampler. Here, the feature extractor may be used to perform a feature extraction operation on the initial point cloud data to obtain the features of the initial point cloud data. The sampler may be used to perform a downsampling operation on the initial point cloud data to obtain sparse point cloud data (i.e., the aforementioned first point cloud data). Based on this, the compression operation performed by the point cloud encoder 301 on the initial point cloud data may include: inputting the initial point cloud data into the feature extractor to perform a feature extraction operation to obtain the features of the initial point cloud data (for example, for distinction, it can be called the first feature); inputting the initial point cloud data into the sampler to perform a downsampling operation to obtain the first point cloud data; based on the point correspondence between the first point cloud data and the initial point cloud data, obtaining the features of the first point cloud data from the first features of the initial point cloud data (for example, for distinction, it can be called the second feature); and performing a quantization encoding operation on the first point cloud data and the second feature.
[0064] In the solution disclosed herein, the sampler can be composed of an edge convolution layer EdgeConV. Figure 4 , which shows the network structure of the sampler provided by the embodiment of the present disclosure. Figure 4 As shown in , the sampler disclosed in the present invention may include three layers of EdgeConV and a feature saliency sampling layer. As known to those skilled in the art, the edge convolution layer EdgeConv can effectively capture local geometric features in the initial point cloud data and can perform feature aggregation at different levels. The feature saliency sampling layer can select feature salient points from the initial point cloud data according to the downsampling ratio r. As shown in Figure 4 As shown in the figure, the initial point cloud data P n×3 After the downsampling operation of the sampler, the first point cloud data Q can be obtained nγ×3 Here, 3 indicates that the initial point cloud data is three-dimensional point cloud data, and n is the number of points in the initial point cloud data P.
[0065] For further information, see Figure 5, which shows the network structure of EdgeConv applied to the embodiment of the present disclosure. Figure 5 As shown in , EdgeConv can include a KNN layer, a Concat layer, and two Conv2d layers. Among them, the KNN layer can obtain the features of the k neighboring points of each point based on the adjacency matrix. The Concat layer can concatenate the features of each point with the features of its k neighboring points, and the dimension of the concatenated features is twice the original. The two Conv2d layers can aggregate the concatenated features according to an aggregation method (such as max). Based on this, in EdgeConv, the edge features between each point and its neighboring points are first calculated, and then these edge features are aggregated to each point to obtain a new feature representation for each point. In other words, the input of EdgeConv is a point set P n×3 and an adjacency matrix, the output is a new set of points and a new adjacency matrix.
[0066] In the scheme disclosed herein, the aforementioned quantization encoding operation can reduce the number of bits of the initial point cloud data, and the downsampling operation can reduce the number of points in the initial point cloud data. It can be understood by those skilled in the art that the number of points in the first point cloud data obtained by downsampling is reduced relative to the number of points in the initial point cloud data before downsampling, and the reduction ratio of the number of points depends on the downsampling ratio of the sampler. Here, the downsampling ratio of the sampler can be arbitrary, for example, It can also be You can also Etc. It should be noted that the downsampling ratio here is and This is merely exemplary or illustrative, and those skilled in the art may select different downsampling ratios according to actual needs to implement downsampling operations on point cloud blocks.
[0067] In one example, assuming that the number of points in the initial point cloud data is n, the sampler has a downsampling ratio of r. Thus, the sampler can select m=nr points with the most significant features from the initial point cloud data according to the downsampling ratio r to obtain the first point cloud data and its features. In the disclosed solution, the sampler is a learnable sampler that accepts downsampling at any scale, thereby supporting point cloud data compression at any bit rate.
[0068] As those skilled in the art know, large point clouds not only consume more network resources for transmission, but also consume more storage resources for storage. In order to obtain better compression effect and reduce the storage space occupied by point cloud storage, in one embodiment, when the point cloud encoder performs compression operation on the initial point cloud data, it can compress the first point cloud data and its features to a predetermined ratio by repeatedly performing feature extraction operation and downsampling operation. Here, the number of repeated executions is determined by the predetermined ratio and the downsampling ratio of the sampler. It should be noted that those skilled in the art can select different predetermined ratios according to actual needs. For example, the predetermined ratio can be selected as You can also select a predetermined ratio of You can also select a predetermined ratio of It can be seen that the specific value of the predetermined ratio does not constitute a limitation of the present disclosure.
[0069] In one implementation scenario, assuming that the predetermined ratio is The downsampling ratio of the sampler is The above-mentioned feature extraction operation and downsampling operation need to be repeated three times to compress the first point cloud data and its features to a predetermined ratio. In this scenario, by utilizing the three-dimensional composite of the two network models of the feature extractor and the sampler, a multi-scale step-by-step point cloud sparsification is formed, thereby achieving a gradual compression of the initial point cloud data from low to high, which can avoid the problem of local block missing caused by one-time large-scale compression.
[0070] See here Figure 6 , which shows an exemplary process diagram of the compression operation provided by the embodiment of the present disclosure. Figure 6 As shown in the figure, after the input point cloud data D(n×3) undergoes the feature extraction operation and downsampling operation in stage 1, the point cloud data D1(m 1 ×3) and its characteristic T1(m 1 ×c); point cloud data D1(m 1 ×3) and its characteristic T1(m 1 ×c) After the feature extraction and downsampling operations in stage 2, point cloud data D2 (m 2 ×3) and its characteristic T2(m 2 ×c); point cloud data D2(m 2 ×3) and its characteristic T2(m 2 ×c) After the feature extraction and downsampling operations in stage 2, point cloud data D3 (m 3 ×3) and its characteristic T3(m 3×c). Here, 3 indicates that the point cloud data D1, the point cloud data D2 and the point cloud data D3 are three-dimensional point cloud data, c is the feature dimension of the points in the point cloud data D1, the point cloud data D2 and the point cloud data D3, and m 1 、m 2 and m 3 Represents the number of points in point cloud data D1, point cloud data D2 and point cloud data D3 respectively. Point cloud data D3 and its feature T3 (m 3 ×c) is the first point cloud data compressed to a predetermined ratio and its features.
[0071] The disclosed embodiment also provides a method for compressing point cloud data. Figure 7 Detailed description.
[0072] Figure 7 is an exemplary flow chart showing a method 700 for compressing point cloud data according to an embodiment of the present disclosure. Figure 7 The method for compressing point cloud data mainly uses the above-mentioned point cloud encoder to perform compression operations. Since the training method of the point cloud encoder has been described in detail above, it will not be repeated here. It is understood that method 700 can be executed by any appropriate device with data processing capabilities, such as but not limited to terminal devices and servers.
[0073] like Figure 7 As shown in , at step S701, method 700 can obtain point cloud data to be compressed. In actual operation, the cloud compression method 700 can obtain the point cloud data to be compressed in any way, for example, it can obtain the point cloud data to be compressed from a point cloud scanning device (such as a 3D laser radar), it can also obtain pre-stored point cloud data to be compressed from a local storage, and it can also obtain pre-stored point cloud data to be compressed from a remote server. In other words, the specific way in which method 700 obtains the point cloud data to be compressed does not constitute a limitation of the present application.
[0074] After acquiring the point cloud data to be compressed, at step S702, the method 700 may input the point cloud data to be compressed into the trained point cloud encoder for compression operation to output the compressed point cloud data and its features. In one embodiment, the method 700 may output the compressed point cloud data and its features output by the point cloud encoder. In one example, the method 700 may output the compressed point cloud data and its features to the aforementioned decompression device 103 to perform a decompression operation on the compressed point cloud data. Additionally or optionally, the method 700 may also output the compressed point cloud data and its features to other devices to perform storage or output operations on the compressed point cloud data.
[0075] The disclosed embodiment also provides a method for decompressing point cloud data. Figure 8 Detailed description.
[0076] Figure 8 is an exemplary flow chart showing a method 800 for decompressing point cloud data according to an embodiment of the present disclosure. Figure 8 The method for decompressing point cloud data is mainly to use the above-mentioned point cloud decoder to perform the decompression operation. Since the training method of the point cloud decoder has been described in detail above, it will not be repeated here.
[0077] It is understandable that method 800 may be executed by any appropriate device having data processing capabilities, such as but not limited to a terminal device and a server. Figure 8 As shown in , at step S801, method 800 may receive compressed point cloud data. In actual operation, method 800 may receive compressed point cloud data from the aforementioned compression device 102. In addition, method 800 may also obtain compressed point cloud data from a user-specified location. Here, the user-specified location may be arbitrary, for example, local storage or remote storage. In other words, the specific way in which method 800 receives or obtains compressed point cloud data does not constitute a limitation of the present application.
[0078] After receiving the compressed point cloud data and its features, at step S802, the method 800 may input the compressed point cloud data and its features into a trained point cloud decoder for decompression to output the decompressed point cloud data and its features. In one embodiment, the method 800 may output the decompressed point cloud data and its features in a visual manner. Additionally or alternatively, the method 800 may also perform downstream operations such as point cloud recognition and point cloud segmentation on the decompressed point cloud data.
[0079] Next, combine Fig. 9 An exemplary introduction is given to a device 900 for training a point cloud data processing model, compressing point cloud data and / or decompressing point cloud data provided by an embodiment of the present disclosure. Fig. 9 As shown, the device 900 of the embodiment of the present disclosure may include a processor 901 , a memory 902 , and a communication bus 903 .
[0080] In the process of a specific embodiment, the processor 901 may be at least one of an application-specific integrated circuit (ASIC), a digital signal processor (DSP), a digital signal processing image processing device (DSPD), a programmable logic image processing device (PLD), a field programmable gate array (FPGA), a CPU, a controller, a microcontroller, and a microprocessor. It can be understood that for different devices, the electronic device used to implement the function of the processor may also be other, which is not specifically limited in this embodiment.
[0081] In the embodiment of the present disclosure, the communication bus 903 is used to realize the connection and communication between the processor 901 and the memory 902; the memory 902 stores program instructions for training the point cloud data processing model, for compressing the point cloud data, or for decompressing the point cloud data; when the processor 901 executes the program instructions stored in the memory 902, the present disclosure is realized in combination with the attached Figure 2 and Figure 8 Described is a method for training a point cloud data processing model, a method for compressing point cloud data and / or a method for decompressing point cloud data.
[0082] Combination of the above Fig. 9 The present disclosure describes a device for training a point cloud data processing model, for compressing point cloud data, and / or for decompressing point cloud data. It should be understood that the device structure or architecture here is only exemplary, and the implementation method and implementation entity of the present application are not limited thereto, but can be changed without departing from the spirit of the present application.
[0083] It is understandable that the description of each embodiment in this disclosure emphasizes the differences between the embodiments, and the same or corresponding parts can be referenced to each other. For the purpose of brevity, this disclosure will not repeat them one by one.
[0084] It should be understood that when the terms "first", "second", "third" and "fourth" are used in the claims, the specification and the drawings of the present application, they are only used to distinguish different objects, rather than to describe a specific order. The terms "include" and "comprise" used in the specification and claims of the present application indicate the presence of the described features, wholes, steps, operations, elements and / or components, but do not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or their collections.
[0085] It should also be understood that the terms used in this disclosure are only for the purpose of describing specific embodiments and are not intended to limit the disclosure. As used in this disclosure and claims, the singular forms of "a", "an", and "the" are intended to include the plural forms unless the context clearly indicates otherwise. It should also be further understood that the term "and / or" used in this disclosure and claims refers to any combination of one or more of the associated listed items and all possible combinations, including these combinations.
[0086] As used in this specification and claims, the term "if" may be interpreted as "when" or "upon" or "in response to determining" or "in response to detecting," depending on the context. Similarly, the phrase "if it is determined" or "if [described condition or event] is detected" may be interpreted as meaning "upon determination" or "in response to determining" or "upon detection of [described condition or event]" or "in response to detecting [described condition or event]," depending on the context.
[0087] According to the above description in combination with the accompanying drawings, those skilled in the art can also understand that the embodiments of the present application can also be implemented by a software program. Therefore, the present application also provides a computer-readable storage medium. The computer-readable storage medium can be used to implement the present disclosure in combination with the accompanying drawings. Figures 2 to 8 Described is a method for training a point cloud data processing model, a method for compressing point cloud data and / or a method for decompressing point cloud data.
[0088] It should be noted that although the operations of the method of the present application are described in a specific order in the accompanying drawings, this does not require or imply that the operations must be performed in this specific order, or that all the operations shown must be performed to achieve the desired results. On the contrary, the steps depicted in the flow chart can be performed in a different order. Additionally or alternatively, some steps can be omitted, multiple steps can be combined into one step, and / or one step can be decomposed into multiple steps.
[0089] The embodiments of the present disclosure are described in detail above. Specific examples are used herein to illustrate the principles and implementation methods of the present disclosure. The description of the above embodiments is only used to help understand the method and its core idea of the present disclosure. At the same time, changes or deformations made by those skilled in the art based on the ideas of the present disclosure, the specific implementation methods and the scope of application of the present disclosure, all belong to the scope of protection of the present disclosure. In summary, the content of this specification should not be understood as a limitation on the present disclosure.
Claims
1. A method for training a point cloud data processing model, the point cloud data processing model comprising a point cloud encoder, a point cloud decoder and a point cloud judge, the method comprising: Using an equidistant block operation, an initial point cloud data set for training the point cloud data processing model is obtained; Using the initial point cloud data set to train the point cloud encoder and the point cloud decoder; as well as The point cloud determiner is trained based on the initial point cloud data set, the point cloud encoder and the point cloud decoder to achieve training of the point cloud data processing model.
2. The method according to claim 1, wherein the step of obtaining an initial point cloud data set for training the point cloud processing module by using an equidistant block operation comprises: Obtain target point cloud dataset; as well as An equidistant blocking operation is performed on each target point cloud data in the target point cloud data set according to coordinate equidistantness to obtain point cloud blocks of each target point cloud data constituting the initial point cloud data set.
3. The method according to claim 1, wherein the training of the point cloud encoder and the point cloud decoder using the initial point cloud dataset comprises: Inputting the initial point cloud data in the initial point cloud data set into the point cloud encoder for compression operation to obtain first point cloud data; Inputting the first point cloud data into the point cloud decoder for decompression to obtain second point cloud data; Under the constraint of the optimal transmission distance, obtaining a joint optimization function based on the initial point cloud data and the second point data; as well as The point cloud encoder and the point cloud decoder are trained based on the joint optimization function.
4. The method according to claim 3, wherein the encoder comprises a feature extractor and a sampler, and the compression operation comprises: Inputting the initial point cloud data into the feature extractor to perform a feature extraction operation to obtain a first feature of the initial point cloud data; Inputting the initial point cloud data into the sampler to perform a downsampling operation to obtain the first point cloud data; Based on the point correspondence relationship between the first point cloud data and the initial point cloud data, acquiring a second feature of the first point cloud data from a first feature of the initial point cloud data; and A quantization encoding operation is performed on the first point cloud data and the second feature.
5. A device for training a point cloud data processing model, comprising: processor; as well as A memory storing program instructions for training a point cloud data processing model, wherein when the program instructions are executed by a processor, the method according to any one of claims 1 to 4 is implemented.
6. A method for compressing point cloud data, comprising: Obtain the point cloud data to be compressed; as well as The point cloud data to be compressed is input into a point cloud encoder trained by the method according to any one of claims 1 to 4 for compression operation to output compressed point cloud data.
7. A device for compressing point cloud data, comprising: processor; as well as A memory storing program instructions for compressing point cloud data, wherein when the program instructions are executed by a processor, the method according to claim 6 is implemented.
8. A method for decompressing point cloud data, comprising: Receiving compressed point cloud data; as well as The compressed point cloud data is input into a point cloud decoder trained according to the method described in any one of claims 1 to 4 for decompression operation to output decompressed point cloud data.
9. A device for decompressing point cloud data, comprising: processor; as well as A memory storing program instructions for decompressing point cloud data, wherein when the program instructions are executed by a processor, the method according to claim 8 is implemented.
10. A computer-readable storage medium storing program instructions for training a point cloud data processing model, for compressing point cloud data and / or for decompressing point cloud data, wherein when the program instructions are executed by a processor, the method according to any one of claims 1 to 4, the method according to claim 6 and / or the method according to claim 8 are implemented.
Citation Information
Patent Citations
Point cloud geometric compression method based on deep convolutional network
CN110691243A
Point cloud completion network generation and point cloud data processing
CN113557528A
Method, device and equipment for reconstructing 3D image based on 2D image and storage medium
CN114092653A
Generative adversarial network-based point cloud up-sampling method
CN117011132A
Differential realistic point cloud data generation method and device and storage medium
CN117953177A
