Multi-task three-dimensional point cloud segmentation method and device

By extracting 3D point cloud features and combining knowledge distillation and contrastive learning technology, the problem of large resource usage of 3D point cloud segmentation methods in the existing technology in multi-task scenarios is solved, and efficient multi-task 3D point cloud segmentation is achieved, expanding the its application prospects.

CN118710652AActive Publication Date: 2024-09-27HUAZHONG UNIV OF SCI & TECH

Patent Information

Application Number
CN202410877442.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-02
Publication Date
2024-09-27
Estimated Expiration
2044-07-02

AI Technical Summary

Technical Problem

Existing 3D point cloud segmentation methods are usually designed for a single task and ignore the edge texture of individual instances in the 3D point cloud. In addition, they require large computing power and storage resources in multi-task scenarios, making it difficult to effectively utilize the edges of the 3D point cloud. Texture information.

Method used

A multi-task 3D point cloud segmentation method is adopted to extract 3D point cloud features, divide them into super points, and use super point features, visual prompt features and text prompt features to perform mask decoding, combined with knowledge distillation and contrastive learning technology, to achieve Multi-task segmentation of 3D point clouds.

Benefits of technology

It achieves the reduction of computing power and storage resource usage in multi-task scenarios, improves the accuracy and efficiency of 3D point cloud segmentation, and expands the application prospects of 3D point cloud segmentation algorithms in multi-task scenarios such as smart homes.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118710652A
    Figure CN118710652A
Patent Text Reader

Abstract

The invention relates to the technical field of three-dimensional point cloud segmentation, and provides a multi-task three-dimensional point cloud segmentation method and device. The method comprises the following steps: dividing input point clouds into super points, carrying out feature pooling on the point clouds in the super points, and taking the pooled features as super point features; for the interactive segmentation task, according to visual prompt information input by a user, sampling from the super-point features to obtain visual prompt features for coding the visual prompt information; for the reference segmentation task, a text encoder is adopted to extract text prompt features of text prompt information input by a user; and inputting the super-point feature, the visual prompt feature and the text prompt feature into a mask decoder to obtain a multi-task mask and realize multi-task three-dimensional point cloud segmentation. According to the method, the visual prompt and the text prompt input by the user are understood by utilizing the edge texture information of the three-dimensional point cloud, so that multi-task three-dimensional point cloud segmentation is realized, and the occupation of computing power resources and storage resources under the multi-task condition is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of three-dimensional point cloud segmentation, and in particular to a multi-task three-dimensional point cloud segmentation method and device. Background Art

[0002] 3D point cloud segmentation divides point cloud scenes according to the category semantics and shape texture of the point cloud. The technical field of 3D point cloud segmentation involves many subtasks, including but not limited to 3D point cloud instance segmentation, semantic segmentation, panoramic segmentation, interactive segmentation, reference segmentation, and open vocabulary semantic segmentation tasks. Among them, 3D instance segmentation, semantic segmentation, and panoramic segmentation are dedicated to segmenting target categories and target individuals annotated in the training set. 3D point cloud interactive segmentation is dedicated to segmenting specified 3D point cloud individuals based on visual cues input by the user. 3D point cloud reference segmentation is dedicated to segmenting the described 3D point cloud individuals based on the text description input by the user. 3D point cloud segmentation is a basic problem in the field of 3D scene understanding, and multi-task 3D point cloud segmentation technology has broad and practical application prospects.

[0003] Existing 3D point cloud segmentation methods usually divide 3D point clouds into voxels for subsequent processing, but voxels use a preset fixed voxel size to divide the 3D point cloud into regularly arranged 3D grids, ignoring the edge texture of individual instances in the 3D point cloud. In addition, existing 3D point cloud segmentation methods are usually designed for a single 3D point cloud segmentation task. For example, QueryFormer is committed to achieving excellent 3D point cloud instance segmentation performance, and OctFormer is committed to achieving excellent 3D point cloud semantic segmentation performance. When the 3D point cloud segmentation method designed for a single task is applied to multi-task scenarios such as smart homes, it is necessary to run a single-task point cloud segmentation method for multiple tasks separately, which places great demands on computing power and storage resources. Therefore, designing a multi-task 3D point cloud segmentation method and studying the use of edge texture information of 3D point clouds has very important application value.

[0004] In view of this, overcoming the defects of the prior art is an urgent problem to be solved in the field of this technology. Summary of the invention

[0005] The technical problem to be solved by the present invention is to provide a multi-task three-dimensional point cloud segmentation method.

[0006] The present invention adopts the following technical solution:

[0007] In a first aspect, the present invention provides a multi-task three-dimensional point cloud segmentation method, comprising:

[0008] Extract 3D point cloud features; divide the input point cloud into super points, perform feature pooling on the point cloud within the super points, and use the pooled features as super point features;

[0009] For the interactive segmentation task, the visual cue features encoding the visual cue information are sampled from the super-point features according to the visual cue information input by the user; for the reference segmentation task, the text cue features of the text cue information input by the user are extracted using a text encoder;

[0010] Input super-point features, visual cue features and text cue features into the mask decoder to obtain multi-task masks and realize multi-task 3D point cloud segmentation;

[0011] The knowledge distillation technique is used to constrain the training process of instance segmentation, semantic segmentation, and reference segmentation tasks using the output information of the interactive segmentation task.

[0012] Contrastive learning techniques are used to constrain the visual cue features and textual cue features to align with each other.

[0013] Preferably, the extracting of three-dimensional point cloud features specifically includes:

[0014] Read the 3D point cloud data of the input scene Where N is the number of 3D points in the 3D point cloud, and each 3D point is described by 3D coordinates x, y, z and three-channel colors r, g, b. The 3D point cloud backbone network is used to extract 3D point cloud features. where d in is the feature depth of the 3D point cloud feature.

[0015] Preferably, the step of dividing the input point cloud into super points, performing feature pooling on the point cloud in the super points, and using the pooled features as super point features specifically includes:

[0016] The 3D point cloud is divided into M super points according to the texture information of the point cloud. The 3D point features of the 3D point cloud contained in each super point are pooled to obtain the super point features. in

[0017] Preferably, for the interactive segmentation task, sampling the visual cue features encoding the visual cue information from the super-point features according to the visual cue information input by the user specifically includes:

[0018] Sampling the superpoint features of the superpoints containing the three-dimensional coordinates corresponding to the visual cue information as the visual cue features

[0019] For the reference segmentation task, a text encoder is used to extract text prompt features of the text prompt information input by the user, specifically including:

[0020] Extract the text prompt information entered by the user and send the text prompt information to the tokenizer to obtain the token corresponding to the text, which is expressed as where \(l\) represents the length of the input text and \(c\) represents the dimension of the token; the text tokens are fed into the text encoder to obtain text features Apply an MLP to map the feature depth of the text features to so as to obtain text features \(F\) with a feature depth of T .

[0021] Preferably, inputting the superpoint features, visual prompt features, and text prompt features into the mask decoder to obtain a multi-task mask and achieve multi-task 3D point cloud segmentation specifically includes:

[0022] Use a query to uniformly represent the superpoint features, visual prompt features, and text prompt features. Specifically:

[0023] Randomly sample \(m\) superpoint features from the superpoint features \(F\) s to form a superpoint query, denoted as Set \(m < M\) during the training phase to reduce computational consumption, and set \(m = M\) during the inference phase to perform class prediction for each superpoint; directly use the visual prompt features and text prompt features as the visual prompt query and text prompt query, denoted as where \(K\) p is the number of visual prompts input by the user, and \(K\) t is the number of text prompts input by the user;

[0024] To guide the model to distinguish the superpoint query, visual prompt query, and text prompt query, design a task

[0025] ″′

[0026] embedding, denoted as \(e\) u , \(e\) p , \(e\) t ; where \(q\) u = \(q\) u + \(e\) u , \(q\) p = \(q\) p + \(e\) p , \(q\) t = \(q\) t + \(e\) t , where are the superpoint query embedding, visual prompt query embedding, and text prompt query embedding respectively; when adding the query and the embedding, the feature shapes of the superpoint query embedding, visual prompt query embedding, and text prompt query embedding are respectively broadcast to​

[0027] The visual Transformer is selected as the mask decoder, and the super-point query, visual hint query, and text hint query of the superimposed task embedding are input into the mask decoder for 3D point cloud segmentation prediction.

[0028] Preferably, the method of selecting a visual Transformer as a mask decoder, inputting the superpoint query, visual cue query, and text cue query of the superposition task embedding into the mask decoder for 3D point cloud segmentation prediction, specifically includes:

[0029] Calculate the output feature f of the mask decoder out =MaskDecoder(q=Concat(q u ,q p ,q t ); k = F s ; v = F s ),in is the output feature of the mask decoder, d out is the feature depth; the visual Transformer consists of a cross-attention layer and a self-attention layer. The self-attention layer performs feature interaction on the input query, while the cross-attention layer does not perform feature interaction on the input query; the visual cue query and the text cue query are only fed into the cross-attention layer in the visual Transformer, and the super-point query is fed into the cross-attention layer and the self-attention layer of the visual Transformer;

[0030] The category information is encoded into category embeddings, and the model predicts the category embeddings to achieve category prediction. The category embeddings are extracted by feeding the category name text into the text encoder and MLP in sequence. For the category embeddings, the output feature depth of the MLP is d out ; Represent the category embedding as K v is the number of category names, and the model outputs mask pred And the category prediction result cls pred Obtained by the following formula:

[0031]

[0032] Where MLP projects the feature depth into d out , and They represent the i-th prediction mask and the i-th category prediction result respectively; the prediction mask and category prediction results are both the segmentation results of the superpoint. In order to obtain the three-dimensional point cloud segmentation result, the superpoint is reversely projected to the three-dimensional point cloud, and the segmentation result of the three-dimensional points contained in the superpoint is consistent with the superpoint.

[0033] Preferably, the training process of using the knowledge distillation technology to constrain instance segmentation, semantic segmentation, and reference segmentation tasks using the output information of the interactive segmentation task specifically includes:

[0034] The knowledge distillation technology is used to optimize the accuracy of 3D point cloud segmentation. Specifically:

[0035] The output of the superpoint query is expressed as A one-to-one matching algorithm is used to establish Pred u Labels for segmentation tasks with visual cues One-to-one matching, the matching output results are divided into positive samples, expressed as

[0036] The mask prediction result of visual cue segmentation can be expressed as Select the pixel coordinates of the k% pixels with the highest confidence from the predicted mask as the learning area

[0037]

[0038] Applying BCE loss function The mask prediction results of the visual cue segmentation task are used to constrain the mask prediction results of the super-point query:

[0039]

[0040] The mask pos (R) and mask p (R) are the predicted values ​​of the positive sample prediction mask and the visual cue segmentation task prediction mask in the learning area R;

[0041] The category prediction results of the visual cue query and the text cue query referring to the same instance are denoted as cls p With cls t , applying the BCE loss function The category prediction results of the visual cue segmentation task are used to constrain the category prediction results of the reference segmentation task, specifically:

[0042]

[0043] application and Optimize 3D point cloud segmentation accuracy.

[0044] Preferably, the use of contrastive learning technology to constrain the visual prompt feature and the text prompt feature to align with each other specifically includes:

[0045] Contrastive learning technology is used to optimize the accuracy of 3D point cloud segmentation. Specifically:

[0046] Define the visual cue information and text cue information referring to the same instance as a set of visual-text cue pairs, and project the cue features of group B visual-text cue pairs into visual embedding and text embedding, which are expressed as and The B group of visual-text prompt pairs are the visual-text prompt pairs of the current training batch;

[0047] Contrastive Learning Loss Function and The formula is: Where σ is a learnable parameter used to control the size of contrastive learning loss;

[0048] The vector dot product of the i-th visual embedding and the j-th text embedding is used as the similarity measurement result between the visual embedding and the text embedding, denoted as s i,j ; Design sorting rules i,i >s i,j , we get the sorting loss function The formula is:

[0049]

[0050] Applying contrastive learning loss function And the ranking loss function Optimize 3D point cloud segmentation accuracy.

[0051] In a second aspect, the present invention further provides a multi-task three-dimensional point cloud segmentation device, which is used to implement the multi-task three-dimensional point cloud segmentation method described in the first aspect, and the device comprises:

[0052] 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 processor to execute the multi-task three-dimensional point cloud segmentation method described in the first aspect.

[0053] In a third aspect, the present invention further provides a non-volatile computer storage medium, wherein the computer storage medium stores computer executable instructions, and the computer executable instructions are executed by one or more processors to complete the method described in the first aspect.

[0054] In a fourth aspect, a chip is provided, comprising: a processor and an interface, for calling and running a computer program stored in the memory from a memory to execute the method of the first aspect.

[0055] In a fifth aspect, a computer program product comprising instructions is provided, which, when executed on a computer or a processor, causes the computer or the processor to execute the method of the first aspect.

[0056] The present invention uses the edge texture information of the three-dimensional point cloud to understand the visual prompts and text prompts input by the user, thereby realizing multi-task three-dimensional point cloud segmentation, such as one or more of instance segmentation, semantic segmentation, panoramic segmentation, cross segmentation, reference segmentation and open vocabulary semantic segmentation, reducing the computing power resources and storage resources occupied in multi-task situations, and expanding the application prospects of three-dimensional point cloud segmentation algorithms in multi-task scenarios such as smart homes. The present invention can realize multiple point cloud segmentation tasks based on a single model, and establish the correlation between tasks through knowledge distillation and contrastive learning technology to improve the segmentation accuracy of the model on multiple tasks. This embodiment can also utilize the edge texture information of the three-dimensional point cloud. Since the three-dimensional point cloud is disordered and the edge distribution of individual instances is irregular, the use of the edge texture information of the three-dimensional point cloud is helpful for the three-dimensional point cloud segmentation task; and it can realize multi-task point cloud segmentation based on a single model, effectively expanding the application value of the three-dimensional point cloud segmentation method in multi-task scenarios. BRIEF DESCRIPTION OF THE DRAWINGS

[0057] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following briefly introduces the drawings required for use in the embodiments of the present invention. Obviously, the drawings described below are only some embodiments of the present invention, and for ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0058] Figure 1 It is a flowchart of a first multi-task three-dimensional point cloud segmentation method provided by an embodiment of the present invention;

[0059] Figure 2 is a flow chart of a second multi-task three-dimensional point cloud segmentation method provided by an embodiment of the present invention;

[0060] Figure 3 is a flowchart of a third multi-task three-dimensional point cloud segmentation method provided by an embodiment of the present invention;

[0061] Figure 4 is a flowchart of a fourth multi-task three-dimensional point cloud segmentation method provided by an embodiment of the present invention;

[0062] Figure 5 is a schematic diagram of a multi-task three-dimensional point cloud segmentation method provided by an embodiment of the present invention;

[0063] Figure 6 is a schematic diagram of another multi-task three-dimensional point cloud segmentation method provided by an embodiment of the present invention;

[0064] Figure 7 It is a schematic diagram of the architecture of a multi-task three-dimensional point cloud segmentation device provided in an embodiment of the present invention. DETAILED DESCRIPTION

[0065] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.

[0066] Unless the context requires otherwise, throughout the specification and claims, the term "including" is to be interpreted as open inclusion, that is, "including, but not limited to". In the description of the specification, the terms "one embodiment", "some embodiments", "exemplary embodiments", "examples", "specific examples" or "some examples" and the like are intended to indicate that specific features, structures, materials or characteristics associated with the embodiment or example are included in at least one embodiment or example of the present disclosure. The schematic representation of the above terms does not necessarily refer to the same embodiment or example. In addition, the specific features, structures, materials or characteristics may be included in any one or more embodiments or examples in any appropriate manner, that is, although they may be carried in the embodiments or examples of the above terms due to reasons such as the order and position of appearance, it is not limited to that they can be carried in combination by one embodiment or example.

[0067] In the description of the present invention, the terms "first" and "second" are used only for descriptive purposes, and cannot be understood as indicating or implying relative importance or implicitly indicating the number of indicated technical features. Thus, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. In the description of the embodiments of the present disclosure, unless otherwise specified, the meaning of "multiple" is two or more. In addition, for example, the same type of nouns may be described as two independent individuals by adding "A" and "B" at the end. In this case, the corresponding features defined as "A" and "B" are only used to distinguish the same type of individuals for description purposes, and cannot be understood as indicating or implying relative importance or implicitly indicating the number of indicated technical features.

[0068] In the description of the present invention, the expression "A and / or B" (where A and B are used to formally represent specific characteristic contents) will be involved, and the corresponding expressions include the following three combinations: only A, only B, and a combination of A and B.

[0069] As used herein, "about," "substantially," or "approximately" includes the stated value and an average value that is within an acceptable range of deviation from the particular value as determined by one of ordinary skill in the art taking into account the measurements in question and the errors associated with the measurement of the particular quantity (i.e., the limitations of the measurement system).

[0070] In order to make the technical solution of the present invention clearer, some terms used in the present invention are explained here:

[0071] Tokenizer is a class used to vectorize text and convert text into a sequence. When computers process language and text, they cannot understand the meaning of the text. Usually, they convert a word (a single Chinese character or word) into a positive integer, turning a text into a sequence, and then vectorize the sequence. The vectorized data is sent to the model for processing.

[0072] Token is the result obtained by tokenizer conversion, that is, a sequence.

[0073] Transformer is a type of deep neural network based on the self-attention mechanism.

[0074] In addition, the technical features involved in the various embodiments of the present invention described below can be combined with each other as long as they do not conflict with each other.

[0075] Embodiment 1:

[0076] Embodiment 1 of the present invention provides a multi-task three-dimensional point cloud segmentation method, such as Figure 1 As shown, including:

[0077] In step 201, three-dimensional point cloud features are extracted; the input point cloud is divided into super points, feature pooling is performed on the point cloud within the super points, and the pooled features are used as super point features.

[0078] In step 202, for interactive segmentation tasks, visual cue features encoding visual cue information are sampled from superpoint features based on visual cue information input by the user; for reference segmentation tasks, text cue features encoding text cue information input by the user are extracted using a text encoder.

[0079] In step 203, the super-point features, visual cue features and text cue features are input into a mask decoder to obtain a multi-task mask and realize multi-task 3D point cloud segmentation.

[0080] In step 204, knowledge distillation technology is used to constrain the training process of instance segmentation, semantic segmentation, and reference segmentation tasks using the output information of the interactive segmentation task.

[0081] In step 205, contrastive learning technology is used to constrain the visual prompt features and the text prompt features to align with each other.

[0082] In one embodiment of the present invention, extracting three-dimensional point cloud features specifically includes:

[0083] Read the 3D point cloud data of the input scene Where N is the number of 3D points in the 3D point cloud, and each 3D point is described by 3D coordinates x, y, z and three-channel colors r, g, b. The 3D point cloud backbone network is used to extract 3D point cloud features. where d in is the feature depth of the 3D point cloud feature.

[0084] The step of dividing the input point cloud into super points, performing feature pooling on the point cloud in the super points, and using the pooled features as super point features specifically includes:

[0085] The 3D point cloud is divided into M super points according to the texture information of the point cloud. The 3D point features of the 3D point cloud contained in each super point are pooled to obtain the super point features. in

[0086] M is obtained by those skilled in the art based on empirical analysis.

[0087] In an optional implementation, for the interactive segmentation task, sampling the visual cue features encoding the visual cue information from the superpoint features according to the visual cue information input by the user specifically includes:

[0088] Sampling the superpoint features of the superpoints containing the three-dimensional coordinates corresponding to the visual cue information as the visual cue features That is, the visual cue information is represented by three-dimensional coordinates.

[0089] For the reference segmentation task, a text encoder is used to extract text prompt features of the text prompt information input by the user, specifically including:

[0090] Extract the text prompt information entered by the user and send the text prompt information to the tokenizer to obtain the token corresponding to the text, which is expressed as where \(l\) represents the length of the input text and \(c\) represents the dimension of the token; the text token (i.e., the token corresponding to the above text) is sent into the text encoder to obtain the text feature Apply a Multilayer Perceptron (abbreviated as: MLP) to map the feature depth of the text feature to so as to obtain a text feature \(F\) with a feature depth of T .

[0091] In a specific application scenario, the superpoint feature, visual prompt feature, and text prompt feature are input into the mask decoder to obtain a multi-task mask, realizing multi-task 3D point cloud segmentation, as Figure 2 shown, specifically including:

[0092] In step 301, a query is used to uniformly represent the superpoint feature, visual prompt feature, and text prompt feature. Specifically:

[0093] Randomly sample \(m\) superpoint features from the superpoint feature \(F\) s to form a superpoint query, denoted as Set \(m < M\) during the training phase to reduce computational consumption, and set \(m = M\) during the inference phase to perform class prediction for each superpoint; the visual prompt feature and text prompt feature are directly used as the visual prompt query and text prompt query, denoted as where \(K\) p is the number of visual prompts input by the user, and \(K\) t is the number of text prompts input by the user.

[0094] In step 302, to guide the model to distinguish the superpoint query, visual prompt query, and text prompt query, task real-valued vectors (abbreviated as: embedding) are designed, denoted as \(e\) u , \(e\) p , \(e\) t ; among them,

[0095] ″′

[0096] \(q\) u = \(q\) u + \(e\) u , \(q\) p = \(q\) p + \(e\) p , \(q\) t = \(q\) t + \(e\) t , where ​They are superpoint query embedding, visual cue query embedding, and text cue query embedding respectively; when the query is added to the embedding, the feature shapes of superpoint query embedding, visual cue query embedding, and text cue query embedding are broadcasted as

[0097] In step 303, a visual Transformer is selected as a mask decoder, and the superpoint query, visual cue query, and text cue query of the superposition task embedding are input into the mask decoder for 3D point cloud segmentation prediction.

[0098] The visual Transformer is selected as the mask decoder, and the superpoint query, visual cue query, and text cue query of the superposition task embedding are input into the mask decoder for 3D point cloud segmentation prediction, such as Figure 3 As shown, specifically including:

[0099] In step 401, the output feature f of the mask decoder is calculated out =MaskDecoder(q=Concat(q u ,q p ,q t ); k = F s ; v = F s ),in is the output feature of the mask decoder, d out is the feature depth; among them, the superpoint query is used for 3D instance segmentation, 3D semantic segmentation, 3D panoptic segmentation, and 3D open vocabulary semantic segmentation prediction. Such 3D point cloud segmentation tasks cannot perceive the prompt information from the user during the reasoning process. Therefore, it is necessary to avoid the superpoint query from interacting with the visual cue query and the text cue query during the training process to ensure the consistency of the training and reasoning process. Therefore, the visual Transformer consists of a cross-attention layer and a self-attention layer. The self-attention layer interacts with the input query, while the cross-attention layer does not interact with the input query; the visual cue query and the text cue query are only sent to the cross-attention layer in the visual Transformer, and the superpoint query is sent to the cross-attention layer and the self-attention layer of the visual Transformer.

[0100] In step 402, the category information is encoded into category embeddings, and the model predicts the category embeddings to achieve category prediction; the category embeddings are extracted by feeding the category name text into the text encoder and MLP in sequence; that is, the extraction steps of the category embeddings are the same as the extraction steps of the text prompt features, except that for the category embeddings, the output feature depth of the MLP is d out ; Represent the category embedding as K v is the number of category names, and the model outputs mask pred And the category prediction result cls pred Obtained by the following formula:

[0101]

[0102] Where MLP projects the feature depth into d out , and They represent the i-th prediction mask and the i-th category prediction result respectively; the prediction mask and category prediction results are both the segmentation results of the superpoint. In order to obtain the three-dimensional point cloud segmentation result, the superpoint is reversely projected to the three-dimensional point cloud, and the segmentation result of the three-dimensional points contained in the superpoint is consistent with the superpoint.

[0103] In actual application scenarios, the knowledge distillation technology is used to constrain the training process of instance segmentation, semantic segmentation, and reference segmentation tasks using the output information of the interactive segmentation task, which specifically includes:

[0104] The knowledge distillation technology is used to optimize the accuracy of 3D point cloud segmentation. Specifically:

[0105] The output of the superpoint query is expressed as A one-to-one matching algorithm is used to establish Pred u Labels for segmentation tasks with visual cues One-to-one matching, the matching output results are divided into positive samples, expressed as

[0106] The mask prediction result of visual cue segmentation can be expressed as Select the pixel coordinates of the k% pixels with the highest confidence from the predicted mask as the learning area k is obtained by technicians in this field based on demand analysis.

[0107] Apply the Binary Cross Entropy Loss (BCE Loss) function The mask prediction results of the visual cue segmentation task are used to constrain the mask prediction results of the super-point query:

[0108]

[0109] The mask pos (R) and mask p (R) are the predicted values ​​of the positive sample prediction mask and the visual cue segmentation task prediction mask in the learning area R, respectively.

[0110] The category prediction results of the visual cue query and the text cue query referring to the same instance are denoted as cls p With cls t , applying the BCE loss function The category prediction results of the visual cue segmentation task are used to constrain the category prediction results of the reference segmentation task, specifically:

[0111]

[0112] application and Optimize 3D point cloud segmentation accuracy.

[0113] In some embodiments, the use of contrastive learning technology to constrain the visual prompt feature and the text prompt feature to align with each other specifically includes:

[0114] Contrastive learning technology is used to optimize the accuracy of 3D point cloud segmentation. Specifically:

[0115] Define the visual cue information and text cue information referring to the same instance as a set of visual-text cue pairs, and project the cue features of group B visual-text cue pairs into visual embedding and text embedding, which are expressed as and The B group of visual-text prompt pairs are the visual-text prompt pairs of the current training batch; that is, it is assumed that there are B group of visual-text prompt pairs in the current training batch.

[0116] Contrastive Learning Loss Function and The formula is: Where σ is a learnable parameter used to control the size of contrastive learning loss.

[0117] The vector dot product of the i-th visual embedding and the j-th text embedding is used as the similarity measurement result between the visual embedding and the text embedding, denoted as s i,j; Design sorting rules i,i >s i,j , we get the sorting loss function The formula is:

[0118]

[0119] Applying contrastive learning loss function And the ranking loss function Optimize 3D point cloud segmentation accuracy.

[0120] This embodiment uses the edge texture information of the three-dimensional point cloud to understand the visual prompts and text prompts input by the user, thereby realizing multi-task three-dimensional point cloud segmentation, such as one or more of instance segmentation, semantic segmentation, panoramic segmentation, cross segmentation, reference segmentation and open vocabulary semantic segmentation, reducing the computing power and storage resources occupied in multi-task situations, and expanding the application prospects of the three-dimensional point cloud segmentation algorithm in multi-task scenarios such as smart homes. The present invention can realize multiple point cloud segmentation tasks based on a single model, and establish the correlation between tasks through knowledge distillation and contrastive learning technology to improve the segmentation accuracy of the model on multiple tasks. This embodiment can also utilize the edge texture information of the three-dimensional point cloud. Since the three-dimensional point cloud is disordered and the edge distribution of individual instances is irregular, the edge texture information of the three-dimensional point cloud is used to help the three-dimensional point cloud segmentation task; and it can realize multi-task point cloud segmentation based on a single model, effectively expanding the application value of the three-dimensional point cloud segmentation method in multi-task scenarios.

[0121] Embodiment 2:

[0122] The present invention is based on the method described in Example 1, combined with specific application scenarios, and uses technical descriptions in related scenarios to illustrate the implementation process of the present invention in characteristic scenarios.

[0123] The method of this embodiment is to divide the 3D point cloud into super points according to the color texture in the 3D point cloud scene, and perform mask prediction and category prediction by processing super point features to achieve 3D point cloud segmentation. This embodiment can understand the visual prompt information and text prompt information input by the user, and encode the user information into the input query of the mask decoder through steps such as super point feature sampling and text information encoding. The mask decoder processes queries from multiple tasks in parallel to achieve multi-task 3D point cloud segmentation. This embodiment provides a multi-task 3D point cloud segmentation method, such as Figure 4 As shown, including:

[0124] In step 501, extracting three-dimensional point cloud features specifically includes:

[0125] In this embodiment, the ScanNet20 dataset is used for model training. Considering that the ScanNet20 dataset does not contain user text description information, the user text prompt information in this embodiment uses the text description information provided by the ScanRefer dataset. In this embodiment, data enhancement such as random flipping and random rotation is performed on the input 3D point cloud.

[0126] Read the 3D point cloud data of the input scene The 3D point cloud contains 215316 3D points, each of which is described by 3D coordinates x, y, z and three-channel colors r, g, b. The 3D point cloud backbone network is used to extract 3D point cloud features. Where 32 is the feature depth of the 3D point cloud feature.

[0127] In step 502, the input point cloud is divided into super points, feature pooling is performed on the point cloud in the super point, and the pooled features are used as the features of the super point (i.e., super point features), which specifically includes:

[0128] The 3D point cloud is divided into 1632 super points according to the texture information of the point cloud. The 3D point features of the 3D point cloud contained in each super point are pooled to obtain the super point features. in

[0129] In step 503, for the interactive segmentation task, based on the visual cue information input by the user, a visual cue feature encoding the visual cue information is sampled from the super-point feature, specifically including:

[0130] The visual cue information is represented by three-dimensional coordinates. In step 502, the three-dimensional point cloud data is divided into super points, and super point features of the super points containing the three-dimensional coordinates corresponding to the visual cue information are sampled as visual cue features.

[0131] In step 504, for the reference segmentation task, a text encoder is used to extract text prompt features of the text prompt information input by the user, specifically including:

[0132] Send the text prompt information to the tokenizer to obtain the token corresponding to the text, expressed as Where l represents the length of the input text and c represents the dimension of the token. The text token is fed into the text encoder to obtain the text features. Apply MLP to map the feature depth of text features into So the feature depth is obtained as The text feature F T .

[0133] In step 505, the super-point features, visual cue features, and text cue features are input into a mask decoder to obtain a multi-task mask and implement multi-task 3D point cloud segmentation, specifically including:

[0134] In this embodiment, the super point feature F s 805 super-point features are randomly sampled to form a super-point query, expressed as All 1632 superpoint features are used in the inference stage to predict the category of each superpoint. The visual cue features and text cue features obtained in step 503 and step 504 are directly used as the visual cue query and text cue query, respectively, as The number of visual prompts input by the user is 21, and the number of text prompts input by the user is 19. In order to guide the model to distinguish between superpoint queries, visual prompt queries and text prompt queries, this embodiment designs task embedding, denoted as e u , e p 、e t :

[0135] q u =q ′ u +e u ,q p =q ′ p +e p ,q t =q ′ t +e t ,

[0136] in They are superpoint query embedding, visual cue query embedding, and text cue query embedding. When the query and embedding are added, the feature shapes of superpoint query embedding, visual cue query embedding, and text cue query embedding are broadcasted as

[0137] Select the visual Transformer as the mask decoder, and input the superpoint query, visual hint query, and text hint query of the above superposition task embedding into the mask decoder for 3D point cloud segmentation prediction. The calculation formula is:

[0138] f out =MaskDecoder(q=Concat(q u ,q p ,qt ); k = F s ; v = F s ),

[0139] in is the output feature of the mask decoder, d out is the feature depth. Superpoint query is used for 3D instance segmentation, semantic segmentation, panoramic segmentation, and open vocabulary semantic segmentation. Such 3D point cloud segmentation tasks cannot perceive the prompt information from the user during the reasoning process. Therefore, it is necessary to avoid feature interaction between superpoint query and visual cue query and text cue query during training, so as to ensure the consistency of training and reasoning process. In this embodiment, the visual Transformer is composed of a cross-attention layer and a self-attention layer. The self-attention layer performs feature interaction on the input query, and the cross-attention layer does not perform feature interaction on the input query. In this embodiment, the visual cue query and the text cue query are only sent to the cross-attention layer in the visual Transformer, and the superpoint query is sent to the cross-attention layer and self-attention layer of the visual Transformer.

[0140] In this embodiment, the category information is encoded into category embedding, and the model predicts the category embedding to achieve category prediction. The extraction steps of category embedding are the same as the extraction steps of text prompt features, that is, the category name text is fed into the text encoder and MLP in sequence. The difference is that for category embedding, the output feature depth of MLP is 256. In this embodiment, the category embedding is represented as The number of category names is 20, and the model outputs mask pred And the category prediction result cls pred Obtained by the following formula:

[0141]

[0142] Among them, MLP projects the feature depth to 256. and Represent the i-th prediction mask and the i-th category prediction result respectively. The prediction mask and category prediction results are the segmentation results of the super point. In order to obtain the 3D point cloud segmentation result, the super point needs to be reversely projected to the 3D point cloud. The segmentation result of the 3D points contained in the super point is consistent with the super point.

[0143] In step 506, the knowledge distillation technology is used to constrain the training process of instance segmentation, semantic segmentation, and reference segmentation tasks using the output information of the interactive segmentation task, which specifically includes:

[0144] The output of the superpoint query is expressed as A one-to-one matching algorithm is used to establish Pred u Labels for segmentation tasks with visual cues One-to-one matching, the matching output results are divided into positive samples, expressed as The mask prediction result of visual cue segmentation can be expressed as Select the pixel coordinates of the 10% pixels with the highest confidence from the predicted mask as the learning area Applying BCE loss function The mask prediction results of the visual cue segmentation task are used to constrain the mask prediction results of the super-point query:

[0145]

[0146] The mask pos (R) and mask p (R) are the predicted values ​​of the positive sample prediction mask and the visual cue segmentation task prediction mask in the learning area R, respectively.

[0147] The category prediction results of the visual cue query and the text cue query referring to the same instance are denoted as cls p With cls t , applying the BCE loss function The category prediction results of the visual cue segmentation task are used to constrain the category prediction results of the reference segmentation task:

[0148]

[0149] In this embodiment, application and Optimize 3D point cloud segmentation accuracy.

[0150] In step 507, contrastive learning technology is used to constrain the visual prompt feature and the text prompt feature to align with each other, specifically including:

[0151] The visual cue information and text cue information referring to the same instance individual are defined as a set of visual-text cue pairs. Assuming that there are 19 sets of visual-text cue pairs in the current training batch, in this embodiment, the cue features of these 19 sets of visual-text cue pairs are projected into visual embedding and text embedding, which are respectively expressed as and Contrastive Learning Loss Function and The formula is:

[0152]

[0153] Where σ is a learnable parameter used to control the size of contrastive learning loss. In this embodiment, the vector dot product of the i-th visual embedding and the j-th text embedding is used as the similarity measurement result of the visual embedding and the text embedding, expressed as s i,j In this embodiment, the sorting rule s is designed i,i >s i,j , we get the sorting loss function The formula is:

[0154]

[0155] In this embodiment, the contrastive learning loss function is applied And the ranking loss function Optimize the accuracy of 3D point cloud segmentation. The specific implementation process is as follows: Figure 5 As shown, the effect achieved is as follows Figure 6 As shown, this embodiment implements six 3D point cloud segmentation tasks based on a single model.

[0156] Embodiment 3:

[0157] Based on the aforementioned Example 2, the text description information provided by ScanRefer is used as the input text for the reference segmentation task, and model training is performed on the ScanNet20 training set. This example verifies the performance of a multi-task three-dimensional point cloud segmentation method on instance segmentation, semantic segmentation, panoramic segmentation, and interactive three-dimensional point cloud segmentation tasks on the ScanNet20 dataset. This example verifies the performance of a multi-task three-dimensional point cloud segmentation method on the reference segmentation task on the ScanRefer dataset. This example verifies the performance of a multi-task three-dimensional point cloud segmentation method on the open vocabulary semantic segmentation task on the ScanNet200 dataset.

[0158] In this embodiment, the mask prediction result of the open vocabulary semantic segmentation task is directly output by a multi-task 3D point cloud segmentation method in this embodiment, and the category prediction result of the open vocabulary semantic segmentation task refers to the existing Open3DIS open vocabulary semantic segmentation method. Specifically, it includes first projecting the 3D point cloud to an RGB image, then cropping the projected area on the image and sending it to the image encoder of CLIP to obtain the image embedding, and at the same time sending the category name text list to the text encoder of CLIP to obtain the text embedding, and then measuring the similarity between the image embedding and the text embedding. The category name corresponding to the text embedding with the highest similarity is the predicted category of the above 3D point cloud.

[0159] ScanNet20 provides RGB-D images and 3D point cloud data of 1613 scenes, including 18 instance categories and 2 semantic categories. ScanNet200 uses the same scene data as ScanNet20, but contains up to 198 instance categories and 2 semantic categories, making it more challenging. ScanRefer contains 51,583 natural language descriptions pointing to 11,046 3D point cloud instance targets selected from 800 scenes.

[0160] In terms of evaluation indicators, this embodiment uses PQ, mIoU and mAP to evaluate the performance of panoptic segmentation, semantic segmentation and instance segmentation. In addition, this embodiment uses AP and mIoU to evaluate the performance of interactive segmentation and reference segmentation tasks respectively. For the open vocabulary semantic segmentation task, this embodiment trains the model on ScanNet20 and uses the AP indicator to evaluate the performance on ScanNet200 without fine-tuning the model weights on the ScanNet200 dataset.

[0161] As shown in the following table, this embodiment can implement multiple 3D point cloud segmentation tasks based on a single model, and this embodiment can achieve performance that exceeds other comparison methods in multiple tasks. The symbol “-” in the table means that the method cannot be directly applied to the task, so performance verification cannot be performed.

[0162]

[0163] It can be seen that multiple indicators of the method described in this embodiment are significantly improved compared with the prior art.

[0164] Embodiment 4:

[0165] like Figure 7 , is a schematic diagram of the architecture of a multi-task 3D point cloud segmentation device according to an embodiment of the present invention. The multi-task 3D point cloud segmentation device according to this embodiment includes one or more processors 21 and a memory 22. Figure 7 A processor 21 is taken as an example.

[0166] The processor 21 and the memory 22 may be connected via a bus or other means. Figure 7 The example of connecting through bus is taken in the following.

[0167] The memory 22 is a non-volatile computer-readable storage medium that can be used to store non-volatile software programs and non-volatile computer executable programs, such as the multi-task three-dimensional point cloud segmentation method in Example 1. The processor 21 executes the multi-task three-dimensional point cloud segmentation method by running the non-volatile software programs and instructions stored in the memory 22.

[0168] The memory 22 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage devices. In some embodiments, the memory 22 may optionally include a memory remotely arranged relative to the processor 21, and these remote memories may be connected to the processor 21 via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0169] The program instructions / modules are stored in the memory 22, and when executed by the one or more processors 21, the multi-task three-dimensional point cloud segmentation method in the above-mentioned embodiment 1, embodiment 2 or embodiment 3 is executed.

[0170] The processor 21 may be a multi-core processor to improve processing speed and efficiency; the memory 22 may be a cache or a dynamic random access memory (DRAM) to ensure fast access and processing of data; the data bus may be a high-bandwidth data bus to support high data transmission rates. The instructions include acquiring and preprocessing three-dimensional point cloud data, training and reasoning a multi-task learning model based on the preprocessed data, and post-processing the training results to generate a final segmentation result.

[0171] It is worth noting that the information interaction, execution process, etc. between the modules and units within the above-mentioned devices and systems are based on the same concept as the processing method embodiment of the present invention. The specific contents can be found in the description of the method embodiment of the present invention and will not be repeated here.

[0172] A person skilled in the art may understand that all or part of the steps in the various methods of the embodiments may be completed by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, and the storage medium may include: a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk, etc.

[0173] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the protection scope of the present invention.

Claims

1. A multi-task three-dimensional point cloud segmentation method, characterized in that: include: Extract 3D point cloud features; divide the input point cloud into super points, perform feature pooling on the point cloud within the super points, and use the pooled features as super point features; For the interactive segmentation task, the visual cue features encoding the visual cue information are sampled from the super-point features according to the visual cue information input by the user; for the reference segmentation task, the text cue features of the text cue information input by the user are extracted using a text encoder; Input super-point features, visual cue features and text cue features into the mask decoder to obtain multi-task masks and realize multi-task 3D point cloud segmentation; The knowledge distillation technique is used to constrain the training process of instance segmentation, semantic segmentation, and reference segmentation tasks using the output information of the interactive segmentation task. Contrastive learning techniques are used to constrain the visual cue features and textual cue features to align with each other.

2. The multi-task three-dimensional point cloud segmentation method according to claim 1, characterized in that: The extracting of three-dimensional point cloud features specifically includes: Read the 3D point cloud data of the input scene Where N is the number of 3D points in the 3D point cloud, and each 3D point is described by 3D coordinates x, y, z and three-channel colors r, g, b. The 3D point cloud backbone network is used to extract 3D point cloud features. where d in is the feature depth of the 3D point cloud feature.

3. The multi-task three-dimensional point cloud segmentation method according to claim 1, characterized in that: The step of dividing the input point cloud into super points, performing feature pooling on the point cloud in the super points, and using the pooled features as super point features specifically includes: The 3D point cloud is divided into M super points according to the texture information of the point cloud. The 3D point features of the 3D point cloud contained in each super point are pooled to obtain the super point features. in 4. The multi-task three-dimensional point cloud segmentation method according to claim 1, characterized in that: For the interactive segmentation task, based on the visual cue information input by the user, the visual cue features encoding the visual cue information are sampled from the super-point features, specifically including: Sampling the superpoint features of the superpoints containing the three-dimensional coordinates corresponding to the visual cue information as the visual cue features For the reference segmentation task, a text encoder is used to extract text prompt features of the text prompt information input by the user, specifically including: Extract the text prompt information entered by the user and send the text prompt information to the tokenizer to obtain the token corresponding to the text, which is expressed as Where l represents the length of the input text, and c represents the dimension of the token; the text token is sent to the text encoder to obtain the text features Apply MLP to map the feature depth of text features into So the feature depth is obtained as The text feature F T .

5. The multi-task 3D point cloud segmentation method according to claim 1, characterized in that: The super-point features, visual cue features and text cue features are input into a mask decoder to obtain a multi-task mask and implement multi-task 3D point cloud segmentation, specifically including: The query is used to uniformly represent super-point features, visual cue features, and text cue features. Specifically: Randomly sample m superpoint features from the superpoint feature F s to form a superpoint query, denoted as Set m < M during the training phase to reduce computational consumption, and set m = M during the inference phase to perform class prediction for each superpoint; directly use the visual prompt feature and the text prompt feature as the visual prompt query and the text prompt query, respectively, denoted as where K p is the number of visual prompts input by the user, and K t is the number of text prompts input by the user; To guide the model to distinguish between super-point queries, visual cue queries and text cue queries, we design the task ″′ embedding, denoted by e u 、e p 、e t ; Among them, q u =q u +e u ,q p =q p +e p ,q t =q t +e t ,in They are superpoint query embedding, visual cue query embedding, and text cue query embedding respectively; when the query is added to the embedding, the feature shapes of superpoint query embedding, visual cue query embedding, and text cue query embedding are broadcasted as The visual Transformer is selected as the mask decoder, and the super-point query, visual hint query, and text hint query of the superimposed task embedding are input into the mask decoder for 3D point cloud segmentation prediction.

6. The multi-task three-dimensional point cloud segmentation method according to claim 5, characterized in that: The visual Transformer is selected as the mask decoder, and the superpoint query, visual hint query, and text hint query of the superposition task embedding are input into the mask decoder for 3D point cloud segmentation prediction, specifically including: Calculate the output feature f of the mask decoder out =MaskDecoder(q=Concat(q u ,q p ,q t ); k = F s ; v = F s ),in is the output feature of the mask decoder, d out is the feature depth; the visual Transformer consists of a cross-attention layer and a self-attention layer. The self-attention layer performs feature interaction on the input query, while the cross-attention layer does not perform feature interaction on the input query; the visual cue query and the text cue query are only fed into the cross-attention layer in the visual Transformer, and the super-point query is fed into the cross-attention layer and the self-attention layer of the visual Transformer; The category information is encoded into category embeddings, and the model predicts the category embeddings to achieve category prediction. The category embeddings are extracted by feeding the category name text into the text encoder and MLP in sequence. For the category embeddings, the output feature depth of the MLP is d out ; Represent the category embedding as K v is the number of category names, and the model outputs mask pred And the category prediction result cls pred Obtained by the following formula: Where MLP projects the feature depth into d out , and They represent the i-th prediction mask and the i-th category prediction result respectively; the prediction mask and category prediction results are both the segmentation results of the superpoint. In order to obtain the three-dimensional point cloud segmentation result, the superpoint is reversely projected to the three-dimensional point cloud, and the segmentation result of the three-dimensional points contained in the superpoint is consistent with the superpoint.

7. The multi-task three-dimensional point cloud segmentation method according to claim 1, characterized in that: The training process of using the knowledge distillation technology to constrain instance segmentation, semantic segmentation, and reference segmentation tasks using the output information of the interactive segmentation task specifically includes: The knowledge distillation technology is used to optimize the accuracy of 3D point cloud segmentation. Specifically: The output of the superpoint query is expressed as A one-to-one matching algorithm is used to establish Pred u Labels for segmentation tasks with visual cues One-to-one matching, the output results on the match are divided into positive samples, expressed as The mask prediction result of visual cue segmentation can be expressed as Select the pixel coordinates of the k% pixels with the highest confidence from the predicted mask as the learning area Applying BCE loss function The mask prediction results of the visual cue segmentation task are used to constrain the mask prediction results of the super-point query: The mask pos (R) and mask p (R) are the predicted values ​​of the positive sample prediction mask and the visual cue segmentation task prediction mask in the learning area R; The category prediction results of the visual cue query and the text cue query referring to the same instance are denoted as cls p With cls t , applying the BCE loss function The category prediction results of the visual cue segmentation task are used to constrain the category prediction results of the reference segmentation task, specifically: application and Optimize 3D point cloud segmentation accuracy.

8. The multi-task three-dimensional point cloud segmentation method according to claim 1, characterized in that: The use of contrastive learning technology to constrain the visual prompt features and the text prompt features to align with each other specifically includes: Contrastive learning technology is used to optimize the accuracy of 3D point cloud segmentation. Specifically: Define the visual cue information and text cue information referring to the same instance as a set of visual-text cue pairs, and project the cue features of group B visual-text cue pairs into visual embedding and text embedding, which are expressed as and The B group of visual-text prompt pairs are the visual-text prompt pairs of the current training batch; Contrastive Learning Loss Function and The formula is: Where σ is a learnable parameter used to control the size of contrastive learning loss; The vector dot product of the i-th visual embedding and the j-th text embedding is used as the similarity measurement result between the visual embedding and the text embedding, denoted as s i,j ; Design sorting rules i,i >s i,j , we get the sorting loss function The formula is: Applying contrastive learning loss function And the ranking loss function Optimize 3D point cloud segmentation accuracy.

9. A multi-task three-dimensional point cloud segmentation device, characterized in that: include: 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 processor to execute the multi-task three-dimensional point cloud segmentation method described in any one of claims 1-8.

10. A non-volatile computer storage medium, characterized in that: The computer storage medium stores computer executable instructions, which are executed by one or more processors to implement any of the methods described in claims 1-8.

Citation Information

Patent Citations

  • Large-scale point cloud semantic segmentation method based on superpoint graph

    CN108319957A

  • Three-dimensional scene description method and device, electronic equipment and storage medium

    CN112949647A

  • Cross-modal single-sample three-dimensional point cloud segmentation method

    CN114529757A

  • Monocular three-dimensional instance segmentation method based on depth information guidance

    CN116258734A

  • Multi-modal point cloud registration method based on image and geometric information guidance

    CN117095033A

Cited By

  • Three-dimensional scene understanding method based on multi-modal large model

    CN119416848A