Open vocabulary semantic segmentation method and device based on three-dimensional Gaussian scene

By reconstructing a three-dimensional scene with rich semantic information in a three-dimensional Gaussian scene and introducing optimized semantic space hyperplane fine-tuning segmentation results, the problem of semantic segmentation speed and accuracy bottlenecks in the existing technology is solved, and more accurate open vocabulary semantic segmentation is achieved. Effect.

CN118887665APending Publication Date: 2024-11-01XIAMEN UNIV

Patent Information

Application Number
CN202410837317.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-26
Publication Date
2024-11-01

AI Technical Summary

Technical Problem

The existing open vocabulary semantic segmentation method based on NeRF has bottlenecks in terms of speed and accuracy, and due to the need for pixel-level semantic features, the semantic boundaries are blurred and the target area cannot be accurately positioned.

Method used

Using an open vocabulary semantic segmentation method based on three-dimensional Gaussian scenes, a three-dimensional scene with rich semantic information is reconstructed through picture data containing camera poses, and fine-tuned the segmentation results with optimized semantic spatial hyperplane to dynamically adjust the similarity threshold, combined with The trainable feature clustering codebook converts high-dimensional features into low-dimensional vectors to improve the accuracy of semantic segmentation.

Benefits of technology

It realizes dynamic adjustment and more precise segmentation effect that does not require experience to set the pixel-text similarity threshold, which reduces the cost of calculation and storage and improves the accuracy of semantic segmentation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118887665A_ABST
    Figure CN118887665A_ABST
Patent Text Reader

Abstract

The invention discloses an open vocabulary semantic segmentation method and device based on a three-dimensional Gaussian scene, and relates to the technical field of computer vision. Firstly, a three-dimensional Gaussian scene without semantic information is trained, then pictures of a data set are preprocessed, and a semantic feature map is extracted; then training open vocabulary semantic features of the scene in the three-dimensional Gaussian scene by using the semantic feature map, and outputting a prediction feature map corresponding to the picture under each view angle; and after training is completed, semantic segmentation is regarded as dichotomy, an optimizable semantic space hyperplane is introduced, the optimizable semantic space hyperplane is finely adjusted by using a prediction result of the RES model, and a semantic segmentation result is output. According to the open vocabulary semantic segmentation method and device based on the three-dimensional Gaussian scene, an optimizable semantic space hyperplane method is provided, a pixel-text similarity threshold value set based on experience is not needed, and dynamic adjustment of the similarity threshold value and a more accurate segmentation effect can be achieved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer vision technology, and in particular to an open vocabulary semantic segmentation method and device based on a three-dimensional Gaussian scene. Background Art

[0002] In recent years, with the advent of the big data era and the improvement of computer storage and computing power, we have witnessed an explosive growth in visual information data. This information includes rich multimedia data, such as static images, dynamic images, video files, audio files, etc., which are closely related to people's lives. 3D reconstruction is a long-standing challenging problem in the field of computer vision. 3D reconstruction can restore 3D scenes from 2D images or videos, helping us understand history, design buildings, diagnose diseases, create virtual reality experiences, and so on. Recently, new methods based on deep learning, such as Neural Radiance Field (NeRF) and 3D Gaussian Splatting (3DGS), have significantly improved the quality and efficiency of reconstruction and synthesis, and many new application scenarios have emerged.

[0003] 3D scene understanding is a key research direction in the field of computer vision, which aims to enable computers to understand objects, environments and their relationships in 3D scenes. It enables computers to understand the world like humans and promotes the development of intelligent applications in many fields such as robotics, autonomous driving, virtual reality and augmented reality, construction, industrial manufacturing, and medical care. For example, autonomous vehicles can use 3D scene understanding technology to identify obstacles such as pedestrians, vehicles, and traffic signs on the road and make safe driving decisions; robots can use 3D scene understanding technology to identify objects, obstacles, and target locations, and autonomously plan movement paths. With the rapid development of technology, people's demand for advanced 3D scene understanding is becoming increasingly urgent. This trend highlights the importance of open vocabulary query tasks, which are designed to process and respond to user queries expressed in natural language, allowing users to interact with the digital world more naturally and flexibly.

[0004] Due to the lack of 3D scene datasets with a large number of semantic annotations, previous open vocabulary semantic segmentation work has focused on NeRF-based scenes. The multimodal knowledge of open vocabulary is extracted and integrated into NeRF through existing visual language models (such as CLIP and LSeg). However, due to the implicit representation of NeRF, these methods encounter bottlenecks in both speed and accuracy, which greatly limits their practicality. Recently, 3DGS has emerged as an effective 3D scene representation method. Many semantic embedding works are based on 3DGS, achieving efficient semantic field reconstruction and semantic segmentation. LangSplat et al. explored the integration of pixel-level feature vectors from 2D models such as LSeg and CLIP into a 3D Gaussian framework to achieve 3D open vocabulary query and scene area localization. However, most existing methods require the use of pixel-level semantic features, which is incompatible with the way CLIP encodes the entire image into a global semantic feature. To this end, some studies have borrowed multi-scale feature pyramids and combined CLIP embedding from image cropping. However, this method will lead to blurred semantic boundaries, which cannot be solved even after introducing DINO to constrain the correlation between semantics and object boundaries, ultimately resulting in unsatisfactory semantic segmentation results.

[0005] Thanks to visual language models such as CLIP and APE that are good at spatial alignment of image and text features, the trained three-dimensional semantic field can support open vocabulary query and semantic segmentation using any natural language description. Most existing methods implement open vocabulary query by calculating the cosine similarity between semantic features and text features. The calculation formula is as follows:

[0006] in and Represent image features and text features respectively. After normalizing the features, the score can be simplified to The higher the score, the greater the similarity between the two features. By manually setting the empirical threshold , you can keep scores higher than region, thereby achieving open word semantic segmentation. However, this empirically set threshold Arbitrary queries are not applicable to all scenarios, often resulting in failure to accurately locate the target area. Summary of the invention

[0007] The technical problem to be solved by the present invention is to provide a method and device for semantic segmentation of open vocabulary based on three-dimensional Gaussian scenes, reconstruct a three-dimensional scene with semantic information by processing image data containing camera postures, and realize semantic segmentation of open vocabulary through semantic features. At the same time, the segmentation results are fine-tuned using an optimizable semantic space hyperplane to obtain a more accurate segmentation effect.

[0008] In a first aspect, the present invention provides an open vocabulary semantic segmentation method based on a three-dimensional Gaussian scene, comprising: Step 1: Scene and image preprocessing: Use the data set containing camera poses to train a 3D Gaussian scene without semantics. Preprocess the images in the data set to extract the semantic feature map corresponding to each image. Then perform K-means clustering on each pixel in the semantic feature map, and use the clustering result as the initial value of the trainable feature clustering codebook. Step 2, semantic training process of three-dimensional Gaussian scene: using the extracted semantic feature map, training the open vocabulary semantic features of the scene in a three-dimensional Gaussian scene without semantics, outputting the predicted feature map corresponding to the picture under each viewing angle during the training process, constructing a loss function based on the predicted feature map and the semantic feature map to train the semantic field of the three-dimensional Gaussian scene, wherein the semantic field of the three-dimensional Gaussian scene includes a three-dimensional Gaussian scene embedded with low-dimensional features, a feature decoder, and a trainable feature clustering codebook; Step 3, semantic segmentation process: Use the semantic field of the trained 3D Gaussian scene to perform the semantic segmentation task, regard semantic segmentation as a binary classification task, introduce an optimizable semantic space hyperplane, and use the prediction results of the reference expression segmentation model to fine-tune the optimizable semantic space hyperplane based on the arbitrary text description and camera perspective provided by the user, and output the semantic segmentation result.

[0009] In a second aspect, the present invention provides an open vocabulary semantic segmentation device based on a three-dimensional Gaussian scene, comprising: The scene and image preprocessing module is used to train a 3D Gaussian scene without semantics using a dataset containing camera poses. At the same time, the images in the dataset are preprocessed to extract the semantic feature map corresponding to each image. Then, each pixel in the semantic feature map is clustered using K-means, and the clustering result is used as the initial value of the trainable feature clustering codebook. A semantic training module for a three-dimensional Gaussian scene, which is used to use the extracted semantic feature map to train the open vocabulary semantic features of the scene in a three-dimensional Gaussian scene without semantics, output the predicted feature map corresponding to the picture at each viewing angle during the training process, and construct a loss function based on the predicted feature map and the semantic feature map to train the semantic field of the three-dimensional Gaussian scene, wherein the semantic field of the three-dimensional Gaussian scene includes a three-dimensional Gaussian scene embedded with low-dimensional features, a feature decoder, and a trainable feature clustering codebook; The semantic segmentation module is used to perform semantic segmentation tasks using the semantic field of the trained three-dimensional Gaussian scene. It regards semantic segmentation as a binary classification task, introduces an optimizable semantic space hyperplane, and uses the prediction results of the reference expression segmentation model to fine-tune the optimizable semantic space hyperplane based on any text description and camera perspective provided by the user, and outputs the semantic segmentation results.

[0010] The technical solution provided in the embodiment of the present invention has the following technical effects: By proposing an optimizable semantic space hyperplane (OSH) method, the existing reference expression segmentation (RES) model is fine-tuned for each text query to accurately locate the target area. Compared with the traditional open vocabulary semantic segmentation algorithm, this method does not require a threshold for pixel-text similarity based on experience, but achieves dynamic adjustment of the similarity threshold and more accurate segmentation effect. At the same time, a trainable feature clustering codebook is introduced to convert high-dimensional features into compact low-dimensional vectors, improve the efficiency of semantic feature representation, reduce the computational and storage costs in semantic segmentation tasks, and improve the accuracy of semantic segmentation. BRIEF DESCRIPTION OF THE DRAWINGS

[0011] The present invention will be further described below in conjunction with embodiments with reference to the accompanying drawings.

[0012] Figure 1 is an overall flow chart of the method in Embodiment 1 of the present invention; Figure 2 Schematic diagram of the working principle of the method in Embodiment 1 of the present invention; Figure 3 It is a schematic diagram of the comparison results of the open vocabulary semantic segmentation methods based on NeRF and 3DGS on the Mip-NeRF360 dataset according to the first embodiment of the present invention; Figure 4 It is a schematic diagram of the comparison results of the open vocabulary semantic segmentation methods based on NeRF and 3DGS on the Replica dataset according to the first embodiment of the present invention; Figure 5 It is a schematic diagram of the structure of the device in the second embodiment of the present invention. DETAILED DESCRIPTION

[0013] The embodiment of the present application provides an open vocabulary semantic segmentation method and device based on a three-dimensional Gaussian scene, reconstructs a three-dimensional scene with semantic information by processing image data containing camera posture, and realizes semantic segmentation of open vocabulary through semantic features. At the same time, the segmentation result is fine-tuned using an optimizable semantic space hyperplane to obtain a more accurate segmentation effect.

[0014] The technical solution in the embodiment of the present invention has the following general idea: This paper proposes an open vocabulary semantic segmentation method based on three-dimensional Gaussian scenes, referred to as GOI. Through a series of image data containing camera poses, a semantic three-dimensional scene is reconstructed, and the open vocabulary semantic segmentation results are obtained through the reconstructed semantic features. First, a trainable feature clustering codebook (TFCC) is designed to compress high-dimensional semantic features and generate more compact semantic representations. Second, an Optimizable Semantic-space Hyperplane (OSH) is introduced to fine-tune the segmentation results, and the prediction results of the Referring Expression Segmentation (RES) model are used for supervision to generate more accurate open vocabulary semantic segmentation results.

[0015] The implementation steps include: first training a three-dimensional Gaussian scene without semantic information, then preprocessing the images in the data set to extract the semantic feature map; then using the semantic feature map, training the open vocabulary semantic features of the scene in the three-dimensional Gaussian scene, and outputting the predicted feature map corresponding to the image at each perspective; after the training is completed, the semantic segmentation is regarded as a binary classification, an optimizable semantic space hyperplane is introduced, and the prediction results of the RES model are used to fine-tune the optimizable semantic space hyperplane, and output the semantic segmentation results. The proposed optimizable semantic space hyperplane method does not require a threshold for pixel-text similarity based on experience, and can achieve dynamic adjustment of the similarity threshold and more accurate segmentation effects.

[0016] Embodiment 1 This embodiment provides an open vocabulary semantic segmentation method based on a three-dimensional Gaussian scene. Figure 1 As shown, the following steps may be included: S1. Scene and image preprocessing process: Use the dataset containing the camera pose to train a 3D Gaussian scene without semantics (the basic 3D Gaussian Splatting method can be used), and preprocess the images in the dataset (for example, use the APE model as a feature extractor) to extract the semantic feature map corresponding to each image, and then perform K-means clustering on each pixel in the semantic feature map, and use the clustering result as the initial value of the Trainable Feature Clustering Codebook (TFCC).

[0017] S2. Semantic training process of three-dimensional Gaussian scene: using the extracted semantic feature map, the open vocabulary semantic features of the scene are trained in a three-dimensional Gaussian scene without semantics. During the training process, the predicted feature map corresponding to the picture at each perspective is output. According to the predicted feature map and the semantic feature map, a loss function is constructed to train the semantic field of the three-dimensional Gaussian scene. The semantic field of the three-dimensional Gaussian scene includes a three-dimensional Gaussian scene embedded with low-dimensional features, a feature decoder, and a trainable feature clustering codebook. The feature clustering codebook can efficiently compress the semantic information in the scene, reduce the computational and storage costs in the semantic segmentation task, and improve the accuracy of semantic segmentation.

[0018] like Figure 2 As shown, the training method of the semantic field includes the following steps: S21, add randomly initialized low-dimensional features to the three-dimensional Gaussian scene without semantics, and randomly initialize the decoder ; S22, for all camera views in the training set, use the Gaussian rasterizer to render the appearance and semantics of the 3D Gaussian scene to obtain the corresponding image at that view With low-dimensional feature maps , and the preprocessed semantic feature map of this perspective is recorded as ; S23, for low-dimensional feature maps , each pixel position has a low-dimensional feature, recorded as For each low-dimensional feature , first through the feature decoder With the Softmax activation function, the classification probability of each item in the trainable feature clustering codebook (TFCC, the initial value of the codebook is the clustering result in step S1) is obtained , and then select the item with the highest classification probability in the feature code book, and its index is recorded as , that is, the prediction feature corresponding to the pixel position is obtained , the specific operations are:

[0019]

[0020]

[0021] S24, for each low-dimensional feature , according to its low-dimensional feature map The pixel position in the semantic feature map Select semantic features at the same pixel position , for this semantic feature With low-dimensional features Predicted high-dimensional semantic features , design the loss function according to the mean square error and cosine similarity:

[0022] in, Represents a low-dimensional feature map or semantic feature map The total number of pixels, express and By optimizing the loss function, we can train the low-dimensional features embedded in the three-dimensional Gaussian scene, the feature decoder, and the trainable feature clustering codebook, thereby learning the three-dimensional semantic field corresponding to a three-dimensional Gaussian scene.

[0023] S3, semantic segmentation process: The semantic field of the trained three-dimensional Gaussian scene is used to perform the semantic segmentation task. The semantic segmentation is regarded as a binary classification task, and an optimizable semantic space hyperplane is introduced. According to the arbitrary text description and camera perspective provided by the user, the prediction results of the reference expression segmentation model are used to fine-tune the optimizable semantic space hyperplane and output the semantic segmentation result.

[0024] The semantic field of the trained 3D Gaussian scene is used to perform semantic segmentation tasks, and the 3D Gaussian scene, feature decoder and trainable feature clustering codebook are all considered as non-optimizable parts.

[0025] According to any text description and camera perspective provided by the user, the three-dimensional scene is rendered into a two-dimensional picture, and the pixels of the object corresponding to the text description are segmented in the picture. The APE model is a visual-language model that can encode image and text features into a unified feature space and use cosine similarity to measure the similarity between image and text features. Since the visual encoder of the APE model has been used in step S1 to extract the semantic features of the image, and embedded into the three-dimensional Gaussian scene in step S2. Under this perspective, the semantics of the three-dimensional scene is rendered into a two-dimensional semantic graph, and the text encoder of the APE model is used to encode the text description provided by the user, the pixels of the object in the picture that matches the text description can be determined based on the cosine similarity between the text features and the pixel-level semantic features.

[0026] The semantic segmentation task is regarded as a binary classification problem of pixel-level semantics. An optimizable semantic space hyperplane (OSH) is introduced and its parameters are fine-tuned to further optimize the semantic segmentation results and improve the accuracy of semantic segmentation.

[0027] The semantic segmentation process specifically includes the following steps: S31. The problem of determining the semantic segmentation area based on the cosine similarity is formalized as a binary classification problem on pixel-level semantic features. Therefore, a hyperplane in the semantic space can be used to classify the image semantics at the pixel level to distinguish the features matching the text description from other features. The hyperplane is defined as:

[0028] in, represents the features of the natural language description encoded by the text encoder, represents pixel-level semantic features, As a hyperparameter, it represents a bias.

[0029] Step 32: For a given perspective and natural language query, first use the APE text encoder to encode the text to initialize the parameters in the hyperplane. , and randomly initialize the hyperparameters .

[0030] Step 33: Under a given viewing angle, predict the semantic feature map under the viewing angle in the same manner as step S2. ,like , it means that the pixel belongs to the object corresponding to the query, and the mask value here is set to 1; otherwise, if , it means that the pixel does not belong to the object corresponding to the query, and the mask value is set to 0; Using the Reference Expression Segmentation (RES) model, the RGB image rendered under this view and the text description are input into the model to obtain the reference mask The mask predicted by the hyperplane With reference mask Design loss function:

[0031] in, Representative mask The total number of sample points, Indicates the first pixel samples, Indicates a greater weight applied to positive samples, set to 10.

[0032] Step 34: By optimizing the loss function, the hyperplane parameters can be trained and , and get the optimized parameters and The optimized hyperplane can be expressed as:

[0033] Step 35: Use the optimized hyperplane to perform more accurate semantic segmentation. ,choose The area is regarded as the area matching the text description, and its mask is set to 1, while the masks of other areas are set to 0. In this way, the result of open vocabulary semantic segmentation in a 3D Gaussian scene using arbitrary text description can be obtained.

[0034] The effect of this embodiment is further illustrated by the following simulation experiment.

[0035] 1) Simulation conditions This embodiment is developed on the Ubuntu platform, and the developed deep learning framework is based on PyTorch. The main language used in the present invention is Python.

[0036] 2) Simulation content Select Mip-NeRF360 and Replica datasets, and test each scene in the dataset according to the above steps and use the test set for testing. Figure 3 and Figure 4 The positioning and classification results of this embodiment and other methods on two data sets are respectively: Figure 3 The results of comparing the open vocabulary semantic segmentation methods based on NeRF and 3DGS on the Mip-NeRF360 dataset are shown in Figure 2. Figure 4 The results of comparing the open vocabulary semantic segmentation methods based on NeRF and 3DGS on the Replica dataset. It can be seen that compared with other methods, the average effect of this embodiment is the best. In the figure, Ours represents the result of this embodiment, the evaluation index mIoU represents the average intersection over union, mPA represents the average pixel accuracy, and mP represents the average precision. The average intersection over union, average pixel accuracy and average precision of this embodiment on the Mip-NeRF360 dataset reached 86.46% / 95.69% / 93.62%, and the average intersection over union, average pixel accuracy and average precision on the Replica dataset reached 61.69% / 83.65% / 81.88%, achieving a more accurate segmentation effect compared with other methods, proving the better effect of this embodiment in open vocabulary semantic segmentation.

[0037] Extensive experiments on Mip-NeRF360 and Replica datasets demonstrate that the proposed GOI approach achieves significant and consistent performance improvements compared to other competitive methods.

[0038] Embodiment 2 This embodiment provides an open vocabulary semantic segmentation device based on a three-dimensional Gaussian scene. Figure 5As shown, including: The scene and image preprocessing module is used to train a 3D Gaussian scene without semantics using a dataset containing camera poses. At the same time, the images in the dataset are preprocessed to extract the semantic feature map corresponding to each image. Then, each pixel in the semantic feature map is clustered using K-means, and the clustering result is used as the initial value of the trainable feature clustering codebook. A semantic training module for a three-dimensional Gaussian scene, which is used to use the extracted semantic feature map to train the open vocabulary semantic features of the scene in a three-dimensional Gaussian scene without semantics, output the predicted feature map corresponding to the picture at each viewing angle during the training process, and construct a loss function based on the predicted feature map and the semantic feature map to train the semantic field of the three-dimensional Gaussian scene, wherein the semantic field of the three-dimensional Gaussian scene includes a three-dimensional Gaussian scene embedded with low-dimensional features, a feature decoder, and a trainable feature clustering codebook; The semantic segmentation module is used to perform semantic segmentation tasks using the semantic field of the trained three-dimensional Gaussian scene. It regards semantic segmentation as a binary classification task, introduces an optimizable semantic space hyperplane, and uses the prediction results of the reference expression segmentation model to fine-tune the optimizable semantic space hyperplane based on any text description and camera perspective provided by the user, and outputs the semantic segmentation results.

[0039] Preferably, the semantic training module of the three-dimensional Gaussian scene is used to perform the following steps: Step 21: Add randomly initialized low-dimensional features to the three-dimensional Gaussian scene without semantics, and randomly initialize the feature decoder ; Step 22: For all camera views in the training set, use the Gaussian rasterizer to render the appearance and semantics of the three-dimensional Gaussian scene to obtain the corresponding low-dimensional feature map at that view. , and the preprocessed semantic feature map of this perspective is recorded as ; Step 23: Low-dimensional feature map Each pixel position has a low-dimensional feature , for each low-dimensional feature , through the feature decoder And the activation function, get the classification probability of each item in the trainable feature clustering codebook Then select the item with the highest classification probability in the trainable feature clustering codebook to obtain the predicted feature corresponding to the pixel position ; Step 24: For each low-dimensional feature According to its low-dimensional feature map The pixel position in the semantic feature map Select semantic features at the same pixel position ;Finally, by constructing the prediction features and semantic features The loss function is used to train the semantic field of 3D Gaussian scenes.

[0040] Among them, the prediction features are designed according to the mean square error and cosine similarity and semantic features The loss function is as follows:

[0041] in, Represents the total number of pixels in the feature map, Represents the cosine similarity function.

[0042] Preferably, the semantic segmentation module is specifically used to perform the following steps: Step 31: Use a hyperplane in the semantic space to classify the image semantics at the pixel level and distinguish the features that match the text description from other features. The hyperplane is defined as:

[0043] in, represents the features of the natural language description encoded by the text encoder, represents pixel-level semantic features, As a hyperparameter, it represents a bias; Step 32: For a given perspective and natural language query, first use the APE text encoder to encode the text to initialize the parameters in the hyperplane. , and randomly initialize the hyperparameters ; Step 33: Input the RGB image rendered at a given viewing angle and the text description into the reference expression segmentation model to obtain a reference mask. , according to the mask predicted by the hyperplane With reference mask Construct loss function; Step 34: Train the hyperplane parameters by optimizing the loss function and , and get the optimized parameters and , the optimized hyperplane is expressed as:

[0044] Step 35: Use the optimized hyperplane to perform accurate semantic segmentation.

[0045] The loss function constructed in step 33 is specifically:

[0046] in, Representative mask The total number of sample points, Indicates the first pixel samples, Indicates a greater weight applied to positive samples, is the mask predicted by the hyperplane, Follow the same query to get the reference mask for the rendered image of this view. Represents the Sigmoid function.

[0047] Since the device introduced in the second embodiment of the present invention is a device used to implement the method of the first embodiment of the present invention, those skilled in the art can understand the specific structure and deformation of the device based on the method introduced in the first embodiment of the present invention, so it is not described here in detail. All devices used in the method of the first embodiment of the present invention belong to the scope of protection of the present invention.

[0048] This paper proposes an optimizable semantic space hyperplane (OSH) method, and fine-tunes the existing reference expression segmentation (RES) model for each text query to accurately locate the target area. Compared with the traditional open vocabulary semantic segmentation algorithm, this method does not require a threshold of pixel-text similarity based on experience, but achieves dynamic adjustment of the similarity threshold and more accurate segmentation effect. At the same time, a trainable feature clustering codebook is introduced to convert high-dimensional features into compact low-dimensional vectors, improve the efficiency of semantic feature representation, reduce the computational and storage costs in semantic segmentation tasks, and improve the accuracy of semantic segmentation.

[0049] It will be appreciated by those skilled in the art that embodiments of the present invention may be provided as methods, devices, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0050] The present invention is described with reference to flowcharts and / or block diagrams of methods, apparatuses, and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as a combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0051] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0052] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0053] Although the specific implementation modes of the present invention are described above, those skilled in the art should understand that the specific implementation modes described are only illustrative and are not intended to limit the scope of the present invention. Equivalent modifications and changes made by those skilled in the art in accordance with the spirit of the present invention should be included in the scope of protection of the claims of the present invention.

Claims

1. An open vocabulary semantic segmentation method based on three-dimensional Gaussian scene, characterized in that: include: Step 1: Scene and image preprocessing: Use the data set containing camera poses to train a 3D Gaussian scene without semantics. Preprocess the images in the data set to extract the semantic feature map corresponding to each image. Then perform K-means clustering on each pixel in the semantic feature map, and use the clustering result as the initial value of the trainable feature clustering codebook. Step 2, semantic training process of three-dimensional Gaussian scene: using the extracted semantic feature map, training the open vocabulary semantic features of the scene in a three-dimensional Gaussian scene without semantics, outputting the predicted feature map corresponding to the picture under each viewing angle during the training process, constructing a loss function based on the predicted feature map and the semantic feature map to train the semantic field of the three-dimensional Gaussian scene, wherein the semantic field of the three-dimensional Gaussian scene includes a three-dimensional Gaussian scene embedded with low-dimensional features, a feature decoder, and a trainable feature clustering codebook; Step 3, semantic segmentation process: Use the semantic field of the trained 3D Gaussian scene to perform the semantic segmentation task, regard semantic segmentation as a binary classification task, introduce an optimizable semantic space hyperplane, and use the prediction results of the reference expression segmentation model to fine-tune the optimizable semantic space hyperplane based on the arbitrary text description and camera perspective provided by the user, and output the semantic segmentation result.

2. The method according to claim 1, characterized in that The step 2 specifically includes: Step 21: Add randomly initialized low-dimensional features to the three-dimensional Gaussian scene without semantics, and randomly initialize the feature decoder ; Step 22: For all camera views in the training set, use the Gaussian rasterizer to render the appearance and semantics of the three-dimensional Gaussian scene to obtain the corresponding low-dimensional feature map at that view. , and the preprocessed semantic feature map of this perspective is recorded as ; Step 23: Low-dimensional feature map Each pixel position has a low-dimensional feature , for each low-dimensional feature , through the feature decoder And the activation function, get the classification probability of each item in the trainable feature clustering codebook Then select the item with the highest classification probability in the trainable feature clustering codebook to obtain the predicted feature corresponding to the pixel position ; Step 24: For each low-dimensional feature According to its low-dimensional feature map The pixel position in the semantic feature map Select semantic features at the same pixel position ;Finally, by constructing the prediction features and semantic features The loss function is used to train the semantic field of 3D Gaussian scenes.

3. The method according to claim 2, characterized in that: Design prediction features based on mean square error and cosine similarity and semantic features The loss function is as follows: in, Represents the total number of pixels in the feature map, Represents the cosine similarity function.

4. The method according to claim 1, characterized in that The semantic segmentation process specifically includes: Step 31: Use a hyperplane in the semantic space to classify the image semantics at the pixel level and distinguish the features that match the text description from other features. The hyperplane is defined as: in, represents the features of the natural language description encoded by the text encoder, represents pixel-level semantic features, As a hyperparameter, it represents a bias; Step 32: For a given perspective and natural language query, first use the APE text encoder to encode the text to initialize the parameters in the hyperplane. , and randomly initialize the hyperparameters ; Step 33: Input the RGB image rendered at a given viewing angle and the text description into the reference expression segmentation model to obtain a reference mask. , according to the mask predicted by the hyperplane With reference mask Construct loss function; Step 34: Train the hyperplane parameters by optimizing the loss function and , and get the optimized parameters and , the optimized hyperplane is expressed as: Step 35: Use the optimized hyperplane to perform accurate semantic segmentation.

5. The method according to claim 4, characterized in that: The loss function constructed in step 33 is specifically: in, Representative mask The total number of sample points, Indicates the first pixel samples, represents the weight applied to the positive samples, is the mask predicted by the hyperplane, Follow the same query to get the reference mask for the rendered image of this view. Represents the Sigmoid function.

6. An open vocabulary semantic segmentation device based on a three-dimensional Gaussian scene, characterized in that: include: The scene and image preprocessing module is used to train a 3D Gaussian scene without semantics using a dataset containing camera poses. At the same time, the images in the dataset are preprocessed to extract the semantic feature map corresponding to each image. Then, each pixel in the semantic feature map is clustered using K-means, and the clustering result is used as the initial value of the trainable feature clustering codebook. A semantic training module for a three-dimensional Gaussian scene, which is used to use the extracted semantic feature map to train the open vocabulary semantic features of the scene in a three-dimensional Gaussian scene without semantics, output the predicted feature map corresponding to the picture at each viewing angle during the training process, and construct a loss function based on the predicted feature map and the semantic feature map to train the semantic field of the three-dimensional Gaussian scene, wherein the semantic field of the three-dimensional Gaussian scene includes a three-dimensional Gaussian scene embedded with low-dimensional features, a feature decoder, and a trainable feature clustering codebook; The semantic segmentation module is used to perform semantic segmentation tasks using the semantic field of the trained three-dimensional Gaussian scene. It regards semantic segmentation as a binary classification task, introduces an optimizable semantic space hyperplane, and uses the prediction results of the reference expression segmentation model to fine-tune the optimizable semantic space hyperplane based on any text description and camera perspective provided by the user, and outputs the semantic segmentation results.

7. The device according to claim 6, characterized in that The semantic training module of the three-dimensional Gaussian scene is used to perform the following steps: Step 21: Add randomly initialized low-dimensional features to the three-dimensional Gaussian scene without semantics, and randomly initialize the feature decoder ; Step 22: For all camera views in the training set, use the Gaussian rasterizer to render the appearance and semantics of the three-dimensional Gaussian scene to obtain the corresponding low-dimensional feature map at that view. , and the preprocessed semantic feature map of this perspective is recorded as ; Step 23: Low-dimensional feature map Each pixel position has a low-dimensional feature , for each low-dimensional feature , through the feature decoder And the activation function, get the classification probability of each item in the trainable feature clustering codebook Then select the item with the highest classification probability in the trainable feature clustering codebook to obtain the predicted feature corresponding to the pixel position ; Step 24: For each low-dimensional feature According to its low-dimensional feature map The pixel position in the semantic feature map Select semantic features at the same pixel position ;Finally, by constructing the prediction features and semantic features The loss function is used to train the semantic field of 3D Gaussian scenes.

8. The device according to claim 7, characterized in that Design prediction features based on mean square error and cosine similarity and semantic features The loss function is as follows: in, Represents the total number of pixels in the feature map, Represents the cosine similarity function.

9. The device according to claim 6, characterized in that The semantic segmentation module is specifically used to perform the following steps: Step 31: Use a hyperplane in the semantic space to classify the image semantics at the pixel level and distinguish the features that match the text description from other features. The hyperplane is defined as: in, represents the features of the natural language description encoded by the text encoder, represents pixel-level semantic features, As a hyperparameter, it represents a bias; Step 32: For a given perspective and natural language query, first use the APE text encoder to encode the text to initialize the parameters in the hyperplane. , and randomly initialize the hyperparameters ; Step 33: Input the RGB image rendered at a given viewing angle and the text description into the reference expression segmentation model to obtain a reference mask. , according to the mask predicted by the hyperplane With reference mask Construct loss function; Step 34: Train the hyperplane parameters by optimizing the loss function and , and get the optimized parameters and , the optimized hyperplane is expressed as: Step 35: Use the optimized hyperplane to perform accurate semantic segmentation.

10. The device according to claim 9, characterized in that: The loss function constructed in step 33 is specifically: in, Representative mask The total number of sample points, Indicates the first pixel samples, Indicates a greater weight applied to positive samples, is the mask predicted by the hyperplane, Follow the same query to get the reference mask for the rendered image of this view. Represents the Sigmoid function.

Citation Information

Patent Citations

  • Open set semantic segmentation method and system based on neural radiation field

    CN117274596A

Cited By

  • Multi-modal three-dimensional instance segmentation method based on three-dimensional Gaussian splashing

    CN119296104A

  • Open vocabulary 3D segmentation method based on three-dimensional Gaussian sputtering technology

    CN119445449A

  • Three-dimensional open vocabulary segmentation method, system and device based on consistency regularization and storage medium

    CN119672274A

  • Robot movement control method, device and equipment

    CN119839857A

  • A method, apparatus and device for controlling movement of a robot

    CN119839857B