Encoding method and apparatus, decoding method and apparatus, encoder, decoder, geometric code stream, device and storage medium
Through scale-by-scale downsampling and inter-frame prediction technology, geometric code streams are generated, which solves the problem of low compression efficiency of point cloud data, achieves more efficient data management and transmission, and improves the performance of point cloud data in applications.
Patent Information
- Application Number
- PCT/CN2023/090448
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-04-24
- Publication Date
- 2024-10-31
AI Technical Summary
Existing technology is difficult to effectively compress and manage massive point cloud data, resulting in limitations in storage space and transmission bandwidth, which affects the development of point cloud data in virtual reality, augmented reality and other applications.
By performing scale-by-scale downsampling and inter-frame prediction on point cloud data, a geometric code stream is generated to improve the accuracy of inter-frame prediction, thereby reducing the code stream overhead of hidden residuals and achieving more efficient point cloud data compression.
It improves the compression efficiency of point cloud data, saves storage space and transmission traffic, reduces the transmission time between the server and the client, and improves the processing accuracy and application performance of point cloud data.
Smart Images

Figure CN2023090448_31102024_PF_FP_ABST
Abstract
Description
Coding and decoding method and device, codec, geometric code stream, device, storage medium Technical Field
[0001] The embodiments of the present application relate to point cloud compression technology, including but not limited to encoding and decoding methods and devices, codecs, geometric code streams, devices, and storage media. Background Art
[0002] A point cloud is a type of three-dimensional data, representing a collection of vectors in a three-dimensional coordinate system. These vectors are typically expressed as (x, y, z) geometric coordinates and also include information such as color, material, and / or reflection intensity. Point clouds are generally used to represent three-dimensional objects or scenes. With the advancement of hardware processing power and the rapid development of computer vision, three-dimensional point clouds have become the next generation of immersive multimedia, following audio, images, and video. They are widely used in applications such as virtual reality, augmented reality, autonomous driving, and environmental modeling.
[0003] However, as application demand grows, the processing of massive point cloud data is facing bottlenecks in storage space and transmission bandwidth. To better manage data, conserve server storage space, and reduce transmission traffic and time between servers and clients, point cloud compression has become a key issue in promoting the development of the point cloud industry.
[0004] Summary of the Invention
[0005] In view of this, the coding and decoding methods and apparatuses, codecs, geometric code streams, devices, and storage media provided in the embodiments of the present application can improve the accuracy of inter-frame prediction, thereby reducing the value of the implicit residual and further reducing the code stream overhead of the implicit residual. The coding and decoding methods and apparatuses, codecs, geometric code streams, devices, and storage media provided in the embodiments of the present application are implemented as follows:
[0006] According to one aspect of an embodiment of the present application, a coding method is provided, which is applied to an encoder, and the method includes: performing scale-by-scale downsampling twice on occupancy information of a point cloud of a current frame and reconstructed occupancy information of a point cloud of a reference frame of the current frame to obtain a first latent feature of the current frame and a second latent feature of the reference frame; performing scale-by-scale downsampling at least once on the first latent feature and the second latent feature to obtain a third latent feature of the current frame and a fourth latent feature of the reference frame; performing inter-frame prediction on the current frame based on the third latent feature and the fourth latent feature to obtain a first latent feature prediction value and a first latent motion feature; performing inter-frame prediction on the current frame based on the first latent feature prediction value and the first latent feature to obtain a second latent feature prediction value and a second latent motion feature; determining a latent residual of the current frame based on the second latent feature prediction value and the first latent feature; and generating a geometric code stream based on at least the latent residual of the current frame, the first latent motion feature, and the second latent motion feature.
[0007] According to one aspect of an embodiment of the present application, a decoding method is provided, which is applied to a decoder, and the method includes: parsing a geometric code stream to obtain a hidden residual, a first hidden motion feature, and a second hidden motion feature of a current frame; performing motion compensation on the current frame according to the first hidden motion feature to obtain a first hidden feature prediction value; performing motion compensation on the current frame according to the second hidden motion feature to obtain a second hidden feature prediction value; obtaining a first hidden feature reconstruction value of the current frame according to the second hidden feature prediction value and the hidden residual; and performing two scale-by-scale upsampling on the first hidden feature reconstruction value of the current frame to obtain reconstructed occupancy information of the point cloud of the current frame.
[0008] According to one aspect of an embodiment of the present application, there is provided an encoding device, applied to an encoder, the device comprising: a first feature extraction module, configured to perform scale-by-scale downsampling twice on occupancy information of a point cloud of a current frame and reconstructed occupancy information of a point cloud of a reference frame of the current frame to obtain a first latent feature of the current frame and a second latent feature of the reference frame; a second feature extraction module, configured to perform scale-by-scale downsampling at least once on the first latent feature and the second latent feature to obtain a third latent feature of the current frame and a fourth latent feature of the reference frame; an inter-frame prediction module, configured to perform inter-frame prediction on the current frame based on the third latent feature and the fourth latent feature to obtain a first latent feature prediction value and a first latent motion feature; the inter-frame prediction module is further configured to perform inter-frame prediction on the current frame based on the first latent feature prediction value and the first latent feature to obtain a second latent feature prediction value and a second latent motion feature; a first determination module, configured to determine a latent residual of the current frame based on the second latent feature prediction value and the first latent feature; and an encoding module, configured to generate a geometric code stream based at least on the latent residual of the current frame, the first latent motion feature, and the second latent motion feature.
[0009] According to one aspect of an embodiment of the present application, an encoder is provided, comprising a first memory and a first processor; wherein the first memory is used to store a computer program that can be run on the first processor; and the first processor is used to execute the encoding method as described in the embodiment of the present application when running the computer program.
[0010] According to one aspect of an embodiment of the present application, a geometric code stream is provided, where the code stream is obtained using the encoding method described in the embodiment of the present application.
[0011] According to one aspect of an embodiment of the present application, a decoding device is provided, which is applied to a decoder, and the device includes: a parsing module, configured to parse a geometric code stream to obtain a hidden residual, a first hidden motion feature and a second hidden motion feature of a current frame; a motion compensation module, configured to perform motion compensation on the current frame according to the first hidden motion feature to obtain a first hidden feature prediction value; the motion compensation module is further configured to perform motion compensation on the current frame according to the second hidden motion feature to obtain a second hidden feature prediction value; a reconstruction module, configured to obtain a first hidden feature reconstruction value of the current frame according to the second hidden feature prediction value and the hidden residual; and an upsampling module, configured to perform two scale-by-scale upsamplings on the first hidden feature reconstruction value of the current frame to obtain reconstructed occupancy information of the point cloud of the current frame.
[0012] According to one aspect of an embodiment of the present application, a decoder is provided, comprising a second memory and a second processor; wherein the second memory is used to store a computer program that can be run on the second processor; and the second processor is used to execute the decoding method as described in the embodiment of the present application when running the computer program.
[0013] According to one aspect of an embodiment of the present application, an electronic device is provided, comprising: a processor adapted to execute a computer program; and a computer-readable storage medium storing a computer program, wherein when the computer program is executed by the processor, the encoding method as described in the embodiment of the present application is implemented, or when the computer program is executed by the processor, the decoding method as described in the embodiment of the present application is implemented.
[0014] According to one aspect of an embodiment of the present application, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed, the encoding method as described in the embodiment of the present application is implemented, or when the computer program is executed, the decoding method as described in the embodiment of the present application is implemented.
[0015] In an embodiment of the present application, the encoder does not perform inter-frame prediction based only on the first latent feature and the second latent feature obtained by two scale-by-scale downsamplings, but first performs inter-frame prediction based on the third latent feature and the fourth latent feature obtained by at least three scale-by-scale downsamplings to obtain a first latent feature prediction value, and then, based on the first latent feature prediction value and the first latent feature, further performs inter-frame prediction on the current frame to obtain a second latent feature prediction value; this is beneficial to improving the prediction accuracy of the second latent feature prediction value, thereby reducing the value of the latent residual, and thus saving the code stream overhead brought by the latent residual; for the decoding end, it is beneficial to improve the reconstruction accuracy of the reconstructed occupancy information of the point cloud of the current frame, thereby helping to recover a higher-precision point cloud. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] The accompanying drawings herein are incorporated into and constitute a part of this specification. These drawings illustrate embodiments consistent with the present application and, together with the specification, serve to illustrate the technical solutions of the present application. Obviously, the drawings described below are merely some embodiments of the present application. Those skilled in the art can, without inventive effort, derive other drawings from these drawings.
[0017] The flowcharts shown in the accompanying drawings are for illustrative purposes only and do not necessarily include all contents and operations / steps, nor must they be executed in the order described. For example, some operations / steps may be decomposed, while others may be combined or partially combined. Therefore, the actual execution order may vary depending on the actual situation.
[0018] FIG1 is a schematic diagram of an implementation flow of an encoding method provided in an embodiment of the present application;
[0019] FIG2 is a schematic diagram of an implementation flow of the encoding method provided in an embodiment of the present application;
[0020] FIG3 is a schematic diagram of a downsampling method for geometric coordinates provided in an embodiment of the present application;
[0021] FIG4 is a schematic diagram of the implementation flow of step 204 provided in an embodiment of the present application;
[0022] FIG5 is a schematic diagram of the implementation flow of step 209 provided in an embodiment of the present application;
[0023] FIG6 is a schematic diagram of an implementation flow of a decoding method provided in an embodiment of the present application;
[0024] FIG7 is a schematic diagram of an implementation flow of the encoding method provided in an embodiment of the present application;
[0025] FIG8 is a schematic diagram of an implementation flow of point-based motion estimation according to an embodiment of the present application;
[0026] FIG9 is a schematic structural diagram of an encoding device provided in an embodiment of the present application;
[0027] FIG10 is a schematic structural diagram of a decoding device provided in an embodiment of the present application;
[0028] FIG11 is a schematic diagram of the structure of an encoder provided in an embodiment of the present application;
[0029] FIG12 is a schematic diagram of the structure of a decoder provided in an embodiment of the present application. DETAILED DESCRIPTION
[0030] To make the purpose, technical solutions and advantages of the embodiments of the present application clearer, the specific technical solutions of the present application will be further described in detail below in conjunction with the drawings in the embodiments of the present application. The following embodiments are used to illustrate the present application but are not intended to limit the scope of the present application.
[0031] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by those skilled in the art to which this application pertains. The terms used herein are for the purpose of describing the embodiments of this application only and are not intended to limit this application.
[0032] In the following description, references to “some embodiments,” “this embodiment,” “embodiments of the present application,” and examples, etc., describe a subset of all possible embodiments. However, it can be understood that “some embodiments” may be the same subset or different subsets of all possible embodiments, and may be combined with each other without conflict.
[0033] The descriptions such as "first, second, third" appearing in the embodiments of this application are only for illustration and distinction of the described objects. There is no order, nor does it indicate any special limitation on the number of devices in the embodiments of this application, and cannot constitute any limitation on the embodiments of this application.
[0034] The codec architecture and service scenarios described in the embodiments of this application are intended to more clearly illustrate the technical solutions of the embodiments of this application and do not constitute a limitation on the technical solutions provided by the embodiments of this application. Those skilled in the art will appreciate that, with the evolution of codec architectures and the emergence of new service scenarios, the technical solutions provided in the embodiments of this application are equally applicable to similar technical problems.
[0035] The embodiment of the present application provides an encoding method. FIG1 is a schematic diagram of an implementation flow of the encoding method provided in the embodiment of the present application. As shown in FIG1 , the method includes the following steps 101 to 106:
[0036] Step 101 : performing two scale-by-scale downsampling operations on the occupancy information of the point cloud of the current frame and the reconstructed occupancy information of the point cloud of the reference frame of the current frame to obtain a first latent feature of the current frame and a second latent feature of the reference frame.
[0037] It can be understood that the so-called scale-by-scale downsampling refers to further downsampling based on the previous result. For example, the first scale-by-scale downsampling refers to downsampling the occupancy information of the point cloud of the current frame and the reconstructed occupancy information of the point cloud of the reference frame of the current frame, and the second scale-by-scale downsampling refers to further downsampling the downsampling result obtained in the first downsampling.
[0038] The first latent feature is obtained by the encoder downsampling the occupancy information of the point cloud of the current frame twice, and the second latent feature is obtained by the encoder downsampling the reconstructed occupancy information of the point cloud of the reference frame twice.
[0039] In some embodiments, the encoder may implement step 101 by executing steps 201 and 202 of the following embodiments.
[0040] Step 102: downsample the first latent feature and the second latent feature at least once in a scale-by-scale manner to obtain a third latent feature of the current frame and a fourth latent feature of the reference frame.
[0041] In some embodiments, the encoder may implement step 102 through step 203 of the following embodiment.
[0042] Step 103: Perform inter-frame prediction on the current frame according to the third latent feature and the fourth latent feature to obtain a first latent feature prediction value and a first latent motion feature.
[0043] In some embodiments, the encoder may implement step 103 through steps 204 to 208 of the following embodiments.
[0044] It can be understood that in step 103, based on the third latent feature and the fourth latent feature, the current frame is inter-frame predicted to obtain a low-resolution motion flow, that is, the first latent motion feature is a coarse-grained motion feature that captures information of large-scale motion (such as hand movement or ball movement, etc.).
[0045] Step 104: Perform inter-frame prediction on the current frame according to the first latent feature prediction value and the first latent feature to obtain a second latent feature prediction value and a second latent motion feature.
[0046] In some embodiments, the encoder may implement step 104 through steps 209 to 212 of the following embodiments.
[0047] It can be understood that based on the first latent feature prediction value in the output result of the coarse-grained inter-frame prediction (i.e., step 103), the current frame is inter-frame predicted again, and a high-resolution motion flow is obtained, that is, the second latent motion feature is a fine-grained motion feature, which captures information of small-amplitude motion (such as texture information, swing of clothes, etc.); in this way, extracting latent motion features with different characteristics through steps 103 and 104 is beneficial to improving the accuracy of the second latent feature prediction value, thereby helping to reduce the value of the latent residual, and thus saving the geometric code stream overhead brought by the latent residual.
[0048] Step 105: determining a latent residual of the current frame according to the second latent feature prediction value and the first latent feature;
[0049] In some embodiments, the latent residual of the current frame is equal to the difference between the second latent feature prediction value of the current frame and the first latent feature at the corresponding position.
[0050] Step 106: Generate a geometric code stream based on at least the latent residual of the current frame, the first latent motion feature, and the second latent motion feature.
[0051] In an embodiment of the present application, the encoder does not perform inter-frame prediction based only on the first latent feature and the second latent feature obtained by two scale-by-scale downsamplings, but first performs inter-frame prediction based on the third latent feature and the fourth latent feature obtained by at least three scale-by-scale downsamplings to obtain a first latent feature prediction value, and then, based on the first latent feature prediction value and the first latent feature, further performs inter-frame prediction on the current frame to obtain a second latent feature prediction value; this is beneficial to improving the prediction accuracy of the second latent feature prediction value, thereby reducing the value of the latent residual, and thus saving the geometric code stream overhead brought by the latent residual; for the decoding end, it is beneficial to improve the reconstruction accuracy of the reconstructed occupancy information of the point cloud of the current frame, thereby helping to recover a higher-precision point cloud.
[0052] The embodiment of the present application further provides an encoding method. FIG2 is a schematic diagram of an implementation flow of the encoding method provided in the embodiment of the present application. As shown in FIG2 , the method includes the following steps 201 to 214:
[0053] In step 201 , the trained first sparse convolutional model is used to extract features of the occupancy information of the point cloud of the current frame and the reconstructed occupancy information of the point cloud of the reference frame, respectively, to obtain the fifth latent feature of the current frame and the sixth latent feature of the reference frame.
[0054] In the embodiment of the present application, there is no limitation on the structure of the first sparse convolutional model, as long as it can achieve downsampling of occupancy information. For example, the first sparse convolutional model includes a first convolutional layer with a convolution kernel size of 3 and a stride of 1, the output of the first convolutional layer is connected to a first ReLU activation layer, the first ReLU activation layer is connected to a second convolutional layer with a convolution kernel size of 2 and a stride of 2, the output of the second convolutional layer is connected to a second ReLU activation layer, and the output of the second ReLU activation layer is connected to a three-layer initial residual network (Inception Residual Network).
[0055] Step 202: Using the trained second sparse convolutional model, extract the fifth latent feature and the sixth feature to obtain the first latent feature and the second latent feature.
[0056] Step 203: Using the trained third sparse convolutional model, extract the first latent feature and the second latent feature to obtain the third latent feature and the fourth latent feature.
[0057] In an embodiment of the present application, the structures of the second sparse convolution model, the third sparse convolution model and the first sparse convolution model may be the same or different.
[0058] In some embodiments, the trained first sparse convolution model, the trained second sparse convolution model, and the trained third sparse convolution model may be obtained through iterative training based on rate-distortion cost.
[0059] Step 204: performing motion estimation based on the third latent feature and the fourth latent feature to obtain a third latent motion feature of the current frame;
[0060] Step 205: compress the third latent motion feature to obtain the first latent motion feature;
[0061] Step 206: decompress the first latent motion feature to obtain a fourth latent motion feature;
[0062] Step 207: Upsampling the fourth latent motion feature using the trained fourth sparse convolutional model to obtain a fifth latent motion feature; wherein the structure of the fourth sparse convolutional model is mirror-symmetric to that of the third sparse convolutional model, except that the convolutional layer in the fourth sparse convolutional model is a transposed convolutional layer;
[0063] Step 208: Perform motion compensation based on the fifth latent motion feature to obtain a predicted value of the first latent feature.
[0064] In some embodiments, the encoder may implement step 208 as follows: performing motion compensation based on the fifth latent motion feature, the third geometric coordinates of the current frame, and the fourth geometric coordinates of the reference frame to obtain a prediction value of the first latent feature; wherein the third geometric coordinates and the fourth geometric coordinates are obtained based on steps 301 and 302 described in the following embodiment, which will not be repeated here.
[0065] Accordingly, in some embodiments, the encoding method further includes: generating a geometric code stream based on the third geometric coordinate; so that the decoder obtains the first latent feature prediction value based on the third geometric coordinate and the fourth geometric coordinate of the reference frame.
[0066] Exemplarily, in some embodiments, the encoder may use a bounded three-nearest-neighbor interpolation algorithm to obtain a prediction value of the first latent feature based on the fifth latent motion feature, the third geometric coordinates of the current frame, and the fourth geometric coordinates of the reference frame.
[0067] Step 209: performing motion estimation based on the first latent feature prediction value and the first latent feature to obtain a sixth latent motion feature of the current frame;
[0068] In some embodiments, the encoder may implement step 209 as follows: performing motion estimation based on the first latent feature prediction value, the first latent feature, the third geometric coordinates of the current frame, and the fourth geometric coordinates of the reference frame to obtain a sixth latent motion feature of the current frame.
[0069] Step 210: compress the sixth latent motion feature to obtain the second latent motion feature;
[0070] Step 211: decompress the second latent motion feature to obtain a seventh latent motion feature;
[0071] Step 212: Perform motion compensation based on the seventh latent motion feature to obtain a predicted value of the second latent feature.
[0072] In some embodiments, the encoder may implement step 212 by obtaining a prediction value of the second latent feature based on the seventh latent motion feature and the third geometric coordinate of the current frame. For example, the encoder may obtain the prediction value of the second latent feature using a bounded three-nearest neighbor interpolation algorithm based on the seventh latent motion feature and the third geometric coordinate of the current frame.
[0073] Accordingly, in some embodiments, the encoding method further comprises: generating a geometric code stream according to the third geometric coordinates; so that the decoder can determine the second latent feature prediction value.
[0074] Step 213: determining a latent residual of the current frame according to the second latent feature prediction value and the first latent feature;
[0075] Step 214: Generate a geometric code stream based on at least the latent residual of the current frame, the first latent motion feature, and the second latent motion feature.
[0076] In some embodiments, as shown in FIG3 , the encoding method further includes the following steps 301 to 303:
[0077] Step 301: Using the first sparse convolutional model, feature extraction is performed on the geometric coordinates of the point cloud of the current frame and the reconstructed geometric coordinates of the point cloud of the reference frame to obtain first geometric coordinates of the current frame and second geometric coordinates of the reference frame.
[0078] Step 302: Using the second sparse convolution model, perform feature extraction on the first geometric coordinates of the current frame and the second geometric coordinates of the reference frame to obtain third geometric coordinates of the current frame and fourth geometric coordinates of the reference frame.
[0079] Step 303: Use the third sparse convolution model to perform feature extraction on the third geometric coordinates of the current frame and the fourth geometric coordinates of the reference frame to obtain the fifth geometric coordinates of the current frame and the sixth geometric coordinates of the reference frame.
[0080] Optionally, in step 204, motion estimation is performed based on the third latent feature and the fourth latent feature to obtain a third latent motion feature of the current frame.
[0081] In some embodiments, the encoder may implement step 204 as follows: performing motion estimation based on the third latent feature, the fourth latent feature, the fifth geometric coordinates of the current frame, and the sixth geometric coordinates of the reference frame to obtain the third latent motion feature.
[0082] It can be understood that in the embodiment of the present application, since not only the latent features (i.e., the third latent features of the current frame and the fourth latent features of the reference frame) are considered when performing motion estimation, but also the fifth geometric coordinates of the current frame and the sixth geometric coordinates of the reference frame are considered, it is beneficial to improve the accuracy of motion estimation, thereby improving the prediction accuracy of the first latent feature prediction value, and further beneficial to improving the prediction accuracy of the second latent feature prediction value, saving the geometric code stream overhead of the latent residual.
[0083] Furthermore, in some embodiments, as shown in FIG4 , the encoder may implement step 204 through steps 2041 to 2045 as follows:
[0084] Step 2041 , stitching the fifth geometric coordinates of the current frame and the sixth geometric coordinates of the reference frame to obtain a first stitched point cloud;
[0085] Step 2042: concatenate the third latent feature and the fourth latent feature to obtain a first concatenated feature.
[0086] Step 2043: searching for a first neighboring point of the current point in the first spliced point cloud, where the current point is any point in the first spliced point cloud;
[0087] The so-called neighboring points of the current point refer to points whose distance from the current point satisfies certain proximity conditions, and the points may include points belonging to the current frame and / or points belonging to the reference frame. Therefore, in the embodiment of the present application, the method for the encoder to find the first neighboring point is not limited.
[0088] Exemplarily, in some embodiments, the encoder may search for K second neighboring points of the current point in the first spliced point cloud based on a K-Nearest Neighbor (KNN) algorithm, where K is greater than 1; the first neighboring point is a neighboring point among the K second neighboring points whose distance to the current point is less than or equal to a distance threshold.
[0089] Of course, in other embodiments, the encoder may also use the K second neighboring points as the first neighboring points of the current point.
[0090] It should be noted that the distance between the second neighboring point and the current point described here is determined based on the geometric coordinates of the second neighboring point (when the second neighboring point belongs to the current frame, the geometric coordinate refers to the fifth geometric coordinate; when the second neighboring point belongs to the reference frame, the geometric coordinate refers to the sixth geometric coordinate) and the geometric coordinates of the current point (when the current point belongs to the current frame, the geometric coordinate refers to the fifth geometric coordinate; when the current point belongs to the reference frame, the geometric coordinate refers to the sixth geometric coordinate).
[0091] Furthermore, in some embodiments, after obtaining the K second neighboring points of the current point, the encoder can combine a ball query and, after dividing the coordinates by the step size (downsampling multiple), only retain the second neighboring points whose distance to the current point is less than or equal to the distance threshold as the first neighboring points.
[0092] In some embodiments, the encoder may find the first neighboring points of all or some of the points in the first spliced point cloud and, based on this, determine the third latent motion feature of the current frame. For example, the encoder obtains the third latent motion feature of the current frame through the following steps 2044 and 2045.
[0093] In step 2044, feature extraction is performed based on first geometric coordinate differences between multiple points in the first stitched point cloud and corresponding first neighboring points in the first stitched point cloud, first distances between multiple points in the first stitched point cloud and corresponding first neighboring points in the first stitched point cloud, and latent features between multiple points in the first stitched point cloud and corresponding first neighboring points in the first stitched features to obtain a seventh latent feature of the current frame.
[0094] In an embodiment of the present application, the multiple points in step 2044 may be all or part of the points in the first spliced point cloud, that is, the encoder may perform feature extraction based on the first geometric coordinate difference, the first distance, the latent feature and the latent feature of the corresponding first neighboring point of some or all of the points in the first spliced point cloud to obtain the seventh latent feature of the current frame.
[0095] It is understood that the first geometric coordinate difference includes the coordinate difference of three coordinate components. The first distance can be determined based on the geometric coordinates of the current point and the geometric coordinates of the first neighboring point of the current point. The type of the first distance can be Euclidean distance or cosine distance, etc.
[0096] In some embodiments, the encoder may implement step 2044 as follows: input the first geometric coordinate difference, the first distance, and the latent features of the plurality of points in the first spliced point cloud and the corresponding first neighboring points in the first spliced feature into a trained first neural network to obtain the weight of the first geometric coordinate difference, the weight of the first distance, and the latent features of the plurality of points in the first spliced point cloud and the corresponding first neighboring points in the first spliced feature; determine the second geometric coordinate difference according to the product of the weight of the first geometric coordinate difference and the corresponding first geometric coordinate difference; determine the second distance according to the product of the weight of the first distance and the corresponding first distance; determine the second distance according to the weight of the first distance and the product of the weight of the first distance An eighth latent feature is determined by multiplying the weights of latent features of multiple points in the first stitched point cloud and corresponding first neighboring points in the first stitched feature by the corresponding latent features; feature extraction is performed based on the second geometric coordinate differences between multiple points in the first stitched point cloud and corresponding first neighboring points in the first stitched point cloud, the second distances between multiple points in the first stitched point cloud and corresponding first neighboring points in the first stitched point cloud, and the eighth latent feature of multiple points in the first stitched point cloud and corresponding first neighboring points in the first stitched feature to obtain a seventh latent feature of the current frame; wherein the scale of the seventh latent feature of the current frame is consistent with the scale of the third latent feature of the current frame obtained after three downsampling.
[0097] Furthermore, in some embodiments, the encoder may obtain the seventh latent feature of the current frame as follows: inputting the second geometric coordinate differences between multiple points in the first spliced point cloud and the corresponding first neighboring points in the first spliced point cloud, the second distances between multiple points in the first spliced point cloud and the corresponding first neighboring points in the first spliced point cloud, and the eighth latent feature between multiple points in the first spliced point cloud and the corresponding first neighboring points in the first spliced feature into the trained second neural network to obtain the seventh latent feature of the current frame.
[0098] In the embodiments of the present application, there is no limitation on the trained first neural network and the trained second neural network; in short, they can be neural networks obtained by iterative training based on rate-distortion cost. For example, in some embodiments, the trained first neural network and / or the trained second neural network is a multi-layer perceptron (MLP).
[0099] Step 2045: Perform motion estimation based on the seventh latent feature to obtain the third latent motion feature.
[0100] In some embodiments, the encoder may input the seventh latent feature of the current frame into the ReLU activation layer to obtain the ninth latent feature; and then use a multi-scale motion fusion model composed of a sparse convolutional layer and a residual network to perform motion estimation on the ninth latent feature, thereby obtaining the third latent motion feature of the current frame.
[0101] Optionally, in step 209, motion estimation is performed according to the first latent feature prediction value and the first latent feature to obtain a sixth latent motion feature of the current frame;
[0102] In some embodiments, the encoder may implement step 209 as follows: performing motion estimation based on the first latent feature prediction value, the first latent feature, the third geometric coordinates of the current frame, and the fourth geometric coordinates of the reference frame to obtain a sixth latent motion feature of the current frame.
[0103] It should be noted that the determination method of the third latent motion feature and the sixth latent motion feature is the same, the difference is that the input information is different, that is, both are calculated in this way: motion estimation is performed based on the first information, the second information, the third information and the fourth information to obtain the fifth information, including: splicing the third information and the fourth information to obtain a first spliced point cloud; splicing the first information and the second information to obtain a first spliced feature; searching for the first neighboring point of the current point in the first spliced point cloud, where the current point is any point in the first spliced point cloud; feature extraction is performed based on the first geometric coordinate difference between multiple points in the first spliced point cloud and the corresponding first neighboring points in the first spliced point cloud, the first distance between multiple points in the first spliced point cloud and the corresponding first neighboring points in the first spliced point cloud, and the hidden features of multiple points in the first spliced point cloud and the corresponding first neighboring points in the first spliced feature to obtain the seventh latent feature of the current frame; motion estimation is performed based on the seventh latent feature to obtain the fifth information; wherein,
[0104] The first information is the third latent feature, and correspondingly, the second information is the fourth latent feature, the third information is the fifth geometric coordinate of the current frame, the fourth information is the sixth geometric coordinate of the reference frame, and the fifth information is the third latent motion feature; or,
[0105] The first information is the predicted value of the first latent feature, and accordingly, the second information is the first latent feature, the third information is the third geometric coordinate of the current frame, the fourth information is the fourth geometric coordinate of the reference frame, and the fifth information is the sixth latent motion feature.
[0106] In other words, further, in some embodiments, as shown in FIG5 , the encoder may implement step 209 through steps 2091 to 2095 as follows:
[0107] Step 2091 : Splicing the third geometric coordinates of the current frame and the fourth geometric coordinates of the reference frame to obtain a first spliced point cloud.
[0108] It can be understood that the first stitched point cloud obtained in step 2041 is different from the first stitched point cloud obtained in step 2091 because the inputs of these two steps are different.
[0109] Step 2092: Concatenate the first latent feature prediction value and the first latent feature to obtain a first concatenated feature.
[0110] It can be understood that the first splicing feature obtained in step 2042 is different from the first splicing feature obtained in step 2092, because the inputs of these two steps are different.
[0111] Step 2093: Search for a first neighboring point of the current point in the first spliced point cloud, where the current point is any point in the first spliced point cloud.
[0112] It can be understood that the first neighboring point of the current point obtained in step 2043 is different from the first neighboring point of the current point obtained in step 2093, because the inputs of these two steps are different.
[0113] Step 2094: Feature extraction is performed based on first geometric coordinate differences between multiple points in the first stitched point cloud and corresponding first neighboring points in the first stitched point cloud, first distances between multiple points in the first stitched point cloud and corresponding first neighboring points in the first stitched point cloud, and latent features between multiple points in the first stitched point cloud and corresponding first neighboring points in the first stitched features to obtain a seventh latent feature of the current frame.
[0114] It can be understood that the seventh latent feature of the current frame obtained in step 2044 is different from the seventh latent feature of the current frame obtained in step 2094. This is because the inputs of these two steps are different.
[0115] Step 2095: Perform motion estimation based on the seventh latent feature to obtain the sixth latent motion feature.
[0116] It can be understood that the sixth latent feature of the current frame obtained in step 2045 is different from the sixth latent feature of the current frame obtained in step 2095. This is because the inputs of these two steps are different.
[0117] The embodiment of the present application provides a decoding method. FIG6 is a schematic diagram of an implementation flow of the decoding method provided in the embodiment of the present application. As shown in FIG6 , the decoding method includes the following steps 601 to 605:
[0118] Step 601: parse the geometric code stream to obtain the latent residual, the first latent motion feature, and the second latent motion feature of the current frame;
[0119] Step 602: performing motion compensation on the current frame according to the first latent motion feature to obtain a first latent feature prediction value;
[0120] In some embodiments, the decoder can implement step 602 as follows: decompress the first latent motion feature to obtain a fourth latent motion feature; use the trained fourth sparse convolution model to upsample the fourth latent motion feature to obtain a fifth latent motion feature; wherein the structure of the fourth sparse convolution model is mirror-symmetrical to that of the third sparse convolution model, and the convolution layer in the fourth sparse convolution model is a transposed convolution layer; perform motion compensation based on the fifth latent motion feature to obtain a predicted value of the first latent feature.
[0121] Furthermore, in some embodiments, the decoder parses the geometric code stream to obtain the third geometric coordinates of the current frame; the decoder can determine the first latent feature prediction value as follows: perform motion compensation based on the fifth latent motion feature, the third geometric coordinates of the current frame and the fourth geometric coordinates of the reference frame to obtain the first latent feature prediction value.
[0122] Step 603: Perform motion compensation on the current frame according to the second latent motion feature to obtain a second latent feature prediction value;
[0123] In some embodiments, the decoder may implement step 603 as follows: decompress the second latent motion feature to obtain a seventh latent motion feature; and perform motion compensation based on the seventh latent motion feature to obtain a predicted value of the second latent feature.
[0124] Furthermore, in some embodiments, the decoder parses the geometric code stream to obtain the third geometric coordinates of the current frame; the decoder can determine the second latent feature prediction value as follows: perform motion compensation based on the seventh latent motion feature and the third geometric coordinates of the current frame to obtain the second latent feature prediction value.
[0125] Step 604: Obtain a first latent feature reconstruction value of the current frame according to the second latent feature prediction value and the latent residual;
[0126] Step 605 : Perform two scale-by-scale upsampling on the first latent feature reconstruction value of the current frame to obtain the reconstructed occupancy information of the point cloud of the current frame.
[0127] In some embodiments, the decoding method further includes: pruning the point cloud of the current frame according to the reconstructed occupancy information of the point cloud of the current frame.
[0128] It should be noted that in the embodiments of the present application, the method for determining the first candidate list in the decoding method is the same as the method for determining the first candidate list in the encoding method. Therefore, for technical details not disclosed in the decoding method embodiment, please refer to the description of the encoding method embodiment of the present application for understanding.
[0129] Example 1: Deep Learning-Based Dynamic Point Cloud Compression Framework (D-DPCC)
[0130] This technology is applied to the compression of dense human dynamic point cloud datasets (such as 8i). It is an end-to-end dynamic point cloud inter-frame prediction coding scheme based on deep learning. This technology is mainly implemented by the following process:
[0131] a) Encoder
[0132] The encoder consists of a two-layer downsampling module and an inter-frame prediction module. The two-layer downsampling module is used to implement two scale-by-scale downsampling of the occupancy information of the point cloud of the current frame, and to implement two scale-by-scale downsampling of the geometric coordinates of the point cloud of the current frame. The two-layer downsampling module is also used to implement two scale-by-scale downsampling of the reconstructed occupancy information of the point cloud of the reference frame, and to implement two scale-by-scale downsampling of the reconstructed geometric coordinates of the point cloud of the reference frame. The downsampling module extracts features from the point clouds of two adjacent frames based on a sparse convolution model. Each downsampling module (i.e., the first / second / third sparse convolution model) consists of a convolution layer with a convolution kernel size of 3 and a stride of 1, and a convolution layer with a convolution kernel size of 2 and a stride of 2. Each convolution layer is followed by a ReLU activation layer. After that, a three-layer initial residual network (Inception Residual Network) is connected to improve feature extraction efficiency.
[0133] The latent features of two adjacent frames after downsampling are used for inter-frame prediction. In inter-frame prediction, the latent features of the two adjacent frames are concatenated and preliminary feature extraction is performed through two convolutional layers with 64 output channels, a convolution kernel size of 3, and a stride of 1. Each convolutional layer is followed by a ReLU nonlinear activation function, and then the input is fed into a multi-scale motion fusion module composed of sparse convolutional layers and a residual network for motion estimation. The multi-scale motion fusion module uses a sparse convolutional layer with a stride of 2 and an initial residual network to extract coarse-grained motion information. This coarse-grained motion information is then subjected to a transposed convolution with a stride of 2 and the residual is taken to extract fine-grained motion information. During this process, the motion information is pruned based on the downsampled coordinates of the current frame to remove erroneous points.
[0134] At the encoder, the latent motion features output by motion estimation need to be entropy decoded, upsampled, and motion compensated to obtain the latent feature prediction value of the current frame, and the latent residual is calculated and entropy encoded. Motion compensation mainly includes a multi-scale motion reconstruction module and bounded three-nearest neighbor interpolation: Corresponding to the multi-scale motion fusion module of motion estimation, the multi-scale motion reconstruction module includes operations such as transposed convolution with a step size of 2 and pruning, and outputs a motion vector. The calculation of the current frame feature prediction value uses bounded three-nearest neighbor interpolation, and its calculation method is as follows:
[0135] For the geometric coordinate set C of the features of the current frame = {(x i ,y i ,z i )|i∈{1,2,…,N}} and the feature of the previous frame P′={(x i ′,y i ′,z i ′,f′ i )|i∈{0,1,…,N′}}, corresponding to the geometric coordinates (x i ,y i ,z i ) attribute prediction value (i.e., the latent feature prediction value) can be expressed as the following formula
[0136] in is (x i +Δx i ,y i +Δy i ,z i +Δz i ) The geometric coordinates of the 3 nearest neighbors in C′, Δx i ,Δy i ,Δz i are the components of the motion vector in the x, y, and z directions respectively. Obviously, a point (x i ,y i ,z i ) attribute prediction value is the weighted average of the inverse Euclidean distances of the point to the three reference points in the previous frame. α is a penalty coefficient that limits the sum of the weights of the three reference points to prevent isolated points from having excessively large predicted values. In the experiment, α was set to 3.
[0137] b) Bitstream
[0138] The code stream of this technology is divided into three parts:
[0139] 1. Code stream with hidden motion features;
[0140] 2. Hidden residual code stream;
[0141] 3. The geometric coordinates of the current frame after two downsampling.
[0142] c) Decoder
[0143] The decoder consists of an upsampling module and an inter-frame prediction module. After the latent motion feature code stream and the latent residual code stream are entropy decoded, the latent motion features are upsampled to obtain motion vectors. Then, through motion compensation, the reference points of each point in the current frame in the previous frame are obtained and the feature prediction values are calculated. After the prediction value is added to the decoded latent residual, it is restored to the reconstructed point cloud through two cascaded upsampling modules. Each upsampling module contains a convolution layer with a convolution kernel size of 3 and a stride of 1, and a transposed convolution layer with a convolution kernel size of 2 and a stride of 2. Each convolution layer is followed by a ReLU activation layer and connected to a three-layer Inception Residual Network. After that, the features pass through a convolution layer with a convolution kernel size of 3, a stride of 1, and an output channel number of 1 to output the occupancy probability of each point. Pruning is performed based on the occupancy probability, and points with a higher occupancy probability are retained.
[0144] d) Loss function
[0145] The loss function uses the Lagrangian rate-distortion joint loss: L = λD + R
[0146] Where R represents the bitrate, and D represents the distortion between the original point cloud and the reconstructed point cloud. The coefficient λ controls the weighting between bitrate and distortion. Adjusting λ can achieve different bitrate points for the model.
[0147] Example 2: Deep Video Compression Based on Multiple Contexts (DCVC-DC)
[0148] This technology is applied to lossy video compression and is an end-to-end video intra-frame and inter-frame conditional coding scheme based on deep learning. This technology is mainly implemented by the following process:
[0149] a) Encoder
[0150] The encoder consists of a context encoder and a temporal context prediction module. The temporal context prediction module includes displacement prediction and inter-group fusion. The displacement prediction module takes as input the reconstructed pixel values of the previous frame, the features of the previous frame, and the motion vector estimated and decoded using the optical flow method. Through one 2D convolutional layer with a stride of 2, two 2D convolutional layers with a stride of 1, a Leaky ReLU activation function, and bilinear upsampling, it estimates the residual motion displacement and a mask representing the displacement confidence. The residual motion displacement is superimposed with the decoded and reconstructed motion vector to obtain the final motion displacement. The inter-group fusion submodule divides the previous frame features into multiple groups in the channel domain, warps each group according to different motion displacements, reorders and fuses channels across groups, and outputs the temporal context of the current frame. The context encoder consists of a downsampling network constructed with 2D convolutional layers with a stride of 2 and a residual block. It inputs the original current frame pixel values and the temporal context of the current frame at the original scale, downsampled by a factor of 2, and downsampled by a factor of 4, and outputs the implicit features of the current frame.
[0151] b) Entropy model
[0152] The entropy model uses a depth-wise separable convolution module to replace the traditional two-dimensional convolution to reduce the amount of computation. It uses the decoded super-prior, the reconstructed implicit features of the previous frame, and the temporal context of the current frame as prior information. Based on quadtree blocking, the child nodes at different positions in the quadtree parent node are grouped to capture spatial correlation, obtain spatial prior information, and estimate the distribution parameters of the implicit features of the current frame.
[0153] c) Bitrate
[0154] The code stream of this technology is divided into three parts:
[0155] 1. Implicit feature code stream;
[0156] 2. Motion vector code stream;
[0157] 3. Super a priori code stream.
[0158] d) Decoder
[0159] The decoder consists of two parts: a context decoder and a temporal context prediction module. The temporal context prediction module is the same as the encoder, using the reconstructed pixel values of the previous frame, the features of the previous frame, and the decoded and reconstructed motion vectors to obtain the temporal context of the current frame.
[0160] The context decoder structure is symmetrical to the context encoder. It consists of a transposed convolution with a stride of 2 and a residual block. It inputs the decoded implicit features of the current frame and the temporal context of the current frame at the original scale, downsampling multiple of 2, and downsampling multiple of 4, and outputs the reconstructed pixel values and features of the current frame.
[0161] e) Loss function
[0162] The loss function uses the Lagrangian rate-distortion joint loss: L = λD + R
[0163] Where R represents the bitrate, and D represents the distortion between the original point cloud and the reconstructed point cloud. The coefficient λ controls the weighting between bitrate and distortion. Adjusting λ can achieve different bitrate points for the model.
[0164] Example 3: Motion Estimation Network for Dynamic Point Clouds (FlowNet3D)
[0165] This technology is applied to dynamic point cloud datasets (such as Flyingthings3d and KITTI). It is a point cloud motion estimation solution based on deep learning. The technology is mainly implemented by the following process:
[0166] a) Downsampling
[0167] This technology uses a downsampling module based on PointNet++ for feature extraction, downsampling the original point cloud into the feature space. Each downsampling module first performs farthest point sampling on the N×(3+C) point cloud to obtain N d ×3 point cloud subsets, and then perform grouping operations. Taking each point in the point cloud subset as the center, find its K nearest neighbors in the original point cloud to form N d ×K×(3+C) neighbor sets. The neighbor sets are passed through a multi-layer perceptron and a max-pooling layer to obtain aggregated point cloud features.
[0168] b) Stream Embedding Layer
[0169] The stream embedding layer takes two adjacent frames of downsampled point clouds as input and aggregates the feature similarity and spatial correlation between the two frames. Specifically, a multi-layer perceptron is used to fit the similarity of the two frames of point clouds:
[0170] where e i is the aggregated point cloud feature, f and g are the features of the two-frame point cloud, y and x are the coordinates of the two-frame point cloud, and h(·) is the multi-layer perceptron.
[0171] c) Upsampling
[0172] This technique uses an upsampling layer based on a multilayer perceptron. d ×(3+C) downsampled point cloud and N×3 upsampled point cloud coordinates are grouped, and for each point in the upsampled point cloud, its K nearest neighbors in the downsampled point cloud are found to form N d×K×(3+C) neighbor sets. After passing the neighbor set through the multi-layer perceptron and then the maximum pooling layer, the aggregated point cloud features are obtained.
[0173] d) Loss function
[0174] This technology uses ring consistency to measure the error between the predicted motion flow and the actual motion flow. The motion flow d from the current frame to the previous frame and the motion flow d′ from the previous frame to the current frame are predicted respectively. The actual motion flow is defined as d * , then the calculation method of the loss function L is:
[0175] in is the regularization term, |||d′ i +d i ∣∣ is the ring consistency item.
[0176] The technical problems existing in the above-mentioned Examples 1 to 3 are: for the extraction of inter-frame correlation, motion estimation and compensation are performed at a single scale based on the convolutional network, and the motion information extracted by the network is not sufficient; or more accurate motion information is learned using the features of the previous frame, but the information of the current frame to be encoded is not used.
[0177] Based on this, the following describes an exemplary application of the embodiment of the present application in a practical application scenario.
[0178] In an embodiment of the present application, a point cloud geometric inter-frame compression method based on multi-scale motion prediction is proposed. This method is based on the above-mentioned embodiment 1. The encoder performs three scale-by-scale downsampling on the point clouds of two adjacent frames, performs motion estimation in the latent feature space after downsampling, and obtains a latent motion feature code stream. The latent motion features are upsampled and motion compensated to obtain motion vectors. The predicted value of the current frame feature is calculated based on the motion vector, and the latent residual and latent motion features are entropy encoded. The decoder uses the decoded latent motion features to perform the same upsampling and motion compensation operations as the encoder to obtain a reconstructed prediction value, which is added to the decoded latent residual to restore the latent feature; finally, the point cloud is reconstructed through upsampling.
[0179] In response to the problems in Example 1, the present embodiment improves the inter-frame prediction module of the embodiment:
[0180] a) Multi-scale motion prediction and compensation
[0181] In the embodiments of this application, reference is made to variable block size motion compensation in video inter-frame coding to achieve a trade-off between motion stream size and inter-frame prediction accuracy. For example, H.264 allows for motion compensation using macroblocks of varying sizes as the basic unit for video sections with varying degrees of motion. Smaller macroblocks can achieve more accurate inter-frame prediction.
[0182] For the dynamic character point cloud, in an embodiment of the present application, it is possible to use larger block divisions in the parts with larger motion amplitudes between adjacent frames to obtain low-resolution motion flow, and use smaller block divisions in the parts with smaller motion amplitudes to obtain high-resolution motion flow. The implementation process is shown in Figure 7.
[0183] Specifically, the method shown in FIG7 performs motion estimation and compensation at different scales with downsampling multiples of 8 and 4, respectively, thereby extracting different motion information at low resolution and high resolution. The structures of the modules such as feature extraction, motion compression, and motion compensation are consistent with those of Example 1. At a downsampling multiple of 8, motion estimation is performed in the feature domain on the reconstructed previous frame (i.e., reference frame) and the current frame to be encoded (i.e., current frame), and motion flow information with a large displacement amplitude is extracted to obtain a low-resolution motion flow e t,l (i.e., an example of the third latent motion feature of the current frame). t,l After the motion compression and upsampling modules, the implicit features are obtained. (i.e., an example of the second latent feature of the reference frame) and y t (i.e., an example of the first latent feature of the current frame) scale-corresponding reconstruction flow (i.e., an example of the fifth latent motion feature), and perform motion compensation to obtain a preliminary reconstructed frame (i.e., an example of the first latent feature prediction value). Perform secondary motion estimation with the current frame to be encoded to obtain high-resolution motion flow corresponding to detailed motion information t,h (i.e., an example of the sixth latent motion feature of the current frame), perform the second motion compensation to obtain the final predicted frame (ie, an example of the second latent feature prediction value). For the residual r between the final prediction frame and the current frame t (i.e., hidden residual), and its quantization coding is consistent with that in embodiment 1.
[0184] b) Point-based motion estimation
[0185] Point-based methods, such as PointNet and MLP, often have a larger receptive field than sparse convolution, but have higher spatial complexity. In the embodiment of the present application, the point convolution constructed by MLP is partially used to replace the sparse convolution in the motion estimation module. Its structure is shown in Figure 8, where C in is an example of the first stitched point cloud, F in is an example of the first splicing feature, C in with C KNN The difference is the first geometric coordinate difference, dist represents the first distance, F KNN Indicates C inMultiple points and their corresponding first neighboring points in F in The hidden features in F out Represents the seventh hidden feature of the current frame. MLP(4+in, 32, 4+in) is an example of the trained first neural network, and MLP(4+in, 64, 64) is an example of the trained second neural network. The structure of MLP(I, H, O) is shown in Figure 8. In MLP(I, H, O), I represents the number of input channels, H represents the number of hidden layer channels, and O represents the number of output channels. In the point convolution layer, in represents the input feature F in In point convolution, the number of neighbors K in the K-nearest neighbor search is 16, and KNN is combined with a ball query. After the coordinates are divided by the stride (downsampling factor), only points with a distance of less than or equal to 3 from the current point are retained (an example of the first neighbor point).
[0186] This point convolution module is used to replace the two sparse convolution layers with a kernel size of 3 and a stride of 1 connected to the input of the multi-scale motion fusion module in Example 1. Because the PointNet algorithm is based on a multi-layer perceptron (MLP), it can more effectively extract correlations in the geometric and feature domains than sparse convolution, and perform more accurate point matching and motion estimation.
[0187] It can be understood that the multi-scale motion prediction method provided in the embodiment of the present application further utilizes the inter-frame similarity of the point cloud, expands the reference information, and can more fully utilize the inter-frame similarity of the point cloud, thereby improving the feature prediction accuracy and improving the inter-frame geometric coding efficiency of the dynamic point cloud.
[0188] The embodiments of this application provide a point cloud geometry inter-frame compression method based on multi-scale motion prediction, which enables adaptive block matching of adjacent frames, improves the accuracy of motion prediction, and more effectively captures inter-frame correlations. This solution uses multi-scale motion prediction and compensation to extract motion flows at different resolutions, corresponding to both large displacements and detailed motion information. A point convolution-based matching method simultaneously considers both geometric and feature correlations, achieving more accurate matching of corresponding points during motion estimation, thereby saving the bit rate of dynamic point cloud geometry encoding.
[0189] It should be noted that although the steps of the method of the present application are described in a specific order in the drawings, this does not require or imply that the steps must be performed in this specific order, or that all steps must be performed to achieve the desired results. Additionally or alternatively, some steps may be omitted, multiple steps may be combined into one step, and / or one step may be decomposed into multiple steps; or steps in different embodiments may be combined to form a new technical solution.
[0190] Based on the above embodiments, an embodiment of the present application provides an encoding device, which is applied to an encoder. FIG9 is a schematic structural diagram of the encoding device provided in an embodiment of the present application. As shown in FIG9 , the encoding device 90 includes:
[0191] A first feature extraction module 901 is configured to perform two scale-by-scale downsampling operations on the occupancy information of the point cloud of the current frame and the reconstructed occupancy information of the point cloud of the reference frame of the current frame to obtain a first latent feature of the current frame and a second latent feature of the reference frame;
[0192] A second feature extraction module 902 is configured to perform at least one scale-by-scale downsampling on the first latent feature and the second latent feature to obtain a third latent feature of the current frame and a fourth latent feature of the reference frame;
[0193] An inter-frame prediction module 903 is configured to perform inter-frame prediction on the current frame based on the third latent feature and the fourth latent feature to obtain a first latent feature prediction value and a first latent motion feature;
[0194] The inter-frame prediction module 903 is further configured to perform inter-frame prediction on the current frame according to the first latent feature prediction value and the first latent feature to obtain a second latent feature prediction value and a second latent motion feature;
[0195] A first determining module 904 is configured to determine a latent residual of the current frame according to the second latent feature prediction value and the first latent feature;
[0196] The encoding module 905 is configured to generate a geometric code stream based on at least the latent residual of the current frame, the first latent motion feature, and the second latent motion feature.
[0197] In some embodiments, the first feature extraction module 901 is configured to: use the trained first sparse convolution model to perform feature extraction on the occupancy information of the point cloud of the current frame and the reconstructed occupancy information of the point cloud of the reference frame, respectively, to obtain the fifth latent feature of the current frame and the sixth latent feature of the reference frame; use the trained second sparse convolution model to perform feature extraction on the fifth latent feature and the sixth feature, respectively, to obtain the first latent feature and the second latent feature.
[0198] In some embodiments, the second feature extraction module 902 is configured to: use the trained third sparse convolutional model to extract features from the first latent feature and the second latent feature respectively to obtain the third latent feature and the fourth latent feature.
[0199] In some embodiments, the inter-frame prediction module 903 is configured to: perform motion estimation based on the third latent feature and the fourth latent feature to obtain the third latent motion feature of the current frame; compress the third latent motion feature to obtain the first latent motion feature; decompress the first latent motion feature to obtain the fourth latent motion feature; use the trained fourth sparse convolution model to upsample the fourth latent motion feature to obtain the fifth latent motion feature; wherein the structure of the fourth sparse convolution model is mirror-symmetrical to that of the third sparse convolution model, and the convolution layer in the fourth sparse convolution model is a transposed convolution layer; perform motion compensation based on the fifth latent motion feature to obtain the first latent feature prediction value.
[0200] In some embodiments, the inter-frame prediction module 903 is further configured to: perform motion estimation based on the first latent feature prediction value and the first latent feature to obtain the sixth latent motion feature of the current frame; compress the sixth latent motion feature to obtain the second latent motion feature; decompress the second latent motion feature to obtain the seventh latent motion feature; perform motion compensation based on the seventh latent motion feature to obtain the second latent feature prediction value.
[0201] In some embodiments, the first feature extraction module 901 is configured to: use the first sparse convolution model to perform feature extraction on the geometric coordinates of the point cloud of the current frame and the reconstructed geometric coordinates of the point cloud of the reference frame, respectively, to obtain the first geometric coordinates of the current frame and the second geometric coordinates of the reference frame; use the second sparse convolution model to perform feature extraction on the first geometric coordinates of the current frame and the second geometric coordinates of the reference frame, respectively, to obtain the third geometric coordinates of the current frame and the fourth geometric coordinates of the reference frame; the second feature extraction module 902 is configured to: use the third sparse convolution model to extract the first geometric coordinates of the current frame and the second geometric coordinates of the reference frame, respectively, to obtain the third geometric coordinates of the current frame and the fourth geometric coordinates of the reference frame. type, performing feature extraction on the third geometric coordinates of the current frame and the fourth geometric coordinates of the reference frame respectively to obtain the fifth geometric coordinates of the current frame and the sixth geometric coordinates of the reference frame; the inter-frame prediction module 903 is configured to: perform motion estimation based on the third latent feature, the fourth latent feature, the fifth geometric coordinates of the current frame and the sixth geometric coordinates of the reference frame to obtain the third latent motion feature; perform motion estimation based on the first latent feature prediction value, the first latent feature, the third geometric coordinates of the current frame and the fourth geometric coordinates of the reference frame to obtain the sixth latent motion feature of the current frame.
[0202] In some embodiments, the encoding device further includes a splicing module and a search module, the splicing module is configured to: splice the third information and the fourth information to obtain a first spliced point cloud; splice the first information and the second information to obtain a first splicing feature; the search module is configured to: search for a first neighboring point of the current point in the first spliced point cloud, where the current point is any point in the first spliced point cloud; the inter-frame prediction module 903 is configured to: predict the first geometric coordinate difference between a plurality of points in the first spliced point cloud and the corresponding first neighboring points in the first spliced point cloud, the first distance between a plurality of points in the first spliced point cloud and the corresponding first neighboring points in the first spliced point cloud, and the first distance between a plurality of points in the first spliced point cloud and the corresponding first neighboring points in the first spliced point cloud. and the latent feature of the corresponding first neighboring point in the first splicing feature, perform feature extraction to obtain the seventh latent feature of the current frame; and perform motion estimation based on the seventh latent feature to obtain fifth information; wherein the first information is the third latent feature, and accordingly, the second information is the fourth latent feature, the third information is the fifth geometric coordinate of the current frame, the fourth information is the sixth geometric coordinate of the reference frame, and the fifth information is the third latent motion feature; or, the first information is the predicted value of the first latent feature, and accordingly, the second information is the first latent feature, the third information is the third geometric coordinate of the current frame, the fourth information is the fourth geometric coordinate of the reference frame, and the fifth information is the sixth latent motion feature.
[0203] In some embodiments, the search module is configured to: search for K second neighboring points of the current point in the first spliced point cloud based on a KNN algorithm; K is greater than 1; and the first neighboring point is a neighboring point among the K second neighboring points whose distance to the current point is less than or equal to a distance threshold.
[0204] In some embodiments, the inter-frame prediction module 903 is configured to: input the first geometric coordinate difference, the first distance, and the latent features of the first spliced feature of the multiple points in the first spliced point cloud and the corresponding first neighboring points into the trained first neural network to obtain the weight of the first geometric coordinate difference, the weight of the first distance, and the latent features of the first spliced feature of the multiple points in the first spliced point cloud and the corresponding first neighboring points; determine the second geometric coordinate difference based on the product of the weight of the first geometric coordinate difference and the corresponding first geometric coordinate difference; determine the second geometric coordinate difference based on the product of the weight of the first distance and the corresponding first distance. a second distance; determining an eighth latent feature based on a weight of the first distance and a product of a weight of a latent feature of multiple points in the first stitched point cloud and corresponding first neighboring points in the first stitched feature and the corresponding latent feature; performing feature extraction based on second geometric coordinate differences between multiple points in the first stitched point cloud and corresponding first neighboring points in the first stitched point cloud, second distances between multiple points in the first stitched point cloud and corresponding first neighboring points in the first stitched point cloud, and the eighth latent feature between multiple points in the first stitched point cloud and corresponding first neighboring points in the first stitched feature to obtain a seventh latent feature of the current frame.
[0205] In some embodiments, the inter-frame prediction module 903 is configured to: input second geometric coordinate differences between the plurality of points in the first stitched point cloud and the corresponding first neighboring points in the first stitched point cloud, second distances between the plurality of points in the first stitched point cloud and the corresponding first neighboring points in the first stitched point cloud, and an eighth latent feature between the plurality of points in the first stitched point cloud and the corresponding first neighboring points in the first stitched features into a trained second neural network to obtain a seventh latent feature of the current frame;
[0206] In some embodiments, the first neural network and / or the second neural network is a multilayer perceptron (MLP).
[0207] In some embodiments, the inter-frame prediction module 903 is configured to perform motion compensation based on the fifth latent motion feature, the third geometric coordinates of the current frame, and the fourth geometric coordinates of the reference frame to obtain the first latent feature prediction value.
[0208] In some embodiments, the inter-frame prediction module 903 is further configured to perform motion compensation based on the seventh latent motion feature, the third geometric coordinates of the current frame and the fourth geometric coordinates of the reference frame to obtain the second latent feature prediction value.
[0209] In some embodiments, the encoding module 905 is configured to generate a geometric code stream according to the third geometric coordinates.
[0210] The description of the above encoding device embodiment is similar to the description of the above encoding method embodiment, and has similar beneficial effects as the encoding method embodiment. For technical details not disclosed in the encoding device embodiment of this application, please refer to the description of the encoding method embodiment of this application for understanding.
[0211] The present application provides a decoding device, which is applied to a decoder. FIG10 is a schematic structural diagram of the decoding device provided in the present application. As shown in FIG10 , the decoding device 100 includes:
[0212] The parsing module 1001 is configured to parse the geometric code stream to obtain the latent residual, the first latent motion feature and the second latent motion feature of the current frame;
[0213] The motion compensation module 1002 is configured to: perform motion compensation on the current frame according to the first latent motion feature to obtain a first latent feature prediction value;
[0214] The motion compensation module 1002 is further configured to: perform motion compensation on the current frame according to the second latent motion feature to obtain a second latent feature prediction value;
[0215] The reconstruction module 1003 is configured to: obtain a first latent feature reconstruction value of the current frame according to the second latent feature prediction value and the latent residual;
[0216] The upsampling module 1004 is configured to perform scale-by-scale upsampling twice on the first latent feature reconstruction value of the current frame to obtain the reconstructed occupancy information of the point cloud of the current frame.
[0217] In some embodiments, the decoding device 100 further includes a pruning module, wherein the pruning module is configured to prune the point cloud of the current frame according to the reconstructed occupancy information of the point cloud of the current frame.
[0218] In some embodiments, the motion compensation module 1002 is configured to: decompress the first latent motion feature to obtain a fourth latent motion feature; use the trained fourth sparse convolution model to upsample the fourth latent motion feature to obtain a fifth latent motion feature; wherein the structure of the fourth sparse convolution model is mirror-symmetrical to that of the third sparse convolution model, and the convolution layer in the fourth sparse convolution model is a transposed convolution layer; perform motion compensation based on the fifth latent motion feature to obtain a predicted value of the first latent feature.
[0219] In some embodiments, the motion compensation module 1002 is further configured to: decompress the second latent motion feature to obtain a seventh latent motion feature; and perform motion compensation based on the seventh latent motion feature to obtain a predicted value of the second latent feature.
[0220] The parsing module 1001 is configured to parse the geometric code stream to obtain the third geometric coordinates of the current frame.
[0221] In some embodiments, the motion compensation module 1002 is configured to perform motion compensation based on the fifth latent motion feature, the third geometric coordinates of the current frame, and the fourth geometric coordinates of the reference frame to obtain the first latent feature prediction value.
[0222] In some embodiments, the motion compensation module 1002 is further configured to perform motion compensation based on the third geometric coordinates of the current frame and the fourth geometric coordinates of the reference frame according to the seventh latent motion feature to obtain a predicted value of the second latent feature.
[0223] The description of the above decoding device embodiment is similar to the description of the above encoding / decoding method embodiment, and has similar beneficial effects as the encoding / decoding method embodiment. For technical details not disclosed in the decoding device embodiment of this application, please refer to the description of the encoding / decoding method embodiment of this application for understanding.
[0224] It should be noted that the division of modules in the encoding / decoding device described in the embodiments of the present application is schematic and is merely a logical functional division. In actual implementation, other division methods may be used. Furthermore, the functional units in the various embodiments of the present application may be integrated into a single processing unit, or may exist physically separately, or two or more units may be integrated into a single unit. The aforementioned integrated units may be implemented in the form of hardware or software functional units. They may also be implemented in a combination of software and hardware.
[0225] It should be noted that in the embodiment of the present application, if the above method is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the relevant technology can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for enabling an electronic device to execute all or part of the method described in each embodiment of the present application. The aforementioned storage medium includes various media that can store program code, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a magnetic disk or an optical disk. In this way, the embodiment of the present application is not limited to any specific combination of hardware and software.
[0226] An embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed, the encoding method or the decoding method as described in the embodiment of the present application is implemented.
[0227] An embodiment of the present application provides an encoder, as shown in FIG11 , the encoder 11 includes: a first communication interface 111, a first memory 112, and a first processor 113; each component is coupled together via a first bus system 114. It is understood that the first bus system 114 is used to implement connection and communication between these components. In addition to the data bus, the first bus system 114 also includes a power bus, a control bus, and a status signal bus. However, for the sake of clarity, in FIG11 , various buses are labeled as the first bus system 114. Among them,
[0228] The first communication interface 111 is used for sending and receiving signals during the process of sending and receiving information with other external network elements;
[0229] A first memory 112 is used to store computer programs that can be run on the first processor 113;
[0230] The first processor 113 is configured to execute the encoding method described in the embodiment of the present application when running the computer program.
[0231] It is understood that the first memory 112 in the embodiment of the present application can be a volatile memory or a non-volatile memory, or can include both volatile and non-volatile memories. Among them, the non-volatile memory can be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory can be a random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of RAM are available, such as static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), and direct RAM bus random access memory (DRRAM). The first memory 112 of the systems and methods described herein is intended to include, but is not limited to, these and any other suitable types of memory.
[0232] The first processor 113 may be an integrated circuit chip with signal processing capabilities. During implementation, each step of the above method can be completed by hardware integrated logic circuits or software instructions in the first processor 113. The above-mentioned first processor 113 can be a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components. The various methods, steps, and logic block diagrams disclosed in the embodiments of this application can be implemented or executed. The general-purpose processor can be a microprocessor or any conventional processor. The steps of the method disclosed in the embodiments of this application can be directly implemented and executed by a hardware decoding processor, or by a combination of hardware and software modules in the decoding processor. The software module can be located in a storage medium mature in the art, such as random access memory, flash memory, read-only memory, programmable read-only memory, electrically erasable programmable memory, registers, etc. The storage medium is located in the first memory 112 , and the first processor 113 reads the information in the first memory 112 and completes the steps of the above method in combination with its hardware.
[0233] It is to be understood that these embodiments described in the present application can be implemented with hardware, software, firmware, middleware, microcode or its combination.For hardware implementation, the processing unit can be implemented in one or more application specific integrated circuits (Application Specific Integrated Circuits, ASIC), digital signal processor (Digital Signal Processing, DSP), digital signal processing equipment (DSP Device, DSPD), programmable logic device (Programmable Logic Device, PLD), field programmable gate array (Field-Programmable Gate Array, FPGA), general-purpose processor, controller, microcontroller, microprocessor, other electronic units for performing functions described in the present application or its combination.For software implementation, the technology described in the present application can be realized by the module (such as process, function etc.) that performs functions described in the present application. The software code can be stored in a memory and executed by a processor. The memory can be implemented in the processor or outside the processor.
[0234] Optionally, as another embodiment, the first processor 113 is further configured to execute any of the aforementioned encoding method embodiments when running the computer program.
[0235] The present application provides a decoder, as shown in FIG12 , in which the decoder 12 includes: a second communication interface 121, a second memory 122, and a second processor 123; each component is coupled together via a second bus system 124. It is understood that the second bus system 124 is used to implement connection and communication between these components. In addition to the data bus, the second bus system 124 also includes a power bus, a control bus, and a status signal bus. However, for the sake of clarity, in FIG12 , all buses are labeled as the second bus system 124.
[0236] The second communication interface 121 is used for receiving and sending signals during the process of sending and receiving information between other external network elements;
[0237] The second memory 122 is used to store computer programs that can be run on the second processor 123;
[0238] The second processor 123 is configured to execute the decoding method described in the embodiment of the present application when running the computer program.
[0239] It can be understood that the hardware functions of the second memory 122 and the first memory 112 are similar, and the hardware functions of the second processor 123 and the first processor 113 are similar; they are not described in detail here.
[0240] The embodiment of the present application further provides a geometric code stream, which is obtained by using the aforementioned encoding method.
[0241] An embodiment of the present application provides an electronic device, comprising: a processor adapted to execute a computer program; and a computer-readable storage medium storing the computer program, wherein when the computer program is executed by the processor, the encoding method and / or decoding method described in the embodiment of the present application are implemented. The electronic device can be any type of device capable of video encoding and / or video decoding, such as a mobile phone, tablet computer, laptop computer, personal computer, television, projection device, or monitoring device.
[0242] It should be noted that the description of the above storage medium and device embodiments is similar to the description of the above method embodiments and has similar beneficial effects as the method embodiments. For technical details not disclosed in the storage medium, storage medium, and device embodiments of this application, please refer to the description of the method embodiments of this application for understanding.
[0243] It should be understood that "one embodiment" or "an embodiment" or "some embodiments" mentioned throughout the specification means that the specific features, structures or characteristics related to the embodiment are included in at least one embodiment of the present application. Therefore, "in one embodiment" or "in an embodiment" or "in some embodiments" appearing throughout the specification do not necessarily refer to the same embodiment. In addition, these specific features, structures or characteristics can be combined in one or more embodiments in any suitable manner. It should be understood that in the various embodiments of the present application, the size of the serial numbers of the above-mentioned processes does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application. The above-mentioned serial numbers of the embodiments of the present application are for description only and do not represent the advantages and disadvantages of the embodiments. The above description of the various embodiments tends to emphasize the differences between the various embodiments. The same or similar aspects can be referenced to each other. For the sake of brevity, they will not be repeated here.
[0244] The term "and / or" in this article is only a description of the association relationship between associated objects, indicating that there can be three relationships. For example, object A and / or object B can mean: object A exists alone, object A and object B exist at the same time, and object B exists alone.
[0245] It should be noted that, in this document, the terms "comprises," "includes," or any other variations thereof are intended to encompass non-exclusive inclusion, such that a process, method, article, or apparatus comprising a series of elements includes not only those elements but also other elements not explicitly listed, or elements inherent to such process, method, article, or apparatus. In the absence of further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of other identical elements in the process, method, article, or apparatus comprising the element.
[0246] In the several embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. The embodiments described above are merely illustrative. For example, the division of the modules is merely a logical function division. In actual implementation, there may be other division methods, such as: multiple modules or components can be combined, or can be integrated into another system, or some features can be ignored or not executed. In addition, the coupling, direct coupling, or communication connection between the components shown or discussed can be through some interfaces, and the indirect coupling or communication connection of devices or modules can be electrical, mechanical or other forms.
[0247] The modules described above as separate components may or may not be physically separated, and the components displayed as modules may or may not be physical modules; they may be located in one place or distributed across multiple network units; some or all of the modules may be selected according to actual needs to achieve the purpose of the present embodiment.
[0248] In addition, all functional modules in the embodiments of the present application can be integrated into one processing unit, or each module can be a separate unit, or two or more modules can be integrated into one unit; the above-mentioned integrated modules can be implemented in the form of hardware or in the form of hardware plus software functional units.
[0249] Those skilled in the art will understand that all or part of the steps of implementing the above-mentioned method embodiment can be completed by hardware related to program instructions, and the aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it executes the steps of the above-mentioned method embodiment; and the aforementioned storage medium includes: mobile storage devices, read-only memories (ROM), magnetic disks or optical disks, and other media that can store program codes.
[0250] Alternatively, if the above-mentioned integrated unit of the present application is implemented in the form of a software functional module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application, or the part that contributes to the relevant technology, can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes a number of instructions for enabling an electronic device to execute all or part of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as mobile storage devices, ROMs, magnetic disks or optical disks.
[0251] The methods disclosed in the several method embodiments provided in this application can be arbitrarily combined without conflict to obtain new method embodiments.
[0252] The features disclosed in the several product embodiments provided in this application can be arbitrarily combined without conflict to obtain new product embodiments.
[0253] The features disclosed in the several method or device embodiments provided in this application can be arbitrarily combined without conflict to obtain new method embodiments or device embodiments.
[0254] The above is merely an embodiment of the present application, but the scope of protection of the present application is not limited thereto. Any changes or substitutions that can be easily conceived by a person skilled in the art within the technical scope disclosed in this application should be included in the scope of protection of this application. Therefore, the scope of protection of this application should be based on the scope of protection of the claims.
Claims
1. A coding method, the method being applied to an encoder, the method include: Performing two scale-by-scale downsamplings on the occupancy information of the point cloud of the current frame and the reconstructed occupancy information of the point cloud of the reference frame of the current frame to obtain a first latent feature of the current frame and a second latent feature of the reference frame; Performing at least one scale-by-scale downsampling on the first latent feature and the second latent feature to obtain a third latent feature of the current frame and a fourth latent feature of the reference frame; According to the third latent feature and the fourth latent feature, inter-frame prediction is performed on the current frame to obtain a first latent feature prediction value and a first latent motion feature; Performing inter-frame prediction on the current frame according to the first latent feature prediction value and the first latent feature to obtain a second latent feature prediction value and a second latent motion feature; Determining a latent residual of the current frame according to the second latent feature prediction value and the first latent feature; Generate a geometric code stream based on at least the hidden residual of the current frame, the first hidden motion feature and the second hidden motion feature.
2. The method according to claim 1, in, The step of downsampling the occupancy information of the point cloud of the current frame and the reconstructed occupancy information of the point cloud of the reference frame of the current frame twice in a scale-by-scale manner to obtain the first latent feature of the current frame and the second latent feature of the reference frame includes: Using the trained first sparse convolutional model, feature extraction is performed on the occupancy information of the point cloud of the current frame and the reconstructed occupancy information of the point cloud of the reference frame to obtain a fifth latent feature of the current frame and a sixth latent feature of the reference frame; The trained second sparse convolutional model is used to extract the fifth latent feature and the sixth feature respectively to obtain the first latent feature and the second latent feature.
3. The method according to claim 2, in, The step of downsampling the first latent feature and the second latent feature at least once scale by scale to obtain the third latent feature of the current frame and the fourth latent feature of the reference frame includes: The trained third sparse convolutional model is used to extract features from the first latent feature and the second latent feature, respectively, to obtain the third latent feature and the fourth latent feature.
4. The method according to claim 3, in, The inter-frame prediction of the current frame is performed according to the third latent feature and the fourth latent feature to obtain a first latent feature prediction value and a first latent motion feature, including: Performing motion estimation according to the third latent feature and the fourth latent feature to obtain a third latent motion feature of the current frame; compressing the third latent motion feature to obtain the first latent motion feature; Decompressing the first latent motion feature to obtain a fourth latent motion feature; Using the trained fourth sparse convolutional model, upsampling the fourth latent motion feature to obtain a fifth latent motion feature; wherein the structure of the fourth sparse convolutional model is mirror-symmetric to that of the third sparse convolutional model, and the convolutional layer in the fourth sparse convolutional model is a transposed convolutional layer; Motion compensation is performed according to the fifth latent motion feature to obtain a prediction value of the first latent feature.
5. The method according to claim 1, in, The performing inter-frame prediction on the current frame according to the first latent feature prediction value and the first latent feature to obtain a second latent feature prediction value and a second latent motion feature includes: Performing motion estimation according to the first latent feature prediction value and the first latent feature to obtain a sixth latent motion feature of the current frame; compressing the sixth latent motion feature to obtain the second latent motion feature; Decompressing the second latent motion feature to obtain a seventh latent motion feature; Motion compensation is performed according to the seventh latent motion feature to obtain a prediction value of the second latent feature.
6. The method according to claim 4 or 5, in, The method further comprises: Using the first sparse convolution model, feature extraction is performed on the geometric coordinates of the point cloud of the current frame and the reconstructed geometric coordinates of the point cloud of the reference frame to obtain first geometric coordinates of the current frame and second geometric coordinates of the reference frame; Using the second sparse convolution model, feature extraction is performed on the first geometric coordinates of the current frame and the second geometric coordinates of the reference frame to obtain third geometric coordinates of the current frame and fourth geometric coordinates of the reference frame; Using the third sparse convolution model, feature extraction is performed on the third geometric coordinates of the current frame and the fourth geometric coordinates of the reference frame to obtain the fifth geometric coordinates of the current frame and the sixth geometric coordinates of the reference frame; Accordingly, performing motion estimation according to the third latent feature and the fourth latent feature to obtain the third latent motion feature of the current frame includes: According to the third latent feature, the fourth latent feature, the fifth geometric coordinates of the current frame and the sixth geometric coordinates of the reference frame The coordinates are used to perform motion estimation to obtain the third latent motion feature; The performing motion estimation according to the first latent feature prediction value and the first latent feature to obtain the sixth latent motion feature of the current frame includes: Motion estimation is performed according to the first latent feature prediction value, the first latent feature, the third geometric coordinates of the current frame, and the fourth geometric coordinates of the reference frame to obtain a sixth latent motion feature of the current frame.
7. The method according to claim 6, in, Performing motion estimation according to the first information, the second information, the third information and the fourth information to obtain fifth information includes: Splicing the third information and the fourth information to obtain a first spliced point cloud; splicing the first information and the second information to obtain a first splicing feature; Searching for a first neighboring point of a current point in the first spliced point cloud, where the current point is any point in the first spliced point cloud; Extract features according to first geometric coordinate differences between a plurality of points in the first stitched point cloud and corresponding first neighboring points in the first stitched point cloud, first distances between a plurality of points in the first stitched point cloud and corresponding first neighboring points in the first stitched point cloud, and latent features between a plurality of points in the first stitched point cloud and corresponding first neighboring points in the first stitched features, to obtain a seventh latent feature of the current frame; Perform motion estimation according to the seventh latent feature to obtain fifth information; Among them, the first information is the third latent feature, and accordingly, the second information is the fourth latent feature, the third information is the fifth geometric coordinate of the current frame, the fourth information is the sixth geometric coordinate of the reference frame, and the fifth information is the third latent motion feature; or, the first information is the predicted value of the first latent feature, and accordingly, the second information is the first latent feature, the third information is the third geometric coordinate of the current frame, the fourth information is the fourth geometric coordinate of the reference frame, and the fifth information is the sixth latent motion feature.
8. The method according to claim 7, in, The step of searching for a first neighboring point of the current point in the first spliced point cloud includes: Searching for K second neighboring points of the current point in the first spliced point cloud based on the KNN algorithm; K is greater than 1; The first neighboring point is a neighboring point among the K second neighboring points whose distance to the current point is less than or equal to a distance threshold.
9. The method according to claim 7, in, Inputting the first geometric coordinate difference, the first distance, and latent features of the plurality of points in the first spliced point cloud and the corresponding first neighboring points in the first spliced feature into a trained first neural network to obtain weights of the first geometric coordinate difference, the first distance, and latent features of the plurality of points in the first spliced point cloud and the corresponding first neighboring points in the first spliced feature; Determine a second geometric coordinate difference according to the product of the weight of the first geometric coordinate difference and the corresponding first geometric coordinate difference; Determine a second distance according to the product of the weight of the first distance and the corresponding first distance; Determine an eighth latent feature according to the weight of the first distance and the product of the weight of the latent features of the plurality of points in the first spliced point cloud and the corresponding first neighboring points in the first spliced feature and the corresponding latent feature; Feature extraction is performed based on second geometric coordinate differences between multiple points in the first stitched point cloud and corresponding first neighboring points in the first stitched point cloud, second distances between multiple points in the first stitched point cloud and corresponding first neighboring points in the first stitched point cloud, and an eighth latent feature between multiple points in the first stitched point cloud and corresponding first neighboring points in the first stitched feature to obtain a seventh latent feature of the current frame.
10. The method according to claim 9, in, The second geometric coordinate differences between multiple points in the first stitched point cloud and the corresponding first neighboring points in the first stitched point cloud, the second distances between multiple points in the first stitched point cloud and the corresponding first neighboring points in the first stitched point cloud, and the eighth latent feature between multiple points in the first stitched point cloud and the corresponding first neighboring points in the first stitched feature are input into the trained second neural network to obtain the seventh latent feature of the current frame.
11. The method according to claim 10, in, The first neural network and / or the second neural network is a multi-layer perceptron MLP.
12. The method according to claim 6, in, The performing motion compensation according to the fifth latent motion feature to obtain the first latent feature prediction value includes: Motion compensation is performed according to the fifth latent motion feature, the third geometric coordinates of the current frame and the fourth geometric coordinates of the reference frame to obtain the first latent feature prediction value.
13. The method according to claim 6, in, The performing motion compensation according to the seventh latent motion feature to obtain the second latent feature prediction value includes: Motion compensation is performed according to the seventh latent motion feature and the third geometric coordinate of the current frame to obtain the second latent feature prediction Measured value.
14. The method according to claim 12 or 13, in, The method further comprises: A geometric code stream is generated according to the third geometric coordinates.
15. A decoding method, the method being applied to a decoder, the method include: Analyze the geometric code stream to obtain the hidden residual, the first hidden motion feature and the second hidden motion feature of the current frame; According to the first latent motion feature, motion compensation is performed on the current frame to obtain a first latent feature prediction value; According to the second latent motion feature, motion compensation is performed on the current frame to obtain a second latent feature prediction value; Obtaining a first latent feature reconstruction value of the current frame according to the second latent feature prediction value and the latent residual; The first latent feature reconstruction value of the current frame is upsampled twice in a scale-by-scale manner to obtain the reconstructed occupancy information of the point cloud of the current frame.
16. The method according to claim 15, in, The method further comprises: The point cloud of the current frame is pruned according to the reconstructed occupancy information of the point cloud of the current frame.
17. The method according to claim 15, in, The performing motion compensation on the current frame according to the first latent motion feature to obtain a first latent feature prediction value includes: Decompressing the first latent motion feature to obtain a fourth latent motion feature; Using the trained fourth sparse convolutional model, upsampling the fourth latent motion feature to obtain a fifth latent motion feature; wherein the structure of the fourth sparse convolutional model is mirror-symmetric to that of the third sparse convolutional model, and the convolutional layer in the fourth sparse convolutional model is a transposed convolutional layer; Motion compensation is performed according to the fifth latent motion feature to obtain a prediction value of the first latent feature.
18. The method according to claim 15, in, The step of performing motion compensation on the current frame according to the second latent motion feature to obtain a second latent feature prediction value includes: Decompressing the second latent motion feature to obtain a seventh latent motion feature; Motion compensation is performed according to the seventh latent motion feature to obtain a prediction value of the second latent feature.
19. The method according to claim 17 or 18, in, The method further comprises: Parse the geometry code stream to obtain the third geometry coordinates of the current frame.
20. The method according to claim 19, in, The performing motion compensation according to the fifth latent motion feature to obtain the first latent feature prediction value includes: Motion compensation is performed according to the fifth latent motion feature, the third geometric coordinates of the current frame and the fourth geometric coordinates of the reference frame to obtain the first latent feature prediction value.
21. The method according to claim 19, in, The performing motion compensation according to the seventh latent motion feature to obtain the second latent feature prediction value includes: Motion compensation is performed according to the seventh latent motion feature and the third geometric coordinates of the current frame to obtain the second latent feature prediction value.
22. A coding device, applied to an encoder, the device include: A first feature extraction module is configured to perform two scale-by-scale downsampling on the occupancy information of the point cloud of the current frame and the reconstructed occupancy information of the point cloud of the reference frame of the current frame to obtain a first latent feature of the current frame and a second latent feature of the reference frame; a second feature extraction module configured to perform at least one scale-by-scale downsampling on the first latent feature and the second latent feature to obtain a third latent feature of the current frame and a fourth latent feature of the reference frame; an inter-frame prediction module, configured to perform inter-frame prediction on the current frame according to the third latent feature and the fourth latent feature to obtain a first latent feature prediction value and a first latent motion feature; The inter-frame prediction module is further configured to perform inter-frame prediction on the current frame according to the first latent feature prediction value and the first latent feature to obtain a second latent feature prediction value and a second latent motion feature; A first determining module is configured to determine a latent residual of the current frame according to the second latent feature prediction value and the first latent feature; The encoding module is configured to generate a geometric code stream based on at least the hidden residual of the current frame, the first hidden motion feature and the second hidden motion feature.
23. An encoder comprising a first memory and a first processor; in, The first memory is used to store a computer program that can be run on the first processor; The first processor is configured to execute the method according to any one of claims 1 to 14 when running the computer program.
24. A geometric code stream, which is obtained by using the encoding method as described in any one of claims 1 to 14.
25. A decoding device, the device being applied to a decoder, the device include: A parsing module configured to parse the geometric code stream to obtain a latent residual, a first latent motion feature, and a second latent motion feature of a current frame; a motion compensation module, configured to perform motion compensation on the current frame according to the first latent motion feature to obtain a first latent feature prediction value; The motion compensation module is further configured to perform motion compensation on the current frame according to the second latent motion feature to obtain a second latent feature prediction value; A reconstruction module, configured to obtain a first latent feature reconstruction value of the current frame according to the second latent feature prediction value and the latent residual; The upsampling module is configured to perform scale-by-scale upsampling twice on the first latent feature reconstruction value of the current frame to obtain the reconstructed occupancy information of the point cloud of the current frame.
26. A decoder comprising a second memory and a second processor; in, The second memory is used to store a computer program that can be run on the second processor; The second processor is configured to execute the method according to any one of claims 15 to 21 when running the computer program.
27. An electronic device, include: a processor adapted to execute a computer program; A computer-readable storage medium having a computer program stored therein, wherein when the computer program is executed by the processor, the method according to any one of claims 1 to 14 is implemented, or when the computer program is executed by the processor, the method according to any one of claims 15 to 21 is implemented.
28. A computer readable storage medium, in, The computer-readable storage medium stores a computer program, and when the computer program is executed, the method according to any one of claims 1 to 14 is implemented, or when the computer program is executed, the method according to any one of claims 15 to 21 is implemented.
Citation Information
Patent Citations
Point cloud geometric lossless compression method based on sparse convolutional neural network
CN113613010A
Point cloud compression method, encoder, decoder, and storage medium
US20230075442A1
Point cloud data transmission device, point cloud data transmission method, point cloud data reception device, and point cloud data reception method
US20230291895A1
Block-based point cloud geometric inter-frame prediction method and decoding method
WO2022042538A1
Video encoding using pre-processing
WO2022112774A1
Cited By
Multi-resolution motion feature for dynamic pcc
WO2025245129A1
