Coding method, decoding method, encoders, decoders and storage medium
The latent motion characteristics and reference points of the point cloud are determined through the deep learning network, which solves the problem of insufficient utilization of the previous frame information in the existing technology, improves the accuracy and performance of point cloud encoding and decoding, and achieves a more efficient point cloud. compression.
Patent Information
- Application Number
- PCT/CN2023/078447
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-02-27
- Publication Date
- 2024-09-06
AI Technical Summary
Existing point cloud encoding and decoding technology does not fully utilize the information of the previous frame, resulting in limited prediction effects and large residual values calculated, which reduces point cloud encoding and decoding performance.
The latent motion features and motion vectors of the current point are determined through the deep learning network, the reference point is determined based on the motion vector, and deep learning is performed to obtain more accurate prediction values, achieving more effective use of reference point information.
The accuracy and performance of point cloud encoding and decoding are improved, the residual value is reduced, and the point cloud compression efficiency is improved.
Smart Images

Figure CN2023078447_06092024_PF_FP
Abstract
Description
Coding and decoding method, encoder, decoder and storage medium Technical Field
[0001] The embodiments of the present application relate to the field of point cloud compression technology, and in particular to a coding and decoding method, an encoder, a decoder, and a storage medium. Background Art
[0002] The Deep Dynamic Point Cloud Compression (D-DPCC) framework based on deep learning is applied to the compression of dense dynamic point cloud datasets of people. It is an end-to-end dynamic point cloud inter-frame prediction coding scheme based on deep learning.
[0003] However, in the process of calculating the predicted value, the relevant technology only selects a limited number of nearest neighbors as reference points, or determines the range of reference points based on the size of the convolution kernel. This will lead to insufficient utilization of the previous frame information, limited prediction effect, and large calculated residual values, which reduces the point cloud encoding and decoding performance.
[0004] Summary of the Invention
[0005] The embodiments of the present application provide a coding and decoding method, an encoder, a decoder, and a storage medium, which can improve the accuracy of prediction, reduce residuals, and improve the point cloud coding and decoding performance.
[0006] The technical solution of the embodiment of the present application can be implemented as follows:
[0007] In a first aspect, an embodiment of the present application provides a decoding method, applied to a decoder, the method comprising:
[0008] Decoding the bitstream, determining a latent motion feature of the current point, and determining a motion vector corresponding to the current point based on the latent motion feature;
[0009] Based on the motion vector, determining at least one reference point of the current point through a deep learning network, and performing deep learning based on the at least one reference point to determine a predicted value of the current point;
[0010] A reconstructed value of the current point is determined according to the predicted value of the current point.
[0011] In a second aspect, an embodiment of the present application provides an encoding method, applied to an encoder, the method comprising:
[0012] Determine a latent motion feature of a current point, and determine a motion vector corresponding to the current point based on the latent motion feature;
[0013] Based on the motion vector, determining at least one reference point of the current point through a deep learning network, and performing deep learning based on the at least one reference point to determine a predicted value of the current point;
[0014] Determine a hidden residual of the current point according to the prediction value of the current point, and write the hidden residual into a bitstream.
[0015] In a third aspect, an embodiment of the present application provides an encoder, comprising a first determining unit and an encoding unit; wherein,
[0016] The first determining unit is configured to determine a latent motion feature of a current point, and determine a motion vector corresponding to the current point based on the latent motion feature; determine at least one reference point of the current point through a deep learning network based on the motion vector, and perform deep learning based on the at least one reference point to determine a predicted value of the current point; and determine a latent residual of the current point based on the predicted value of the current point;
[0017] The encoding unit is configured to write the hidden residual into a bitstream.
[0018] In a fourth aspect, an embodiment of the present application provides an encoder, comprising a first memory and a first processor; wherein,
[0019] The first memory is used to store a computer program that can be run on the first processor;
[0020] The first processor is configured to execute the encoding method described above when running the computer program.
[0021] In a fifth aspect, an embodiment of the present application provides a decoder, comprising a decoding unit and a second determining unit; wherein,
[0022] The decoding unit is configured to decode the code stream;
[0023] The second determination unit is configured to determine the latent motion features of the current point, and determine the motion vector corresponding to the current point based on the latent motion features; based on the motion vector, determine at least one reference point of the current point through a deep learning network, and perform deep learning based on the at least one reference point to determine the predicted value of the current point; and determine the reconstructed value of the current point based on the predicted value of the current point.
[0024] In a sixth aspect, an embodiment of the present application provides a decoder, comprising a second memory and a second processor; wherein:
[0025] The second memory is used to store a computer program that can be run on the second processor;
[0026] The second processor is configured to execute the above-mentioned decoding method when running the computer program.
[0027] In a seventh aspect, 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, it implements the decoding method described above, or implements the encoding method described above.
[0028] The embodiment of the present application provides a coding and decoding method, an encoder, a decoder, and a storage medium. At the decoding end, the decoder decodes the bitstream, determines the latent motion features of the current point, and determines the motion vector corresponding to the current point based on the latent motion features; based on the motion vector, determines at least one reference point of the current point through a deep learning network, and performs deep learning based on the at least one reference point to determine the predicted value of the current point; and determines the reconstructed value of the current point based on the predicted value of the current point. At the encoding end, the encoder determines the latent motion features of the current point, and determines the motion vector corresponding to the current point based on the latent motion features; based on the motion vector, determines at least one reference point of the current point through a deep learning network, and performs deep learning based on the at least one reference point to determine the predicted value of the current point; determines the latent residual of the current point based on the predicted value of the current point, and writes the latent residual into the bitstream. It can be seen that in the embodiment of the present application, after determining the corresponding motion vector using the latent motion features of the current point, a deep learning network can be used to determine the reference point, and the deep learning network can be used to perform deep learning on the reference point to determine the predicted value of the current point. That is to say, in this application, the codec can more effectively utilize reference point information to predict features through a deep learning network, thereby obtaining more accurate prediction values, achieving improved codec efficiency, and further improving the compression performance of the point cloud. BRIEF DESCRIPTION OF THE DRAWINGS
[0029] FIG1 is a schematic diagram of a network architecture of a point cloud encoding and decoding method provided in an embodiment of the present application;
[0030] FIG2 is a schematic diagram of an implementation flow of a decoding method proposed in an embodiment of the present application;
[0031] FIG3 is a structural diagram of the K-nearest neighbor attention prediction module.
[0032] FIG4 is a schematic diagram of a method for determining a reference point;
[0033] FIG5 is a schematic diagram of a method for determining query parameters;
[0034] FIG6 is a schematic diagram of a method for determining key parameters and value parameters;
[0035] FIG7 is a schematic diagram of a method for determining a predicted value;
[0036] FIG8 is a schematic diagram of the implementation flow of the encoding method proposed in an embodiment of the present application;
[0037] FIG9 is a second structural diagram of the attention prediction module based on K nearest neighbors;
[0038] FIG10 is a schematic diagram of the structure of the encoder;
[0039] FIG11 is a second schematic diagram of the structure of the encoder;
[0040] FIG12 is a schematic diagram of the structure of the decoder;
[0041] FIG13 is a second schematic diagram of the structure of the decoder. DETAILED DESCRIPTION
[0042] In order to enable a more detailed understanding of the features and technical contents of the embodiments of the present application, the implementation of the embodiments of the present application is described in detail below with reference to the accompanying drawings. The attached drawings are for reference only and are not used to limit the embodiments of the present application.
[0043] 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.
[0044] In the following description, reference is made to “some embodiments”, which describes a subset of all possible embodiments, but it will 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.
[0045] It should also be pointed out that the terms "first\second\third" involved in the embodiments of the present application are only used to distinguish similar objects and do not represent a specific ordering of the objects. It can be understood that "first\second\third" can be interchanged with a specific order or sequence where permitted, so that the embodiments of the present application described here can be implemented in an order other than that illustrated or described here.
[0046] Point cloud is a three-dimensional representation of the surface of an object. Point cloud (data) of the surface of an object can be collected through acquisition equipment such as photoelectric radar, lidar, laser scanner, and multi-view camera.
[0047] A point cloud is a set of irregularly distributed discrete points in space that express the spatial structure and surface properties of a three-dimensional object or scene. The point cloud surface is composed of densely distributed points.
[0048] In a two-dimensional image, each pixel contains information and is distributed regularly, so there's no need to record its location. However, the distribution of points in a point cloud in three-dimensional space is random and irregular, so recording the location of each point in space is necessary to fully represent the point cloud. Similar to a two-dimensional image, each location in the acquisition process has corresponding attribute information, typically an RGB color value, which reflects the object's color. For a point cloud, in addition to color information, each point's corresponding attribute information often includes a reflectance value, which reflects the surface texture of the object. Therefore, a point in a point cloud can include both its location information and its attribute information. For example, the location information of a point can be its three-dimensional coordinates (x, y, z). The location information of a point can also be referred to as its geometric information. For example, the attribute information of a point can include color information (three-dimensional color information) and / or reflectance (one-dimensional reflectance information r). For example, the color information can be information in any color space. For example, the color information can be RGB information, where R represents red (Red), G represents green (Green), and B represents blue (Blue). For another example, the color information may be luminance and chrominance (YCbCr, YUV) information, where Y represents brightness (Luma), Cb (U) represents blue color difference, and Cr (V) represents red color difference.
[0049] For example, a point cloud generated using laser measurement principles can include both its 3D coordinate information and its reflectivity. For another example, a point cloud generated using photogrammetry principles can include both its 3D coordinate information and its 3D color information. For another example, a point cloud generated using a combination of laser measurement and photogrammetry principles can include both its 3D coordinate information, its reflectivity value, and its 3D color information.
[0050] Point clouds can be divided into the following categories according to the acquisition method:
[0051] Static point cloud: the object is stationary and the device that acquires the point cloud is also stationary;
[0052] Dynamic point cloud: The object is moving, but the device that obtains the point cloud is stationary;
[0053] Dynamic point cloud acquisition: The device used to acquire the point cloud is in motion.
[0054] For example, point clouds can be divided into two categories according to their usage:
[0055] Category 1: Machine perception point cloud, which can be used in scenarios such as autonomous navigation systems, real-time inspection systems, geographic information systems, visual sorting robots, and disaster relief robots;
[0056] Category 2: Human eye perception point cloud, which can be used in point cloud application scenarios such as digital cultural heritage, free viewpoint broadcasting, 3D immersive communication, and 3D immersive interaction.
[0057] Point clouds can flexibly and conveniently express the spatial structure and surface properties of three-dimensional objects or scenes. Moreover, since point clouds are obtained by directly sampling real objects, they can provide a strong sense of reality while ensuring accuracy. Therefore, they are widely used, including virtual reality games, computer-aided design, geographic information systems, automatic navigation systems, digital cultural heritage, free viewpoint broadcasting, three-dimensional immersive remote presentation, and three-dimensional reconstruction of biological tissues and organs.
[0058] Point clouds are primarily collected through computer generation, 3D laser scanning, and 3D photogrammetry. Computers can generate point clouds of virtual 3D objects and scenes; 3D laser scanning can obtain point clouds of static real-world 3D objects or scenes, generating millions of point clouds per second; and 3D photogrammetry can obtain point clouds of dynamic real-world 3D objects or scenes, generating tens of millions of point clouds per second. These technologies reduce the cost and time required to acquire point cloud data while improving data accuracy. While changes in point cloud data acquisition methods have made it possible to acquire large amounts of point cloud data, the processing of this massive amount of 3D point cloud data is facing bottlenecks due to storage space and transmission bandwidth constraints, as application demands grow.
[0059] For example, taking a point cloud video with a frame rate of 30 frames per second (fps), each frame contains 700,000 points, and each point has coordinate information (xyz, float) and color information (RGB, uchar). The data volume of a 10-second point cloud video is approximately 0.7 million × (4 bytes × 3 + 1 byte × 3) × 30 fps × 10 seconds = 3.15 GB. A 1280 × 720 2D video with a frame rate of 24 fps has a data volume of approximately 1280 × 720 × 12 bits × 24 fps × 10 seconds = 0.33 GB. A 10-second two-view 3D video has a data volume of approximately 0.33 × 2 = 0.66 GB. This shows that the data volume of a point cloud video far exceeds that of 2D and 3D videos of the same length. Therefore, in order to better realize data management, save server storage space, and reduce the transmission traffic and transmission time between the server and the client, point cloud compression has become a key issue in promoting the development of the point cloud industry.
[0060] That is to say, since the point cloud is a collection of massive points, storing the point cloud not only consumes a lot of memory, but is also not conducive to transmission. There is also not enough bandwidth to support direct transmission of the point cloud at the network layer without compression. Therefore, the point cloud needs to be compressed.
[0061] Currently, the point cloud coding framework that can compress point clouds can be the geometry-based Point Cloud Compression (G-PCC) codec framework or the video-based Point Cloud Compression (V-PCC) codec framework provided by the Moving Picture Experts Group (MPEG), or the AVS-PCC codec framework provided by AVS. The G-PCC codec framework can be used to compress the first type of static point clouds and the third type of dynamically acquired point clouds, and the V-PCC codec framework can be used to compress the second type of dynamic point clouds. The G-PCC codec framework is also called the point cloud codec TMC13, and the V-PCC codec framework is also called the point cloud codec TMC2.
[0062] An embodiment of the present application provides a network architecture of a point cloud encoding and decoding system including a decoding method and an encoding method. FIG1 is a schematic diagram of a network architecture of a point cloud encoding and decoding system provided by an embodiment of the present application. As shown in FIG1 , the network architecture includes one or more electronic devices 13 to 1N and a communication network 01, wherein the electronic devices 13 to 1N can perform video interaction through the communication network 01. During the implementation process, the electronic device can be various types of devices with point cloud encoding and decoding functions. For example, the electronic device can include a mobile phone, a tablet computer, a personal computer, a personal digital assistant, a navigator, a digital phone, a video phone, a television, a sensor device, a server, etc., which is not limited by the embodiment of the present application. Among them, the decoder or encoder in the embodiment of the present application can be the above-mentioned electronic device.
[0063] Among them, the electronic device in the embodiment of the present application has a point cloud encoding and decoding function, generally including a point cloud encoder (ie, encoder) and a point cloud decoder (ie, decoder).
[0064] The Deep Dynamic Point Cloud Compression (D-DPCC) framework based on deep learning is applied to the compression of dense dynamic point cloud datasets of people (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:
[0065] (1) Encoder
[0066] The encoder consists of two layers of downsampling modules and an inter-frame prediction module. The downsampling modules extract features from two adjacent point clouds using sparse convolution. Each downsampling module consists of a convolutional layer with a kernel size of 3 and a stride of 1, followed by a convolutional layer with a kernel size of 2 and a stride of 2. Each convolutional layer is followed by a Reluctant Unit (ReLU) activation layer. A three-layer Inception Residual Network (IRN) is then connected to improve feature extraction efficiency.
[0067] 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.
[0068] 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:
[0069] 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 It can be expressed as:
[0070] in, is (x i +Δxi ,y i +Δy i , z i +Δz i ) 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.
[0071] (2) Bitstream
[0072] The code stream of this technology is divided into two parts: the code stream of hidden motion features and the code stream of hidden residuals.
[0073] (3) Decoder
[0074] 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.
[0075] (4) Loss function
[0076] The loss function uses the Lagrangian rate-distortion joint loss: L = λD + R (3)
[0077] Here, 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.
[0078] Sparse convolution-based dynamic point cloud geometry compression is applied to the compression of dense character 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:
[0079] (1) Encoder
[0080] The encoder consists of a downsampling network constructed with sparse convolution and an inter-frame prediction module. The downsampling module first passes through two sparse convolution layers with a stride of 1. It then passes through three downsampling modules consisting of a sparse convolution layer with a stride of 2, an initial residual network (Inception Residual Network), and a sparse convolution layer with a stride of 1 to obtain latent feature information at four scales. The predictor also contains a downsampling module consisting of an initial residual network, a sparse convolution layer with a stride of 1, and a sparse convolution layer with a stride of 2. The latent feature information at four scales of the previous frame is concatenated in the predictor and implemented as a "target coordinate convolution" through a sparse convolution layer with a stride of 1. This maps the input features to the geometric coordinates of the current frame after three downsamplings, and outputs the feature prediction values of the current frame. The prediction residual undergoes lossy entropy coding, and the geometric coordinates of the current frame after three downsamplings undergo octree lossless coding.
[0081] (2) Bitstream
[0082] The code stream of this technology is divided into two parts: the code stream of the hidden residual and the code stream of the geometric coordinates after the current frame is downsampled three times.
[0083] (3) Decoder
[0084] The decoder consists of an upsampling module constructed using sparse convolutions and an inter-frame prediction module. The inter-frame predictor is consistent with the encoder, using the implicit feature information of the previous frame at four scales and the coordinates of the current frame after three downsampling to obtain the feature prediction value of the current frame. The prediction value is added to the implicit residual and then upsampled. Corresponding to the encoder, the decoder first passes through two sparse convolution layers with a stride of 1. Then, it recovers the reconstructed point cloud through three upsampling modules consisting of a transposed convolution layer with a stride of 2, a convolution layer with a stride of 1, and an initial residual network. After each upsampling module, the feature output is pruned to improve the reconstruction quality through a sparse convolution layer with a stride of 1, a convolution kernel size of 3, and an output channel number of 1 to estimate the occupancy probability.
[0085] (4) Loss function
[0086] The loss function uses the Lagrangian rate-distortion joint loss, as shown in formula (3) above.
[0087] Inter-frame prediction-based dynamic point cloud coding (SparsePCGCv3) is applied to the compression of dense human dynamic point cloud datasets (such as 8i and Owill). 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:
[0088] (1) Encoder
[0089] The encoder consists of a downsampling network constructed with sparse convolutions. The downsampling module first uses a sparse convolution layer with a stride of 1 and a kernel size of 3, a ReLU activation function, and a three-layer Inception Residual Network. It then downsamples using a sparse convolution layer with a stride of 2 and a kernel size of 2. Finally, the ReLU activation function, the three-layer Inception Residual Network, and a sparse convolution layer with a stride of 1 and a kernel size of 3 are connected.
[0090] This technology can implement both lossless and lossy coding modes for different point cloud scales. By adjusting the number of scales in the lossy coding mode, the bit rate and distortion can be controlled. In the lossy coding mode, the latent features at the lowest scale of the current frame are entropy coded; in the lossless coding mode, the occupancy of each scale of the current frame is entropy coded.
[0091] (2) Bitstream
[0092] For geometric lossy coding, the code stream of this technology is divided into two parts: the occupancy probability code stream of point clouds at each scale using the lossless coding mode, and the hidden feature code stream at the lowest scale of the lossy coding mode.
[0093] (3) Decoder
[0094] The decoder consists of an inter-frame predictor and an upsampling network constructed by sparse convolution. The inter-frame predictor takes the latent features of the corresponding scale of the point cloud of the previous frame as input, and uses a sparse convolution with a stride of 1 and a convolution kernel size of 9 to implement "target coordinate convolution", that is, limiting the coordinates of the output features to the coordinates after downsampling of the current frame, and outputting the feature embedding of each point in the current frame. The upsampling network has a similar structure to the downsampling network at the encoder end, and uses a transposed convolution with a convolution kernel size of 2 and a stride of 2 to achieve upsampling. After the upsampling module, three stacked sparse convolution layers are used, with a convolution kernel size of 1, a stride of 1, and a final output channel number of 1, to output the estimated occupancy probability. The upsampling module and the stacked sparse convolution layers constitute the sparse convolution-based occupancy probability estimation module (SOPA). In lossy coding mode, SOPA takes the features of the previous scale of the current frame and the features output by the inter-frame predictor (corresponding to the features of the previous scale of the previous frame) as input, and directly outputs the feature reconstruction value of the current frame at the current scale; in lossless coding mode, SOPA divides the points into eight groups according to the relative position of each point in the octree parent node of the current frame at the current scale, and decodes each group separately. The decoding of subsequent groups can utilize the information of previous groups, thereby improving efficiency.
[0095] (4) Loss function
[0096] The loss function uses the Lagrangian rate-distortion joint loss, as shown in formula (3) above.
[0097] However, related technologies rely on traditional weighted average interpolation methods to calculate prediction values, selecting a limited number of nearest neighbors based on Euclidean distance as reference points. Alternatively, they use relatively complex sparse convolutional networks for prediction, where the input range is limited by the size of the convolution kernel. Consequently, common point cloud encoding and decoding technologies do not fully utilize information from the previous frame, resulting in limited prediction results and large residual values, which in turn reduces point cloud encoding and decoding performance.
[0098] It can be seen that the common point cloud encoding and decoding methods have the problem of poor prediction effect, which affects the compression performance of the point cloud.
[0099] In order to solve the above problems, the embodiments of the present application provide a coding and decoding method, an encoder, a decoder and a storage medium. At the decoding end, the decoder decodes the code stream, determines the implicit motion features of the current point, and determines the motion vector corresponding to the current point based on the implicit motion features; based on the motion vector, at least one reference point of the current point is determined through a deep learning network, and deep learning is performed based on the at least one reference point to determine the predicted value of the current point; and the reconstruction value of the current point is determined based on the predicted value of the current point. At the encoding end, the encoder determines the implicit motion features of the current point, and determines the motion vector corresponding to the current point based on the implicit motion features; based on the motion vector, at least one reference point of the current point is determined through a deep learning network, and deep learning is performed based on the at least one reference point to determine the predicted value of the current point; the implicit residual of the current point is determined based on the predicted value of the current point, and the implicit residual is written into the code stream. It can be seen that in the embodiments of the present application, after the corresponding motion vector is determined using the implicit motion features of the current point, a deep learning network can be used to determine the reference point, and the deep learning network can be used to perform deep learning on the reference point to determine the predicted value of the current point. That is to say, in this application, the codec can more effectively utilize reference point information to predict features through a deep learning network, thereby obtaining more accurate prediction values, achieving improved codec efficiency, and further improving the compression performance of the point cloud.
[0100] The embodiments of the present application will be described in detail below with reference to the accompanying drawings.
[0101] The embodiment of the present application proposes a point cloud decoding method, which can be applied to a decoder. FIG2 is a schematic diagram of the implementation flow of the decoding method proposed in the embodiment of the present application. As shown in FIG2 , the method for decoding processing by the decoder may include the following steps:
[0102] Step 101: Decode the bitstream, determine the latent motion feature of the current point, and determine the motion vector corresponding to the current point based on the latent motion feature.
[0103] In an embodiment of the present application, the decoder may first determine the latent motion features of the current point by decoding the code stream, and then may determine the motion vector corresponding to the current point based on the latent motion features.
[0104] It should be noted that in the embodiments of the present application, the decoder may include an upsampling module and an inter-frame prediction module. After decoding the bitstream, the decoder may determine the latent motion features corresponding to the current point. Then, based on the upsampling module, the latent motion features may be upsampled to determine the motion vector corresponding to the current point.
[0105] For example, in some embodiments, each upsampling module in the upsampling module included in the decoder may include a convolution layer with a convolution kernel size of 3 and a stride of 1, and may also include 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 three layers of the initial residual network (Inception Residual Network); thereafter, 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, outputting the occupancy probability of each point, and pruning is performed based on the occupancy probability, retaining points with a higher occupancy probability.
[0106] It can be understood that, in the embodiment of the present application, the occupancy probability of each point can represent the occupation codeword situation of each point.
[0107] Furthermore, in an embodiment of the present application, when geometric coding is performed on a point cloud, an octree may be constructed first. The octree structure is used to recursively partition the point cloud space into eight sub-blocks of equal size, and the occupancy codeword of each sub-block is determined. If the sub-block does not contain a point, it is recorded as empty; otherwise, it is recorded as non-empty. At the last level of the recursive partitioning, the occupancy codeword information of all blocks is recorded, and geometric coding is performed. The geometric information expressed by the octree structure can, on the one hand, further form a geometric code stream, and on the other hand, the reconstructed geometric information can be used as additional information for attribute coding during geometric reconstruction.
[0108] Furthermore, in an embodiment of the present application, the code stream transmitted from the encoder to the decoder may include a code stream of latent motion features and a code stream of latent residuals. Accordingly, the decoder decodes the code stream of latent motion features to determine the latent motion features, and decodes the code stream of latent residuals to determine the latent residuals.
[0109] Step 102: Based on the motion vector, determine at least one reference point of the current point through a deep learning network, and perform deep learning based on the at least one reference point to determine a predicted value of the current point.
[0110] In an embodiment of the present application, after determining the implicit motion features of the current point by decoding the code stream and determining the motion vector corresponding to the current point based on the implicit motion features, at least one reference point of the current point can be further determined through a deep learning network based on the motion vector, and then deep learning can be performed based on the at least one reference point to determine the predicted value of the current point.
[0111] It should be noted that in an embodiment of the present application, after determining the motion vector of the current point, a deep learning network can be used to further determine at least one reference point of the current point, and then deep learning is performed on the at least one reference point to finally determine the predicted value of the current point.
[0112] Furthermore, in an embodiment of the present application, the deep learning network may include an attention prediction module based on K-nearest neighbors.
[0113] It should be noted that, in an embodiment of the present application, the attention prediction module based on K-nearest neighbor may include at least the following parts: a K-nearest neighbor algorithm unit, a connection layer, a linear layer, and a normalized exponential Softmax function.
[0114] Exemplarily, in some embodiments, Figure 3 is a structural diagram of the K-nearest neighbor attention prediction module. As shown in Figure 3, the K-nearest neighbor-based attention prediction module can be composed of a K-nearest neighbor algorithm unit (KNN), a connection unit (connection layer), three linear layers and a Softmax unit (Softmax function).
[0115] Furthermore, in an embodiment of the present application, through the K-nearest neighbor algorithm unit in the K-nearest neighbor-based attention prediction module, at least one reference point corresponding to the current point can be determined in the reference frame of the current frame according to the motion vector.
[0116] It is understood that in the embodiments of the present application, the current frame is the image frame to which the current point belongs, and the reference frame of the current frame may be one or more image frames other than the current frame in the current image sequence. For example, the reference frame of the current frame may be the frame before the current frame.
[0117] Accordingly, in the embodiments of the present application, the at least one reference point corresponding to the current point is at least one reference point in one or more image frames other than the current frame in the current image sequence. For example, the reference point of the current point may be at least one point in the frame before the current frame.
[0118] Furthermore, in an embodiment of the present application, when determining at least one reference point in the reference frame of the current frame based on the motion vector through the K-nearest neighbor algorithm unit, the position coordinates of the current point can be determined first; then the feature information and position coordinates of one or more points in the reference frame can be determined; then the position coordinates of the current point, as well as the feature information and position coordinates of one or more points in the reference frame can be input into the K-nearest neighbor algorithm unit, so that the feature information and position coordinates corresponding to at least one reference point can be determined.
[0119] For example, in some embodiments, FIG4 is a schematic diagram of a method for determining a reference point. As shown in FIG4, the position coordinates of the current point can be represented as C2, the feature information of one or more points in the reference frame can be represented as F1, and the position coordinates of one or more points in the reference frame can be represented as C1. Based on F1, C1, and C2, a K-nearest neighbor algorithm unit is used to determine the reference point in the reference frame according to the motion vector, and finally at least one reference point can be obtained, and then the feature information F corresponding to the at least one reference point can be determined. KNN and position coordinates C KNN .
[0120] Furthermore, in an embodiment of the present application, when deep learning is performed on at least one determined reference point using a deep learning network including an attention prediction module based on K-nearest neighbors to determine the predicted value of the current point, the feature information of the current point can be determined first; then, based on the connection layer and the linear layer, the query parameters, key parameters and value parameters are determined according to the feature information of the current point and the feature information and position coordinates corresponding to at least one reference point; finally, the predicted value of the current point can be determined based on the query parameters, key parameters and value parameters based on the Softmax function.
[0121] That is to say, in an embodiment of the present application, the K-nearest neighbor algorithm unit in the K-nearest neighbor-based attention prediction module can be used to first determine at least one reference point, and then, based on the at least one reference point that has been determined, the connection layer, linear layer and Softmax function in the K-nearest neighbor-based attention prediction module can be used to complete deep learning of the at least one reference point, and further determine the predicted value of the current point.
[0122] It should be noted that in the embodiments of the present application, when determining the query parameters, key parameters, and value parameters based on the feature information of the current point and the feature information and position coordinates corresponding to at least one reference point, the feature information of the current point can be input into a first linear layer to determine the query parameters. The first linear layer can be one of the linear layers in a K-nearest neighbor-based attention prediction module.
[0123] Exemplarily, in some embodiments, FIG5 is a schematic diagram of a method for determining query parameters. As shown in FIG5 , the feature information of the current point can be represented as F2. Through the first linear layer, the corresponding query parameter (Q) can be determined based on the feature information of the current point.
[0124] It can be understood that in the embodiment of the present application, the query part (Query) of the attention head can be the features of each point in the current frame. Since the feature information of the points in the current frame in the decoding end is unknown, the input of the corresponding linear layer can be of size n2×d kAn all-zero matrix. Where n2 is the number of points in the current frame, d k is the number of feature channels.
[0125] That is, in the embodiment of the present application, the feature information of the point in the current frame can be represented by n2×d k That is, the feature information of the current point can be determined by the preset matrix, where the preset matrix can be of size n2×d k An all-zero matrix.
[0126] Accordingly, in the embodiment of the present application, the number of rows of the preset matrix (ie, n2) can be determined by the number of points in the current frame, and the number of columns of the preset matrix (ie, d k ) can be determined by the number of feature channels.
[0127] For example, in the embodiment of the present application, the number of characteristic channels d k It can be any integer greater than 0, for example, the number of feature channels d k It can be 192.
[0128] Furthermore, in an embodiment of the present application, for a point in the current frame, a first weight matrix can be first determined based on a first linear layer; and then the query parameter can be determined based on the feature information of the current point and the first weight matrix.
[0129] For example, in some embodiments, the query parameter Q may be determined using the following formula: Q = F2·W q (4)
[0130] in, d k is the number of feature channels, W q is the first weight matrix, that is, the weight matrix corresponding to the first linear layer.
[0131] Furthermore, in an embodiment of the present application, when determining query parameters, key parameters, and value parameters based on the connection layer and the linear layer according to the feature information of the current point and the feature information and position coordinates corresponding to at least one reference point, the relative position coordinates between the current point and the at least one reference point can be determined first based on the position coordinates of the current point and the position coordinates of the at least one reference point; then the feature information and relative position coordinates of the at least one reference point can be input into the connection layer to determine the feature information and position coordinates after connection; finally, the feature information and position coordinates after connection can be input into the second linear layer and the third linear layer, respectively, to determine the key parameters and value parameters, respectively.
[0132] For example, in some embodiments, FIG6 is a schematic diagram of a method for determining key parameters and value parameters. As shown in FIG6 , the position coordinates of the current point can be represented as C2, and the position coordinates of the reference point can be represented as C KNN , the feature information of the reference point is expressed as F KNN First, we can use the position coordinates C2 of the current point and the position coordinates C of the reference point to determine the position of the reference point. KNN The relative position coordinates between the current point and the reference point are calculated. Based on the relative position coordinates between the two and the feature information of the reference point, the concatenated feature information and position coordinates are determined using the concatenation layer in the K-nearest neighbor-based attention prediction module. Next, based on the obtained concatenated feature information and position coordinates, the second linear layer in the K-nearest neighbor-based attention prediction module is used to determine the corresponding key parameter (K). Simultaneously, the third linear layer in the K-nearest neighbor-based attention prediction module is used to determine the corresponding value parameter (V).
[0133] It can be understood that in an embodiment of the present application, after determining the K nearest neighbors of the current point in the previous frame (reference frame) as the reference point, the feature information of the reference point can be connected with the relative coordinates (the relative position coordinates between the current point and the reference point) and used as the key (Key) and value (Value) of the attention head after passing through the linear layer.
[0134] That is to say, in an embodiment of the present application, the K nearest neighbors of each point in the current frame can be selected in the previous frame (reference frame) as reference points, and then the features of the reference points can be connected with the relative coordinates, and then after passing through the linear layer, the key (Key) and value (Value) of the corresponding attention head can be determined.
[0135] Exemplarily, in some embodiments, the number K of reference points may be any integer greater than 0. For example, the number K of reference points may be set to 9.
[0136] Furthermore, in an embodiment of the present application, for a point in the current frame, a second weight matrix can be first determined based on the second linear layer; and then the key parameters can be determined based on the connected feature information and position coordinates, as well as the second weight matrix.
[0137] For example, in some embodiments, the key parameter K may be determined using the following formula: K=F e W k (5)
[0138] in, d k is the number of feature channels, W k is the second weight matrix, that is, the weight matrix corresponding to the second linear layer. n2 is the number of points in the current frame, F e It represents the features and relative coordinates of the K nearest neighbors of each point in the current frame in the previous frame, that is, it can represent the connected feature information and position coordinates corresponding to the reference point.
[0139] Furthermore, in an embodiment of the present application, a third weight matrix may be first determined based on the third linear layer; and then the value parameter may be determined based on the connected feature information and position coordinates and the third weight matrix.
[0140] For example, in some embodiments, the value parameter V may be determined using the following formula: V=F e W v (6)
[0141] in, d k is the number of feature channels, W v is the third weight matrix, that is, the weight matrix corresponding to the third linear layer. n2 is the number of points in the current frame, F e It represents the features and relative coordinates of the K nearest neighbors of each point in the current frame in the previous frame, that is, it can represent the connected feature information and position coordinates corresponding to the reference point.
[0142] For example, in some embodiments, F can be calculated using the following formula: e :
[0143] in, is a connection symbol, indicating the concatenation of the number of feature channels, F KNN is the characteristic information of the reference point, C KNN is the position coordinate of the reference point, and C2 is the position coordinate of the current point.
[0144] It can be understood that in the embodiments of the present application, after determining the reference point through the K-nearest neighbor-based attention prediction module and deep learning of the reference point to determine the corresponding query parameters, key parameters and value parameters, the Softmax function in the K-nearest neighbor-based attention prediction module can be further utilized to determine the predicted value of the current point according to the query parameters, key parameters and value parameters.
[0145] Furthermore, in an embodiment of the present application, when determining the predicted value of the current point based on the Softmax function according to the query parameters, key parameters and value parameters, the target weight matrix can be first determined based on the Softmax function according to the query parameters and key parameters; and then the predicted value of the current point can be determined based on the target weight matrix and the value parameters.
[0146] Exemplarily, in some embodiments, Figure 7 is a schematic diagram of a method for determining a prediction value. As shown in Figure 7, the query parameter Q and the key parameter K can be operated on, and the corresponding target weight matrix A can be determined using the Softmax function, and then the target weight matrix A and the value parameter V can be used to further determine the final prediction value P2′.
[0147] For example, in some embodiments, when determining the predicted value of the current point, that is, when determining the predicted value of each point in the current frame, the target weight matrix A may be determined first, referring to the following formula:
[0148] Among them, d k is the number of feature channels.
[0149] Next, the target weight matrix A can be used to determine the final predicted value P2′, referring to the following formula:
[0150] P2′=A·V (9)
[0151] That is, in an embodiment of the present application, the query part Q of the attention head is multiplied by the key K to generate the weight matrix (i.e., the target weight matrix) A of the attention head, and then combined with the weight matrix A, the final output prediction value is the weighted P2′ of the value V.
[0152] It should be noted that in the embodiments of the present application, by introducing the attention head, more inter-frame neighbor information can be utilized to reduce the impact of point cloud sparsity. At the same time, the weights of reference points can be adjusted more flexibly to obtain more accurate prediction values.
[0153] It can be understood that in an embodiment of the present application, in order to simplify the calculation, the same motion vector can be selected for the 192 feature dimensions of each point (such as the current point in the current frame), without the need to separately estimate motion information for different feature dimensions of the same point.
[0154] Furthermore, in an embodiment of the present application, the deep learning network may also include a prediction module based on PointNet.
[0155] It should be noted that in the embodiment of the present application, before using the network based on the PointNet prediction module to perform deep learning on the reference points, it is still necessary to first determine at least one reference point of the current point. Among them, you can choose to use the K nearest neighbor algorithm to determine at least one reference point in the reference frame of the current frame based on the motion vector; or you can also choose to use the ball query to determine at least one reference point in the reference frame of the current frame based on the motion vector.
[0156] That is to say, in an embodiment of the present application, if a deep learning network with a PointNet++ structure is used, at least one slap reference point can be first found for each point in the current frame in a reference frame (such as the previous frame) using a K-nearest neighbor search or a ball query.
[0157] Furthermore, in an embodiment of the present application, when using a network based on a prediction module of PointNet to perform deep learning on reference points, a feature extractor can be first constructed based on PointNet, and then the feature extractor can be used to perform deep learning on the information of at least one reference point, and then the predicted value of the current point can be determined.
[0158] That is to say, in the embodiment of the present application, PointNet can be selected as a feature extractor, and then the feature prediction values of each point in the current frame can be learned from the reference points.
[0159] It can be understood that in the embodiments of the present application, since the PointNet algorithm is based on a multi-layer perceptron (MLP), it can more effectively utilize reference point information than sparse convolution and can obtain more accurate prediction values.
[0160] Step 103: Determine the reconstructed value of the current point according to the predicted value of the current point.
[0161] In an embodiment of the present application, after determining at least one reference point of the current point through a deep learning network based on the motion vector, and performing deep learning based on the at least one reference point to determine the predicted value of the current point, the reconstructed value of the current point can be further determined based on the predicted value of the current point.
[0162] Furthermore, in an embodiment of the present application, the code stream may be decoded to determine the implicit residual of the current point.
[0163] For example, in some embodiments, the decoder may decode the code stream of the hidden residual to determine the hidden residual.
[0164] Furthermore, in an embodiment of the present application, when determining the reconstructed value of the current point based on the predicted value of the current point, it is possible to choose to determine the reconstructed value of the current point based on the predicted value of the current point and the latent residual of the current point.
[0165] For example, in some embodiments, the predicted value and the latent residual corresponding to the current point may be summed to determine the reconstructed value corresponding to the current point.
[0166] In summary, the decoding method proposed in the above steps 101 to 103 is a method for calculating inter-frame prediction values of point clouds based on deep learning networks. Conventional methods such as weighted averaging, bilinear interpolation, or sparse convolution can be replaced by network structures such as attention heads (attention prediction modules based on K-nearest neighbors) and PointNet++. The feature prediction values can be calculated using reference points, which can make fuller use of inter-frame similarities, reduce the impact of point cloud sparsity, and obtain more accurate prediction values, thereby saving the bit rate of dynamic point cloud geometry encoding.
[0167] That is to say, the decoding method proposed in this application can use a deep learning network to perform deep learning on the determined reference points to determine the corresponding prediction values, wherein the deep learning network can be a K-nearest neighbor-based attention prediction module and / or a PointNet-based prediction module. Furthermore, the calculation method of the inter-frame prediction value based on the deep learning network 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 further improving the inter-frame geometric coding efficiency of the dynamic point cloud.
[0168] The embodiment of the present application provides a decoding method, at the decoding end, the decoder decodes the code stream, determines the implicit motion features of the current point, and determines the motion vector corresponding to the current point based on the implicit motion features; based on the motion vector, at least one reference point of the current point is determined through a deep learning network, and deep learning is performed based on at least one reference point to determine the predicted value of the current point; and the reconstruction value of the current point is determined based on the predicted value of the current point. It can be seen that in the embodiment of the present application, after the corresponding motion vector is determined using the implicit motion features of the current point, the reference point can be determined using a deep learning network, and the reference point can be deep learned using the deep learning network to determine the predicted value of the current point. That is to say, in the present application, the codec can more effectively use the reference point information to predict features through the deep learning network, thereby obtaining more accurate predicted values, achieving improved coding and decoding efficiency, and further improving the compression performance of the point cloud.
[0169] The embodiment of the present application proposes a point cloud encoding method, which can be applied to an encoder. FIG8 is a schematic diagram of an implementation flow of the encoding method proposed in the embodiment of the present application. As shown in FIG8 , the encoding method performed by the encoder may include the following steps:
[0170] Step 201: Determine the latent motion feature of the current point, and determine the motion vector corresponding to the current point based on the latent motion feature.
[0171] In an embodiment of the present application, the encoder may first determine the latent motion features of the current point, and then determine the motion vector corresponding to the current point based on the latent motion features.
[0172] It should be noted that, in the embodiment of the present application, the encoder may include a downsampling module and an inter-frame prediction module. The encoder may perform feature extraction on two different point clouds to determine the latent motion feature corresponding to the current point.
[0173] For example, in some embodiments, the downsampling module in the encoder can perform feature extraction on two adjacent point cloud frames based on sparse convolution. Each downsampling module can consist of a convolutional layer with a kernel size of 3 and a stride of 1, followed by a convolutional layer with a kernel size of 2 and a stride of 2, with each convolutional layer followed by a Reluctant Unit (ReLU) activation layer. Subsequently, a three-layer Inception Residual Network (IRN) is connected to improve feature extraction efficiency.
[0174] Furthermore, in an embodiment of the present application, after determining the latent motion feature of the current point, upsampling can be further performed based on an upsampling module, and the motion vector corresponding to the current point can be determined after the latent motion feature is upsampled.
[0175] Exemplarily, in some embodiments, at the encoding end, the multi-scale motion reconstruction module includes operations such as transposed convolution with a stride of 2 and pruning, and can ultimately output a motion vector.
[0176] It should be noted that, in the embodiment of the present application, after determining the latent motion feature of the current point, the encoder may also write the latent motion feature into the bitstream and transmit it to the decoding end.
[0177] It can be understood that, in the embodiment of the present application, the occupancy probability of each point can represent the occupation codeword situation of each point.
[0178] Furthermore, in an embodiment of the present application, when geometric coding is performed on a point cloud, an octree may be constructed first. The octree structure is used to recursively partition the point cloud space into eight sub-blocks of equal size, and the occupancy codeword of each sub-block is determined. If the sub-block does not contain a point, it is recorded as empty; otherwise, it is recorded as non-empty. At the last level of the recursive partitioning, the occupancy codeword information of all blocks is recorded, and geometric coding is performed. The geometric information expressed by the octree structure can, on the one hand, further form a geometric code stream, and on the other hand, the reconstructed geometric information can be used as additional information for attribute coding during geometric reconstruction.
[0179] Furthermore, in an embodiment of the present application, the code stream transmitted from the encoder to the decoder may include a code stream of latent motion features and a code stream of latent residuals. Accordingly, the decoder decodes the code stream of latent motion features to determine the latent motion features, and decodes the code stream of latent residuals to determine the latent residuals.
[0180] Step 202: Based on the motion vector, determine at least one reference point of the current point through a deep learning network, and perform deep learning based on the at least one reference point to determine a predicted value of the current point.
[0181] In an embodiment of the present application, after determining the latent motion features of the current point and determining the motion vector corresponding to the current point based on the latent motion features, at least one reference point of the current point can be further determined through a deep learning network based on the motion vector, and then deep learning can be performed based on the at least one reference point to determine the predicted value of the current point.
[0182] It should be noted that in an embodiment of the present application, after determining the motion vector of the current point, a deep learning network can be used to further determine at least one reference point of the current point, and then deep learning is performed on the at least one reference point to finally determine the predicted value of the current point.
[0183] Furthermore, in an embodiment of the present application, the deep learning network may include an attention prediction module based on K-nearest neighbors.
[0184] It should be noted that, in an embodiment of the present application, the attention prediction module based on K-nearest neighbor may include at least the following parts: a K-nearest neighbor algorithm unit, a connection layer, a linear layer, and a normalized exponential Softmax function.
[0185] Exemplarily, in some embodiments, as shown in FIG3 , the K-nearest neighbor-based attention prediction module may be composed of a K-nearest neighbor algorithm unit (KNN), a connection unit (connection layer), three linear layers, and a Softmax unit (Softmax function).
[0186] Furthermore, in an embodiment of the present application, through the K-nearest neighbor algorithm unit in the K-nearest neighbor-based attention prediction module, at least one reference point corresponding to the current point can be determined in the reference frame of the current frame according to the motion vector.
[0187] It is understood that in the embodiments of the present application, the current frame is the image frame to which the current point belongs, and the reference frame of the current frame may be one or more image frames other than the current frame in the current image sequence. For example, the reference frame of the current frame may be the frame before the current frame.
[0188] Accordingly, in the embodiments of the present application, the at least one reference point corresponding to the current point is at least one reference point in one or more image frames other than the current frame in the current image sequence. For example, the reference point of the current point may be at least one point in the frame before the current frame.
[0189] Furthermore, in an embodiment of the present application, when determining at least one reference point in the reference frame of the current frame based on the motion vector through the K-nearest neighbor algorithm unit, the position coordinates of the current point can be determined first; then the feature information and position coordinates of one or more points in the reference frame can be determined; then the position coordinates of the current point, as well as the feature information and position coordinates of one or more points in the reference frame can be input into the K-nearest neighbor algorithm unit, so that the feature information and position coordinates corresponding to at least one reference point can be determined.
[0190] For example, in some embodiments, as shown in FIG4 , the position coordinates of the current point can be represented as C2, the feature information of one or more points in the reference frame can be represented as F1, and the position coordinates of one or more points in the reference frame can be represented as C1. Based on F1, C1, and C2, the K nearest neighbor algorithm unit can be used to determine the reference point in the reference frame according to the motion vector, and finally at least one reference point can be obtained, and then the feature information F corresponding to the at least one reference point can be determined. KNN and position coordinates C KNN .
[0191] Furthermore, in an embodiment of the present application, when deep learning is performed on at least one determined reference point using a deep learning network including an attention prediction module based on K-nearest neighbors to determine the predicted value of the current point, the feature information of the current point can be determined first; then, based on the connection layer and the linear layer, the query parameters, key parameters and value parameters are determined according to the feature information of the current point and the feature information and position coordinates corresponding to at least one reference point; finally, the predicted value of the current point can be determined based on the query parameters, key parameters and value parameters based on the Softmax function.
[0192] That is to say, in an embodiment of the present application, the K-nearest neighbor algorithm unit in the K-nearest neighbor-based attention prediction module can be used to first determine at least one reference point, and then, based on the at least one reference point that has been determined, the connection layer, linear layer and Softmax function in the K-nearest neighbor-based attention prediction module can be used to complete deep learning of the at least one reference point, and further determine the predicted value of the current point.
[0193] It should be noted that in the embodiments of the present application, when determining the query parameters, key parameters, and value parameters based on the feature information of the current point and the feature information and position coordinates corresponding to at least one reference point, the feature information of the current point can be input into a first linear layer to determine the query parameters. The first linear layer can be one of the linear layers in a K-nearest neighbor-based attention prediction module.
[0194] Exemplarily, in some embodiments, as shown in FIG5 , the feature information of the current point may be represented as F2, and the corresponding query parameter (Q) may be determined according to the feature information of the current point through a first linear layer.
[0195] It can be understood that in the embodiment of the present application, the query part (Query) of the attention head can be the features of each point in the current frame. Since the feature information of the points in the current frame in the decoding end is unknown, the input of the corresponding linear layer can be of size n2×d k An all-zero matrix. Where n2 is the number of points in the current frame, d k is the number of feature channels.
[0196] That is, in the embodiment of the present application, the feature information of the point in the current frame can be represented by n2×d k That is, the feature information of the current point can be determined by the preset matrix, where the preset matrix can be of size n2×d k An all-zero matrix.
[0197] Accordingly, in the embodiment of the present application, the number of rows of the preset matrix (ie, n2) can be determined by the number of points in the current frame, and the number of columns of the preset matrix (ie, d k ) can be determined by the number of feature channels.
[0198] For example, in the embodiment of the present application, the number of characteristic channels d k It can be any integer greater than 0, for example, the number of feature channels d k It can be 192.
[0199] Furthermore, in an embodiment of the present application, for a point in the current frame, a first weight matrix can be first determined based on a first linear layer; and then the query parameter can be determined based on the feature information of the current point and the first weight matrix.
[0200] For example, in some embodiments, the query parameter Q can be determined using the above formula (4). d k is the number of feature channels, W q is the first weight matrix, that is, the weight matrix corresponding to the first linear layer.
[0201] Furthermore, in an embodiment of the present application, when determining query parameters, key parameters, and value parameters based on the connection layer and the linear layer according to the feature information of the current point and the feature information and position coordinates corresponding to at least one reference point, the relative position coordinates between the current point and the at least one reference point can be determined first based on the position coordinates of the current point and the position coordinates of the at least one reference point; then the feature information and relative position coordinates of the at least one reference point can be input into the connection layer to determine the feature information and position coordinates after connection; finally, the feature information and position coordinates after connection can be input into the second linear layer and the third linear layer, respectively, to determine the key parameters and value parameters, respectively.
[0202] For example, in some embodiments, as shown in FIG6 , the position coordinates of the current point can be represented as C2, and the position coordinates of the reference point can be represented as C KNN , the feature information of the reference point is expressed as F KNN First, we can use the position coordinates C2 of the current point and the position coordinates C of the reference point to determine the position of the reference point. KNN The relative position coordinates between the current point and the reference point are calculated. Based on the relative position coordinates between the two and the feature information of the reference point, the concatenated feature information and position coordinates are determined using the concatenation layer in the K-nearest neighbor-based attention prediction module. Next, based on the obtained concatenated feature information and position coordinates, the second linear layer in the K-nearest neighbor-based attention prediction module is used to determine the corresponding key parameter (K). Simultaneously, the third linear layer in the K-nearest neighbor-based attention prediction module is used to determine the corresponding value parameter (V).
[0203] It can be understood that in an embodiment of the present application, after determining the K nearest neighbors of the current point in the previous frame (reference frame) as the reference point, the feature information of the reference point can be connected with the relative coordinates (the relative position coordinates between the current point and the reference point) and used as the key (Key) and value (Value) of the attention head after passing through the linear layer.
[0204] That is to say, in an embodiment of the present application, the K nearest neighbors of each point in the current frame can be selected in the previous frame (reference frame) as reference points, and then the features of the reference points can be connected with the relative coordinates, and then after passing through the linear layer, the key (Key) and value (Value) of the corresponding attention head can be determined.
[0205] Exemplarily, in some embodiments, the number K of reference points may be any integer greater than 0. For example, the number K of reference points may be set to 9.
[0206] Furthermore, in an embodiment of the present application, for a point in the current frame, a second weight matrix can be first determined based on the second linear layer; and then the key parameters can be determined based on the connected feature information and position coordinates, as well as the second weight matrix.
[0207] For example, in some embodiments, the key parameter K can be determined using the above formula (5). d k is the number of feature channels, W k is the second weight matrix, that is, the weight matrix corresponding to the second linear layer. n2 is the number of points in the current frame, F e It represents the features and relative coordinates of the K nearest neighbors of each point in the current frame in the previous frame, that is, it can represent the connected feature information and position coordinates corresponding to the reference point.
[0208] Furthermore, in an embodiment of the present application, a third weight matrix may be first determined based on the third linear layer; and then the value parameter may be determined based on the connected feature information and position coordinates and the third weight matrix.
[0209] For example, in some embodiments, the value parameter V can be determined using the above formula (6). d k is the number of feature channels, W v is the third weight matrix, that is, the weight matrix corresponding to the third linear layer. n2 is the number of points in the current frame, F e It represents the features and relative coordinates of the K nearest neighbors of each point in the current frame in the previous frame, that is, it can represent the connected feature information and position coordinates corresponding to the reference point.
[0210] It can be understood that in the embodiments of the present application, after determining the reference point through the K-nearest neighbor-based attention prediction module and deep learning of the reference point to determine the corresponding query parameters, key parameters and value parameters, the Softmax function in the K-nearest neighbor-based attention prediction module can be further utilized to determine the predicted value of the current point according to the query parameters, key parameters and value parameters.
[0211] Furthermore, in an embodiment of the present application, when determining the predicted value of the current point based on the Softmax function according to the query parameters, key parameters and value parameters, the target weight matrix can be first determined based on the Softmax function according to the query parameters and key parameters; and then the predicted value of the current point can be determined based on the target weight matrix and the value parameters.
[0212] Exemplarily, in some embodiments, as shown in FIG7 , the query parameter Q and the key parameter K can be operated, and the corresponding target weight matrix A can be determined using the Softmax function, and then the target weight matrix A and the value parameter V can be used to further determine the final predicted value P2′.
[0213] For example, in some embodiments, when determining the predicted value of the current point, that is, when determining the predicted value of each point in the current frame, the target weight matrix A may be determined first, referring to the above formula (8). k is the number of feature channels.
[0214] Next, the target weight matrix A can be used to determine the final predicted value P2′, as shown in the above formula (9).
[0215] That is, in an embodiment of the present application, the query part Q of the attention head is multiplied by the key K to generate the weight matrix (i.e., the target weight matrix) A of the attention head, and then combined with the weight matrix A, the final output prediction value is the weighted P2′ of the value V.
[0216] It should be noted that in the embodiments of the present application, by introducing the attention head, more inter-frame neighbor information can be utilized to reduce the impact of point cloud sparsity. At the same time, the weights of reference points can be adjusted more flexibly to obtain more accurate prediction values.
[0217] It can be understood that in an embodiment of the present application, in order to simplify the calculation, the same motion vector can be selected for the 192 feature dimensions of each point (such as the current point in the current frame), without the need to separately estimate motion information for different feature dimensions of the same point.
[0218] Furthermore, in an embodiment of the present application, the deep learning network may also include a prediction module based on PointNet.
[0219] It should be noted that in the embodiment of the present application, before using the network based on the PointNet prediction module to perform deep learning on the reference points, it is still necessary to first determine at least one reference point of the current point. Among them, you can choose to use the K nearest neighbor algorithm to determine at least one reference point in the reference frame of the current frame based on the motion vector; or you can also choose to use the ball query to determine at least one reference point in the reference frame of the current frame based on the motion vector.
[0220] That is to say, in an embodiment of the present application, if a deep learning network with a PointNet++ structure is used, at least one slap reference point can be first found for each point in the current frame in a reference frame (such as the previous frame) using a K-nearest neighbor search or a ball query.
[0221] Furthermore, in an embodiment of the present application, when using a network based on a prediction module of PointNet to perform deep learning on reference points, a feature extractor can be first constructed based on PointNet, and then the feature extractor can be used to perform deep learning on the information of at least one reference point, and then the predicted value of the current point can be determined.
[0222] That is to say, in the embodiment of the present application, PointNet can be selected as a feature extractor, and then the feature prediction values of each point in the current frame can be learned from the reference points.
[0223] It can be understood that in the embodiments of the present application, since the PointNet algorithm is based on a multi-layer perceptron (MLP), it can more effectively utilize reference point information than sparse convolution and can obtain more accurate prediction values.
[0224] Step 203: Determine the hidden residual of the current point according to the predicted value of the current point, and write the hidden residual into the bitstream.
[0225] In an embodiment of the present application, after determining at least one reference point of the current point through a deep learning network based on the motion vector, and performing deep learning based on the at least one reference point to determine the prediction value of the current point, the implicit residual of the current point can be further determined based on the prediction value of the current point, and then the implicit residual can be written into the code stream and transmitted to the decoding end.
[0226] Furthermore, in an embodiment of the present application, the encoder may first determine the reconstructed value of the current point, and then further determine the hidden residual of the current point based on the predicted value of the current point and the reconstructed value of the current point.
[0227] In summary, the encoding method proposed in the above steps 201 to 203 is a method for calculating inter-frame prediction values of point clouds based on deep learning networks. Conventional methods such as weighted averaging, bilinear interpolation, or sparse convolution can be replaced by network structures such as attention heads (attention prediction modules based on K-nearest neighbors) and PointNet++. Feature prediction values can be calculated using reference points, which can make fuller use of inter-frame similarities, reduce the impact of point cloud sparsity, and obtain more accurate prediction values, thereby saving the bit rate of dynamic point cloud geometry encoding.
[0228] That is to say, the encoding method proposed in this application can use a deep learning network to perform deep learning on the determined reference points to determine the corresponding prediction values, wherein the deep learning network can be a K-nearest neighbor-based attention prediction module and / or a PointNet-based prediction module. Furthermore, the calculation method of the inter-frame prediction value based on the deep learning network 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 further improving the inter-frame geometric coding efficiency of the dynamic point cloud.
[0229] The embodiment of the present application provides an encoding method, in which, at the encoding end, the encoder determines the implicit motion features of the current point, and determines the motion vector corresponding to the current point based on the implicit motion features; based on the motion vector, at least one reference point of the current point is determined through a deep learning network, and deep learning is performed based on at least one reference point to determine the prediction value of the current point; the implicit residual of the current point is determined based on the prediction value of the current point, and the implicit residual is written into the code stream. It can be seen that in the embodiment of the present application, after the corresponding motion vector is determined using the implicit motion features of the current point, the reference point can be determined using a deep learning network, and the reference point can be deep-learned using the deep learning network to determine the prediction value of the current point. That is to say, in the present application, the codec can more effectively use the reference point information to predict features through the deep learning network, thereby obtaining more accurate prediction values, achieving improved coding and decoding efficiency, and further improving the compression performance of the point cloud.
[0230] Based on the above embodiments, the encoding and decoding method proposed in the embodiments of the present application can be understood as a method for calculating the inter-frame prediction value of geometric features based on deep learning. On the basis of the dynamic point cloud compression framework based on deep learning, the encoder can downsample the point clouds of two adjacent frames (the current frame and the corresponding reference frame), perform motion estimation in the latent feature space after downsampling, and obtain a latent motion feature code stream; the latent motion feature is upsampled and motion compensated to obtain a motion vector, and the prediction value of the current frame feature is calculated based on the motion vector, and the latent residual and latent motion feature are entropy encoded. The decoder can use the decoded latent motion feature to perform the same upsampling and motion compensation operations as the encoding end to obtain a reconstructed prediction value, add it to the decoded latent residual to restore the latent feature, and finally reconstruct the point cloud by upsampling.
[0231] It should be noted that in an embodiment of the present application, after the motion vector is obtained by upsampling the latent motion features, the reference point of the current frame can be selected in the previous frame according to the motion vector, and the information of the reference point can be learned using a deep learning network, so as to obtain a more accurate prediction value.
[0232] Exemplarily, in some embodiments, the deep learning network may include an attention prediction module based on K-nearest neighbors, and may also include a prediction module based on PointNet.
[0233] Furthermore, in an embodiment of the present application, FIG9 is a second structural diagram of the attention prediction module based on K nearest neighbors. As shown in FIG9 , the attention prediction module based on K nearest neighbors can be composed of a K nearest neighbor algorithm unit (KNN), a connection unit (connection layer), three linear layers, and a Softmax unit (Softmax function). Among them, the query part (Query) of the attention head is the feature F2 of each point in the current frame. Since F2 is unknown at the decoding end, the input of the corresponding linear layer is n2×d k The all-zero matrix, n2 is the number of points in the current frame, d k is the number of feature channels, here 192. The K nearest neighbors of each point in the current frame are selected in the previous frame as reference points. The features of the reference points are concatenated with the relative coordinates and passed through a linear layer to serve as the key and value of the attention head. In experiments, K can be set to 9.
[0234] Furthermore, in an embodiment of the present application, referring to the above formula, the query part (Query) of the attention head, the key (Key) of the attention head, and the value (Value) of the attention head can be determined respectively, that is, the corresponding query parameter Q, key parameter (K), and value parameter (V) can be determined. Then, referring to the above formula, the query part Q of the attention head is multiplied by the key K to generate the weight matrix (that is, the target weight matrix) A of the attention head. Then, combined with the weight matrix A, the final output prediction value is the weighted P2′ of the value V, that is, the final prediction value is determined.
[0235] It should be noted that in the embodiments of this application, by introducing attention heads, this solution can utilize more inter-frame neighbor information, reduce the impact of point cloud sparsity, and more flexibly adjust the weights of reference points to obtain more accurate predictions. To simplify calculations, this application uses the same motion vector for each point's 192 feature dimensions, eliminating the need to estimate motion information separately for different feature dimensions of the same point.
[0236] Furthermore, in embodiments of the present application, for a prediction module based on PointNet++, a PointNet++ structure can be used to find reference points for each point in the current frame using a K-nearest neighbor search or a ball query in the previous frame. PointNet is then used as a feature extractor to learn feature prediction values for each point in the current frame from the reference points. Because the PointNet algorithm is based on a multi-layer perceptron (MLP), it can more effectively utilize reference point information than sparse convolution, resulting in more accurate predictions.
[0237] To sum up, the encoding and decoding method proposed in the embodiment of the present application is a method for calculating inter-frame prediction values of point clouds based on deep learning networks. It replaces the existing weighted average, bilinear interpolation or sparse convolution methods by network structures such as attention heads and PointNet++, and uses reference points to calculate feature prediction values. It can make more full use of inter-frame similarities, reduce the impact of point cloud sparsity, and obtain more accurate prediction values, thereby saving the bit rate of dynamic point cloud geometric encoding.
[0238] In other words, the encoding and decoding method proposed in the embodiment of the present application can make full use of the inter-frame similarity of the point cloud, expand the reference information, and 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.
[0239] The embodiment of the present application provides a coding and decoding method. At the decoding end, the decoder decodes the code stream, determines the implicit motion features of the current point, and determines the motion vector corresponding to the current point based on the implicit motion features; based on the motion vector, at least one reference point of the current point is determined through a deep learning network, and deep learning is performed based on the at least one reference point to determine the predicted value of the current point; and the reconstruction value of the current point is determined based on the predicted value of the current point. At the encoding end, the encoder determines the implicit motion features of the current point, and determines the motion vector corresponding to the current point based on the implicit motion features; based on the motion vector, at least one reference point of the current point is determined through a deep learning network, and deep learning is performed based on the at least one reference point to determine the predicted value of the current point; the implicit residual of the current point is determined based on the predicted value of the current point, and the implicit residual is written into the code stream. It can be seen that in the embodiment of the present application, after the corresponding motion vector is determined using the implicit motion features of the current point, a deep learning network can be used to determine the reference point, and the deep learning network can be used to perform deep learning on the reference point to determine the predicted value of the current point. That is to say, in this application, the codec can more effectively utilize reference point information to predict features through a deep learning network, thereby obtaining more accurate prediction values, achieving improved codec efficiency, and further improving the compression performance of the point cloud.
[0240] Based on the above embodiment, in another embodiment of the present application, based on the same inventive concept as the above embodiment, FIG10 is a schematic diagram of the composition structure of the encoder. As shown in FIG10, the encoder 10 may include: a first determining unit 11, an encoding unit 12,
[0241] The first determining unit 11 is configured to determine a latent motion feature of a current point, and determine a motion vector corresponding to the current point based on the latent motion feature; determine at least one reference point of the current point through a deep learning network based on the motion vector, and perform deep learning based on the at least one reference point to determine a predicted value of the current point; and determine a latent residual of the current point based on the predicted value of the current point;
[0242] The encoding unit 12 is configured to write the hidden residual into a bitstream.
[0243] It is understood that in this embodiment, a "unit" can be a portion of a circuit, a portion of a processor, a portion of a program or software, etc., and can also be a module or a non-modular system. Furthermore, the various components in this embodiment can be integrated into a single processing unit, or each unit can exist physically separately, or two or more units can be integrated into a single unit. The aforementioned integrated units can be implemented in the form of hardware or software functional modules.
[0244] If the integrated unit is implemented as a software functional module and is not sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this embodiment, or the portion that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions for causing a computer device (which can be a personal computer, server, or network device, etc.) or a processor to execute all or part of the steps of the method described in this embodiment. The aforementioned storage medium includes various media that can store program code, such as a USB flash drive, a mobile hard drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.
[0245] Therefore, an embodiment of the present application provides a computer-readable storage medium, which is applied to the encoder 10. The computer-readable storage medium stores a computer program, and when the computer program is executed by the first processor, it implements the method described in any one of the aforementioned embodiments.
[0246] Based on the composition of the above-mentioned encoder 10 and the computer-readable storage medium, Figure 11 is a second schematic diagram of the composition structure of the encoder. As shown in Figure 11, the encoder 10 may include: a first memory 13 and a first processor 14, a first communication interface 15 and a first bus system 16. The first memory 13, the first processor 14, and the first communication interface 15 are coupled together through the first bus system 16. It can be understood that the first bus system 16 is used to achieve connection and communication between these components. In addition to the data bus, the first bus system 16 also includes a power bus, a control bus, and a status signal bus. However, for the sake of clarity, various buses are labeled as the first bus system 16 in Figure 9. Among them,
[0247] The first communication interface 15 is used for receiving and sending signals during the process of sending and receiving information with other external network elements;
[0248] The first memory 13 is used to store a computer program that can be run on the first processor;
[0249] The first processor 14 is configured to, when running the computer program, determine a latent motion feature of a current point, and determine a motion vector corresponding to the current point based on the latent motion feature; determine at least one reference point of the current point through a deep learning network based on the motion vector, and perform deep learning based on the at least one reference point to determine a predicted value of the current point; determine a latent residual of the current point based on the predicted value of the current point, and write the latent residual into a bitstream.
[0250] It is understood that the first memory 13 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 13 of the systems and methods described herein is intended to include, but is not limited to, these and any other suitable types of memory.
[0251] The first processor 14 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 14. The above-mentioned first processor 14 may 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. It can implement or execute the various methods, steps, and logic block diagrams disclosed in the embodiments of this application. The general-purpose processor may 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 well-known 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 13. The first processor 14 reads the information in the first memory 13 and, in conjunction with its hardware, completes the steps of the above method.
[0252] 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.
[0253] Optionally, as another embodiment, the first processor 14 is further configured to execute any one of the methods described in the foregoing embodiments when running the computer program.
[0254] FIG12 is a schematic diagram of the first structure of the decoder. As shown in FIG12 , the decoder 20 may include: a decoding unit 21 and a second determining unit 22; wherein,
[0255] The decoding unit 21 is configured to decode the code stream;
[0256] The second determination unit 22 is configured to determine the latent motion features of the current point, and determine the motion vector corresponding to the current point based on the latent motion features; based on the motion vector, determine at least one reference point of the current point through a deep learning network, and perform deep learning based on the at least one reference point to determine the predicted value of the current point; and determine the reconstructed value of the current point based on the predicted value of the current point.
[0257] It is understood that in this embodiment, a "unit" can be a portion of a circuit, a portion of a processor, a portion of a program or software, etc., and can also be a module or a non-modular system. Furthermore, the various components in this embodiment can be integrated into a single processing unit, or each unit can exist physically separately, or two or more units can be integrated into a single unit. The aforementioned integrated units can be implemented in the form of hardware or software functional modules.
[0258] If the integrated unit is implemented as a software functional module and is not sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this embodiment, or the portion that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions for causing a computer device (which can be a personal computer, server, or network device, etc.) or a processor to execute all or part of the steps of the method described in this embodiment. The aforementioned storage medium includes various media that can store program code, such as a USB flash drive, a mobile hard drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.
[0259] Therefore, an embodiment of the present application provides a computer-readable storage medium, which is applied to the decoder 20. The computer-readable storage medium stores a computer program, and when the computer program is executed by the first processor, it implements the method described in any one of the aforementioned embodiments.
[0260] Based on the composition of the above-mentioned decoder 20 and the computer-readable storage medium, Figure 13 is a second schematic diagram of the composition structure of the decoder. As shown in Figure 13, the decoder 20 may include: a second memory 23 and a second processor 24, a second communication interface 25 and a second bus system 26. The second memory 23 and the second processor 24, and the second communication interface 25 are coupled together through the second bus system 26. It can be understood that the second bus system 26 is used to achieve connection and communication between these components. In addition to the data bus, the second bus system 26 also includes a power bus, a control bus and a status signal bus. However, for the sake of clarity, various buses are labeled as the second bus system 26 in Figure 11. Among them,
[0261] The second communication interface 25 is used for receiving and sending signals during the process of sending and receiving information with other external network elements;
[0262] The second memory 23 is used to store a computer program that can be run on the second processor;
[0263] The second processor 24 is used to decode the code stream when running the computer program, determine the latent motion features of the current point, and determine the motion vector corresponding to the current point based on the latent motion features; based on the motion vector, determine at least one reference point of the current point through a deep learning network, and perform deep learning based on the at least one reference point to determine the predicted value of the current point; and determine the reconstructed value of the current point based on the predicted value of the current point.
[0264] It is understood that the second memory 23 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 second memory 23 of the systems and methods described herein is intended to include, but is not limited to, these and any other suitable types of memory.
[0265] The second processor 24 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 second processor 24. The second processor 24 may 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. It can implement or execute the various methods, steps, and logic block diagrams disclosed in the embodiments of this application. The general-purpose processor may 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 well-known 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 second memory 23. The second processor 24 reads the information in the second memory 23 and, in conjunction with its hardware, completes the steps of the above method.
[0266] 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.
[0267] The embodiment of the present application provides an encoder and decoder. At the decoding end, the decoder decodes the bitstream, determines the implicit motion features of the current point, and determines the motion vector corresponding to the current point based on the implicit motion features; based on the motion vector, determines at least one reference point of the current point through a deep learning network, and performs deep learning based on the at least one reference point to determine the predicted value of the current point; and determines the reconstructed value of the current point based on the predicted value of the current point. At the encoding end, the encoder determines the implicit motion features of the current point, and determines the motion vector corresponding to the current point based on the implicit motion features; based on the motion vector, determines at least one reference point of the current point through a deep learning network, and performs deep learning based on the at least one reference point to determine the predicted value of the current point; determines the implicit residual of the current point based on the predicted value of the current point, and writes the implicit residual into the bitstream. It can be seen that in the embodiment of the present application, after determining the corresponding motion vector using the implicit motion features of the current point, a deep learning network can be used to determine the reference point, and the deep learning network can be used to perform deep learning on the reference point to determine the predicted value of the current point. That is to say, in this application, the codec can more effectively utilize reference point information to predict features through a deep learning network, thereby obtaining more accurate prediction values, achieving improved codec efficiency, and further improving the compression performance of the point cloud.
[0268] It should be noted that, in the embodiments of the present application, 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.
[0269] The serial numbers of the above embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.
[0270] The methods disclosed in the several method embodiments provided in this application can be arbitrarily combined without conflict to obtain new method embodiments.
[0271] The features disclosed in the several product embodiments provided in this application can be arbitrarily combined without conflict to obtain new product embodiments.
[0272] 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.
[0273] The above description is merely a specific 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. Industrial Applicability
[0274] The embodiment of the present application provides a coding and decoding method, an encoder, a decoder, and a storage medium. At the decoding end, the decoder decodes the code stream, determines the implicit motion features of the current point, and determines the motion vector corresponding to the current point based on the implicit motion features; based on the motion vector, at least one reference point of the current point is determined through a deep learning network, and deep learning is performed based on the at least one reference point to determine the predicted value of the current point; and the reconstruction value of the current point is determined based on the predicted value of the current point. At the encoding end, the encoder determines the implicit motion features of the current point, and determines the motion vector corresponding to the current point based on the implicit motion features; based on the motion vector, at least one reference point of the current point is determined through a deep learning network, and deep learning is performed based on the at least one reference point to determine the predicted value of the current point; the implicit residual of the current point is determined based on the predicted value of the current point, and the implicit residual is written into the code stream. It can be seen that in the embodiment of the present application, after the corresponding motion vector is determined using the implicit motion features of the current point, a deep learning network can be used to determine the reference point, and the deep learning network can be used to perform deep learning on the reference point to determine the predicted value of the current point. That is to say, in this application, the codec can more effectively utilize reference point information to predict features through a deep learning network, thereby obtaining more accurate prediction values, achieving improved codec efficiency, and further improving the compression performance of the point cloud.
Claims
1. A decoding method, applied to a decoder, the method include: Decoding the bitstream, determining a latent motion feature of a current point, and determining a motion vector corresponding to the current point according to the latent motion feature; Based on the motion vector, determining at least one reference point of the current point through a deep learning network, and performing deep learning according to the at least one reference point to determine a predicted value of the current point; A reconstructed value of the current point is determined according to the predicted value of the current point.
2. The method according to claim 1, in, The deep learning network includes a K-nearest neighbor based attention prediction module.
3. The method according to claim 2, in, The K-nearest-neighbor-based attention prediction module includes at least the following parts: a K-nearest-neighbor algorithm unit, a connection layer, a linear layer, and a normalized exponential Softmax function.
4. The method according to claim 3, in, The method further comprises: The at least one reference point is determined in a reference frame of the current frame according to the motion vector by the K nearest neighbor algorithm unit.
5. The method according to claim 4, in, The step of determining the at least one reference point in the reference frame of the current frame according to the motion vector by the K nearest neighbor algorithm unit includes: Determine the position coordinates of the current point; Determining feature information and position coordinates of one or more points in the reference frame; The position coordinates of the current point, and the feature information and position coordinates of one or more points in the reference frame are input into the K nearest neighbor algorithm unit to determine the feature information and position coordinates corresponding to the at least one reference point.
6. The method according to claim 5, in, The method further comprises: Determining feature information of the current point; Determine, based on the connection layer and the linear layer, a query parameter, a key parameter, and a value parameter according to the feature information of the current point and the feature information and position coordinates corresponding to the at least one reference point; Based on the Softmax function, a predicted value of the current point is determined according to the query parameter, the key parameter, and the value parameter.
7. The method according to claim 6, in, The determining, based on the connection layer and the linear layer, query parameters, key parameters, and value parameters according to the feature information of the current point and the feature information and position coordinates corresponding to the at least one reference point includes: The feature information of the current point is input into the first linear layer to determine the query parameter.
8. The method according to claim 7, in, The feature information of the current point is determined by a preset matrix corresponding to the current frame.
9. The method according to claim 8, in, The number of rows of the preset matrix is determined by the number of points in the current frame, and the number of columns of the preset matrix is determined by the number of feature channels.
10. The method according to claim 6, in, The determining, based on the connection layer and the linear layer, query parameters, key parameters, and value parameters according to the feature information of the current point and the feature information and position coordinates corresponding to the at least one reference point includes: Determine the relative position coordinates between the current point and the at least one reference point according to the position coordinates of the current point and the position coordinates of the at least one reference point; Inputting the feature information of the at least one reference point and the relative position coordinates into the connection layer to determine the feature information and position coordinates after connection; The connected feature information and position coordinates are input into the second linear layer and the third linear layer respectively to determine the key parameter and the value parameter.
11. The method according to claim 6, in, The determining, based on the Softmax function and according to the query parameter, the key parameter and the value parameter, the predicted value of the current point includes: Based on the Softmax function, determining a target weight matrix according to the query parameter and the key parameter; The predicted value of the current point is determined according to the target weight matrix and the value parameter.
12. The method according to claim 7, in, The method further comprises: Determine a first weight matrix based on the first linear layer; The query parameter is determined according to the feature information of the current point and the first weight matrix.
13. The method according to claim 10, in, The method further comprises: determining a second weight matrix based on the second linear layer; The key parameter is determined according to the connected feature information and position coordinates and the second weight matrix.
14. The method according to claim 10, in, The method further comprises: Determining a third weight matrix based on the third linear layer; The value parameter is determined according to the connected feature information and position coordinates and the third weight matrix.
15. The method according to claim 1, in, The deep learning network includes a prediction module based on PointNet.
16. The method according to claim 15, in, The method further comprises: Determine the at least one reference point in the reference frame of the current frame according to the motion vector by using a K nearest neighbor algorithm; or, The at least one reference point is determined in a reference frame of the current frame according to the motion vector through spherical query.
17. The method according to claim 15, in, The method further comprises: A feature extractor is constructed based on PointNet, and the feature extractor is used to perform deep learning on the information of the at least one reference point to determine the predicted value of the current point.
18. The method according to claim 1, in, The determining the motion vector corresponding to the current point according to the latent motion feature includes: The latent motion feature is up-sampled to determine the motion vector.
19. The method according to claim 1, in, The method further comprises: The code stream is decoded to determine the hidden residual of the current point.
20. The method according to claim 19, in, The determining the reconstruction value of the current point according to the predicted value of the current point includes: Determine a reconstructed value of the current point according to the predicted value of the current point and the latent residual of the current point.
21. A coding method, applied to an encoder, the method include: Determine a latent motion feature of a current point, and determine a motion vector corresponding to the current point according to the latent motion feature; Based on the motion vector, determining at least one reference point of the current point through a deep learning network, and performing deep learning according to the at least one reference point to determine a predicted value of the current point; Determine a hidden residual of the current point according to the prediction value of the current point, and write the hidden residual into a bitstream.
22. The method according to claim 21, in, The deep learning network includes a K-nearest neighbor based attention prediction module.
23. The method according to claim 22, in, The K-nearest-neighbor-based attention prediction module includes at least the following parts: a K-nearest-neighbor algorithm unit, a connection layer, a linear layer, and a normalized exponential Softmax function.
24. The method according to claim 23, in, The method further comprises: The at least one reference point is determined in a reference frame of the current frame according to the motion vector by the K nearest neighbor algorithm unit.
25. The method according to claim 24, in, The step of determining the at least one reference point in the reference frame of the current frame according to the motion vector by the K nearest neighbor algorithm unit includes: Determine the position coordinates of the current point; Determining feature information and position coordinates of one or more points in the reference frame; The position coordinates of the current point, and the feature information and position coordinates of one or more points in the reference frame are input into the K nearest neighbor algorithm unit to determine the feature information and position coordinates corresponding to the at least one reference point.
26. The method according to claim 25, in, The method further comprises: Determining feature information of the current point; Determine, based on the connection layer and the linear layer, a query parameter, a key parameter, and a value parameter according to the feature information of the current point and the feature information and position coordinates corresponding to the at least one reference point; Based on the Softmax function, a predicted value of the current point is determined according to the query parameter, the key parameter, and the value parameter.
27. The method according to claim 26, in, The determining, based on the connection layer and the linear layer, query parameters, key parameters, and value parameters according to the feature information of the current point and the feature information and position coordinates corresponding to the at least one reference point includes: The feature information of the current point is input into the first linear layer to determine the query parameter.
28. The method according to claim 27, in, The feature information of the current point is determined by a preset matrix corresponding to the current frame.
29. The method according to claim 28, in, The number of rows of the preset matrix is determined by the number of points in the current frame, and the number of columns of the preset matrix is determined by the number of feature channels.
30. The method according to claim 26, in, The determining, based on the connection layer and the linear layer, query parameters, key parameters, and value parameters according to the feature information of the current point and the feature information and position coordinates corresponding to the at least one reference point includes: According to the position coordinates of the current point and the position coordinates of the at least one reference point, the position coordinates of the current point and the at least one reference point are determined. The relative position coordinates between the test points; Inputting the feature information of the at least one reference point and the relative position coordinates into the connection layer to determine the feature information and position coordinates after connection; The connected feature information and position coordinates are input into the second linear layer and the third linear layer respectively to determine the key parameter and the value parameter.
31. The method according to claim 26, in, The determining, based on the Softmax function and according to the query parameter, the key parameter and the value parameter, the predicted value of the current point includes: Based on the Softmax function, determining a target weight matrix according to the query parameter and the key parameter; The predicted value of the current point is determined according to the target weight matrix and the value parameter.
32. The method according to claim 27, in, The method further comprises: Determine a first weight matrix based on the first linear layer; The query parameter is determined according to the feature information of the current point and the first weight matrix.
33. The method according to claim 30, in, The method further comprises: determining a second weight matrix based on the second linear layer; The key parameter is determined according to the connected feature information and position coordinates and the second weight matrix.
34. The method according to claim 30, in, The method further comprises: Determining a third weight matrix based on the third linear layer; The value parameter is determined according to the connected feature information and position coordinates and the third weight matrix.
35. The method according to claim 21, in, The deep learning network includes a prediction module based on PointNet.
36. The method according to claim 35, in, The method further comprises: Determine the at least one reference point in the reference frame of the current frame according to the motion vector by using a K nearest neighbor algorithm; or, The at least one reference point is determined in a reference frame of the current frame according to the motion vector through spherical query.
37. The method according to claim 35, in, The method further comprises: A feature extractor is constructed based on PointNet, and the feature extractor is used to perform deep learning on the information of the at least one reference point to determine the predicted value of the current point.
38. The method according to claim 21, in, The determining the motion vector corresponding to the current point according to the latent motion feature includes: The latent motion feature is up-sampled to determine the motion vector.
39. The method according to claim 21, in, The determining the hidden residual of the current point according to the predicted value of the current point includes: Determining a reconstruction value of the current point; Determine a hidden residual of the current point according to the predicted value of the current point and the reconstructed value of the current point.
40. The method according to claim 21, in, The method further comprises: The latent motion feature is written into the bitstream.
41. An encoder, comprising a first determining unit and an encoding unit; in, The first determination unit is configured to determine a latent motion feature of the current point, and determine a motion vector corresponding to the current point according to the latent motion feature; based on the motion vector, determine at least one reference point of the current point through a deep learning network, and perform deep learning according to the at least one reference point to determine a predicted value of the current point; Determine the hidden residual of the current point according to the predicted value of the current point; The encoding unit is configured to write the hidden residual into a bit stream.
42. 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 20 when running the computer program.
43. A decoder, comprising a decoding unit, a second determining unit; in, The decoding unit is configured to decode the code stream; The second determination unit is configured to determine the latent motion features of the current point, and determine the motion vector corresponding to the current point based on the latent motion features; based on the motion vector, determine at least one reference point of the current point through a deep learning network, and perform deep learning based on the at least one reference point to determine the predicted value of the current point; and determine the reconstructed value of the current point based on the predicted value of the current point.
44. 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 21 to 40 when running the computer program.
45. 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 20 is implemented, or the method according to any one of claims 21 to 40 is implemented.
Citation Information
Patent Citations
Point cloud compression method, encoder, decoder and storage medium
CN113766228A
Multi-reference inter-frame prediction method and system, equipment and storage medium
CN113938687A
Inter prediction method, encoder, decoder and computer storage medium
CN114982228A
Method for determining prediction value, decoder, and computer storage medium
WO2020181554A1
Point cloud attribute prediction, encoding, and decoding method and device based on neighbor weight optimization
WO2021023206A1
Cited By
Domain name sample generation method and device, storage medium and electronic equipment
CN120416219A
Dynamic PCC with multiple reference frames
US12764331B2
Dynamic PCC with multiple reference frames
US20260052274A1
Generative-based predictive coding for point cloud compression
US20260292250A1
Encoding method, decoding method, encoder, decoder and storage medium
WO2026085876A1
