Point cloud compression method, system and equipment based on large language model and storage medium
By dividing point cloud data into clusters and building K-ary trees, mapping them into text tokens and inputting them into large language models, the problem of high cost of alignment training in the existing technology is solved, and point cloud data under unaligned training is realized. Compression, improving compression efficiency and context understanding.
Patent Information
- Application Number
- CN202410663314.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-27
- Publication Date
- 2024-09-13
- Estimated Expiration
- 2044-05-27
AI Technical Summary
Existing technologies require alignment training when compressing point cloud data, resulting in high costs. How to achieve point cloud compression through a large language model without alignment training is a technical challenge.
Divide the original point cloud data into clusters, establish a K-ary tree corresponding to each cluster, straighten and truncate the point cloud blocks to obtain the point cloud blocks, and map the nodes in the point cloud blocks to text tokens based on the preset codebook. And input a large language model to obtain the probability distribution, and finally realize the compression of point cloud data through an arithmetic encoder.
Without alignment training, point cloud data compression is successfully achieved through large language models, reducing encoding length and improving context understanding and compression efficiency of point cloud data.
Smart Images

Figure CN118646902A
Abstract
Description
Technical Field
[0001] The present application relates to the field of point cloud compression technology, and in particular to a point cloud compression method, system, device and storage medium based on a large language model. Background Art
[0002] 3D point cloud data is a data set of points on the surface of an object collected by various 3D data acquisition instruments. These data record various geometric properties and 3D information on discrete points on the surface of the object, including but not limited to 3D coordinates, normal vectors, color information, concave and convex features, and laser reflection intensity. However, the huge amount of point cloud data itself undoubtedly poses a great challenge to effective storage, processing, and real-time transmission. Therefore, after obtaining the point cloud data, it is usually compressed.
[0003] When compressing point cloud data through a large language model, the large language model needs to perform alignment training on text and point cloud data to achieve cross-modal understanding of point cloud data, and the cost of alignment training is high. Therefore, how to achieve point cloud compression through a large language model without alignment training is a technical problem that has yet to be solved by those skilled in the art.
[0004] The above contents are only used to assist in understanding the technical solution of the present application and do not constitute an admission that the above contents are prior art. Summary of the invention
[0005] The main purpose of this application is to provide a point cloud compression method, system, device and storage medium based on a large language model, aiming to solve the technical problem of how to achieve point cloud compression through a large language model without alignment training.
[0006] To achieve the above objectives, the present application proposes a point cloud compression method based on a large language model, the method comprising:
[0007] Divide the original point cloud data into clusters, and establish a K-ary tree corresponding to each cluster;
[0008] Straightening and truncating each of the K-ary trees to obtain each point cloud block, wherein the point cloud block is composed of a preset number of nodes in the K-ary tree, and the nodes in the K-ary tree are composed of multiple points in the original point cloud data;
[0009] Based on a preset codebook, each node in the point cloud block is mapped to a text token, and each of the text tokens is input into a large language model to obtain a probability distribution corresponding to each of the text tokens;
[0010] Each of the text tokens and the probability distribution corresponding to each of the text tokens are input into an arithmetic encoder to obtain point cloud compression data corresponding to the original point cloud data.
[0011] In one embodiment, before the step of establishing a K-ary tree corresponding to each of the clusters, the method further includes:
[0012] Normalizing the point cloud coordinates in each cluster to obtain each normalized cluster;
[0013] A K-ary tree corresponding to each of the normalized clusters is established.
[0014] In one embodiment, the step of inputting each of the text tokens into a large language model comprises:
[0015] Shifting the order of the text tokens to obtain an initial sentence, wherein the initial sentence is a semantically coherent sentence composed of the text tokens;
[0016] Adding a start token at the beginning of the initial sentence and adding an end token at the end of the initial sentence to obtain a model input sentence;
[0017] The model input sentence is input into a large language model.
[0018] In one embodiment, before the step of inputting each of the text tokens into the large language model, the method further includes:
[0019] Fine-tuning parameters of large language models via low-rank adapters.
[0020] In one embodiment, the step of establishing a K-ary tree corresponding to the cluster includes:
[0021] Determine a bounding box of the cluster, wherein the bounding box is a minimum cuboid containing all points in the cluster;
[0022] The bounding box is evenly divided into K sub-regions, and a K-ary tree is constructed with the region in the bounding box as a parent node and the K sub-regions as child nodes;
[0023] The steps of dividing the sub-region and adding new nodes obtained after the division to the K-ary tree are executed in a loop until the K-ary tree reaches a preset depth or all sub-regions cannot be divided again if it is detected that the sub-region contains points in the original point cloud data.
[0024] In one embodiment, the step of straightening and truncating the K-ary tree to obtain a point cloud block includes:
[0025] Traversing each node in the K-ary tree to straighten the K-ary tree;
[0026] The nodes are sorted according to the traversal order to obtain a traversal sequence, and a sequence consisting of the preset number of consecutive nodes in the traversal sequence is used as a point cloud block.
[0027] In one embodiment, the step of dividing the original point cloud data into clusters includes:
[0028] The points in the original point cloud data are divided into clusters using the K-means clustering algorithm;
[0029] or,
[0030] The points in the original point cloud data are divided into clusters using the DBSCAN algorithm.
[0031] In addition, to achieve the above purpose, the present application also proposes a point cloud compression system based on a large language model, and the point cloud compression system based on a large language model includes:
[0032] A point cloud data partitioning module is used to partition the original point cloud data into clusters and establish a K-ary tree corresponding to each cluster;
[0033] A point cloud block determination module, used for straightening and truncating each of the K-ary trees to obtain each point cloud block, wherein the point cloud block is composed of a preset number of nodes in the K-ary tree, and the nodes in the K-ary tree are composed of multiple points in the original point cloud data;
[0034] A probability distribution prediction module, for mapping each node in the point cloud block to a text token based on a preset code book, and inputting each text token into a large language model to obtain a probability distribution corresponding to each text token;
[0035] The point cloud compression module is used to input each of the text tokens and the probability distribution corresponding to each of the text tokens into an arithmetic encoder to obtain point cloud compression data corresponding to the original point cloud data.
[0036] In addition, to achieve the above-mentioned objectives, the present application also proposes a point cloud compression device based on a large language model, the device comprising: a memory, a processor, and a computer program stored on the memory and executable on the processor, the computer program being configured to implement the steps of the point cloud compression method based on a large language model as described above.
[0037] In addition, to achieve the above-mentioned purpose, the present application also proposes a storage medium, which is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by the processor, the steps of the point cloud compression method based on the large language model as described above are implemented.
[0038] One or more technical solutions proposed in this application have at least the following technical effects:
[0039] The present application divides the original point cloud data into clusters and establishes a K-ary tree corresponding to each cluster. The original point cloud data can be divided into clusters based on the spatial position of each point in the original point cloud data, and then the point cloud in each cluster is organized by the K-ary tree, so as to enrich the context in the point cloud data; each K-ary tree is straightened and truncated to obtain each point cloud block, wherein the point cloud block is composed of a preset number of nodes in the K-ary tree, and the nodes in the K-ary tree are composed of multiple points in the original point cloud data. The length of the text to be processed by the large language model can be shortened by truncation, thereby reducing the encoding length; based on a preset code book, the point cloud block is straightened and truncated to obtain a preset number of nodes in the K-ary tree, and the nodes in the K-ary tree are composed of multiple points in the original point cloud data. Each node is mapped to a text token, and each text token is input into the large language model to obtain the probability distribution corresponding to each text token. The nodes can be mapped to text tokens based on the mapping relationship in the codebook without alignment training, so that the large language model can understand the meaning of the sentences composed of each text token and predict the probability distribution of each text token. Then, each text token and the probability distribution corresponding to each text token are input into the arithmetic encoder to obtain the point cloud compression data corresponding to the original point cloud data. The original point cloud data can be encoded based on the arithmetic encoder to achieve compression of the original point cloud data.
[0040] In this way, the present application can achieve compression of point cloud data without performing alignment training on a large language model. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0042] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0043] Figure 1 A flowchart diagram of the first embodiment of the point cloud compression method based on a large language model of the present application;
[0044] Figure 2 A schematic diagram of a clustering process of an embodiment of a point cloud compression method based on a large language model of the present application;
[0045] Figure 3 A token movement diagram of an embodiment of a point cloud compression method based on a large language model of the present application;
[0046] Figure 4 A compression schematic diagram of a specific embodiment of the point cloud compression method based on a large language model of the present application;
[0047] Figure 5 This is a schematic diagram of the module structure of a point cloud compression system based on a large language model according to an embodiment of the present application;
[0048] Figure 6 Schematic diagram of the device structure of the hardware operating environment involved in the point cloud compression method based on the large language model in the embodiment of the present application.
[0049] The purpose, features and advantages of this application will be further described in conjunction with the embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0050] It should be understood that the specific embodiments described herein are only used to explain the technical solutions of the present application and are not used to limit the present application.
[0051] In order to better understand the technical solution of the present application, a detailed description will be given below in conjunction with the accompanying drawings and specific implementation methods.
[0052] Since the prior art requires alignment training when compressing point cloud data, the cost of compressing point cloud data is high. Therefore, the present application provides a solution that can achieve point cloud data compression without alignment training.
[0053] The main solution of the present application is: divide the original point cloud data into clusters, and establish a K-ary tree corresponding to each cluster; straighten and truncate each K-ary tree to obtain each point cloud block, wherein the point cloud block is composed of a preset number of nodes in the K-ary tree, and the nodes in the K-ary tree are composed of multiple points in the original point cloud data; based on a preset code book, map each node in the point cloud block to a text token, and input each text token into a large language model to obtain a probability distribution corresponding to each text token; input each text token and the probability distribution corresponding to each text token into an arithmetic encoder to obtain point cloud compressed data corresponding to the original point cloud data.
[0054] It should be noted that the execution subject of this embodiment can be a point cloud compression device based on a large language model with data processing, network communication and program running functions, such as a tablet computer, a personal computer, a server, etc. The following takes a tablet computer as an example to illustrate this embodiment and the following embodiments.
[0055] Based on this, the embodiment of the present application provides a point cloud compression method based on a large language model, referring to Figure 1 , Figure 1This is a flow chart of the first embodiment of the point cloud compression method based on a large language model of the present application.
[0056] In this embodiment, the point cloud compression method based on the large language model of the present application includes steps S10 to S40:
[0057] Step S10, dividing the original point cloud data into clusters, and establishing a K-ary tree corresponding to each cluster;
[0058] It should be noted that the original point cloud data refers to the point cloud data that needs to be compressed, and the K-ary tree refers to a tree structure in which all nodes in the tree have K child nodes.
[0059] In this embodiment, after obtaining the point cloud data that needs to be compressed, in order to avoid excessive data processing and the data being too scattered and difficult to find contextual features in the point cloud data, the point cloud data that needs to be compressed can be divided into clusters, and then each cluster can be converted into a K-ary tree in parallel.
[0060] In a feasible embodiment, the above step S10 further includes:
[0061] Step S101, dividing the points in the original point cloud data into clusters using a K-means clustering algorithm;
[0062] In this embodiment, after obtaining the point cloud data that needs to be compressed, multiple initial center points can be randomly determined in the point cloud data, and the distances between the remaining non-initial center points and the initial center points can be calculated, and then the non-initial center points can be divided into clusters with the shortest distance to the initial center points. In this way, point cloud data of various shapes can be divided into multiple clusters.
[0063] Step S102: using the DBSCAN algorithm, divide the points in the original point cloud data into clusters.
[0064] It should be noted that the DBSCAN algorithm (Density-Based Spatial Clustering of Applications with Noise) is a density-based spatial clustering algorithm that defines a cluster as the largest set of density-connected points and can find clusters of any shape and size in a noisy spatial database.
[0065] In this embodiment, the DBSCAN algorithm can also be used to treat the area with higher density as a cluster, so that a point cloud data can be divided into various clusters according to the density of the point cloud.
[0066] In this embodiment, the present application can organize similar point clouds together through clustering, so that the large language model can learn and understand the 3D shape corresponding to the point cloud data to be compressed without the assistance of text to understand the point cloud.
[0067] Please refer to Figure 2 , Figure 2 The original point cloud data in is the three-dimensional point cloud data of the aircraft. After the clustering algorithm, the point cloud data of the aircraft can be divided into N clusters. In order to facilitate decoding after compression, after dividing the point cloud data into multiple clusters, the offset coordinates of each cluster need to be retained, for example Figure 2 The center point coordinates of the cluster in the nose part can be used as the offset coordinates.
[0068] In a feasible embodiment, the above step S10 further includes:
[0069] Step S103, determining a bounding box of the cluster, wherein the bounding box is a minimum cuboid containing all points in the cluster;
[0070] Step S104, evenly divide the bounding box into K sub-regions, and construct a K-ary tree with the region in the bounding box as a parent node and the K sub-regions as child nodes;
[0071] Step S105, looping and executing the steps of dividing the sub-region and adding the new nodes obtained after the division to the K-ary tree if it is detected that the sub-region contains the points in the original point cloud data, until the K-ary tree reaches a preset depth or all sub-regions cannot be divided again.
[0072] For example, in constructing Figure 2 When the octree (K=8) corresponding to the cluster of the nose part is obtained, the bounding box of the cluster can be determined first. The bounding box is the smallest cuboid that contains all the points in the cluster, and the bounding box will become the space represented by the root node of the octree. Then perform recursive segmentation: starting from the root node, divide the bounding box evenly into 8 sub-regions (that is, sub-cubes), and each sub-cube corresponds to the 8 sub-nodes of the root node. Then check whether each sub-region contains points in the original point cloud data (the cluster corresponding to the nose). If a sub-region has no points, it is marked as an empty node and is not further segmented in subsequent recursions. For sub-regions containing points, repeat the above process, continue to divide it evenly into 8 sub-cubes, and check whether these smaller sub-regions contain points, until the depth of the octree reaches the preset depth or all the divided sub-regions cannot be divided again. In this way, the clustering of the nose part can be converted into an octree. Using basically the same method, Figure 2 Each cluster in the is converted into an octree in parallel.
[0073] It should be noted that, in a feasible implementation, before establishing the K-ary tree corresponding to the cluster, the point cloud coordinates in each cluster can also be normalized to obtain each normalized cluster, and then establish a K-ary tree corresponding to the normalized cluster. Normalization can be achieved by subtracting the offset or by other methods, and the present invention does not limit the normalization method. It can be understood that by normalization, the gap between point clouds can be reduced, thereby improving the ability of the K-ary tree to organize context.
[0074] In this embodiment, the present application organizes the point cloud by a K-ary tree, and the point cloud can be divided into multiple small blocks, and even multiple small blocks can form a point cloud block, thereby establishing a correspondence between the point cloud block and the small block. In this way, when the subsequent large language model predicts the probability distribution of the text token corresponding to the small block, it can be predicted based on the context between the small block and the point cloud block in the K-ary tree, thereby improving the accuracy of the predicted probability distribution.
[0075] Step S20, straightening and truncating each of the K-ary trees to obtain each point cloud block, wherein the point cloud block is composed of a preset number of nodes in the K-ary tree, and the nodes in the K-ary tree are composed of multiple points in the original point cloud data;
[0076] It should be noted that the preset number refers to the length of the pre-set text processing volume. Since the large language model cannot understand the tree structure, it is also necessary to convert the context relationship in the K-ary tree into text that the large language model can understand.
[0077] In this embodiment, the K-ary tree can be converted from multi-dimensional to one-dimensional to facilitate the understanding of the large language model. The one-dimensional data can also be truncated to a specific length, so that when the large language model predicts, it can not only reduce the amount of data to be processed, but also give priority to processing small blocks with rich context information.
[0078] In a feasible implementation manner, the above step S20 further includes steps S201 to S202:
[0079] Step S201, traversing each node in the K-ary tree to straighten the K-ary tree;
[0080] Step S202, sorting the nodes according to the traversal order to obtain a traversal sequence, and taking a sequence consisting of the preset number of consecutive nodes in the traversal sequence as a point cloud block.
[0081] It should be noted that the traversal method can be depth-first traversal or breadth-first traversal, which is not limited in this application. The traversal sequence is a sequence obtained by sorting the traversed nodes according to the traversal order.
[0082] In this embodiment, after obtaining the K-ary trees corresponding to each cluster, the K-ary tree can be traversed by depth-first traversal or breadth-first traversal, so as to convert all nodes on the K-ary tree into a one-dimensional array. Then, in order to reduce the amount of data processing, the one-dimensional array can be intercepted based on a preset text processing length to obtain a point cloud block.
[0083] Exemplarily, a point cloud block may be composed of the first M (preset number is M) nodes in a one-dimensional array, a point cloud block may be composed of the last M nodes in a one-dimensional array, or a point cloud block may be composed of M consecutive nodes in a one-dimensional array. The present invention is not limited to this.
[0084] Step S30, based on a preset codebook, mapping each node in the point cloud block to a text token, and inputting each of the text tokens into a large language model to obtain a probability distribution corresponding to each of the text tokens;
[0085] It should be noted that the codebook refers to a file that stores the mapping relationship between the density of the point cloud or the features corresponding to the point cloud and the text. The large language model refers to a deep learning model trained based on massive text data. Each node in the point cloud block refers to the node that has not been truncated or removed in the K-ary tree. The text token is the basic unit of model processing. The text token can be a single character, part of a word (such as a root, affix), or a complete word. The probability distribution corresponding to the text token refers to the frequency of occurrence of the text token in the predicted original point cloud data.
[0086] In this embodiment, the codebook can be pre-set based on different application scenarios. Therefore, after obtaining the point cloud block, each node in the point cloud block can be mapped to a text token such as a character or a word based on the codebook. Since these text tokens are understandable by the large language model, the text tokens can be input into the large language model to obtain the frequency of each text token appearing in the original point cloud data.
[0087] It should also be noted that the large language model will predict the frequency of the text tokens corresponding to the nodes in the order of the nodes in the point cloud block. After the frequency of a text token has been obtained, before predicting the frequency of the next text token, the point cloud block needs to be shifted left to align with the large language model, and then the frequency of the next text token is predicted by the large language model.
[0088] In a feasible implementation manner, the above step S30 includes steps S301 to S302:
[0089] Step S301, shifting the order of the text tokens to obtain an initial sentence, wherein the initial sentence is a semantically coherent sentence composed of the text tokens;
[0090] Step S302, adding a start token at the beginning of the initial sentence, and adding an end token at the end of the initial sentence, to obtain a model input sentence;
[0091] Step S303: input the model input sentence into the large language model.
[0092] It should be noted that the start token refers to a text symbol that represents the beginning of a sentence, and the end token refers to a text symbol that represents the end of a sentence.
[0093] For example, please refer to Figure 3 , Figure 3 This is a token movement diagram of an embodiment of a point cloud compression method based on a large language model of this application. Figure 3 In the figure, the mapping relationship in the codebook is represented by a solid line, the mapping relationship after semantic movement is represented by a dotted line, and the dotted line represents the direction of movement. After obtaining each node in the point cloud block, the text token corresponding to each node can be obtained based on the mapping relationship of the solid line, and then the position of the text token is moved so that each text token can be combined into a sentence that can be understood by the large language model, that is, the initial sentence is obtained. Then, in order to facilitate the large language model to identify the starting position and the ending position of the sentence, a start token can be added to the beginning of the initial sentence, and an end token can be added to the end of the initial sentence, and the initial sentence after adding the start token and the end token is used as the model input sentence. The model input sentence is then input into the large language model to obtain the probability distribution corresponding to each text token through the large language model.
[0094] It is worth mentioning that a common approach to cross-modal problems in large language models is to align paired data sets containing text and other modalities for training. The essence of alignment training is to identify a token in the text space and make its features similar to those in the token space of another modality. It is worth noting that the tokens selected for alignment initially exist in the text space. This process involves changing different tokens to find suitable corresponding matches, so it is called mapping of variable tokens. The method proposed in this application uses an invariant token mapping, which can fix the corresponding tokens from the beginning, and then adjust the spatial position of the text tokens through learning to obtain the initial sentence. In this application, once the appropriate spatial position is determined, the alignment task is completed, so this application does not need to adopt the traditional alignment training method. And this application eliminates the need for accompanying text data in the cross-modal alignment process. In particular, since this application does not require training alignment, this application is particularly useful when processing shapeless point clouds, because: using text to describe shapeless point clouds is difficult in itself, and this application can obtain text that can be understood by a large language model through an invariant token mapping, so that there is no need for text to describe shapeless point clouds. In addition, since the present application does not require training of an additional alignment module, nor does it require supplementary text-point cloud pairing data training, the expansion of the present application is quite convenient.
[0095] In a feasible implementation manner, before the above step S30, the method further includes:
[0096] Step S100, adjusting the parameters of the large language model through a low-rank adapter.
[0097] It can be understood that the low-rank adapter is a parameter adjustment method for large language models, which can be used to reduce the number of trainable parameters of downstream tasks while keeping most of the weights of the original model unchanged.
[0098] In this embodiment, the present application adjusts the parameters of the large language model through a low-rank adapter, which can avoid fine-tuning all parameters of the large language model, thereby saving a large amount of GPU memory resources.
[0099] Step S40, inputting each of the text tokens and the probability distribution corresponding to each of the text tokens into an arithmetic encoder to obtain point cloud compression data corresponding to the original point cloud data.
[0100] For example, please refer to Figure 4 , Figure 4 This is a flow chart of a specific embodiment of the point cloud compression method based on a large language model of this application. Figure 4 In the example, cluster i is Figure 2The clustering of the tail of the plane in the middle, and then sequentially execute the steps of constructing the K-ary tree of clustering, straightening and truncating the K-ary tree, can obtain the side information code stream and point cloud block i (large block i), where the small block in the point cloud block refers to the node in the point cloud block. Then, the small block is mapped to the text token through the code book, and after being combined into the initial sentence through the invariant token mapping, the start token and the end token are added, and the model input sentence is input into the large language model to obtain the probability distribution of each text token. Among them, the large language model is frozen and does not need to be trained. The probability distribution can be obtained by coordinating with the large language model through a low-rank adapter. Then, the probability distribution and the model input sentence are input into the arithmetic encoder to obtain the encoded code stream. That is, the compressed point cloud data is obtained.
[0101] In this embodiment, the present application divides the original point cloud data into clusters and establishes a K-ary tree corresponding to each cluster. The original point cloud data can be divided into clusters based on the spatial position of each point in the original point cloud data, and then the point cloud in each cluster is organized by the K-ary tree, so as to enrich the context in the point cloud data; each K-ary tree is straightened and truncated to obtain each point cloud block, wherein the point cloud block is composed of a preset number of nodes in the K-ary tree, and the nodes in the K-ary tree are composed of multiple points in the original point cloud data. The length of the text to be processed by the large language model can be shortened by truncation, thereby reducing the encoding length; based on a preset code book, Each node in the point cloud block is mapped to a text token, and each text token is input into the large language model to obtain the probability distribution corresponding to each text token. The nodes can be mapped to text tokens based on the mapping relationship in the code book without alignment training, and then the large language model can understand the meaning of the sentences composed of each text token and predict the probability distribution of each text token; then each text token and the probability distribution corresponding to each text token are input into the arithmetic encoder to obtain the point cloud compression data corresponding to the original point cloud data. The original point cloud data can be encoded based on the arithmetic encoder to achieve compression of the original point cloud data. In this way, the present application achieves the purpose of compressing point cloud data without alignment training of the large language model.
[0102] It should be noted that the above examples are only used to understand the present application and do not constitute a limitation on the point cloud compression method based on a large language model of the present application. More simple transformations based on this technical concept are all within the scope of protection of the present application.
[0103] This application also provides a point cloud compression system based on a large language model, please refer to Figure 5 , the point cloud compression system based on the large language model includes:
[0104] The point cloud data division module 10 is used to divide the original point cloud data into clusters and establish a K-ary tree corresponding to each cluster;
[0105] A point cloud block determination module 20 is used to straighten and truncate each of the K-ary trees to obtain each point cloud block, wherein the point cloud block is composed of a preset number of nodes in the K-ary tree, and the nodes in the K-ary tree are composed of multiple points in the original point cloud data;
[0106] The probability distribution prediction module 30 is used to map each node in the point cloud block to a text token based on a preset code book, and input each text token into a large language model to obtain a probability distribution corresponding to each text token;
[0107] The point cloud compression module 40 is used to input each of the text tokens and the probability distribution corresponding to each of the text tokens into an arithmetic encoder to obtain point cloud compression data corresponding to the original point cloud data.
[0108] In one embodiment, the point cloud compression system based on the large language model further includes:
[0109] A normalization module, used to normalize the point cloud coordinates in each cluster to obtain each normalized cluster;
[0110] The point cloud data partitioning module is also used to establish a K-ary tree corresponding to each of the normalized clusters.
[0111] In one embodiment, the probability distribution prediction module 30 is further used to:
[0112] Shifting the order of the text tokens to obtain an initial sentence, wherein the initial sentence is a semantically coherent sentence composed of the text tokens;
[0113] Adding a start token at the beginning of the initial sentence and adding an end token at the end of the initial sentence to obtain a model input sentence;
[0114] The model input sentence is input into a large language model.
[0115] In one embodiment, the point cloud compression system based on the large language model further includes:
[0116] A parameter adjustment module is used to adjust the parameters of the large language model through a low-rank adapter.
[0117] In one embodiment, the point cloud data segmentation module 10 is further used for:
[0118] Determine a bounding box of the cluster, wherein the bounding box is a minimum cuboid containing all points in the cluster;
[0119] The bounding box is evenly divided into K sub-regions, and a K-ary tree is constructed with the region in the bounding box as a parent node and the K sub-regions as child nodes;
[0120] The steps of dividing the sub-region and adding new nodes obtained after the division to the K-ary tree are executed in a loop until the K-ary tree reaches a preset depth or all sub-regions cannot be divided again if it is detected that the sub-region contains points in the original point cloud data.
[0121] In one embodiment, the point cloud block determination module 20 is further configured to:
[0122] Traversing each node in the K-ary tree to straighten the K-ary tree;
[0123] The nodes are sorted according to the traversal order to obtain a traversal sequence, and a sequence consisting of the preset number of consecutive nodes in the traversal sequence is used as a point cloud block.
[0124] In one embodiment, the point cloud data segmentation module 10 is further used for:
[0125] The points in the original point cloud data are divided into clusters using the K-means clustering algorithm;
[0126] The points in the original point cloud data are divided into clusters using the DBSCAN algorithm.
[0127] The point cloud compression system based on a large language model provided by the present application adopts the point cloud compression method based on a large language model in the above-mentioned embodiment, and can solve the technical problem of how to achieve point cloud compression through a large language model without alignment training. Compared with the prior art, the beneficial effects of the point cloud compression system based on a large language model provided by the present application are the same as the beneficial effects of the point cloud compression method based on a large language model provided by the above-mentioned embodiment, and other technical features of the point cloud compression system based on a large language model are the same as the features disclosed in the above-mentioned embodiment method, which will not be repeated here.
[0128] The present application provides a point cloud compression device based on a large language model, and the point cloud compression device based on a large language model includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the point cloud compression method based on the large language model in the above-mentioned embodiment one.
[0129] Reference below Figure 6, which shows a schematic diagram of the structure of a point cloud compression device based on a large language model suitable for implementing the embodiment of the present application. The point cloud compression device based on a large language model in the embodiment of the present application may include but is not limited to mobile terminals such as mobile phones, laptops, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Portable Application Descriptions), PMPs (Portable Media Players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 6 The point cloud compression device based on the large language model shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0130] like Figure 6 As shown, the point cloud compression device based on the large language model may include a processing device 1001 (such as a central processing unit, a graphics processor, etc.), which can perform various appropriate actions and processes according to the program stored in the read-only memory (ROM: Read Only Memory) 1002 or the program loaded from the storage device 1003 to the random access memory (RAM: Random Access Memory) 1004. In RAM1004, various programs and data required for the operation of the point cloud compression device based on the large language model are also stored. The processing device 1001, ROM1002 and RAM1004 are connected to each other through a bus 1005. The input / output (I / O) interface 1006 is also connected to the bus. Typically, the following systems can be connected to the I / O interface 1006: input devices 1007 including, for example, a touch screen, a touchpad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; output devices 1008 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; storage devices 1003 including, for example, a magnetic tape, a hard disk, etc.; and communication devices 1009. The communication device 1009 can allow the point cloud compression device based on a large language model to communicate wirelessly or wired with other devices to exchange data. Although the figure shows a point cloud compression device based on a large language model with various systems, it should be understood that it is not required to implement or have all the systems shown. More or fewer systems may be implemented or have instead.
[0131] In particular, according to the embodiments disclosed in the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present application include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device, or installed from a storage device 1003, or installed from a ROM 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the method of the embodiment disclosed in the present application are executed.
[0132] The point cloud compression device based on a large language model provided by the present application adopts the point cloud compression method based on a large language model in the above-mentioned embodiment, which can solve the technical problem of how to achieve point cloud compression through a large language model without alignment training. Compared with the prior art, the beneficial effects of the point cloud compression device based on a large language model provided by the present application are the same as the beneficial effects of the point cloud compression method based on a large language model provided by the above-mentioned embodiment, and the other technical features of the point cloud compression device based on a large language model are the same as the features disclosed in the method of the previous embodiment, which will not be repeated here.
[0133] It should be understood that the various parts disclosed in this application can be implemented by hardware, software, firmware or a combination thereof. In the description of the above embodiments, specific features, structures, materials or characteristics can be combined in any one or more embodiments or examples in a suitable manner.
[0134] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
[0135] The present application provides a computer-readable storage medium having computer-readable program instructions (ie, computer programs) stored thereon, and the computer-readable program instructions are used to execute the point cloud compression method based on a large language model in the above-mentioned embodiment.
[0136] The computer-readable storage medium provided in the present application may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, systems or devices, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, system or device. The program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (Radio Frequency), etc., or any suitable combination of the above.
[0137] The above-mentioned computer-readable storage medium may be included in the point cloud compression device based on the large language model; or it may exist independently without being assembled into the point cloud compression device based on the large language model.
[0138] The computer-readable storage medium carries one or more programs. When the one or more programs are executed by a point cloud compression device based on a large language model, the point cloud compression device based on the large language model: divides the original point cloud data into clusters, and establishes a K-ary tree corresponding to each cluster; straightens and truncates each K-ary tree to obtain each point cloud block, wherein the point cloud block is composed of a preset number of nodes in the K-ary tree, and the nodes in the K-ary tree are composed of multiple points in the original point cloud data; based on a preset code book, maps each node in the point cloud block to a text token, and inputs each text token into a large language model to obtain a probability distribution corresponding to each text token; inputs each text token and the probability distribution corresponding to each text token into an arithmetic encoder to obtain point cloud compression data corresponding to the original point cloud data.
[0139] Computer program code for performing the operations of the present application may be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0140] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0141] The modules involved in the embodiments described in this application may be implemented by software or hardware, wherein the name of the module does not constitute a limitation on the unit itself in some cases.
[0142] The readable storage medium provided in the present application is a computer-readable storage medium, which stores computer-readable program instructions (i.e., computer programs) for executing the above-mentioned point cloud compression method based on a large language model, and can solve the technical problem of how to achieve point cloud compression through a large language model without alignment training. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided in the present application are the same as the beneficial effects of the point cloud compression method based on a large language model provided in the above-mentioned embodiment, and will not be repeated here.
[0143] The present application also provides a computer program product, including a computer program, which, when executed by a processor, implements the steps of the point cloud compression method based on a large language model as described above.
[0144] The computer program product provided by the present application can solve the technical problem of how to achieve point cloud compression through a large language model without alignment training. Compared with the prior art, the beneficial effects of the computer program product provided by the present application are the same as the beneficial effects of the point cloud compression method based on a large language model provided by the above embodiment, and will not be elaborated here.
[0145] The above descriptions are only some embodiments of the present application, and are not intended to limit the patent scope of the present application. All equivalent structural changes made using the contents of the present application specification and drawings under the technical concept of the present application, or direct / indirect applications in other related technical fields are included in the patent protection scope of the present application.
Claims
1. A point cloud compression method based on a large language model, characterized in that: The method includes: Divide the original point cloud data into clusters, and establish a K-ary tree corresponding to each cluster; Straightening and truncating each of the K-ary trees to obtain each point cloud block, wherein the point cloud block is composed of a preset number of nodes in the K-ary tree, and the nodes in the K-ary tree are composed of multiple points in the original point cloud data; Based on a preset codebook, each node in the point cloud block is mapped to a text token, and each of the text tokens is input into a large language model to obtain a probability distribution corresponding to each of the text tokens; Each of the text tokens and the probability distribution corresponding to each of the text tokens are input into an arithmetic encoder to obtain point cloud compression data corresponding to the original point cloud data.
2. The method according to claim 1, characterized in that Before the step of establishing the K-ary trees corresponding to the clusters, the method further includes: Normalizing the point cloud coordinates in each cluster to obtain each normalized cluster; A K-ary tree corresponding to each of the normalized clusters is established.
3. The method according to claim 1, characterized in that The step of inputting each of the text tokens into a large language model comprises: Shifting the order of the text tokens to obtain an initial sentence, wherein the initial sentence is a semantically coherent sentence composed of the text tokens; Adding a start token at the beginning of the initial sentence and adding an end token at the end of the initial sentence to obtain a model input sentence; The model input sentence is input into a large language model.
4. The method according to claim 1, characterized in that Before the step of inputting each of the text tokens into the large language model, the method further includes: Fine-tuning parameters of large language models via low-rank adapters.
5. The method according to claim 1, characterized in that The step of establishing a K-ary tree corresponding to the cluster comprises: Determine a bounding box of the cluster, wherein the bounding box is a minimum cuboid containing all points in the cluster; The bounding box is evenly divided into K sub-regions, and a K-ary tree is constructed with the region in the bounding box as a parent node and the K sub-regions as child nodes; The steps of dividing the sub-region and adding new nodes obtained after the division to the K-ary tree are executed in a loop until the K-ary tree reaches a preset depth or all sub-regions cannot be divided again if it is detected that the sub-region contains points in the original point cloud data.
6. The method according to claim 1, characterized in that The step of straightening and truncating the K-ary tree to obtain a point cloud block includes: Traversing each node in the K-ary tree to straighten the K-ary tree; The nodes are sorted according to the traversal order to obtain a traversal sequence, and a sequence consisting of the preset number of consecutive nodes in the traversal sequence is used as a point cloud block.
7. The method according to claim 1, characterized in that The step of dividing the original point cloud data into clusters includes: The points in the original point cloud data are divided into clusters using the K-means clustering algorithm; or, The points in the original point cloud data are divided into clusters using the DBSCAN algorithm.
8. A point cloud compression system based on a large language model, characterized in that: The system comprises: A point cloud data partitioning module is used to partition the original point cloud data into clusters and establish a K-ary tree corresponding to each cluster; A point cloud block determination module, used for straightening and truncating each of the K-ary trees to obtain each point cloud block, wherein the point cloud block is composed of a preset number of nodes in the K-ary tree, and the nodes in the K-ary tree are composed of multiple points in the original point cloud data; A probability distribution prediction module, for mapping each node in the point cloud block to a text token based on a preset code book, and inputting each text token into a large language model to obtain a probability distribution corresponding to each text token; The point cloud compression module is used to input each of the text tokens and the probability distribution corresponding to each of the text tokens into an arithmetic encoder to obtain point cloud compression data corresponding to the original point cloud data.
9. A point cloud compression device based on a large language model, characterized in that: The device comprises: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the point cloud compression method based on a large language model as described in any one of claims 1 to 7.
10. A storage medium, characterized in that: The storage medium is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the point cloud compression method based on a large language model as described in any one of claims 1 to 7 are implemented.
Citation Information
Patent Citations
Method and system of using a global transformer for efficient modeling of global context in point clouds
US20230206645A1
Large-scale text data encoding and compression
US20230237278A1
Triangle mesh compression
US6366279B1
