Three-dimensional feature extraction method, device, electronic device and readable storage medium
Feature extraction of 3D models and multi-views is performed through DGCNN and MVCNN neural networks, combined with self-supervised learning of SimCLR and VICREG loss functions, which solves the problems of difficulty in transfer learning and insufficient generalization in 3D model feature extraction, and achieves efficient 3D Model retrieval and classification reduce manual calibration costs.
Patent Information
- Application Number
- CN202311540682.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-11-17
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2043-11-17
AI Technical Summary
Feature extraction of 3D models in the existing technology has problems such as difficulty in transfer learning and weak generalization, which results in high cost of manual labeling of a large number of 3D models and the inability to fully utilize massive unlabeled data.
Use DGCNN and MVCNN neural networks to extract features from 3D models and multi-views, combine SimCLR and VICREG loss functions for self-supervised learning, use massive unlabeled data to improve model generalization, and quickly learn specific tasks through fine-tuning training with a small amount of classified data classification information to reduce the workload of manual calibration.
It effectively improves the retrieval accuracy of 3D model retrieval tools, reduces manual calibration workload, and solves the problem of model parameter expansion caused by a separate SimCLR loss function.
Smart Images

Figure CN117541810B
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of image processing technology, and specifically relates to a three-dimensional feature extraction method, device, electronic equipment and a readable storage medium. Background Art
[0002] 3D intelligent retrieval has important application value in the industrial field, and 3D model feature extraction is the core link of 3D intelligent retrieval. In addition, 3D model feature extraction can also be applied to downstream tasks such as model classification and 3D model local segmentation.
[0003] Since 3D models come in all shapes and sizes, it is very expensive to manually label a large number of 3D models. In addition, existing supervised learning methods for labeled data have problems with transfer learning difficulties and weak generalization. Summary of the invention
[0004] In order to overcome the shortcomings of the prior art, the present invention provides a three-dimensional feature extraction method, device, electronic device and computer-readable storage medium to solve the problems of difficulty in transfer learning and weak generalization in supervised learning of labeled data in the prior art.
[0005] One embodiment of the present invention provides a three-dimensional feature extraction method, comprising the following steps:
[0006] Get the point cloud model P of the starting 3D model i and several multi-views;
[0007] The preprocessed point cloud model P i Input into the preset DGCNN model to obtain the point cloud model P i The eigenvector Z i ;
[0008] The multiple views are input into the preset MVCNN model to obtain a 512-dimensional feature vector h i ;
[0009] The learning of feature vectors is controlled by SimCLR loss function and VICREG loss function.
[0010] In this embodiment, by obtaining the point cloud model P of the starting 3D model i and multiple views, and respectively analyze the point cloud model P by using DGCNN and MVCNN neural networks iBy extracting features from multiple views, the feature vectors of 3D models can be better extracted. The use of massive unlabeled 3D model data through self-supervised learning mechanisms can effectively solve the generalization problem of the model. Fine-tuning training with a small amount of classified data can allow the model to quickly learn the classification information preset based on specific tasks, reducing the workload of manual calibration. And by using the VICREG loss function as a supplement to the SimCLR loss function, the model parameter expansion problem caused by the control of the single SimCLR loss function is effectively solved.
[0011] In one embodiment, a point cloud model P of a starting 3D model is obtained. i and several multi-views, including:
[0012] Use open3d open source tool to read 3D CAD model M i , and obtain a 5000×6 point cloud model P i ;
[0013] Use open source rendering tools to render 3D CAD models i Rendering is performed to generate the plurality of multi-views.
[0014] In one embodiment, an open source rendering tool is used to render the 3D CAD model M. i Rendering, including:
[0015] In the 3D CAD model M i The model is rendered and sampled using three dimensional slices and two poles; each dimensional slice is separated by 60° azimuth, and the three dimensional angular slices include 45°, 90° and 135°.
[0016] In one embodiment, the preprocessed point cloud model P i Input into the preset DGCNN model to obtain the point cloud model P i The eigenvector Z i ,include:
[0017] From 5000×6 point cloud model P i Randomly sample 2 2048×6 point cloud data;
[0018] Enhance the two 2048×6 point cloud data to obtain the point cloud model and point cloud models
[0019] Use DGCNN to model point cloud and point cloud models Perform feature extraction and obtain feature vectors With the eigenvector
[0020] According to the feature vector With the eigenvector The mean of the point cloud model P i The eigenvector Z i .
[0021] In one embodiment, two 2048×6 point cloud data are enhanced, including:
[0022] Randomly rotate and / or stretch two 2048×6 point cloud data.
[0023] In one embodiment, the learning of the feature vector is controlled by the SimCLR loss function and the VICREG loss function, including:
[0024] Controlling feature vectors using SimCLR loss function and VICREG loss function With the eigenvector approach;
[0025] Use SimCLR loss function and VICREG loss function to control the feature vector Z i With the eigenvector h i Approaching.
[0026] In one embodiment, the plurality of multi-views are input into a preset MVCNN model, including:
[0027] Construct a model hierarchical classification framework, collect several 3D models for each classification, and form fine-tuning training data with classification labels;
[0028] Use the MVCNN model pre-trained by the self-supervisory mechanism, and perform hierarchical classification fine-tuning training by fine-tuning the training data to obtain the preset MVCNN model;
[0029] Use the preset MVCNN model to extract features from the multiple views.
[0030] One embodiment of the present invention further provides a three-dimensional feature extraction device, comprising:
[0031] The acquisition module is used to obtain the point cloud model P of the starting 3D model i and several multi-views;
[0032] The first input module is used to input the preprocessed point cloud model P i Input into the preset DGCNN model to obtain the point cloud model P i The eigenvector Z i ;
[0033] The second input module is used to input the multiple views into the preset MVCNN model to obtain a 512-dimensional feature vector h i ;
[0034] The control module is used to control the learning of feature vectors through SimCLR loss function and VICREG loss function.
[0035] In this embodiment, the advantages and beneficial effects of the three-dimensional feature extraction method have been described above and will not be repeated here. Moreover, since the three-dimensional feature extraction device uses the three-dimensional feature extraction method, the three-dimensional feature extraction device also has the same advantages and beneficial effects.
[0036] One of the embodiments of the present invention further provides a readable storage medium, in which a computer program is stored. The computer program includes program instructions. When the program instructions are executed by a processor of an electronic device, the processor executes the steps of any one of the three-dimensional feature extraction methods described above.
[0037] One of the embodiments of the present invention also provides an electronic device, including: a processor and a memory, the memory is used to store computer program code, the computer program code includes computer instructions, when the processor executes the computer instructions, the electronic device performs the steps of any one of the three-dimensional feature extraction methods described above. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the structures shown in these drawings without paying creative work.
[0039] Figure 1 A schematic diagram of a process flow of a three-dimensional feature extraction method provided by one embodiment of the present invention;
[0040] Figure 2 for Figure 1 Schematic diagram of the sub-process of S300;
[0041] Figure 3 A graphical flowchart of a three-dimensional feature extraction method provided by one embodiment of the present invention;
[0042] Figure 4 A schematic diagram of a hierarchical classification process in a three-dimensional feature extraction method provided in one embodiment of the present invention;
[0043] Figure 5A schematic diagram of the working principle of an electronic device provided by one embodiment of the present invention. DETAILED DESCRIPTION
[0044] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0045] It should be noted that if the embodiments of the present invention involve directional indications (such as up, down, left, right, front, back, etc.), the directional indications are only used to explain the relative position relationship, movement status, etc. between the components in a certain specific posture. If the specific posture changes, the directional indication will also change accordingly.
[0046] In addition, if there are descriptions involving "first", "second", etc. in the embodiments of the present invention, the descriptions of "first", "second", etc. are only used for descriptive purposes and cannot be understood as indicating or implying their relative importance or implicitly indicating the number of technical features indicated. Therefore, the features limited to "first" and "second" may explicitly or implicitly include at least one of the features. In addition, if "and / or" or "and / or" appears in the full text, its meaning includes three parallel solutions. Taking "A and / or B" as an example, it includes solution A, solution B, or solutions that satisfy both A and B. In addition, the technical solutions between the various embodiments can be combined with each other, but it must be based on the ability of ordinary technicians in this field to implement. When the combination of technical solutions is contradictory or cannot be implemented, it should be deemed that such combination of technical solutions does not exist and is not within the scope of protection required by the present invention.
[0047] 3D intelligent retrieval has important application value in the industrial field, and 3D model feature extraction is the core link of 3D intelligent retrieval. In addition, 3D model feature extraction can also be applied to downstream tasks such as model classification and 3D model local segmentation.
[0048] Since 3D models come in all shapes and sizes, it is very expensive to manually label a large number of 3D models. In addition, existing supervised learning for labeled data has problems with transfer learning and poor generalization. Moreover, with the emergence of massive 3D models, existing supervised learning mechanisms cannot fully utilize the newly emerging massive unlabeled data and cannot meet the requirements of 3D model feature extraction technology under the new situation.
[0049] Self-supervised learning is a bridge from unsupervised learning to supervised learning. It realizes the transformation from unsupervised learning to supervised learning by automatically building data labels. For example: randomly hiding local blocks in an image and learning to fill in the missing parts of the image.
[0050] At present, self-supervised learning mechanisms have been effectively applied to image processing and natural language processing tasks, while there are relatively few studies on self-supervised mechanisms for 3D model geometric feature extraction tasks, which are mainly based on random transformations of point cloud 3D models to generate corresponding data pairs.
[0051] According to existing research on 3D model feature extraction technology, feature extraction technology based on multi-view input is still ahead of other feature extraction technologies based on voxel and point cloud input. The above self-supervised learning framework mainly relies on point cloud models for feature vector extraction, and the single image feature extraction branch assists point cloud model feature learning.
[0052] Based on the CrossPoint framework, the present invention proposes to replace the existing single image branch with a multi-view input branch, which can more comprehensively display the geometric features of the 3D model. The present invention proposes a mechanism of self-supervised learning based on multi-views and point clouds + fine-tuning training with a small amount of multi-view labeled data, which can well extract the feature vector of the 3D model; and through the use of massive unlabeled 3D model data, the generalization problem of the model can be well solved, and the fine-tuning training of a small amount of classified data can allow the model to quickly learn the classification information preset based on specific tasks, which can greatly reduce the workload of manual calibration. Based on this type of 3D model feature extraction method, the retrieval accuracy of 3D model retrieval tools can be effectively improved.
[0053] See also Figure 1-Figure 5 One embodiment of the present invention provides a three-dimensional feature extraction method, comprising the following steps:
[0054] S100, obtaining a point cloud model P of a starting 3D model i and several multi-views;
[0055] In one embodiment, a point cloud model P of a starting 3D model is obtained. i and several multi-views, including:
[0056] S110, use open3d open source tool to read 3D CAD model M i , and obtain a 5000×6 point cloud model P i ;
[0057] S120, use open source rendering tools to render 3D CAD models i Rendering is performed to generate the plurality of multi-views. In one embodiment, an open source rendering tool is used to render the three-dimensional CAD model Mi Rendering, including:
[0058] S121, in the 3D CAD model M i The three-dimensional slices and two poles are used for rendering sampling, and each dimensional slice is separated by 60° azimuth; wherein the three slice dimension angles include 45°, 90° and 135°.
[0059] Self-supervised learning framework based on multi-view and point cloud input:
[0060] The present invention adopts Figure 3 The self-supervised learning process framework includes two branches: point cloud feature vector extraction and multi-view feature vector extraction. The SimCLR loss function and VICREG loss function are used to control the point cloud feature vector. and Infinitely close, cross-modal eigenvector Z i With h i Infinitely close. This allows the extraction of geometric feature information from 3D models without classification labels. The details are as follows:
[0061] S200, the pre-processed point cloud model P i Input into the preset DGCNN model to obtain the point cloud model P i The eigenvector Z i ;
[0062] In one embodiment, the preprocessed point cloud model P i Input into the preset DGCNN model to obtain the point cloud model P i The eigenvector Z i ,include:
[0063] S210, from 5000×6 point cloud model P i Randomly sample 2 2048×6 point cloud data;
[0064] S220, enhance the two 2048×6 point cloud data to obtain a point cloud model and point cloud models
[0065] In one embodiment, two 2048×6 point cloud data are enhanced, including:
[0066] Randomly rotate and / or stretch two 2048×6 point cloud data.
[0067] S230, using DGCNN for point cloud model and point cloud models Perform feature extraction and obtain feature vectors With the eigenvector
[0068] S240, according to the characteristic vector With the eigenvector The mean of the point cloud model P i The eigenvector Z i .
[0069] In this embodiment, the point cloud feature extraction neural network uses a dynamic graph convolutional neural network (DGCNN): First, the open3d open source tool is used to extract 5000 point data from the starting 3D model, each point contains: 3D coordinates and 3D normal vector information. Then, 2048 point data are randomly sampled from the 5000 point data, and randomly rotated and stretched to form and Two sets of point cloud models. By using DGCNN to extract the features of the point cloud model, the feature vectors are obtained respectively. With the eigenvector Finally, according to the feature vector With the eigenvector The mean of the point cloud model P i The eigenvector Z i .
[0070] See also Figure 2 S300: Input the plurality of multi-views into a preset MVCNN model to obtain a 512-dimensional feature vector h i ;
[0071] In one embodiment, the plurality of multi-views are input into a preset MVCNN model, including:
[0072] S310, constructing a model hierarchical classification framework according to the functional classification table of the stored models, collecting a number of three-dimensional models for each classification, and forming fine-tuning training data with classification labels;
[0073] S320, using the MVCNN model pre-trained by the self-supervision mechanism, and performing hierarchical classification fine-tuning training in the fine-tuning training data to obtain a preset MVCNN model;
[0074] S330, using the preset MVCNN model to perform feature extraction on the plurality of multi-views.
[0075] In this embodiment, in order to ensure that the input of the image branch can more comprehensively display the three-dimensional model, this solution uses an open source rendering tool to render the starting 3D model and generate 20 ring views as input information for the multi-view branch. In this embodiment, the open source rendering tool can be Blender or VTK.
[0076] The MVCNN neural network is used to extract the feature vector of multi-view data, and finally a 512-dimensional feature vector h is obtained. i .
[0077] Fine-tuning training based on multi-view hierarchical classification task:
[0078] During the actual operation of the industrial resource library, this design invention constructs a more sophisticated model hierarchical classification framework based on the functional classification table of the stored models (about 3,000 secondary categories). In each subcategory, about 20 three-dimensional models are collected to form about 60,000 sets of fine-tuning training data with classification labels.
[0079] Load the MVCNN model pre-trained by the self-supervised mechanism and perform hierarchical classification fine-tuning training in the fine-tuning training data.
[0080] The fine-tuned MVCNN model can be used to extract the 512-dimensional feature vector of the 3D model.
[0081] The MVCNN model pre-trained by the self-supervisory mechanism is used, and hierarchical classification fine-tuning training is performed in the fine-tuning training data to obtain a preset MVCNN model, specifically, the following steps are included:
[0082] Collect a large number of multi-view datasets: First, it is necessary to collect a large-scale dataset containing multi-view data. This data is obtained by photographing the object from different angles or using multiple cameras to capture images. Make sure that images of different viewpoints for each sample and the corresponding labels are available. Preprocessing is required for each sample in the dataset as needed. This may include operations such as resizing, cropping, and normalization of the image so that the input data is suitable for the requirements of the network model.
[0083] Design self-supervised tasks: Design a self-supervised task as needed, which can enable the neural network to learn meaningful features from unlabeled data. Common self-supervised tasks include image rotation, color transformation, contrastive learning, and designing two branches of multi-view feature extraction and point cloud feature extraction, and forcing the feature vectors learned by the two branches to converge, thereby constructing a cross-modal self-supervised learning framework.
[0084] Build MVCNN architecture: Build a suitable MVCNN network architecture based on the dataset and task requirements. Typically, MVCNN consists of multiple view-specific convolutional neural networks (CNNs) and fusion layers. Depending on the needs, the model can also typically consist of multiple convolutional layers, pooling layers, and fully connected layers to extract features from images of different viewpoints.
[0085] Build DGCNN architecture: Build the DGCNN network architecture according to the dataset and task requirements. Usually, DGCNN consists of a multi-layer edge convolutional neural network layer (EdgeConv) and subsequent pooling layers and fully connected layers. EdgeConv, which usually consists of a KNN layer, a pooling layer, and a fully connected layer, is used to extract features from the point cloud data model.
[0086] Perform self-supervised pre-training: Use the collected multi-view, point cloud datasets and the designed self-supervised framework to pre-train MVCNN and DGCNN. In the pre-training stage, the network parameters are optimized by maximizing the objective function of the self-supervised task.
[0087] Fine-tuning and further training: After completing self-supervised pre-training, MVCNN can be fine-tuned and further trained using labeled datasets (i.e., fine-tuning training data). This can optimize the network parameters to a state that is more suitable for specific tasks.
[0088] Evaluation and application: Finally, the trained MVCNN model is evaluated using the test dataset and applied to specific application scenarios according to task requirements. The preset MVCNN model is obtained.
[0089] Predicting new samples: Once the model has been fully trained and passed the evaluation, it can be used to predict the category of new multi-view image samples. New samples are input into the model and the category to which they belong is determined based on the probability value or category label output by the model.
[0090] Among them, a 512-dimensional feature vector refers to a vector with 512 elements. In machine learning and deep learning, a feature vector is a numerical vector used to represent the important features of data. Each element represents the value or weight of a feature.
[0091] When referring to a 512-dimensional feature vector, it usually means that the vector contains 512 features, and each feature describes the input data in some way. These features can be automatically learned by the model or generated by manual design or predefined methods.
[0092] Feature vectors are often used to map high-dimensional data to low-dimensional space, which facilitates data processing and analysis. For example, in image recognition tasks, convolutional neural networks (CNNs) can be used to extract feature vectors of images, which can represent the visual features of the image. Similarly, in natural language processing tasks, word embedding models can be used to generate feature vectors of text, which can represent the semantic features of words or sentences.
[0093] The dimension size of the 512-dimensional feature vector may be determined based on factors such as specific tasks, model design, or data characteristics. The choice of dimension can affect the expressiveness and computational efficiency of the features, and needs to be weighed and adjusted based on specific application scenarios and requirements.
[0094] S400, controlling the learning of feature vectors through SimCLR loss function and VICREG loss function.
[0095] In this embodiment, by obtaining the point cloud model P of the starting 3D model i and multiple views, and respectively analyze the point cloud model P by using DGCNN and MVCNN neural networks i By extracting features from multiple views, the feature vectors of 3D models can be better extracted. The use of massive unlabeled 3D model data by the MVCNN neural network can solve the generalization problem of the model. Fine-tuning training with a small amount of classified data can allow the model to quickly learn the classification information preset based on specific tasks, reducing the workload of manual calibration. And by using the VICREG loss function as a supplement to the SimCLR loss function, the model parameter expansion problem caused by the control of the single SimCLR loss function is effectively solved.
[0096] In one embodiment, the learning of the feature vector is controlled by the SimCLR loss function and the VICREG loss function, including:
[0097] Controlling feature vectors using SimCLR loss function and VICREG loss function With the eigenvector approach;
[0098] Use SimCLR loss function and VICREG loss function to control the feature vector Z i With the eigenvector h i Approaching.
[0099] This scheme uses both SimCLR loss function and VICREG loss function to control the learning of feature vectors.
[0100] The SimCLR loss function ensures and Infinitely close, cross-modal eigenvector Z i With h i The infinite approach of Z i Compared with other models in the same batch, Z j With h j Try to stay away.
[0101] In addition, the VICREG loss function can ensure that the variance of the feature vectors of different models in the same learning batch is maximized in the same dimension, preventing the feature vectors of all 3D models from converging and causing model training collapse.
[0102] See also Figure 3 , mainly describes the self-supervised learning process of 3D model feature extraction based on multi-view and point cloud.
[0103] The process framework includes two branches: point cloud feature vector extraction and multi-view feature vector extraction.
[0104] The self-supervised learning framework batches N = 10 3D models.
[0105] The point cloud branch uses open3d open source tools to read 3D CAD models M i Get 5000×6 point cloud model P i , and then randomly sample 2 2048×6 point cloud data from it, and form a point cloud model after random rotation and scaling and The dynamic graph convolutional neural network DGCNN is used to extract the features of the point cloud model and obtain the feature vectors and beg and The mean of the point cloud P is obtained. i The eigenvector Z i .
[0106] The multi-view branch uses open source rendering tools to transform the 3D CAD model into i Rendering generates 20 multi-views (3 latitude slices of 45°, 90°, and 135°, each slice is rendered and sampled at an interval of 60° in azimuth, and one sampling point is set at the upper and lower poles, that is, two poles are obtained). The multiple views are processed by the same VGG11 neural network (pre-trained) to obtain 20 feature vectors, which are then processed by view pooling and fully connected layers to obtain a 512-dimensional feature vector h i . After multiple views are processed by the same pre-trained VGG11 neural network, 20 feature vectors are obtained. Then, these feature vectors are combined into a single feature representation through view pooling. Finally, this pooled feature representation is mapped to a 512-dimensional feature vector through a fully connected layer.
[0107] View pooling is an operation that aggregates feature vectors of multiple views to obtain an overall feature representation. The specific view pooling method can be selected according to specific needs and tasks. For example, common operations such as maxpooling and mean pooling can be used.
[0108] Subsequently, the pooled feature representation is mapped to a 512-dimensional feature vector space through a fully connected layer. A fully connected layer usually includes one or more linear transformations with training parameters, as well as an activation function to introduce nonlinear properties. Such a fully connected layer can further process and extract features to generate higher-level expressive capabilities.
[0109] Sampling SimCLR loss function and VICREG loss function control feature vector and Approaching, the cross-modal eigenvector Z i With h i approach and prevent the characteristic parameters from expanding.
[0110] See also Figure 4 , mainly describes the fine-tuning training process based on the multi-view hierarchical classification task.
[0111] The present invention constructs a two-level classification framework of three-dimensional model data based on the real industrial resource library (C1 primary class, C2 secondary class), and collects about 20 models for each secondary class for model fine-tuning training.
[0112] The 20 multi-views generated by 3D model rendering are extracted by a self-supervised pre-trained multi-view feature extraction neural network to extract a 512-dimensional feature vector h, and after two fully connected layer branches, the first-level class vector distribution C1 and the second-level class vector distribution C2 are obtained respectively. A hierarchical loss function similar to the deep hierarchical classification model (DHC) is used to drive the multi-view feature extraction neural network to learn manually calibrated hierarchical classification information.
[0113] The advantages of the present invention are as follows:
[0114] (1) In the image branch, 20 multiple views are used instead of a single image, so that the image branch can represent the 3D model as comprehensively as possible, thereby improving the effectiveness of the 3D model feature vector learned by the overall process framework.
[0115] (2) The VICREG loss function is used as a supplement to the SimCLR loss function, which effectively solves the problem of model parameter expansion caused by the control of the single SimCLR loss function.
[0116] (3) The present invention proposes a fine-tuning training mechanism based on hierarchical classification, which is suitable for classification tasks in industrial contexts with many types of classification labels (>1000 categories) and hierarchical characteristics, and can effectively improve the effect of model fine-tuning training.
[0117] (4) The present invention uses a small amount of labeled data to fine-tune the model, which can effectively improve the retrieval accuracy of feature vectors extracted from three-dimensional models, verifying the effectiveness of the technical route.
[0118] One embodiment of the present invention further provides a three-dimensional feature extraction device, comprising:
[0119] The acquisition module is used to obtain the point cloud model P of the starting 3D model i and multiple views;
[0120] The first input module is used to input the preprocessed point cloud model P i Input into the preset DGCNN model to obtain the point cloud model P i The eigenvector Z i ;
[0121] The second input module is used to input the multiple views into the preset MVCNN model to obtain a 512-dimensional feature vector h i ;
[0122] The control module is used to control the learning of feature vectors through SimCLR loss function and VICREG loss function.
[0123] In this embodiment, the advantages and beneficial effects of the three-dimensional feature extraction method have been described above and will not be repeated here. Moreover, since the three-dimensional feature extraction device uses the three-dimensional feature extraction method, the three-dimensional feature extraction device also has the same advantages and beneficial effects.
[0124] One of the embodiments of the present invention further provides a readable storage medium, in which a computer program is stored. The computer program includes program instructions. When the program instructions are executed by a processor of an electronic device, the processor executes the steps of any one of the three-dimensional feature extraction methods described above.
[0125] One of the embodiments of the present invention also provides an electronic device, including: a processor and a memory, the memory is used to store computer program code, the computer program code includes computer instructions, when the processor executes the computer instructions, the electronic device performs the steps of any one of the three-dimensional feature extraction methods described above.
[0126] See also Figure 5 , Figure 5 A schematic diagram of the hardware structure of an electronic device provided by an embodiment of the present invention.
[0127] The electronic device 2 includes a processor 21, a memory 22, an input device 23, and an output device 24. The processor 21, the memory 22, the input device 23, and the output device 24 are coupled via a connector, and the connector includes various interfaces, transmission lines, or buses, etc., which are not limited in the embodiments of the present invention. It should be understood that in various embodiments of the present invention, coupling refers to mutual connection in a specific manner, including direct connection or indirect connection through other devices, for example, through various interfaces, transmission lines, buses, etc.
[0128] The processor 21 may be one or more graphics processing units (GPUs). When the processor 21 is a GPU, the GPU may be a single-core GPU or a multi-core GPU. Optionally, the processor 21 may be a processor group consisting of multiple GPUs, and the multiple processors are coupled to each other via one or more buses. Optionally, the processor may also be other types of processors, etc., which are not limited in the embodiments of the present invention.
[0129] The memory 22 can be used to store computer program instructions and various computer program codes including program codes for executing the scheme of the present invention. Optionally, the memory includes but is not limited to random access memory (RAM), read-only memory (ROM), erasable programmable read only memory (EPROM), or portable read only memory (CD-ROM), which is used for related instructions and data.
[0130] The input device 23 is used to input data and / or signals, and the output device 24 is used to output data and / or signals. The output device 23 and the input device 24 can be independent devices or an integrated device.
[0131] It is understandable that in the embodiment of the present invention, the memory 22 is not only used to store related instructions, and the embodiment of the present invention does not limit the specific data stored in the memory.
[0132] Understandably, Figure 5 Only a simplified design of an electronic device is shown. In practical applications, the electronic device may also include other necessary components, including but not limited to any number of input / output devices, processors, memories, etc., and all video analysis devices that can implement the embodiments of the present invention are within the protection scope of the present invention.
[0133] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.
[0134] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here. Those skilled in the art can also clearly understand that the descriptions of the various embodiments of the present invention have different focuses. For the convenience and brevity of description, the same or similar parts may not be repeated in different embodiments. Therefore, for parts not described or not described in detail in a certain embodiment, refer to the records of other embodiments.
[0135] In the several embodiments provided by the present invention, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0136] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0137] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
[0138] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented by software, it can be implemented in whole or in part in the form of a computer program to be sealed. The computer program to be sealed includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present invention is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted through the computer-readable storage medium. The computer instructions can be transmitted from a website site, computer, server or data center to another website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (digital subscriber line, DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that contains one or more available media integrations. The available medium may be a magnetic medium (eg, a floppy disk, a hard disk, a magnetic tape), an optical medium (eg, a digital versatile disc (DVD)), or a semiconductor medium (eg, a solid state disk (SSD)).
[0139] A person skilled in the art can understand that to implement all or part of the processes in the above-mentioned embodiments, the processes can be completed by a computer program to instruct the relevant hardware, and the program can be stored in a computer-readable storage medium. When the program is executed, it can include the processes of the above-mentioned method embodiments. The aforementioned storage medium includes: a read-only memory (ROM) or a random access memory (RAM), a magnetic disk or an optical disk, and other media that can store program codes.
[0140] The above description is only a preferred embodiment of the present invention, and does not limit the patent scope of the present invention. All equivalent structural changes made by using the contents of the present invention specification and drawings under the inventive concept of the present invention, or directly / indirectly applied in other related technical fields are included in the patent protection scope of the present invention.
Claims
1. A three-dimensional feature extraction method, characterized in that: The following steps are involved: Get the point cloud model P of the starting 3D model i and several multi-views, including: Using open3d open source tools to read 3D CAD models M i , and obtain a 5000×6 point cloud model P i ; Use open source rendering tools to render 3D CAD models M i Performing rendering to generate the plurality of multi-views; The preprocessed point cloud model P i Input into the preset DGCNN model to obtain the point cloud model P i The eigenvector Z i , including: from 5000 × 6 point cloud model P i Randomly sample 2 2048×6 point cloud data; enhance the 2 2048×6 point cloud data to obtain the point cloud model and point cloud models Use DGCNN to model point cloud and point cloud models Perform feature extraction and obtain feature vectors With the eigenvector According to the feature vector With the eigenvector The mean of the point cloud model P i The eigenvector Z i ; The multiple views are input into the preset MVCNN model to obtain a 512-dimensional feature vector h i , including: constructing a model hierarchical classification framework, collecting several three-dimensional models for each classification, and forming fine-tuning training data with classification labels; using the MVCNN model pre-trained by the self-supervisory mechanism, and performing hierarchical classification fine-tuning training through the fine-tuning training data to obtain a preset MVCNN model; using the preset MVCNN model to extract features from the several multi-views; controlling the learning of feature vectors through the SimCLR loss function and the VICREG loss function, including: using the SimCLR loss function and the VICREG loss function to control the feature vector With the eigenvector Approximation; Use SimCLR loss function and VICREG loss function to control the feature vector Z i With the eigenvector h i Approaching.
2. The three-dimensional feature extraction method according to claim 1, characterized in that: Use open source rendering tools to render 3D CAD models i Rendering, including: In the 3D CAD model M i The three-dimensional slices and two poles are used for rendering sampling; each dimensional slice is separated by 60° azimuth, and the three slice dimension angles include 45°, 90° and 135°.
3. The three-dimensional feature extraction method according to claim 1, characterized in that: The enhancement processing of the two 2048×6 point cloud data includes: Randomly rotate and / or stretch two 2048×6 point cloud data.
4. A three-dimensional feature extraction device, characterized in that: include: The acquisition module is used to obtain the point cloud model P of the starting 3D model i and several multi-views, including: Using open3d open source tools to read 3D CAD models M i , and obtain a 5000×6 point cloud model P i ; Use open source rendering tools to render 3D CAD models M i Performing rendering to generate the plurality of multi-views; The first input module is used to input the preprocessed point cloud model P i Input into the preset DGCNN model to obtain the point cloud model P i The eigenvector Z i , including: from 5000 × 6 point cloud model P i Randomly sample 2 2048×6 point cloud data; enhance the 2 2048×6 point cloud data to obtain the point cloud model and point cloud models Use DGCNN to model point cloud and point cloud models Perform feature extraction and obtain feature vectors With the eigenvector According to the feature vector With the eigenvector The mean of the point cloud model P i The eigenvector Z i ; The second input module is used to input the multiple views into the preset MVCNN model to obtain a 512-dimensional feature vector h i , including: constructing a model hierarchical classification framework, collecting a number of three-dimensional models for each classification to form fine-tuning training data with classification labels; using an MVCNN model pre-trained by a self-supervisory mechanism, and performing hierarchical classification fine-tuning training through the fine-tuning training data to obtain a preset MVCNN model; using the preset MVCNN model to extract features from the multiple views; A control module is used to control the learning of feature vectors through SimCLR loss function and VICREG loss function, including: using SimCLR loss function and VICREG loss function to control feature vectors With the eigenvector Approximation; Use SimCLR loss function and VICREG loss function to control the feature vector Z i With the eigenvector h i Approaching.
5. An electronic device comprising: A processor and a memory, characterized in that the memory is used to store computer program codes, the computer program codes include computer instructions, and when the processor executes the computer instructions, the electronic device executes the steps of the three-dimensional feature extraction method as described in any one of claims 1-3.
6. A readable storage medium having a computer program stored therein, characterized in that: The computer program includes program instructions, and when the program instructions are executed by a processor of an electronic device, the processor executes the steps of the three-dimensional feature extraction method as described in any one of claims 1-3.
Citation Information
Patent Citations
Three-dimensional point cloud data classification method based on multi-view convolution pooling
CN111695494A
Three-dimensional model retrieval method based on multi-modal fusion
CN112270762A
Three-dimensional model identification method based on point cloud multi-view fusion
CN112347932A
Rotation robust point cloud classification method based on self-supervised learning
CN113128591A
Method and system for establishing short text multi-level classification model
CN114579737A
