Segmentation processing method and segmentation model training method

By using a segmentation model based on 3D sparse convolution in the autonomous driving perception system, combined with point cloud data and segmentation prompt information, the problem of poor performance of the 2D image segmentation model in unseen scenes and weather conditions is solved, and point Cloud-native instance segmentation with strong generalization capabilities expands application scenarios.

CN118710892APending Publication Date: 2024-09-27HANGZHOU ZHIHUI MANTU TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410719731.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-04
Publication Date
2024-09-27

AI Technical Summary

Technical Problem

In the existing automatic driving perception system, the segmentation model based on 2D images performs poorly in unseen scenes and weather conditions, and has insufficient generalization capabilities, which limits its application scenarios.

Method used

A segmentation model based on 3D sparse convolution is used to extract and decode features through point cloud data, and combine segmentation prompt information to achieve instance segmentation, avoiding dependence on 2D images and providing prompts native to point clouds with strong generalization capabilities. split plan.

Benefits of technology

It realizes instance segmentation in point cloud data in the field of autonomous driving, expands application scenarios, especially in fields such as offline data annotation, and improves the generalization ability and adaptability of the model.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118710892A
    Figure CN118710892A
Patent Text Reader

Abstract

The embodiment of the invention provides a segmentation processing method and a segmentation model training method, and the method comprises the steps: determining initial point cloud data and segmentation prompt information; inputting the initial point cloud data and the segmentation prompt information into a segmentation model to execute an instance segmentation task to obtain an instance segmentation result; wherein the segmentation model performs feature extraction on the initial point cloud data based on 3D sparse convolution to obtain to-be-decoded point cloud feature information, performs feature extraction on the segmentation prompt information to obtain segmentation prompt feature information, and decodes the to-be-decoded point cloud feature information through the segmentation prompt feature information to obtain the to-be-decoded point cloud feature information. And obtaining an instance segmentation result.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of this specification relate to the field of autonomous driving technology, and in particular to a segmentation processing method and a segmentation model training method. Background Art

[0002] In the field of autonomous driving, the perception system needs to recognize objects, so there will be object segmentation tasks based on the perception needs of autonomous driving. Segmentation generally uses a data-driven deep learning solution. The segmentation task is limited by the target distribution in the data, and performs poorly for scenes, weather, targets, etc. that have not been seen in the data, and the model's generalization ability is insufficient. Therefore, at present, we will combine 2D images and train a promptable image segmentation model by imitating the prompt engineering of large models. The trained image segmentation model can show strong generalization ability under appropriate prompts.

[0003] However, the use of 2D images limits the application scenarios of segmentation models, because in the field of autonomous driving, images are not necessarily available in many cases, and the model capabilities cannot be applied in these scenarios. Summary of the invention

[0004] In view of this, an embodiment of this specification provides a segmentation processing method. One or more embodiments of this specification also relate to a segmentation model training method, a computing device, a computer-readable storage medium and a computer program product to solve the defects of limited model application in the prior art.

[0005] According to a first aspect of an embodiment of the present specification, a segmentation processing method is provided, comprising: determining initial point cloud data and segmentation hint information; inputting the initial point cloud data and the segmentation hint information into a segmentation model to perform an instance segmentation task to obtain an instance segmentation result; wherein the segmentation model performs feature extraction on the initial point cloud data based on 3D sparse convolution to obtain point cloud feature information to be decoded, performs feature extraction on the segmentation hint information to obtain segmentation hint feature information, and decodes the point cloud feature information to be decoded through the segmentation hint feature information to obtain the instance segmentation result.

[0006] According to the second aspect of the embodiments of this specification, a segmentation model training method is provided, comprising: obtaining an instance segmentation training sample set, the instance segmentation training sample set comprising: an initial point cloud data sample, a segmentation hint sample and a corresponding instance segmentation true value; using the instance segmentation training sample set, training a segmentation model for an instance segmentation task to obtain a trained segmentation model; wherein the segmentation model performs feature extraction on the initial point cloud data sample based on 3D sparse convolution to obtain point cloud feature information to be decoded, performs feature extraction on the segmentation hint sample to obtain segmentation hint feature information, decodes the point cloud feature information to be decoded through the segmentation hint feature information, and obtains an instance segmentation prediction result.

[0007] According to a third aspect of an embodiment of this specification, a computing device is provided, comprising: a memory and a processor; wherein the memory is used to store computer programs / instructions, and the processor is used to execute computer programs / instructions, and the steps of the above method are implemented when the computer program / instructions are executed by the processor.

[0008] According to a fourth aspect of the embodiments of this specification, a computer-readable storage medium is provided, which stores a computer program / instruction, and the steps of the above method are implemented when the computer program / instruction is executed by a processor.

[0009] According to a fifth aspect of the embodiments of this specification, a computer program product is provided, comprising a computer program / instruction, which implements the steps of the above method when executed by a processor.

[0010] An embodiment of the present specification implements a segmentation processing method, which uses a segmentation model. The initial point cloud data and segmentation prompt information are input into the segmentation model to perform an instance segmentation task. Since the segmentation model performs feature extraction on the initial point cloud data based on 3D sparse convolution to obtain the point cloud feature information to be decoded, the segmentation prompt information is extracted to obtain the segmentation prompt feature information, and the point cloud feature information to be decoded is decoded by the segmentation prompt feature information to obtain the instance segmentation result. Therefore, the method implements a point cloud-native, highly generalized and promptable segmentation solution. Instance segmentation can be performed using the point cloud data already available in the autonomous driving itself. No 2D image is required as a prerequisite, and segmentation can be performed directly in the point cloud data, avoiding the problem of limited usage scenarios. It can be widely used in application scenarios of autonomous driving such as offline data annotation. BRIEF DESCRIPTION OF THE DRAWINGS

[0011] Figure 1 It is a schematic diagram of an application scenario of a segmentation processing method provided by an embodiment of this specification;

[0012] Figure 2is a flow chart of a segmentation processing method provided by an embodiment of this specification;

[0013] Figure 3 is a schematic diagram of a point cloud data interaction interface provided by an embodiment of this specification;

[0014] Figure 4 is a schematic diagram of a segmentation model structure provided by an embodiment of this specification;

[0015] Figure 5 is a schematic diagram of a segmentation model structure provided by another embodiment of this specification;

[0016] Figure 6 is a flow chart of a segmentation processing method provided by another embodiment of the present specification;

[0017] Figure 7 is a flow chart of a segmentation processing method provided by another embodiment of the present specification;

[0018] Figure 8 is a structural schematic diagram of a segmentation processing device provided by an embodiment of this specification;

[0019] Fig. 9 is a flow chart of a segmentation model training method provided by one embodiment of this specification;

[0020] Fig.10 is a structural diagram of a segmentation model training device provided by an embodiment of this specification;

[0021] Fig.11 It is a structural block diagram of a computing device provided by an embodiment of this specification. DETAILED DESCRIPTION

[0022] Many specific details are described in the following description to facilitate a full understanding of this specification. However, this specification can be implemented in many other ways than those described herein, and those skilled in the art can make similar generalizations without violating the connotation of this specification, so this specification is not limited to the specific implementation disclosed below.

[0023] The terms used in one or more embodiments of this specification are only for the purpose of describing specific embodiments, and are not intended to limit one or more embodiments of this specification. The singular forms of "a", "said" and "the" used in one or more embodiments of this specification and the appended claims are also intended to include plural forms, unless the context clearly indicates other meanings. It should also be understood that the term "and / or" used in one or more embodiments of this specification refers to and includes any or all possible combinations of one or more associated listed items.

[0024] It should be understood that although the terms first, second, etc. may be used to describe various information in one or more embodiments of this specification, this information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of one or more embodiments of this specification, the first may also be referred to as the second, and similarly, the second may also be referred to as the first. Depending on the context, the word "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining".

[0025] In addition, it should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in one or more embodiments of this specification are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with the relevant laws, regulations and standards of the relevant countries and regions, and provide corresponding operation entrances for users to choose to authorize or refuse.

[0026] In one or more embodiments of this specification, the segmentation model may refer to a deep learning model with large-scale model parameters, such as model parameters containing hundreds of millions, tens of billions, hundreds of billions, trillions, or even more than 10 trillion. The segmentation model can be pre-trained with large-scale samples to adapt to a wide range of downstream tasks, and the model has good generalization ability.

[0027] The segmentation model in the embodiments of this specification may be a point cloud native instance segmentation model, which is intended to segment objects in point cloud data by prompting. The following describes the segmentation model from two aspects: the task and the model structure.

[0028] The instance segmentation task takes the initial point cloud data and segmentation prompt information as input, which means that each object needs to be segmented from the initial point cloud data according to the guidance of the segmentation prompt information. It can be seen that the instance segmentation task is a promptable instance segmentation task (also called a promptable segmentation task). For example, the instance segmentation task uses the point selection mode and the mask mode as segmentation prompt information to guide the segmentation model to segment a reasonable mask. Even if the prompt information is vague, such as the prompt position may correspond to multiple learnable output masks, the segmentation model can output a mask result corresponding to at least one of the multiple learnable output masks.

[0029] The segmentation model may include a powerful point cloud encoding module (also called point encoder), a lightweight prompt encoding module (also called prompt encoder) and a segmentation decoding module (also called mask decoder). It has the advantage of fast processing speed: for example, multiple prompts can reuse the point cloud features to be decoded, the lightweight prompt encoding module and the segmentation decoding module can run in real time, and use multiple learnable output masks (also called tokens) to predict and solve the prompt ambiguity problem. Among them, the point cloud encoding module of the segmentation model extracts features from the point cloud data based on 3D (three-dimensional) sparse convolution to obtain the feature information of the point cloud to be decoded, the prompt encoding module extracts features from the segmentation prompt information to obtain the segmentation prompt feature information, and the segmentation decoding module decodes the feature information of the point cloud to be decoded through the segmentation prompt feature information to obtain the instance segmentation result.

[0030] The segmentation model in the embodiments of this specification can be applied to instance segmentation tasks in a variety of different scenarios of 3D point cloud perception, including autonomous driving software scenarios, annotation scenarios, etc., and has wide application potential in the field of autonomous driving. The segmentation model in the embodiments of this specification has the characteristics of prompt-type instance segmentation tasks, and can generate effective instance segmentation masks based on various prompts. For example, the segmentation model in the embodiments of this specification can be used in point cloud annotation scenarios for autonomous driving to segment and annotate objects in the point cloud annotation interface.

[0031] First, the terms involved in one or more embodiments of this specification are explained.

[0032] Point cloud segmentation: A technology that divides point cloud data into different objects, which can be used in robot navigation, autonomous driving and other fields.

[0033] Feature extraction: Extract representative features from raw data for subsequent processing and analysis.

[0034] MinkNet: A deep learning model for object detection with high accuracy and speed.

[0035] SPVCNN (Sparse Point-Voxel Convolution): A convolutional neural network for object segmentation.

[0036] ResNet: A deep learning model for image classification and object recognition with high accuracy and robustness.

[0037] ViT-Huge: An attention-based visual Transformer model for tasks such as image classification and object recognition.

[0038] Differences in physical space scale: Since objects have different scales in physical space, the differences between them need to be considered for accurate segmentation and recognition.

[0039] Position encoding: A technique that encodes the location information of an object in physical space into a number, which can be used for tasks such as point cloud segmentation and object recognition.

[0040] Considering the huge number of model parameters of the segmentation model and the limited computing resources of the mobile terminal, the segmentation processing method provided in the embodiments of this specification can be applied to the following: Figure 1 The application scenarios shown are not limited to these. Figure 1 In the application scenario shown, the segmentation model is deployed in the server 10 or other servers that communicate with the server 10. The server 10 can be connected to one or more client devices 20 via a local area network connection, a wide area network connection, an Internet connection, or other types of data networks. The client devices 20 here may include but are not limited to: smart phones, tablet computers, laptops, PDAs, personal computers, smart home devices, vehicle-mounted devices, etc. The client device 20 can interact with the user through a graphical user interface to implement the call to the large model, thereby implementing the method provided in the embodiment of this specification. The server 10 may include servers that provide various services, such as servers that provide communication services, servers for background training that provide support for the model, and servers that process data sent by the client device 20. It should be noted that the server 10 can be implemented as a distributed server cluster consisting of multiple servers, or as a single server. The server can also be a server of a distributed system, or a server combined with a blockchain. The server can also be a cloud server (cloud-side device) for basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN (Content Delivery Network), big data and artificial intelligence platforms, or an intelligent cloud computing server or intelligent cloud host with artificial intelligence technology.

[0041] In the embodiments of this specification, the segmentation processing method can be implemented based on a system composed of a client device and a server. Figure 1As shown, exemplarily, the client device can display a point cloud data interaction interface, and receive segmentation prompt information input by the user in any one or more prompt modes such as click (point) mode, box selection (box) mode, brush (brush) mode, mask (mask) mode, etc. The client device sends a segmentation request to the server according to the segmentation prompt information input by the user, and the segmentation request can carry the segmentation prompt information. The server determines the corresponding initial point cloud data and segmentation prompt information according to the segmentation request, inputs the initial point cloud data and the segmentation prompt information into the segmentation model to perform the instance segmentation task, and obtains the instance segmentation result. Then, the server returns the instance segmentation result or the information obtained by other processing of the instance segmentation result to the client device, so that the client device displays the instance segmentation result or the information. Among them, the segmentation model extracts features from the initial point cloud data based on 3D sparse convolution to obtain the feature information of the point cloud to be decoded, extracts features from the segmentation prompt information to obtain the segmentation prompt feature information, and decodes the feature information of the point cloud to be decoded through the segmentation prompt feature information to obtain the instance segmentation result.

[0042] Exemplarily, the segmentation processing method provided in the embodiment of this specification can be applied to point cloud annotation. For example, the client device 20 can display a point cloud annotation interface, the client device 20 displays point cloud data through the point cloud annotation interface, and receives the annotation command triggered by the user on the point cloud annotation interface. For example, the user wants to annotate a car and clicks a point in the cloud data that the user thinks is a car. The client device 20 sends the segmentation prompt information corresponding to the point clicked by the user to the server 10. Accordingly, the server 10 segments the cars in the point cloud data based on the user's click prompt according to the method provided in the embodiment of this specification. It can be seen that according to the method provided in the embodiment of this specification, on the basis of the user annotating a car, the server can return the instance segmentation results of multiple cars in the point cloud data to help the user complete the annotation as soon as possible. For example, the server 10 can automatically annotate multiple cars separately according to the instance segmentation results containing multiple cars, and return the instance segmentation results containing multiple cars and the corresponding annotation information to the client device 20, so that the client device 20 displays the instance segmentation results and the corresponding annotation information.

[0043] It is worth noting that the segmentation processing method provided in the embodiments of this specification is generally executed by the server 10, but in other embodiments of this specification, the client device 20 may also have similar functions to the server 10, thereby executing the segmentation processing method provided in the embodiments of this specification. In other embodiments, the segmentation processing method provided in the embodiments of this specification may also be jointly executed by the client device 20 and the server 10.

[0044] See also Figure 2, Figure 2 A flow chart of a segmentation method provided according to an embodiment of the present specification is shown, which specifically includes the following steps.

[0045] Step 202: Determine initial point cloud data and segmentation prompt information.

[0046] Initial point cloud data is a point-based data set collected in the target scene in the field of autonomous driving, expressed as a collection of vectors of points in a three-dimensional coordinate system. In the initial point cloud data, each point corresponds to a three-dimensional coordinate and may also correspond to other attribute information, such as color, reflectivity, intensity, etc. For example, the point cloud data can be obtained through sensor data collected by scanners, cameras, three-dimensional scanners and other devices configured by autonomous driving vehicles.

[0047] For example, if the segmentation processing method is applied to a server, the server can receive the initial point cloud data sent by the client device, or can obtain the initial point cloud data from a local or other server according to the information indicated by the client device. For example, in the point cloud data annotation scenario of autonomous driving, the client device can load the point cloud annotation interface and display the following information: Figure 3 The interface shown in (a) is used so that the user can perform instance segmentation prompts in any one or more prompt modes such as click mode, box selection mode, brush mode, mask mode, etc. based on the interface. When the user inputs segmentation prompt information, the client device sends the initial point cloud data or information for indicating the acquisition of the initial point cloud data to the server, so that the server obtains the initial point cloud data. If the segmentation processing method is applied to a client device, the client device can obtain the initial point cloud data from a local or other server based on the user's loading instruction to load the initial point cloud data.

[0048] The segmentation hint information is the hint information required to guide the segmentation model to perform instance segmentation tasks. For the coefficient segmentation hint information, sparse refers to the form of points, and the segmentation hint information can be expressed as the coordinates of the points and the attribute information corresponding to the points. For dense segmentation hint information, dense refers to the form of masks, and the segmentation hint information can be expressed as the coordinates of the points covered by the mask and the corresponding attribute information. For example, the segmentation hint information may include: hint information corresponding to any one or more hint modes such as click mode (point), box mode (box), brush mode (brush), and mask mode (mask). Under the guidance of the segmentation hint information, the segmentation model performs the instance segmentation task and can output at least one mask, that is, an instance segmentation result containing at least one mask.

[0049] Among them, the click mode is used to use the three-dimensional coordinates of the point clicked by the user in the point cloud data and the corresponding attribute information as segmentation prompt information; the frame selection mode is used to use the three-dimensional coordinates of any vertex in the area framed by the user in the point cloud data and the corresponding attribute information as segmentation prompt information; the brush mode and the mask mode are used to use the three-dimensional coordinates of the points covered by the brush or mask in the point cloud data and the corresponding attribute information as segmentation prompt information.

[0050] If the segmentation processing method is applied to a server, the server may receive segmentation prompt information sent by a client device.

[0051] Step 204: Input the initial point cloud data and the segmentation prompt information into a segmentation model to perform an instance segmentation task and obtain an instance segmentation result.

[0052] The segmentation model performs feature extraction on the initial point cloud data based on 3D sparse convolution to obtain feature information of the point cloud to be decoded, performs feature extraction on the segmentation prompt information to obtain segmentation prompt feature information, decodes the feature information of the point cloud to be decoded through the segmentation prompt feature information, and obtains the instance segmentation result.

[0053] The segmentation model in the embodiments of this specification is as follows: Figure 4 As shown in the diagram of the segmentation model structure in , it is a point cloud native instance segmentation model, including: point cloud encoding module (also called point encoder), prompt encoding module (also called prompt encoder) and segmentation decoding module (also called mask decoder). During training and application, this segmentation model can prompt and reuse the feature information of the point cloud to be decoded multiple times, and the prompt encoding module and segmentation decoding module can run in real time.

[0054] The instance segmentation task is performed by the segmentation model under the guidance of the segmentation prompt information, and the result of the task is the instance segmentation result. The instance segmentation result contains one or more masks. Mask is used to represent a selected area in the point cloud data. For example, for a mask, the selected area is marked as 1 (or True), and the rest of the area is marked as 0 (or False).

[0055] 3D sparse convolution is an operation that extracts features from three-dimensional point cloud data. Specifically, the 3D sparse convolution kernel moves in three-dimensional space and performs weighted summation with local area data to perform the operation. 3D sparse convolution targets sparse data structures and calculates non-zero elements and their neighborhoods, thereby effectively improving computational efficiency and reducing memory requirements. Therefore, the segmentation model in the method provided in the embodiments of this specification extracts features from point cloud data based on 3D sparse convolution, which can effectively adapt to the sparsity of the input point cloud.

[0056] The point cloud feature information to be decoded is used to represent the feature information obtained after the initial point cloud data is processed by convolution, and can also be called the feature map of the point cloud data. The segmentation hint feature information is used to represent the feature information obtained after the segmentation hint information is processed by position encoding and convolution. Decoding is the process of predicting the segmentation mask from the point cloud feature information to be decoded using the segmentation hint feature information.

[0057] In the method provided in this embodiment, since the segmentation model performs feature extraction on the initial point cloud data based on 3D sparse convolution to obtain feature information of the point cloud to be decoded, and performs feature extraction on the segmentation hint information to obtain segmentation hint feature information, the feature information of the point cloud to be decoded is decoded through the segmentation hint feature information to obtain the instance segmentation result. Therefore, this method realizes a point cloud-native, highly generalized and suggestible segmentation scheme. Instance segmentation can be performed using the point cloud data of the autonomous driving itself, without the need for 2D (two-dimensional) images as a prerequisite, thus avoiding the problem of limited usage scenarios. It can be widely used in application scenarios of autonomous driving such as offline data annotation.

[0058] The segmentation model in the embodiments of this specification is as follows: Figure 4 As shown in the schematic diagram of the segmentation model structure in , it at least includes: a point cloud encoding module, a hint encoding module and a segmentation decoding module. According to the method provided in the embodiment of this specification, in actual applications, the structure of the segmentation model can be adjusted on this basis according to the application scenario to improve the processing speed and accuracy of the model, and this specification does not limit this.

[0059] The method provided in the embodiments of this specification inputs the initial point cloud data and segmentation prompt information into the segmentation model after determining the point cloud data and segmentation prompt information. The segmentation model must first perform feature extraction on the initial point cloud data. However, point cloud data is actually a kind of disordered and sparse data, and feature extraction has a certain difficulty. Therefore, in one or more embodiments of this specification, point cloud feature information is extracted through rasterization and sampling methods similar to Unet structures, so that the point cloud data becomes ordered and multi-scale features can be extracted, which effectively improves the feature extraction speed and accuracy of the segmentation model. Specifically, the feature extraction of the initial point cloud data based on 3D sparse convolution to obtain the point cloud feature information to be decoded includes:

[0060] The initial point cloud data is rasterized by a preprocessing module to obtain rasterized point cloud data;

[0061] The rasterized point cloud data is downsampled including 3D sparse convolution by a first downsampling module to obtain downsampled point cloud feature information;

[0062] The downsampled point cloud feature information is subjected to upsampling including 3D sparse convolution by a first upsampling module to obtain the point cloud feature information to be decoded.

[0063] The rasterization is the process of mapping continuous initial point cloud data to multiple grid spaces to obtain rasterized point cloud data corresponding to each grid space. The rasterized data is the data corresponding to each grid space after the initial point cloud data is rasterized. Through rasterization, the data of each point in the initial point cloud data falls into each grid space, so that the disordered point cloud data is transformed into spatially ordered sparse data through rasterization, so as to extract features more efficiently and accurately through 3D sparse convolution.

[0064] The first downsampling module can be understood as a module for performing downsampling processing. Downsampling refers to a process of reducing the number of points to a certain extent in the spatial dimension. Through downsampling, the number of points is reduced, thereby reducing the complexity of the data and improving the efficiency of the algorithm. The first downsampling module may include one or more downsampling units. A downsampling unit can be understood as one downsampling. The reduction in the number of points in different downsampling units may be the same or different. It can be understood that the downsampling process is actually a feature extraction process, and therefore, the first downsampling module includes a 3D sparse convolution processing step. The first downsampling module obtains the downsampled point cloud feature information by performing downsampling including 3D sparse convolution on the rasterized point cloud data.

[0065] The first upsampling module can be understood as a module for upsampling processing. The upsampling refers to the processing of increasing the number of points to a certain extent in the spatial dimension. The first upsampling module may include one or more upsampling units. An upsampling unit can be understood as one upsampling. The increase in the number of points of different upsampling units can be the same or different. Similar to the first downsampling module, the first upsampling module includes the processing steps of 3D sparse convolution.

[0066] Through the first downsampling module and the first upsampling module, a structure similar to Unet is formed, that is, a network structure including a downsampling path and an upsampling path. There is a jump connection structure between the network layers corresponding to the downsampling path and the upsampling path. The downsampling path is used to reduce the number of points, and the upsampling path is used to increase the number of points. For example, Figure 5 The schematic diagram of the model structure shown in the figure shows that the first downsampling module includes four downsampling units, and the first upsampling module includes two upsampling units. After being processed by the first downsampling module and the second downsampling module, the feature information of the point cloud to be decoded is obtained. The amplitude of downsampling and upsampling can be set according to the needs of the operating effect in the actual application scenario. For example, in some application scenarios, the data output from the last upsampling will be input into the voxel encoding module for processing. According to the needs of the operating effect, the feature information of the point cloud to be decoded that is finally output by the first upsampling module is one-fourth of the number of points in the initial cloud feature information.

[0067] In the above embodiment, the initial point cloud data is rasterized to obtain rasterized point cloud data. Figure 5 The sampling method similar to the Unet structure shown in the figure can extract point cloud feature information to be decoded, which can extract point cloud feature information containing multi-scale features, effectively improving the processing speed and accuracy of the model. In practical applications, the point cloud encoding module can be combined with the point cloud segmentation network of MinkNet and SPVCNN, and based on the above series of network structures, the segmentation model can be deepened and widened, and the parameters can be increased to the required scale, such as the scale can be comparable to vit-huge.

[0068] After obtaining the feature information of the point cloud to be decoded, the feature information of the point cloud to be decoded can be directly decoded, or the feature information of the point cloud to be decoded can be processed in some way before decoding, and this specification does not limit this.

[0069] For example, in one or more embodiments, in order to increase the processing speed and accuracy of the segmentation model, after obtaining the feature information of the point cloud to be decoded, a voxelization method is further used to process the point cloud features. Specifically, Figure 5As shown in the schematic diagram of the segmentation model structure, the segmentation model includes: a point cloud encoding module, a voxel encoding module, a hint encoding module and a segmentation decoding module. Based on the model structure, the initial point cloud data and the segmentation hint information are input into the segmentation model to perform the instance segmentation task and obtain the instance segmentation result, which may include:

[0070] Inputting the initial point cloud data into the point cloud encoding module, and performing feature extraction on the point cloud data based on 3D sparse convolution through the point cloud encoding module to obtain feature information of the point cloud to be decoded;

[0071] The voxel encoding module performs voxel encoding on the feature information of the point cloud to be decoded to obtain voxel encoding feature information;

[0072] The prompt encoding module extracts features from the segmentation prompt information to obtain segmentation prompt feature information;

[0073] The segmentation decoding module decodes the voxel encoding feature information through the segmentation hint feature information to obtain the instance segmentation result.

[0074] Voxel is a method of representing three-dimensional objects. The point cloud space is divided into grids in the three directions of length, width and height, and each grid is called a voxel. Voxel coding is the process of dividing the data space of point cloud data into a voxel and encoding the points within the voxel. The voxel coding module can be understood as a module for voxel coding. Through voxel coding, spatial convolution can be used efficiently, which is conducive to extracting multi-scale and multi-level local feature information, and the voxel-coded feature information after voxelization can occupy less memory and be stored in an orderly manner, which is conducive to reducing random memory access and improving data computing efficiency. Therefore, based on the model structure of the above embodiment, voxel coding is performed on the basis of the point cloud feature information to be decoded, which can achieve instance segmentation faster and more accurately.

[0075] Due to the rasterization and voxelization processing, the number of points is actually reduced, so that the points of the extracted feature information are sparse, which leads to the loss of some feature information to a certain extent. Therefore, in order to retain the information of the floating point cloud itself, in one or more embodiments of the embodiments of this specification, point-by-point feature extraction can also be performed on each point in the initial point cloud data to obtain point-by-point feature information of the initial point cloud data. Then, before completing the decoding, the feature information is supplemented by the point-by-point feature information of the initial point cloud data, so that the decoding is more accurate and instance segmentation can be achieved more accurately. Specifically, the decoding of the point cloud feature information to be decoded by the segmentation hint feature information to obtain the instance segmentation result includes:

[0076] The voxel encoding feature information and the segmentation hint feature information are subjected to feature cross-attention by a feature cross-attention module to obtain voxel hint interaction feature information;

[0077] The voxel hint interaction feature information is subjected to upsampling including 3D sparse convolution by a second upsampling module to obtain upsampled interaction feature information;

[0078] The upsampled interactive feature information is devoxelized by a voxel point cloud feature conversion module to obtain devoxelized interactive feature information;

[0079] Adding the devoxelized interactive feature information to the point-by-point feature information of the initial point cloud data to obtain dense interactive feature information;

[0080] The mask prediction module uses the learnable output mask and the dense interactive feature information to perform a dot multiplication to obtain the instance segmentation result.

[0081] The feature cross attention refers to the cross attention of voxel encoding feature information and segmentation hint feature information. Figure 5 As shown in FIG. 1 , the feature cross-attention module (also called a two-way transformer) can be understood as a module that performs feature cross-attention processing. The voxel cue interactive feature information is feature information obtained after the voxel encoding feature information and the segmentation cue feature information are cross-attended. Based on the feature cross-attention processing, the extracted feature information is more accurate.

[0082] Since the voxel cue interaction feature information is actually still sparse point feature information, in order to use the point-by-point feature information of the initial point cloud data to supplement the feature information later, it must also go through a second upsampling module (such as Figure 5 The second upsampling module performs upsampling on the two upsampling units (upsampling 3 and upsampling 4 shown), so that after devoxelization based on the upsampling, it can be added to the point-by-point feature information. The second upsampling module increases the number of points of voxel prompt interactive feature information to a certain extent in the spatial dimension. The second upsampling module may include one or more upsampling units. An upsampling unit can be understood as one upsampling. The increase in the number of points of different upsampling units can be the same or different. Similar to the first upsampling module, the second upsampling module includes a processing step of 3D sparse convolution.

[0083] Devoxelization refers to converting voxel-encoded feature information to the point cloud space corresponding to the initial point cloud data, so as to facilitate the subsequent addition of point-by-point feature information to the initial point cloud data. The voxel point cloud feature conversion module (also known as Voxel2Point) can be understood as a module that performs devoxelization processing. For example, the voxelized point cloud feature conversion module can convert points on the grid to the point cloud through linear interpolation of eight neighborhoods to achieve devoxelization processing.

[0084] The point-by-point feature information of the initial point cloud data is feature information of each point obtained by extracting features from each point in the initial point cloud data. It is understandable that since the initial point cloud data is rasterized, feature extracted and voxelized, some points will be merged, resulting in the difficulty of distinguishing points in the same grid, that is, the feature granularity of the points is not fine enough to a certain extent, and the point-by-point feature information can retain the most original fine-grained features of the point cloud. Therefore, by adding the devoxelized interactive feature information to the point-by-point feature information (such as Figure 5 The add processing step shown in the figure can obtain dense interactive feature information, that is, to supplement the information of each point of the floating point initial point cloud itself and then predict the mask, which can effectively improve the accuracy of the model. Among them, the point-by-point feature information of the initial point cloud data can be obtained by performing a one-by-one convolution on the initial point cloud data through a point-by-point feature information extraction module (also called PointMLPs). The point-by-point feature information (also called point feats) is added to the devoxelized interactive feature information in the segmentation decoding module, which can enhance the point differentiation, and then perform a point multiplication operation with the learnable output mask for prediction, which can effectively improve the accuracy of the segmentation model.

[0085] The learnable output mask (e.g. Figure 5 The tokens shown in the figure are used to filter out regions of no interest. The dot product is the scalar product of the product of two vectors. By performing dot product of the learnable output mask and the dense interactive feature information, regions of no interest can be ignored and regions of instances of interest can be obtained, thereby obtaining instance segmentation results.

[0086] In the above embodiment, feature information is supplemented by point-by-point feature information of the initial point cloud data, so that decoding is more accurate and instance segmentation can be achieved more precisely.

[0087] In the segmentation model provided in the embodiments of this specification, the segmentation hint information is used to guide the segmentation model to perform instance segmentation tasks. The segmentation hint information can be dense hint feature information (such as hints for brush and mask modes) or sparse hint feature information (such as hints for click and box selection modes). However, the feature fusion of dense hint feature information based on the attention mechanism will bring a large amount of position encoding calculations and reduce the model processing speed. Therefore, in one or more embodiments of this specification, the dense hint feature information is integrated into the point cloud features through feature addition, and the sparse hint feature information is integrated into the point cloud features through the cross-attention mechanism. In this way, when the sparse hint feature information is integrated into the point cloud features based on the cross-attention mechanism, weights can be assigned based on positions to obtain more accurate feature information. Based on this, the dense hint information can be obtained through general convolution calculations (such as Figure 5 Conv as shown in the figure is used for feature extraction without position encoding. Sparse hint information requires feature extraction including position encoding (such as Figure 5 Specifically, the segmentation prompt information is subjected to feature extraction to obtain segmentation prompt feature information, including:

[0088] In a case where the segmentation prompt information includes dense prompt information, performing feature extraction on the dense prompt information to obtain dense prompt feature information;

[0089] In the case where the segmentation hint feature information includes sparse hint information, feature extraction including position encoding is performed on the sparse hint information to obtain sparse hint feature information.

[0090] Correspondingly, the feature cross attention module performs feature interaction on the voxel encoding feature information and the segmentation hint feature information to obtain voxel hint interaction feature information, including:

[0091] In the case where the segmentation hint information includes dense hint information, adding and fusing the voxel encoding feature information with the dense hint feature information to obtain voxel hint fusion feature information;

[0092] In the case where the segmentation hint information includes sparse hint information, the voxel hint fusion feature information and the sparse hint feature information are subjected to feature cross-attention via a feature cross-attention module to obtain voxel hint interaction feature information.

[0093] The feature cross attention module can be understood as a module that performs feature cross attention calculation. The feature cross attention refers to the process of calculating the feature information related to the cue position by adjusting the attention of the voxel cue fusion feature information to be fused and the sparse cue feature information based on the position. Figure 5 The addition calculation shown in the figure is fused into the point cloud features, and the sparse hint feature information is fused through feature cross attention (such as Figure 5 The two-way transformer shown in Figure 5 is fused to the point cloud features, thereby effectively improving the processing speed and accuracy of the model.

[0094] It should be noted that, unlike images that are scaled to unify different sizes to the same size, point cloud data of different ranges in the embodiments of this specification cannot be scaled directly, because the point cloud coordinates are rasterized by physical resolution during feature extraction, and the point cloud data needs to maintain the physical spatial scale. In order to meet this demand, the embodiments of this specification do not limit the range of the input point cloud data, but in the position coding process of voxelization in the voxel coding module, the coordinates of the points are normalized in real time, which can effectively maintain the physical spatial scale of the point cloud data. Correspondingly, in the position coding process in the segmentation hint feature information extraction, the same normalization processing method is also used to normalize the coordinates of the points, so that the position coding method of the point cloud features is consistent with the position coding method of the hint features. When the hint features are used for decoding, accurate instance segmentation results are obtained based on the hint feature information with the same position coding method. Specifically, the feature extraction of the sparse hint information and the extraction of the sparse hint feature information include:

[0095] Normalizing the coordinates of the prompt point corresponding to the sparse prompt information based on a target parameter value to obtain the normalized coordinates of the prompt point, wherein the target parameter value is determined based on a numerical range corresponding to a maximum value and a minimum value of the three-dimensional coordinates of the point in the initial point cloud data;

[0096] Performing position encoding based on the normalized coordinates of the cue point to obtain a sparse cue position encoding;

[0097] Based on the sparse hint position encoding, obtaining sparse hint feature information;

[0098] The voxel encoding module performs voxel encoding on the feature information of the point cloud to be decoded to obtain voxel encoding feature information, including:

[0099] Normalizing the coordinates of each voxel corresponding to the point cloud feature information to be decoded based on the target parameter value to obtain the normalized coordinates of each voxel;

[0100] Performing position coding based on the normalized coordinates of each voxel point to obtain a voxel position coding;

[0101] Based on the voxel position encoding, voxel encoding feature information is obtained.

[0102] The target parameter value is determined based on the numerical range corresponding to the maximum and minimum values ​​of the three-dimensional coordinates of the points in the initial point cloud data. For example, the coordinates of each point in the initial point cloud data can be obtained, and the minimum MIN and maximum MAX of the three-dimensional coordinates of all points in the point cloud data can be determined. According to the minimum and maximum values ​​of X, Y and Z, the target parameter value R for normalized coordinates is determined, such as R = MAX-MIN or R = (MAX-MIN) / 2. The specific calculation method of R is determined according to the normalized calculation method. For example, for the calculation method of R = MAX-MIN, the calculation method based on the target parameter value R for normalization is: according to |X-MIN| / R*2-1, |Y-MIN| / R*2-1, |Z-MIN| / R*2-1, 1 / R, the normalized coordinates are obtained. Through normalization, the coordinates of the points can be unified to between (-1, 1).

[0103] The position encoding refers to encoding the position coordinates of a point into a vector, the purpose of which is to help the model better understand and process the spatial relationship of the data. Common forms of position encoding are sine and cosine encoding, which can be implemented by referring to general position encoding methods and will not be described here.

[0104] For example, after obtaining the sparse cue position code of the cue point, the feature information extracted by convolution of the sparse cue position code of the cue point and the sparse cue information corresponding to the cue point can be added to obtain the sparse cue feature information of the cue point. For example, for cue point A, the sparse cue position code A1 is obtained, and the feature information extracted by convolution of the sparse cue information corresponding to cue point A is A2, then A1 and A2 can be added to obtain the sparse cue feature information of cue point A.

[0105] For another example: after obtaining the voxel position code of the voxel midpoint, the voxel position code of the voxel midpoint and the feature information of the point cloud to be decoded can be added to obtain the voxel code feature information of the point. For example: for a voxel midpoint B, the voxel position code B1 is obtained, and the feature information of the point cloud to be decoded corresponding to point B is B2, then B1 and B2 can be added to obtain the voxel code feature information of the voxel midpoint B.

[0106] In the above embodiment, the range of the input point cloud data is not restricted. Instead, in the voxel encoding process performed in the voxel encoding module, the coordinates of the points are normalized and then position encoded. Moreover, in the feature extraction of the segmentation prompt information, the coordinates of the prompt points of the sparse prompts (such as the point selection mode and the box selection mode) are normalized in real time and then position encoded. In this way, the physical space scale of the point cloud data can be effectively maintained, and the position encoding method of the point cloud features is kept consistent with the position encoding method of the prompt features. When the prompt features are used for decoding, accurate instance segmentation results are obtained based on the prompt feature information with the same position encoding method.

[0107] In the method provided in one or more embodiments of this specification, the segmentation model may include: a point cloud encoding module (such as Figure 5 point encoder as shown), voxel encoding module (such as Figure 5 voxel embedding ing as shown), prompt encoding module (such as Figure 5 prompt encoder) and segmentation decoding module (as shown Figure 5 In order to improve the processing speed of the model, in the segmentation model, for the same point cloud data, the voxel encoding feature information extracted by the voxel encoding module can be reused, and the prompt encoding module and the segmentation decoding module can run in real time. Figure 5 The model result shown in the figure, after obtaining the voxel encoding feature information, the method further includes:

[0108] storing the voxel encoding feature information in a memory;

[0109] When new object segmentation prompt information is obtained again, obtaining the voxel encoding feature information from the memory;

[0110] For the new object segmentation hint information, the hint encoding module is entered again to extract features from the segmentation hint information to obtain segmentation hint feature information, and the newly obtained segmentation hint feature information is used in the segmentation decoding module to decode the voxel encoding feature information obtained from the memory to obtain a new instance segmentation result.

[0111] Based on the above embodiment, this specification also provides another segmentation processing method embodiment. Figure 6 FIG. 2 shows a flow chart of another segmentation processing method provided by an embodiment of the present specification. Figure 6 As shown, the method is applied to a server, comprising:

[0112] Step 602: receiving a first segmentation request sent by a client device, wherein the first segmentation request is sent by the client device in response to a user inputting segmentation prompt information for initial point cloud data in a point cloud data interaction interface.

[0113] Use the above Figure 3 The interface example shown in the figure shows the user Figure 3 After receiving the point cloud data shown in (a) in the figure, the segmentation prompt information (such as the prompt of any mode among the click mode, the frame selection mode, the brush mode and the mask mode) submitted by the user for the first time through the interface is received.

[0114] Step 604: Based on the first segmentation request, determine initial point cloud data and segmentation prompt information.

[0115] For example, when the user clicks on the rear of a car, the server determines the segmentation prompt information corresponding to the rear of the car and the point cloud data displayed on the current interface.

[0116] Step 606: Input the initial point cloud data into the point cloud encoding module, and perform feature extraction on the point cloud data based on 3D sparse convolution through the point cloud encoding module to obtain feature information of the point cloud to be decoded.

[0117] Step 608: The voxel encoding module performs voxel encoding on the feature information of the point cloud to be decoded to obtain voxel encoding feature information, and the voxel encoding feature information is stored in the memory.

[0118] In the first instance segmentation task performed by the segmentation model for the point cloud data, the voxel encoding feature information obtained by the voxel encoding module in the segmentation model will be stored in the memory. Of course, the voxel encoding feature information can also be stored in the memory in a task after the first time, and this specification does not limit this.

[0119] Step 610: The prompt encoding module performs feature extraction on the segmentation prompt information to obtain segmentation prompt feature information.

[0120] Step 612: The segmentation decoding module decodes the voxel encoding feature information through the segmentation hint feature information to obtain the instance segmentation result.

[0121] Following the previous example, the server inputs the segmentation prompt information corresponding to the rear position of the vehicle and the point cloud data into the segmentation model and performs the instance segmentation task to obtain the following: Figure 3 The instance segmentation result containing several car instances shown in (a).

[0122] Step 614: Return the instance segmentation result to the client device.

[0123] Step 616: receiving a second segmentation request sent by the client device, wherein the second segmentation request is sent by the client device in response to the user inputting segmentation prompt information again for the initial point cloud data in the point cloud data interaction interface.

[0124] Continuing with the previous example, if the user thinks that the car segmentation is not satisfactory, such as Figure 3 If the position of some front lights shown in (b) is not identified, the user can submit the segmentation prompt information again.

[0125] Step 618: Determine new segmentation prompt information based on the second segmentation request.

[0126] For example, the user may click on the position of the front headlight of the car, and the server will correspondingly determine the segmentation prompt information corresponding to the position of the front headlight.

[0127] Step 620: Input the new segmentation hint information into the segmentation model, obtain voxel encoding feature information from the memory, and re-enter step 610. The segmentation model performs feature extraction on the new segmentation hint information, and decodes the voxel encoding feature information obtained from the memory based on the subsequent step 612 to obtain a new instance segmentation result.

[0128] For example, the hint encoding module of the segmentation model extracts the segmentation hint feature information corresponding to the front headlight position in real time, reuses the voxel encoding feature information obtained from the memory, and uses the segmentation hint feature information of the front headlight position calculated in real time to decode the reused voxel encoding feature information. Figure 3 Based on the instance segmentation result shown in (b), the front lights are further identified and obtained. Figure 3 The new instance segmentation result shown in (b).

[0129] The new instance segmentation result is returned to the client device.

[0130] It can be seen from the above embodiments that in order to improve the model processing speed, in the segmentation model, for the same point cloud data, the voxel coding feature information extracted by the voxel coding module can be reused, and the coding module and the segmentation decoding module can run in real time, thereby effectively improving the speed at which the client device obtains the instance segmentation results.

[0131] Corresponding to the above method embodiment, this specification also provides another segmentation processing method embodiment, Figure 7 FIG. 2 shows a flow chart of another segmentation processing method provided by an embodiment of the present specification. Figure 7 As shown, the method is applied to a client device, comprising:

[0132] Step 702: receiving segmentation prompt information input by the user through the point cloud data interaction interface.

[0133] For example, the point cloud data interaction interface may be a point cloud annotation interface. The user may input segmentation prompt information through any one or more prompt modes such as click mode, box selection mode, brush mode, mask mode, etc.

[0134] Step 704: Based on the segmentation prompt information, a segmentation request is sent to the server, wherein the segmentation request carries the segmentation prompt information, so that the server determines the corresponding initial point cloud data and segmentation prompt information based on the segmentation request, and inputs the initial point cloud data and the segmentation prompt information into the segmentation model to perform the instance segmentation task and obtain the instance segmentation result.

[0135] For the specific implementation method of the server performing the instance segmentation task, please refer to the description of the aforementioned embodiment, and this embodiment will not be described in detail here.

[0136] Step 706: Receive the instance segmentation result returned by the server.

[0137] For example, in a point cloud annotation scenario, the server may also return annotation information of objects corresponding to each mask of the instance segmentation result.

[0138] Step 708: Display corresponding information on the point cloud data interaction interface according to the instance segmentation result.

[0139] For example, in a point cloud annotation scenario, the client device may display the objects corresponding to each mask and their annotation information on the point cloud data interaction interface.

[0140] For example, the segmentation processing method provided in this embodiment can be applied to point cloud annotation of autonomous driving scenarios. By clicking or selecting objects to be segmented, such as motor vehicles, non-motor vehicles, pedestrians, etc., in the point cloud annotation interface, the segmentation model can segment example results containing motor vehicles, non-motor vehicles, pedestrians, etc., and further identify the annotation information of each object. Based on the annotation information of each object, it is ensured that the vehicle can plan the optimal driving route according to the identified annotation information to achieve the purpose of autonomous driving.

[0141] Corresponding to the above method embodiment, this specification also provides a segmentation processing device embodiment, Figure 8 FIG. 2 shows a schematic diagram of a segmentation processing device provided by an embodiment of the present specification. Figure 8 As shown, the device comprises:

[0142] The data determination module 802 is configured to determine initial point cloud data and segmentation prompt information.

[0143] The task execution module 804 is configured to input the initial point cloud data and the segmentation prompt information into a segmentation model to perform an instance segmentation task and obtain an instance segmentation result.

[0144] The segmentation model performs feature extraction on the initial point cloud data based on 3D sparse convolution to obtain feature information of the point cloud to be decoded, performs feature extraction on the segmentation hint information to obtain segmentation hint feature information, decodes the feature information of the point cloud to be decoded through the segmentation hint feature information, and obtains the instance segmentation result.

[0145] In one or more embodiments, the segmentation model includes: a point cloud encoding module, a voxel encoding module, a hint encoding module and a segmentation decoding module.

[0146] The point cloud encoding module is configured to perform feature extraction on the point cloud data based on 3D sparse convolution to obtain feature information of the point cloud to be decoded;

[0147] The voxel encoding module is configured to perform voxel encoding on the feature information of the point cloud to be decoded to obtain voxel encoding feature information;

[0148] The prompt encoding module is configured to extract features from the segmentation prompt information to obtain segmentation prompt feature information;

[0149] The segmentation decoding module is configured to decode the voxel encoding feature information through the segmentation hint feature information to obtain the instance segmentation result.

[0150] In one or more embodiments, the point cloud encoding module includes:

[0151] A preprocessing module is configured to rasterize the initial point cloud data to obtain rasterized point cloud data;

[0152] A first downsampling module performs downsampling including 3D sparse convolution on the rasterized point cloud data to obtain downsampled point cloud feature information;

[0153] The first upsampling module performs upsampling including 3D sparse convolution on the downsampled point cloud feature information to obtain the point cloud feature information to be decoded.

[0154] In one or more embodiments, the segmentation decoding module includes:

[0155] A feature cross attention module is configured to perform feature cross attention on the voxel encoding feature information and the segmentation hint feature information to obtain voxel hint interaction feature information;

[0156] A second upsampling module is configured to perform upsampling including 3D sparse convolution on the voxel prompt interaction feature information to obtain upsampled interaction feature information;

[0157] a voxel point cloud feature conversion module, configured to devoxelize the upsampled interactive feature information to obtain devoxelized interactive feature information;

[0158] A feature adding module is configured to add the devoxelized interactive feature information to the point-by-point feature information of the initial point cloud data to obtain dense interactive feature information;

[0159] The mask prediction module is configured to perform a dot product between the learnable output mask and the dense interactive feature information to obtain the instance segmentation result.

[0160] In one or more embodiments, the segmentation hint feature information includes: dense hint feature information and / or sparse hint feature information.

[0161] The prompt encoding module comprises:

[0162] a hint convolution module, configured to, when the segmentation hint information includes dense hint information, perform feature extraction on the dense hint information to obtain dense hint feature information;

[0163] a hint encoding module, configured to, when the segmentation hint feature information includes sparse hint information, perform feature extraction including position encoding on the sparse hint information to obtain sparse hint feature information;

[0164] The device also includes:

[0165] a dense hint adding module, configured to add and fuse the voxel encoding feature information with the dense hint feature information when the segmentation hint information includes dense hint information, so as to obtain voxel hint fused feature information;

[0166] The feature cross-attention module is configured to perform feature cross-attention on the voxel hint fusion feature information and the sparse hint feature information through the feature cross-attention module to obtain voxel hint interaction feature information when the segmentation hint information includes sparse hint information.

[0167] In one or more embodiments, the prompt encoding module is configured to normalize the coordinates of the prompt point corresponding to the sparse prompt information based on a target parameter value to obtain the normalized coordinates of the prompt point, the target parameter value is determined based on a numerical range corresponding to the maximum value and the minimum value of the three-dimensional coordinates of the point in the initial point cloud data, perform position encoding based on the normalized coordinates of the prompt point to obtain a sparse prompt position encoding, and obtain sparse prompt feature information based on the sparse prompt position encoding;

[0168] The voxel encoding module is configured to normalize the coordinates of each voxel point corresponding to the point cloud feature information to be decoded based on the target parameter value to obtain the normalized coordinates of each voxel point, perform position encoding based on the normalized coordinates of each voxel point to obtain voxel position encoding, and obtain voxel encoding feature information based on the voxel position encoding.

[0169] In one or more embodiments, the voxel encoding module is further configured to store the voxel encoding feature information in a memory after obtaining the voxel encoding feature information.

[0170] The device further includes: a feature reuse module configured to obtain the voxel encoding feature information from the memory when new object segmentation prompt information is obtained again.

[0171] The hint encoding module is further configured to, for the new object segmentation hint information, again enter the step of extracting features from the segmentation hint information to obtain segmentation hint feature information. The segmentation decoding module is further configured to use the newly obtained segmentation hint feature information to decode the voxel encoding feature information obtained from the memory to obtain a new instance segmentation result.

[0172] The above is a schematic scheme of a segmentation processing device of this embodiment. It should be noted that the technical scheme of the segmentation processing device and the technical scheme of the segmentation processing method described above are of the same concept, and the details not described in detail in the technical scheme of the segmentation processing device can be referred to the description of the technical scheme of the segmentation processing method described above.

[0173] Corresponding to the above method embodiment, this specification also provides a segmentation model training method embodiment, Fig. 9 FIG. 1 is a flow chart of a segmentation model training method provided by an embodiment of the present specification. Fig. 9 As shown, the method may include:

[0174] Step 902: Obtain an instance segmentation training sample set, wherein the instance segmentation training sample set includes: initial point cloud data samples, segmentation hint samples, and corresponding instance segmentation true values.

[0175] The segmentation training sample set may include one or more initial point cloud data samples and segmentation hint samples and instance segmentation truth values ​​corresponding to each initial point cloud data sample. The initial point cloud data sample is a point cloud data sample used to train the segmentation model as the input of the segmentation model. The segmentation hint sample is a sample used to train the segmentation model as a prompt of the segmentation model. The instance segmentation truth value is the ideal instance segmentation result truth value that should be output when the initial point cloud data sample performs the instance segmentation task according to the segmentation hint sample. The initial point cloud data sample, the segmentation hint sample and the corresponding instance segmentation truth value can be obtained based on the historical data of the historical instance segmentation task of the historical point cloud data, or can be obtained from other point cloud data platforms, and this specification does not limit this.

[0176] Step 904: Use the instance segmentation training sample set to train the segmentation model for the instance segmentation task, and obtain a trained segmentation model.

[0177] Among them, the segmentation model performs feature extraction on the initial point cloud data samples based on 3D sparse convolution to obtain the point cloud feature information to be decoded, performs feature extraction on the segmentation hint samples to obtain segmentation hint feature information, decodes the point cloud feature information to be decoded through the segmentation hint feature information, and obtains the instance segmentation prediction result.

[0178] The training process of the segmentation model for the instance segmentation task may include: inputting the initial point cloud data sample and the segmentation hint sample into the segmentation model to perform the instance segmentation task, obtaining the instance segmentation prediction result, and adjusting the model parameters of the segmentation model based on the difference between the instance segmentation prediction result and the instance segmentation true value.

[0179] In one or more embodiments of the present specification, the segmentation model is a model that can reuse the feature information of the point cloud to be decoded, and has the characteristic of fast processing speed. Based on this, in the training stage of the segmentation model, for the same initial point cloud data sample, in the process of multiple prompt training, not only can the feature information of the point cloud to be decoded be reused, but the model parameters can be not adjusted during the multiple prompt input process, but the model parameter update amplitude is accumulated. Once the multiple prompt inputs of an initial point cloud data sample are processed, the model parameters are adjusted once for the multiple prompt inputs of the initial point cloud data sample, thereby reducing the number of model parameter adjustments and improving the model training efficiency. Specifically, the adjustment of the model parameters of the segmentation model based on the difference between the instance segmentation prediction result and the instance segmentation true value includes:

[0180] For each prompt input of any initial point cloud data sample, the prediction loss corresponding to the prompt input is calculated based on the difference between the instance segmentation prediction result corresponding to the prompt input and the instance segmentation true value;

[0181] For each prompt input of any initial point cloud data sample, gradient back propagation is performed based on the prediction loss corresponding to the prompt input to determine the model parameter update amplitude, and the model parameter update amplitudes corresponding to each prompt input of any initial point cloud data sample are accumulated to obtain the model parameter cumulative update amplitude corresponding to any initial point cloud data sample;

[0182] After the last prompt input of any of the initial point cloud data samples, the model parameters of the segmentation model are adjusted based on the cumulative update amplitude of the model parameters corresponding to any of the initial point cloud data samples.

[0183] Corresponding to the above method embodiment, this specification also provides a segmentation model training device embodiment, Fig.10 FIG. 1 is a schematic diagram showing the structure of a segmentation model training device provided by an embodiment of the present specification. Fig.10 As shown, the device comprises:

[0184] The sample acquisition module 1002 is configured to obtain an instance segmentation training sample set, wherein the instance segmentation training sample set includes: an initial point cloud data sample, a segmentation hint sample, and a corresponding instance segmentation true value.

[0185] The model training module 1004 is configured to use the instance segmentation training sample set to train the segmentation model for the instance segmentation task, thereby obtaining a trained segmentation model;

[0186] Among them, the segmentation model performs feature extraction on the initial point cloud data samples based on 3D sparse convolution to obtain the point cloud feature information to be decoded, performs feature extraction on the segmentation hint samples to obtain segmentation hint feature information, decodes the point cloud feature information to be decoded through the segmentation hint feature information, and obtains the instance segmentation prediction result.

[0187] The above is a schematic scheme of a segmentation model training device of this embodiment. It should be noted that the technical scheme of the segmentation model training device and the technical scheme of the above-mentioned segmentation model training method belong to the same concept, and the details not described in detail in the technical scheme of the segmentation model training device can be referred to the description of the technical scheme of the above-mentioned segmentation model training method.

[0188] Fig.11The block diagram of a computing device 1100 according to one embodiment of the present specification is shown. The components of the computing device 1100 include but are not limited to a memory 1110 and a processor 1120. The processor 1120 is connected to the memory 1110 via a bus 1130, and a database 1150 is used to store data.

[0189] The computing device 1100 also includes an access device 1140 that enables the computing device 1100 to communicate via one or more networks 1160. Examples of these networks include a public switched telephone network (PSTN), a local area network (LAN), a wide area network (WAN), a personal area network (PAN), or a combination of communication networks such as the Internet. The access device 1140 may include one or more of any type of network interface, wired or wireless (e.g., a network interface card (NIC)), such as an IEEE 802.11 wireless local area network (WLAN) wireless interface, a World Wide Interoperability for Microwave Access (Wi-MAX) interface, an Ethernet interface, a Universal Serial Bus (USB) interface, a cellular network interface, a Bluetooth interface, and a Near Field Communication (NFC).

[0190] In one embodiment of the present specification, the above components of the computing device 1100 and Fig.11 Other components not shown in the figure may also be connected to each other, for example, via a bus. It should be understood that Fig.11 The computing device structure block diagram shown is only for the purpose of illustration, and is not intended to limit the scope of this specification. Those skilled in the art can add or replace other components as needed.

[0191] The computing device 1100 may be any type of stationary or mobile computing device, including a mobile computer or mobile computing device (e.g., a tablet computer, a personal digital assistant, a laptop computer, a notebook computer, a netbook, etc.), a mobile phone (e.g., a smart phone), a wearable computing device (e.g., a smart watch, smart glasses, etc.), or other types of mobile devices, or a stationary computing device such as a desktop computer or a personal computer (PC). The computing device 1100 may also be a mobile or stationary server.

[0192] Among them, the memory 1110 is used to store computer programs / instructions, and the processor 1120 is used to execute the computer programs / instructions stored in the memory 1110. When the computer program / instructions are executed by the processor, the steps of the above-mentioned segmentation processing method or segmentation model training method are implemented.

[0193] The above is a schematic scheme of a computing device of this embodiment. It should be noted that the technical scheme of the computing device and the technical scheme of the above-mentioned segmentation processing method or segmentation model training method belong to the same concept, and the details not described in detail in the technical scheme of the computing device can be referred to the description of the technical scheme of the above-mentioned segmentation processing method or segmentation model training method.

[0194] An embodiment of the present specification also provides a computer-readable storage medium storing a computer program / instruction, which implements the steps of the above-mentioned segmentation processing method or segmentation model training method when executed by a processor.

[0195] The above is a schematic scheme of a computer-readable storage medium of this embodiment. It should be noted that the technical scheme of the storage medium and the technical scheme of the above-mentioned segmentation processing method or segmentation model training method belong to the same concept, and the details not described in detail in the technical scheme of the storage medium can be referred to the description of the technical scheme of the above-mentioned segmentation processing method or segmentation model training method.

[0196] An embodiment of the present specification also provides a computer program product, including a computer program / instruction, which implements the steps of the above-mentioned segmentation processing method or segmentation model training method when executed by a processor.

[0197] The above is a schematic scheme of a computer program product of this embodiment. It should be noted that the technical scheme of the computer program product and the technical scheme of the above-mentioned segmentation processing method or segmentation model training method belong to the same concept, and the details not described in detail in the technical scheme of the computer program product can be referred to the description of the technical scheme of the above-mentioned segmentation processing method or segmentation model training method.

[0198] The above is a description of a specific embodiment of the specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0199] The computer program / instruction includes computer program code, which may be in source code form, object code form, executable file or some intermediate form, etc. The computer readable medium may include: any entity or device capable of carrying the computer program code, recording medium, USB flash drive, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electric carrier signal, telecommunication signal and software distribution medium, etc. It should be noted that the content contained in the computer readable medium may be appropriately increased or decreased according to the requirements of patent practice. For example, in some regions, according to patent practice, computer readable media do not include electric carrier signals and telecommunication signals.

[0200] It should be noted that, for the above-mentioned method embodiments, for the sake of simplicity of description, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the embodiments of this specification are not limited by the order of the actions described, because according to the embodiments of this specification, some steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the embodiments of this specification.

[0201] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0202] The preferred embodiments of this specification disclosed above are only used to help explain this specification. The optional embodiments do not describe all the details in detail, nor do they limit the invention to only the specific implementation methods described. Obviously, many modifications and changes can be made according to the content of the embodiments of this specification. This specification selects and specifically describes these embodiments in order to better explain the principles and practical applications of the embodiments of this specification, so that technicians in the relevant technical field can well understand and use this specification. This specification is only limited by the claims and their full scope and equivalents.

Claims

1. A segmentation processing method, comprising: Determine the initial point cloud data and segmentation prompt information; Inputting the initial point cloud data and the segmentation prompt information into a segmentation model to perform an instance segmentation task, thereby obtaining an instance segmentation result; The segmentation model performs feature extraction on the initial point cloud data based on 3D sparse convolution to obtain feature information of the point cloud to be decoded, performs feature extraction on the segmentation hint information to obtain segmentation hint feature information, decodes the feature information of the point cloud to be decoded through the segmentation hint feature information, and obtains the instance segmentation result.

2. The method according to claim 1, wherein the segmentation model comprises: Point cloud encoding module, voxel encoding module, hint encoding module and segmentation decoding module; The step of inputting the initial point cloud data and the segmentation prompt information into a segmentation model to perform an instance segmentation task and obtain an instance segmentation result includes: Inputting the initial point cloud data into the point cloud encoding module, and performing feature extraction on the point cloud data based on 3D sparse convolution by the point cloud encoding module to obtain feature information of the point cloud to be decoded; The voxel encoding module performs voxel encoding on the feature information of the point cloud to be decoded to obtain voxel encoding feature information; The prompt encoding module extracts features from the segmentation prompt information to obtain segmentation prompt feature information; The segmentation decoding module decodes the voxel encoding feature information through the segmentation hint feature information to obtain the instance segmentation result.

3. According to the method of claim 1 or 2, the step of extracting features from the initial point cloud data based on 3D sparse convolution to obtain feature information of the point cloud to be decoded comprises: The initial point cloud data is rasterized by a preprocessing module to obtain rasterized point cloud data; The rasterized point cloud data is downsampled including 3D sparse convolution by a first downsampling module to obtain downsampled point cloud feature information; The downsampled point cloud feature information is subjected to upsampling including 3D sparse convolution by a first upsampling module to obtain the point cloud feature information to be decoded.

4. The method according to claim 2, wherein decoding the to-be-decoded point cloud feature information by using the segmentation hint feature information to obtain the instance segmentation result comprises: The voxel encoding feature information and the segmentation hint feature information are subjected to feature cross-attention by a feature cross-attention module to obtain voxel hint interaction feature information; The voxel hint interaction feature information is subjected to upsampling including 3D sparse convolution by a second upsampling module to obtain upsampled interaction feature information; The upsampled interactive feature information is devoxelized by a voxel point cloud feature conversion module to obtain devoxelized interactive feature information; Adding the devoxelized interactive feature information to the point-by-point feature information of the initial point cloud data to obtain dense interactive feature information; The mask prediction module uses the learnable output mask and the dense interactive feature information to perform a dot multiplication to obtain the instance segmentation result.

5. The method according to claim 4, wherein the segmentation hint feature information comprises: Dense cue feature information and / or sparse cue feature information; The step of extracting features from the segmentation prompt information to obtain segmentation prompt feature information includes: In a case where the segmentation prompt information includes dense prompt information, performing feature extraction on the dense prompt information to obtain dense prompt feature information; In a case where the segmentation hint feature information includes sparse hint information, performing feature extraction including position coding on the sparse hint information to obtain sparse hint feature information; The feature cross-attention module performs feature cross-attention on the voxel encoding feature information and the segmentation hint feature information to obtain voxel hint interaction feature information, including: In the case where the segmentation hint information includes dense hint information, adding and fusing the voxel encoding feature information with the dense hint feature information to obtain voxel hint fusion feature information; In the case where the segmentation hint information includes sparse hint information, the voxel hint fusion feature information and the sparse hint feature information are subjected to feature cross-attention via a feature cross-attention module to obtain voxel hint interaction feature information.

6. The method according to claim 5, wherein the step of extracting features from the sparse hint information to extract the sparse hint feature information comprises: Normalizing the coordinates of the prompt point corresponding to the sparse prompt information based on a target parameter value to obtain the normalized coordinates of the prompt point, wherein the target parameter value is determined based on a numerical range corresponding to a maximum value and a minimum value of the three-dimensional coordinates of the point in the initial point cloud data; Performing position encoding based on the normalized coordinates of the cue point to obtain a sparse cue position encoding; Based on the sparse hint position encoding, obtaining sparse hint feature information; The voxel encoding module performs voxel encoding on the feature information of the point cloud to be decoded to obtain voxel encoding feature information, including: Normalizing the coordinates of each voxel corresponding to the point cloud feature information to be decoded based on the target parameter value to obtain the normalized coordinates of each voxel; Performing position coding based on the normalized coordinates of each voxel point to obtain a voxel position coding; Based on the voxel position encoding, voxel encoding feature information is obtained.

7. The method according to claim 2, after obtaining the voxel encoding feature information, further comprising: storing the voxel encoding feature information in a memory; When new object segmentation prompt information is obtained again, obtaining the voxel encoding feature information from the memory; For the new object segmentation hint information, the hint encoding module is entered again to extract features from the segmentation hint information to obtain segmentation hint feature information, and the newly obtained segmentation hint feature information is used in the segmentation decoding module to decode the voxel encoding feature information obtained from the memory to obtain a new instance segmentation result.

8. A segmentation model training method, comprising: Obtaining an instance segmentation training sample set, wherein the instance segmentation training sample set includes: an initial point cloud data sample, a segmentation hint sample, and a corresponding instance segmentation true value; Using the instance segmentation training sample set, training the segmentation model for the instance segmentation task to obtain a trained segmentation model; Among them, the segmentation model performs feature extraction on the initial point cloud data samples based on 3D sparse convolution to obtain the point cloud feature information to be decoded, performs feature extraction on the segmentation hint samples to obtain segmentation hint feature information, decodes the point cloud feature information to be decoded through the segmentation hint feature information, and obtains the instance segmentation prediction result.

9. A computing device comprising: Memory and processor; The memory is used to store computer programs / instructions, and the processor is used to execute the computer programs / instructions. When the computer program / instructions are executed by the processor, the steps of the method according to any one of claims 1 to 8 are implemented.

10. A computer-readable storage medium storing a computer program / instruction, wherein the computer program / instruction, when executed by a processor, implements the steps of the method according to any one of claims 1 to 8.

11. A computer program product, comprising a computer program / instruction, which implements the steps of the method according to any one of claims 1 to 8 when executed by a processor.