A point cloud panoramic segmentation method, system, and device based on a multimodal large model
Through the point cloud panoramic segmentation method based on multi-modal large models, feature fusion is performed by combining point cloud and text data, which solves the problem of information loss in 3D to 2D projection in the existing technology, and significantly improves the accuracy and robustness of point cloud segmentation. sex.
Patent Information
- Application Number
- CN202410909723.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-09
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2044-07-09
AI Technical Summary
Existing 3D Lidar point cloud segmentation methods lose accurate 3D geometric information during the projection process from 3D to 2D, affecting segmentation accuracy, and the performance improvement of directly using 3D division and 3D CNN is limited.
A point cloud panoramic segmentation method based on a multi-modal large model is adopted. By obtaining point cloud data and text describing the point cloud scene, the text encoder and point cloud encoder are used to extract embedded features and fuse them in the multi-modal large model. , combining multi-modal understanding adapters and decoders for panoramic segmentation.
It significantly improves the accuracy and robustness of point cloud panorama segmentation, can more accurately identify and segment different panoramas in point clouds, and reduces mis-segmentation and missed segmentation.
Smart Images

Figure CN118470329B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of point cloud panoramic segmentation, and in particular to a point cloud panoramic segmentation method, system and device based on a multimodal large model. Background Art
[0002] The statements in this section merely provide background information related to the present invention and do not necessarily constitute prior art.
[0003] Point cloud panoptic segmentation is an advanced processing task performed on point cloud data. It aims to distinguish each independent object (or panorama) in the point cloud data and give it a unique label. Unlike point cloud semantic segmentation, which only distinguishes the category of objects, panoptic segmentation further distinguishes different individuals in the same category, including the background. For example, in the scene of an urban highway, point cloud panoptic segmentation can annotate each street lamp as an independent instance, rather than just classifying them all as "street lamps". The complexity, diversity and noise of point cloud data make the design and implementation of feature extraction and segmentation algorithms very difficult. Each point in the point cloud data contains three-dimensional coordinates and possible other attributes (such as color, reflectivity, etc.). How to effectively extract meaningful features from these points and accurately segment based on these features is a key problem that the point cloud panoptic segmentation algorithm needs to solve.
[0004] At present, most of the 3D Lidar point cloud segmentation methods are to project the 3D point cloud into 2D space and then use 2D convolutional neural network for segmentation. However, this projection process from 3D to 2D will inevitably lose accurate 3D geometric information, thus affecting the final segmentation accuracy. In addition, if 3D segmentation and 3D CNN are used directly, although more 3D information can be retained, the performance improvement of the algorithm may be very limited. Summary of the invention
[0005] In order to solve the technical problems existing in the above-mentioned background technology, the present invention provides a point cloud panoramic segmentation method, system and device based on a multimodal large model. The present invention is based on a large-scale language model for 3D point cloud data, designs a multimodal alignment mechanism for domain adaptation, and then performs panoramic segmentation.
[0006] In order to achieve the above object, the present invention adopts the following technical solution:
[0007] A first aspect of the present invention provides a point cloud panoramic segmentation method based on a multimodal large model.
[0008] A point cloud panoptic segmentation method based on a multimodal large model, comprising:
[0009] Get point cloud data and text describing the point cloud scene;
[0010] Based on the text data, a text encoder is used to obtain text embedding features; based on the text describing the point cloud scene, a point cloud encoder is used to obtain point cloud embedding features;
[0011] Input the text embedding features and the point cloud embedding features into the multimodal understanding adapter to obtain text features and point cloud features; fuse the text features and the point cloud features to obtain fused features;
[0012] In the multimodal large model, each hidden layer with intervals set is introduced to perform multimodal fusion to obtain panoramic features;
[0013] Input the panoramic features into the decoder to obtain the panoramic segmentation result;
[0014] Among them, the multimodal understanding adapter includes an embedding memory pool, a query memory pool, an interaction layer and a linear layer; the embedding memory pool is used to store text embedding features and point cloud embedding features; the query memory pool is used for query embedding corresponding to the embedding memory pool; the query embedding is the input or other context information of the current time step; the interaction layer is used to fuse historical information according to the query memory pool and the embedding memory pool to obtain the features of the fused historical information; the linear layer is used to perform linear processing on the features of the fused historical information to obtain text features and point cloud features.
[0015] Furthermore, a memory pool compression algorithm is used to update the embedded memory pool or query the memory pool. The specific process includes:
[0016] Initialize the embedding memory pool or query memory pool to an empty list or to contain initial video frame features;
[0017] When a new frame arrives, check the length of the current embedding memory pool or query memory pool;
[0018] If, after the new frame is embedded, the length of the current embedding memory pool or query memory pool exceeds the threshold of the preset embedding memory pool or query memory pool, a compression operation is performed;
[0019] For each spatial position in the embedding memory pool or the query memory pool, the similarity between all spatial positions in the entire embedding memory pool or the query memory pool is calculated to obtain a similarity matrix;
[0020] Based on the similarity matrix, a clustering algorithm is used to identify redundant regions in the embedding memory pool or the query memory pool, wherein the redundant regions are embeddings with a similarity higher than a set threshold;
[0021] For each identified redundant region, one or more representative features are selected to represent the entire redundant region;
[0022] Remove all other features except the representative features in the redundant region and only keep the representative features;
[0023] Add the new representative features to the appropriate position of the embedding memory pool or the query memory pool, ensuring that the length of the memory pool does not exceed the preset threshold of the embedding memory pool or the query memory pool; if the embedding memory pool or the query memory pool is full, further compress or remove some old representative features;
[0024] If there is room in the embedding memory pool or query memory pool, add the new frame to the end of the memory pool.
[0025] Furthermore, the interactive layer is used to fuse historical information according to the query memory pool and the embedding memory pool to obtain the feature of the fused historical information, and the process includes: given the query embedding of the current time step, calculating the matrix of query, key and value according to the query memory pool; using the softmax function to calculate the first attention weight according to the matrix of query and key; and calculating the first attention weight according to the first attention weight and the embedding memory pool. The softmax function is used to calculate the second attention weight; based on the second attention weight and the embedded memory pool The product of is used to obtain the features that integrate historical information.
[0026] Furthermore, the process of introducing fusion features to perform multimodal fusion at every set hidden layer in the multimodal large model to obtain panoramic features includes: importing the fusion features into the Lth layer, the 2Lth layer and the 3Lth layer counting from the top layer, allowing the multimodal large model to gradually integrate contextual information at different levels of abstraction to obtain panoramic features; wherein L is the set hidden layer.
[0027] Furthermore, during the training process, a loss function is used to optimize the parameters of the decoder.
[0028] A second aspect of the present invention provides a point cloud panoramic segmentation system based on a multimodal large model.
[0029] A point cloud panoptic segmentation system based on a multimodal large model, comprising:
[0030] A data acquisition module, which is configured to: acquire point cloud data and text describing a point cloud scene;
[0031] The encoder module is configured to: based on the text data, use a text encoder to obtain text embedding features; based on the text describing the point cloud scene, use a point cloud encoder to obtain point cloud embedding features;
[0032] The multimodal understanding adapter module is configured to: input the text embedding features and the point cloud embedding features into the multimodal understanding adapter to obtain text features and point cloud features; fuse the text features and the point cloud features to obtain fused features;
[0033] The multimodal large model module is configured to: introduce fusion features into each hidden layer of a set interval in the multimodal large model to perform multimodal fusion to obtain panoramic features;
[0034] A decoder module is configured to: input the panoramic features into the decoder to obtain a panoramic segmentation result;
[0035] Among them, the multimodal understanding adapter includes an embedding memory pool, a query memory pool, an interaction layer and a linear layer; the multimodal understanding adapter is also configured as follows: the embedding memory pool is used to store text embedding features and point cloud embedding features; the query memory pool is used for query embedding corresponding to the embedding memory pool; the query embedding is the input or other context information of the current time step; the interaction layer is used to fuse historical information according to the query memory pool and the embedding memory pool to obtain the features of the fused historical information; the linear layer is used to perform linear processing on the features of the fused historical information to obtain text features and point cloud features.
[0036] Furthermore, the multimodal understanding adapter is also configured to: update the embedding memory pool or the query memory pool using a memory pool compression algorithm, and the specific process includes: initializing the embedding memory pool or the query memory pool to be an empty list, or containing initial video frame features; when a new frame arrives, checking the length of the current embedding memory pool or the query memory pool; if the length of the current embedding memory pool or the query memory pool exceeds the threshold of the preset embedding memory pool or the query memory pool after the new frame is embedded, a compression operation is performed; for each spatial position in the embedding memory pool or the query memory pool, the similarity between all spatial positions in the entire embedding memory pool or the query memory pool is calculated to obtain a similarity matrix; based on the similarity matrix, using the aggregation The algorithm identifies redundant regions in an embedding memory pool or a query memory pool, wherein the redundant regions are embeddings with a similarity higher than a set threshold; for each identified redundant region, one or more representative features are selected to represent the entire redundant region; all other features except the representative features in the redundant region are removed, and only the representative features are retained; the new representative features are added to the appropriate positions of the embedding memory pool or the query memory pool, ensuring that the length of the memory pool does not exceed the preset threshold of the embedding memory pool or the query memory pool; if the embedding memory pool or the query memory pool is full, further compression is performed or some old representative features are removed; if there is still space in the embedding memory pool or the query memory pool, the new frame is added to the end of the memory pool.
[0037] Furthermore, the multimodal understanding adapter is further configured to: given the query embedding of the current time step, calculate the query, key and value matrices according to the query memory pool; calculate the first attention weight according to the query and key matrices using the softmax function; and calculate the first attention weight according to the first attention weight and the embedding memory pool. Softmax function, calculate the second attention weight; based on the second attention weight and the embedded memory pool The product of is used to obtain the features that integrate historical information.
[0038] Furthermore, the multimodal large model module is also configured to: import the fused features into the Lth layer, the 2Lth layer and the 3Lth layer counting from the top layer, allowing the multimodal large model to gradually integrate contextual information at different levels of abstraction to obtain panoramic features; wherein L is a set number of hidden layers.
[0039] A third aspect of the present invention provides a computer device.
[0040] A computer device comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the steps in the point cloud panoramic segmentation method based on a multimodal large model as described in the first aspect above are implemented.
[0041] Compared with the prior art, the present invention has the following beneficial effects:
[0042] The present invention proposes a point cloud panoramic segmentation method and system based on a multimodal large model. The multimodal large-scale language model used in the present invention is good at capturing and understanding contextual information of multiple modalities such as text and images. When this capability is introduced into the point cloud panoramic segmentation task, the algorithm can more comprehensively understand the environment and background of the point cloud data. For example, in an autonomous driving scenario, by combining the descriptive text of the vehicle (such as "red car") and the corresponding point cloud data, the algorithm can more accurately identify and segment the panoramic view of the car. The fusion of multimodal information can provide more features and clues for point cloud panoramic segmentation. Compared with relying solely on point cloud data, combining information from other modalities such as images and texts can help the algorithm more accurately identify different panoramas in the point cloud and reduce the occurrence of mis-segmentation and missed segmentation. This cross-modal information fusion can significantly improve the accuracy and robustness of segmentation. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] The accompanying drawings in the specification, which constitute a part of the present invention, are used to provide a further understanding of the present invention. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute improper limitations on the present invention.
[0044] Figure 1It is a flow chart of the point cloud panoramic segmentation method based on the multimodal large model shown in the present invention. DETAILED DESCRIPTION
[0045] The present invention will be further described below in conjunction with the accompanying drawings and embodiments.
[0046] Embodiment 1
[0047] like Figure 1 As shown, this embodiment provides a point cloud panorama segmentation method based on a multimodal large model, and the method includes the following steps:
[0048] Step S1: Use the pre-trained point cloud encoder and text encoder to extract point cloud embedding features and text embedding features.
[0049] In this step, there are two pre-trained encoders: one for processing point cloud data and the other for processing text data. Given a point cloud dataset , where each point ( ) is a vector containing 3D coordinates and possibly other attributes such as color, intensity, etc. Point Cloud Encoder Map the point cloud data to a low-dimensional embedding space to obtain the point cloud embedding ,in ( ) is the point Given a text describing a point cloud scene , text encoder Mapping text to an embedding vector , which contains the semantic information of the text.
[0050] Step S2: aligning point cloud embedding and text embedding based on a multimodal alignment mechanism;
[0051] For the point cloud modality and text modality, a memory-enhanced alignment module is designed respectively, and the two modules have the same structure. Taking the point cloud modality memory-enhanced alignment module as an example, the module contains an embedding memory pool, a query memory pool, an interaction layer and a linear layer.
[0052] For the current time step , embedded in the memory pool The original feature embeddings extracted from the multimodal encoder are stored in chronological order. Specifically, ,in is the time step Embedding.
[0053] The query memory pool stores the query embeddings corresponding to the embedding memory pool. These query embeddings may come from the input of the current time step or other context information. The query memory pool is denoted as , where the embedding is in accordance with Arrange in the same order.
[0054] Given the query embedding at the current time step , first calculate the matrix of query, key and value:
[0055]
[0056] in, , and is a learnable weight matrix, represents the matrix of key, represents the query matrix, A matrix representing the value. Then apply the softmax function to calculate the attention weight:
[0057]
[0058] in, yes Dimension.
[0059] Then, the memory pool will be queried The obtained attention weight and embedded memory pool To compute a representation that incorporates historical information.
[0060]
[0061] in, Indicates the key key embedded in the memory pool, Indicates the value embedded in the memory pool. and is a learnable weight matrix. Then, use and Take the dot product and apply the softmax function to calculate the attention weights:
[0062]
[0063] in, is the dimension of the key. Finally, use the attention weight and Perform weighted sum to obtain a representation that incorporates historical information :
[0064]
[0065] After the interaction layer It may not be in the embedding space of LLaMA 2, so it needs to be mapped to the embedding space of LLaMA 2 through a linear layer. This linear layer is denoted as , then the representation after mapping is for:
[0066]
[0067] In order to reduce memory consumption, the present invention uses a memory pool compression algorithm to continuously update the memory pool, taking the embedded memory pool as an example:
[0068] In order to improve the above compression algorithm process, while maintaining the logical correctness but being different from the original algorithm in the calculation principle, the present invention may consider the following improvement scheme:
[0069] 1. Initialization:
[0070] Set predefined thresholds , represents the maximum length of the memory pool. Initialize the embedding memory pool to an empty list or contain the initial video frame features.
[0071] 2. Process new frames:
[0072] When a new embedding arrives, check the current memory pool length.
[0073] 3. Check the memory pool length:
[0074] If the length of the current memory pool (including the new frame after embedding) exceeds the threshold , then perform compression operation.
[0075] 4. Calculate the similarity matrix:
[0076] For each spatial position in the memory pool , not only calculate the adjacent positions and Instead of calculating the similarity between elements in the entire memory pool, we calculate the similarity between all elements in the memory pool to form a similarity matrix .
[0077] 5. Identify redundant areas:
[0078] Based on the similarity matrix , use a clustering algorithm (such as K-means) to identify redundant regions in the memory pool. These regions contain highly similar embeddings.
[0079] 6. Select representative features:
[0080] For each identified redundant region, one or more representative features are selected to represent the entire region. This can be achieved by calculating the mean, median, or weighted sum of all features in the region.
[0081] 7. Compressed memory pool:
[0082] All other features except the representative feature in the redundant region are removed, and only the representative feature is retained. If the number of representative features exceeds one, they are further merged into a single feature using weighted averaging.
[0083] 8. Update memory pool:
[0084] Add the new representative features to the appropriate position of the memory pool, ensuring that the length of the memory pool does not exceed the threshold If the memory pool is full, it may be necessary to further compress or remove some old representative features.
[0085] 9. Add new frame features (if not already added):
[0086] If there is room in the memory pool, add the new embedding to the end of the memory pool.
[0087] Step S3: further extract features using the pre-trained multimodal large model;
[0088] In step S3, the output extracted from the previously described multimodal understanding adapter is merged into a specific hidden layer of the LLaMA 2 model. The LLaMA 2 model has a total of 32 hidden layers. Following a specific strategy, starting from the top layer (the last layer) of the model, information of a specific modality is introduced every L layers (where L=6).
[0089] Specifically, these embedding vectors are imported into the Lth, 2Lth, and 3Lth layers, respectively, starting from the top layer. This staggered integration allows the model to gradually incorporate contextual information at different levels of abstraction, thereby effectively reasoning and understanding multimodal inputs.
[0090] Step S4: Use a decoder with learnable parameters to decode the features and obtain a panoramic segmentation result.
[0091] set up is the decoder, which accepts the features As input, it outputs a segmentation mask of the same size as the input point cloud. , where each element Indicate point The panorama tag to which it belongs. Decoder Typically a neural network whose parameters are learned through training.
[0092] During training, a point cloud dataset with panoramic labels is used to supervise the learning of the decoder. The predicted segmentation mask is minimized Some loss function (such as cross entropy loss) between the actual segmentation mask and the decoder can be optimized In order to reduce the amount of calculation, the present invention uses the pre-trained LLaMA 2 model and adds a Lora layer to fine-tune LLaMA 2. The parameters of the Lora layer are learnable, and the decoder Optimize parameters together.
[0093] Table 1 is a simulation experiment of the method of the present invention, using the public dataset SemanticKITTI. The evaluation index is PQ (Panoptic Quality), which is used to evaluate the overall performance of panoramic segmentation. SQ (SegmentationQuality), which is used to evaluate the accuracy of the model in object segmentation. RQ (Recognition Quality), which is used to evaluate the accuracy of the model in object recognition. Compared with the prior art, the method of the present invention greatly improves the performance of point cloud panoramic segmentation.
[0094] Table 1 Comparison of the accuracy of this disclosure and other algorithms
[0095]
[0096] The present invention adopts a multimodal large model and utilizes the complementarity between different modal data to improve the generalization ability and robustness of the model. For the point cloud panorama segmentation task, combining image data (such as RGB images) and point cloud data can provide richer information, which helps to more accurately identify and segment objects in the point cloud. In addition, the multimodal large model can also be trained using large-scale data sets to further improve the performance and generalization ability of the model.
[0097] Embodiment 2
[0098] This embodiment provides a point cloud panoramic segmentation system based on a multimodal large model.
[0099] A point cloud panoptic segmentation system based on a multimodal large model, comprising:
[0100] A data acquisition module, which is configured to: acquire point cloud data and text describing a point cloud scene;
[0101] The encoder module is configured to: based on the text data, use a text encoder to obtain text embedding features; based on the text describing the point cloud scene, use a point cloud encoder to obtain point cloud embedding features;
[0102] The multimodal understanding adapter module is configured to: input the text embedding features and the point cloud embedding features into the multimodal understanding adapter to obtain text features and point cloud features; fuse the text features and the point cloud features to obtain fused features;
[0103] The multimodal large model module is configured to: introduce fusion features into each hidden layer of a set interval in the multimodal large model to perform multimodal fusion to obtain panoramic features;
[0104] A decoder module is configured to: input the panoramic features into the decoder to obtain a panoramic segmentation result;
[0105] Among them, the multimodal understanding adapter includes an embedding memory pool, a query memory pool, an interaction layer and a linear layer; the multimodal understanding adapter is also configured as follows: the embedding memory pool is used to store text embedding features and point cloud embedding features; the query memory pool is used for query embedding corresponding to the embedding memory pool; the query embedding is the input or other context information of the current time step; the interaction layer is used to fuse historical information according to the query memory pool and the embedding memory pool to obtain the features of the fused historical information; the linear layer is used to perform linear processing on the features of the fused historical information to obtain text features and point cloud features.
[0106] In some embodiments, the multimodal understanding adapter is further configured to: update the embedding memory pool or the query memory pool using a memory pool compression algorithm, and the specific process includes: initializing the embedding memory pool or the query memory pool to be an empty list, or containing initial video frame features; when a new frame arrives, checking the length of the current embedding memory pool or the query memory pool; if the length of the current embedding memory pool or the query memory pool exceeds the threshold of the preset embedding memory pool or the query memory pool after the new frame is embedded, a compression operation is performed; for each spatial position in the embedding memory pool or the query memory pool, the similarity between all spatial positions in the entire embedding memory pool or the query memory pool is calculated to obtain a similarity matrix; based on the similarity matrix, using The clustering algorithm identifies redundant regions in an embedding memory pool or a query memory pool, wherein the redundant regions are embeddings with a similarity higher than a set threshold; for each identified redundant region, one or more representative features are selected to represent the entire redundant region; all other features except the representative features in the redundant region are removed, and only the representative features are retained; the new representative features are added to the appropriate positions of the embedding memory pool or the query memory pool, ensuring that the length of the memory pool does not exceed the preset threshold of the embedding memory pool or the query memory pool; if the embedding memory pool or the query memory pool is full, further compression is performed or some old representative features are removed; if there is still space in the embedding memory pool or the query memory pool, the new frame is added to the end of the memory pool.
[0107] In some embodiments, the multimodal understanding adapter is further configured to: perform dot product on the query embedding and query memory representation of the current time step, and then use a softmax function to calculate the attention weight; based on the product of the attention weight and the embedded memory representation, obtain features that integrate historical information.
[0108] In some embodiments, the multimodal large model module is further configured to: import the fused features into the Lth layer, the 2Lth layer, and the 3Lth layer counting from the top layer, allowing the multimodal large model to gradually integrate contextual information at different levels of abstraction to obtain panoramic features; wherein L is a set number of hidden layers.
[0109] Embodiment 3
[0110] This embodiment provides a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the program, the steps in the point cloud panoramic segmentation method based on a multimodal large model as described in the first embodiment are implemented.
[0111] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A point cloud panoptic segmentation method based on a multimodal large model, characterized in that: include: Get point cloud data and text describing the point cloud scene; Based on text data, a text encoder is used to obtain text embedding features; Based on the text describing the point cloud scene, a point cloud encoder is used to obtain point cloud embedding features; Input the text embedding features and the point cloud embedding features into the multimodal understanding adapter to obtain text features and point cloud features; Align point cloud embedding and text embedding based on multimodal alignment mechanism; Given the query embedding at the current time step , first calculate the matrix of query, key and value: , and is a learnable weight matrix, represents the matrix of key, represents the query matrix, A matrix representing the value; then a softmax function is applied to calculate the attention weights: D is Dimensions; The query memory pool The obtained attention weight and embedded memory pool To compute a representation that incorporates historical information; Indicates the key key embedded in the memory pool, Indicates the value embedded in the memory pool. and is a learnable weight matrix; then, using and Take the dot product and apply the softmax function to calculate the attention weights: H is the dimension of the key; finally, use the attention weight A and Perform weighted sum to obtain a representation that incorporates historical information : It is mapped to the embedding space of LLaMA 2 through a linear layer, and this linear layer is denoted as , then the representation after mapping is for: Fuse the text features and point cloud features to obtain fused features; In the multimodal large model, each hidden layer with intervals set is introduced to perform multimodal fusion to obtain panoramic features; Input the panoramic features into the decoder to obtain the panoramic segmentation result; The multimodal understanding adapter includes an embedding memory pool, a query memory pool, an interaction layer, and a linear layer; the embedding memory pool is used to store text embedding features and point cloud embedding features; The query memory pool is used for query embedding corresponding to the embedding memory pool; the query embedding is the input of the current time step or other context information; the interaction layer is used to fuse historical information according to the query memory pool and the embedding memory pool to obtain the features of the fused historical information; the linear layer is used to perform linear processing on the features of the fused historical information to obtain text features and point cloud features.
2. The point cloud panoptic segmentation method based on a multimodal large model according to claim 1, characterized in that: The memory pool compression algorithm is used to update the embedded memory pool or query the memory pool. The specific process includes: Initialize the embedding memory pool or query memory pool to an empty list or to contain initial video frame features; When a new frame arrives, check the length of the current embedding memory pool or query memory pool; If, after the new frame is embedded, the length of the current embedding memory pool or query memory pool exceeds the threshold of the preset embedding memory pool or query memory pool, a compression operation is performed; For each spatial position in the embedding memory pool or the query memory pool, the similarity between all spatial positions in the entire embedding memory pool or the query memory pool is calculated to obtain a similarity matrix; Based on the similarity matrix, a clustering algorithm is used to identify redundant regions in the embedding memory pool or the query memory pool, wherein the redundant regions are embeddings with a similarity higher than a set threshold; For each identified redundant region, one or more representative features are selected to represent the entire redundant region; Remove all other features except the representative features in the redundant region and only keep the representative features; Add the new representative features to the embedding memory pool or the query memory pool, ensuring that the length of the memory pool does not exceed the preset threshold of the embedding memory pool or the query memory pool; if the embedding memory pool or the query memory pool is full, further compress or remove some old representative features; If there is room in the embedding memory pool or query memory pool, add the new frame to the end of the memory pool.
3. The point cloud panoptic segmentation method based on a multimodal large model according to claim 1, characterized in that: The interactive layer is used to fuse historical information according to the query memory pool and the embedding memory pool to obtain the characteristics of the fused historical information. The process includes: given the query embedding of the current time step, the matrix of query, key and value is calculated according to the query memory pool; according to the matrix of query and key, the softmax function is used to calculate the first attention weight; according to the first attention weight and the embedding memory pool, the first attention weight is calculated. Softmax function, calculate the second attention weight; based on the second attention weight and the embedded memory pool The product of is used to obtain the features that integrate historical information.
4. The point cloud panoptic segmentation method based on a multimodal large model according to claim 1, characterized in that: The process of introducing fusion features into each set hidden layer in the multimodal large model for multimodal fusion to obtain panoramic features includes: importing the fusion features into the Lth layer, the 2Lth layer and the 3Lth layer counting from the top layer, allowing the multimodal large model to gradually integrate contextual information at different abstract levels to obtain panoramic features; wherein L is the set hidden layer.
5. The point cloud panoptic segmentation method based on a multimodal large model according to claim 1, characterized in that: During the training process, a loss function is used to optimize the parameters of the decoder.
6. A point cloud panoptic segmentation system based on a multimodal large model, characterized in that: include: A data acquisition module, which is configured to: acquire point cloud data and text describing a point cloud scene; An encoder module is configured to: obtain text embedding features based on text data using a text encoder; Based on the text describing the point cloud scene, a point cloud encoder is used to obtain point cloud embedding features; A multimodal understanding adapter module, which is configured to: input the text embedding features and the point cloud embedding features into the multimodal understanding adapter to obtain text features and point cloud features; Align point cloud embedding and text embedding based on multimodal alignment mechanism; Given the query embedding at the current time step , first calculate the matrix of query, key and value: , and is a learnable weight matrix, represents the matrix of key, represents the query matrix, A matrix representing the value; then a softmax function is applied to calculate the attention weights: D is Dimensions; The query memory pool The obtained attention weight and embedded memory pool To compute a representation that incorporates historical information; Indicates the key key embedded in the memory pool, Indicates the value embedded in the memory pool. and is a learnable weight matrix; then, using and Take the dot product and apply the softmax function to calculate the attention weights: H is the dimension of the key; finally, use the attention weight A and Perform weighted sum to obtain a representation that incorporates historical information : It is mapped to the embedding space of LLaMA 2 through a linear layer, and this linear layer is denoted as , then the representation after mapping is for: Fuse the text features and point cloud features to obtain fused features; The multimodal large model module is configured to: introduce fusion features into each hidden layer of a set interval in the multimodal large model to perform multimodal fusion to obtain panoramic features; A decoder module is configured to: input the panoramic features into the decoder to obtain a panoramic segmentation result; The multimodal understanding adapter includes an embedding memory pool, a query memory pool, an interaction layer, and a linear layer; the multimodal understanding adapter is further configured as follows: the embedding memory pool is used to store text embedding features and point cloud embedding features; The query memory pool is used for query embedding corresponding to the embedding memory pool; the query embedding is the input of the current time step or other context information; the interaction layer is used to fuse historical information according to the query memory pool and the embedding memory pool to obtain the features of the fused historical information; the linear layer is used to perform linear processing on the features of the fused historical information to obtain text features and point cloud features.
7. The point cloud panoptic segmentation system based on a multimodal large model according to claim 6, characterized in that: The multimodal understanding adapter is further configured to: update the embedding memory pool or query memory pool using a memory pool compression algorithm, and the specific process includes: initializing the embedding memory pool or query memory pool to be an empty list, or containing initial video frame features; when a new frame arrives, checking the length of the current embedding memory pool or query memory pool; if the length of the current embedding memory pool or query memory pool exceeds the threshold of the preset embedding memory pool or query memory pool after the new frame is embedded, then performing a compression operation; for each spatial position in the embedding memory pool or query memory pool, calculating the similarity between all spatial positions in the entire embedding memory pool or query memory pool to obtain a similarity matrix; based on the similarity matrix, using aggregation The algorithm identifies redundant regions in an embedding memory pool or a query memory pool, wherein the redundant regions are embeddings with a similarity higher than a set threshold; for each identified redundant region, one or more representative features are selected to represent the entire redundant region; all other features except the representative features in the redundant region are removed, and only the representative features are retained; new representative features are added to the embedding memory pool or the query memory pool, ensuring that the length of the memory pool does not exceed a preset threshold of the embedding memory pool or the query memory pool; if the embedding memory pool or the query memory pool is full, further compression is performed or some old representative features are removed; if there is still space in the embedding memory pool or the query memory pool, the new frame is added to the end of the memory pool.
8. The point cloud panoptic segmentation system based on a multimodal large model according to claim 6, characterized in that: The multimodal understanding adapter is further configured to: given the query embedding of the current time step, calculate the query, key and value matrices according to the query memory pool; calculate the first attention weight according to the query and key matrices using the softmax function; and calculate the first attention weight according to the first attention weight and the embedding memory pool. Softmax function, calculates the second attention weight; Based on the second attention weight and embedded memory pool The product of is used to obtain the features that integrate historical information.
9. The point cloud panoptic segmentation system based on a multimodal large model according to claim 6, characterized in that: The multimodal large model module is also configured to: import the fused features into the Lth layer, the 2Lth layer and the 3Lth layer counting from the top layer, allowing the multimodal large model to gradually integrate contextual information at different levels of abstraction to obtain panoramic features; wherein L is a set number of hidden layers.
10. A computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the steps in the point cloud panoramic segmentation method based on a multimodal large model as described in any one of claims 1-5 are implemented.
Citation Information
Patent Citations
Multi-modal remote sensing data scene segmentation method based on unbalanced knowledge driving
CN115661817A
Point cloud panoramic segmentation method, point cloud panoramic segmentation model training method and electronic equipment
CN116091777A
Multi-modal point cloud segmentation method, system and device and storage medium
CN116310326A
LiDAR point cloud panoramic segmentation method based on polar coordinate BEV map
CN116385452A
Point cloud panoramic segmentation system and method based on instance center coding
CN116993979A
