An open vocabulary transmission line equipment image segmentation method and device

Through the open vocabulary method, combined with the visual language large model and the text image diffusion model, the fusion and iterative training of image features and text features are performed, which solves the low accuracy and high cost problems caused by closed training and improves the accuracy of image segmentation of transmission line equipment. Robustness and accuracy.

CN118365887BActive Publication Date: 2024-09-10GUANGDONG POWER GRID CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410782433.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-18
Publication Date
2024-09-10
Estimated Expiration
2044-06-18

AI Technical Summary

Technical Problem

In the existing technology, closed training results in low segmentation accuracy of transmission line equipment images, and manually adding new training data requires a large amount of human resources, resulting in high costs.

Method used

Adopting an open vocabulary method, by presetting a large visual language model of transmission line equipment and a text image diffusion model, combining image features, text implicit features and segmentation results, using dot product operations and cross-entropy loss functions for feature fusion and iterative training, it is achieved Image segmentation.

Benefits of technology

It improves the robustness and accuracy of the image segmentation model, reduces the burden and cost of data acquisition for new classification targets, and enhances the model's generalization ability and information integration effect.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118365887B
    Figure CN118365887B
Patent Text Reader

Abstract

The present invention discloses an open vocabulary power transmission line equipment image segmentation method and device. The application extracts image features by inputting the image to be segmented into an image encoder in a preset power transmission line equipment visual language large model; inputting the image features into a pre-trained adapter to obtain text implicit features; inputting the text implicit features and the image to be segmented into a pre-trained text image diffusion model to obtain image internal features; inputting the image internal features into a pre-trained segmentation result predictor to obtain segmentation results and prediction result embedded representations; and obtaining the final segmentation result by combining the segmentation result, the prediction result embedded representation, the text category label, and the image features to segment the image to be segmented. Through the application, image segmentation tasks in dynamic environments can be solved while reducing the data demand burden and manual annotation costs.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of power transmission line equipment image segmentation, and in particular to an open vocabulary power transmission line equipment image segmentation method and device. Background Art

[0002] Transmission line equipment image segmentation helps to extract high-level geographic information from a large range of transmission line equipment images, providing rich geographic information support for various decision-making, management and monitoring tasks.

[0003] The existing technology usually obtains the image segmentation model through a closed training method, that is, the segmentation category often remains unchanged during the training and testing phases. However, in actual application scenarios, more complex environments often appear, which causes the types of segmentation targets to change continuously. Since the targets of new categories cannot be correctly segmented, the image segmentation model's segmentation accuracy is ultimately low. In order to solve the above problem, the existing technology adds data sets related to new categories through manual annotation and retrains the model. However, the acquisition of data sets requires a large amount of raw data and labor costs, which will cause the difficulty and cost of segmentation tasks to increase dramatically.

[0004] In order to solve the technical problems of low segmentation accuracy caused by the above-mentioned closed training and increased costs caused by manually adding new training data, there is an urgent need for a power transmission line equipment image segmentation method that is more robust and does not require a large amount of human resources. Summary of the invention

[0005] The present invention provides an open vocabulary power transmission line equipment image segmentation method and device to solve the technical problems of low segmentation accuracy caused by closed training and high cost caused by manually adding new training data.

[0006] In order to solve the above technical problems, in a first aspect, an embodiment of the present invention provides an open vocabulary power transmission line equipment image segmentation method, comprising:

[0007] Obtain an image to be segmented and a text category label, input the image to be segmented into an image encoder in a preset power transmission line equipment visual language large model, and extract image features;

[0008] Inputting the image features into a pre-trained adapter to obtain text implicit features;

[0009] Inputting the text implicit features and the image to be segmented into a pre-trained text image diffusion model to obtain the internal features of the image;

[0010] Inputting the internal features of the image into a pre-trained segmentation result predictor to obtain the segmentation result and the prediction result embedding representation;

[0011] By combining the segmentation result, the prediction result embedding representation, the text category label and the image feature, a final segmentation result is obtained, and the image to be segmented is segmented according to the final segmentation result.

[0012] Compared with the prior art, the embodiments of the present invention have the following beneficial effects: by taking advantage of the rich semantic characteristics of the text image diffusion model and the device visual language large model, the model has a strong migration capability to face a large number of dynamically changing scenes, so as to handle the segmentation tasks of a large number of new classification targets, thereby improving the robustness of the image segmentation model; at the same time, by utilizing the rich semantic information of the visual language pre-trained large model and combining it with the dot product operation, the image features extracted by the device visual language large model are efficiently utilized to ensure that it can classify new targets, thereby improving the segmentation precision and accuracy; moreover, it solves the shortcomings of traditional segmentation methods that require a large amount of manual labeling costs or incremental training models when facing new classification targets, thereby reducing the data acquisition burden and cost of segmentation tasks.

[0013] In an embodiment of the first aspect, obtaining a final segmentation result by combining the segmentation result, the prediction result embedding representation, the text category label, and the image feature includes:

[0014] Extracting text display features in the text category label through a text encoder in the preset power transmission line equipment visual language large model;

[0015] The segmentation result, the prediction result embedding representation, the text display feature and the image feature are fused through a dot product operation to obtain the final segmentation result.

[0016] Compared with the prior art, the embodiments of the present invention have the following beneficial effects: according to the rich semantic characteristics of the visual language large model, the explicit features of the text in the text category label are obtained, and the image features, the predicted segmentation result features and the explicit features of the text are further comprehensively considered, thereby realizing the information integration of the image features and the text labels and improving the accuracy of the segmentation.

[0017] In an embodiment of the first aspect, the step of fusing the segmentation result, the prediction result embedding representation, the text display feature, and the image feature through a dot product operation to obtain the final segmentation result includes:

[0018] The segmentation result, the prediction result embedding representation, the text display feature and the image feature are fused by the following formula:

[0019]

[0020]

[0021]

[0022]

[0023] in, Represents the final segmentation result; Representative The segmentation results of the segmentation categories are fused with features. For the The prediction results of the segmentation categories are embedded in the representation; For the Segmentation results of the segmentation categories; is the image feature; It means fusing the internal features of the image with the predicted segmentation results; Represents the text category label; represents the text display features extracted by the text encoder in the preset power transmission line equipment visual language large model; is the normalization function.

[0024] Compared with the prior art, the embodiments of the present invention have the following beneficial effects: through the dot product operation, the text display features are fused with the image features and the segmentation result features, so as to realize feature fusion and joint representation learning and improve the information integration effect.

[0025] In an embodiment of the first aspect, when training the adapter and the segmentation result predictor, the correspondence degree between the segmentation result and the text category label and the segmentation result are iteratively trained through a cross entropy loss function.

[0026] Compared with the prior art, the embodiments of the present invention have the following beneficial effects: through the cross entropy loss function, not only the predicted segmentation results are iteratively trained, but also the accurate alignment of the predicted results with the category label text is ensured, thereby improving the reliability and accuracy of the segmentation results.

[0027] In an embodiment of the first aspect, the iterative training of the correspondence between the segmentation result and the text category label and the segmentation result through a cross entropy loss function includes:

[0028] The cross entropy loss function is specifically:

[0029]

[0030]

[0031] in, is a text category label loss function, used for iteratively training the correspondence between the segmentation result and the text category label; is an image category label loss function, used for iteratively training the segmentation result; is the cross entropy loss function; is the normalization function; For the The prediction results of the segmentation categories are embedded in the representation; For the Segmentation results of the segmentation categories; For the The actual text category labels of the segmentation categories; For the The real segmentation images of the segmentation categories; Display features for text; is the number of segmentation categories.

[0032] Compared with the prior art, the embodiments of the present invention have the following beneficial effects: when aligning the prediction result with the category label text, the prediction result is first embedded in the representation and the text display feature for feature fusion to obtain the prediction result of the text category label, and then the alignment of the prediction result with the category label text is iteratively trained through the cross entropy loss function, and the prediction segmentation result is iteratively trained at the same time, thereby improving the reliability and accuracy of the segmentation result.

[0033] In an embodiment of the first aspect, inputting the text implicit features and the image to be segmented into a pre-trained text image diffusion model to obtain the internal features of the image includes:

[0034] Extracting a noise image of the image to be segmented through a forward process of the diffusion model;

[0035] The noise image and the implicit features of the text are input into a denoising module in the backward process of the diffusion model to obtain internal features of the image.

[0036] Compared with the prior art, the embodiments of the present invention have the following beneficial effects: the text image diffusion model has excellent semantic control ability, and by calculating the cross attention between the text embedding representation and the image visual representation, it can generate high-quality images according to various open vocabulary languages, thereby improving the relevance and discrimination of features, and enhancing the segmentation performance of the model, thereby improving the generalization ability of image segmentation when facing new segmentation tasks.

[0037] In an embodiment of the first aspect, extracting the noise image of the image to be segmented through the forward process of the diffusion model includes:

[0038] The method for obtaining the noise image is specifically as follows:

[0039]

[0040] in, is a noise image; is the step length; is the image to be segmented; is the noise sampled from a standard normal distribution; A hyperparameter that controls the noise level in the model; is a standard normal distribution.

[0041] Compared with the prior art, the embodiments of the present invention have the following beneficial effects: using the text image diffusion model integrated with the denoising module, by processing the noise and text prompt input, a high-quality denoised text representation segmentation image is generated. This process helps to establish a closer association between text and image features, thereby improving the accuracy of segmentation.

[0042] In an embodiment of the first aspect, the adapter is composed of a multi-layer perceptron, and the adapter is residually connected to a text encoder in the power line equipment visual language large model.

[0043] Compared with the prior art, the embodiments of the present invention have the following beneficial effects: through an adapter composed of a multi-layer perceptron and a residual connection with a text encoder, complex nonlinear image information can be effectively converted, thereby improving the model's ability to process complex features, while also improving the adaptability of subsequent input data to the text image diffusion model.

[0044] In an embodiment of the first aspect, the diffusion model is obtained by training with a preset text image dataset of power transmission line equipment.

[0045] Compared with the prior art, the embodiments of the present invention have the following beneficial effects: by iteratively optimizing the diffusion model based on preset text image data of power line equipment, its adaptability to specific scenes and objects in the power line equipment image can be improved, thereby improving the segmentation accuracy of subsequent models for segmentation tasks involving new classification targets.

[0046] In a second aspect, an embodiment of the present invention further provides an open vocabulary power transmission line equipment image segmentation device, comprising: an image feature extraction module, a text implicit feature extraction module, an image internal feature extraction module, an image segmentation module, and a feature fusion module;

[0047] The image feature extraction module is used to obtain the image to be segmented and the text category label, input the image to be segmented into the image encoder in the preset power transmission line equipment visual language large model, and extract the image features;

[0048] The text implicit feature extraction module is used to input the image features into a pre-trained adapter to obtain text implicit features;

[0049] The image internal feature extraction module is used to input the text implicit features and the image to be segmented into a pre-trained text image diffusion model to obtain the image internal features;

[0050] The image segmentation module is used to input the internal features of the image into a pre-trained segmentation result predictor to obtain the segmentation result and the prediction result embedding representation;

[0051] The feature fusion module is used to obtain a segmented image by combining the segmentation result, the prediction result embedding representation, the text category label and the image feature. BRIEF DESCRIPTION OF THE DRAWINGS

[0052] Figure 1 A schematic flow chart of an embodiment of an open vocabulary power transmission line equipment image segmentation method provided by the present invention;

[0053] Figure 2 A schematic structural diagram of an embodiment of an open vocabulary power transmission line equipment image segmentation device provided by the present invention. DETAILED DESCRIPTION

[0054] 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.

[0055] Embodiment 1

[0056] Please refer to Figure 1 , an open vocabulary power transmission line equipment image segmentation method provided by an embodiment of the present invention, including S101 to S105, specifically:

[0057] S101: Acquire an image to be segmented and a text category label, input the image to be segmented into an image encoder in a preset power transmission line equipment visual language large model, and extract image features.

[0058] Furthermore, the preset power transmission line equipment visual language large model also includes a text encoder, and the text category label is input into the encoder to obtain text explicit features.

[0059] S102: Input the image features into a pre-trained adapter to obtain text implicit features.

[0060] Furthermore, the adapter is composed of a multi-layer perceptron; and the adapter is residually connected to the text encoder in the large visual language model of the power transmission line equipment.

[0061] Through the adapter composed of a multi-layer perceptron and the residual connection with the text encoder, complex nonlinear image information can be effectively converted, which improves the model's ability to handle complex features and improves the adaptability of subsequent input data to the text image diffusion model.

[0062] S103: Inputting the text implicit features and the image to be segmented into a pre-trained text image diffusion model to obtain internal features of the image.

[0063] Furthermore, the step of inputting the text implicit features and the image to be segmented into a pre-trained text image diffusion model to obtain the internal features of the image includes:

[0064] Extracting a noise image of the image to be segmented through a forward process of the diffusion model;

[0065] The noise image and the implicit features of the text are input into a denoising module in the backward process of the diffusion model to obtain internal features of the image.

[0066] Preferably, the internal features of the image can be extracted by the following preferred implementations:

[0067] First, the noise image is extracted by the following formula:

[0068]

[0069] in, is a noise image; is the step length; is the image to be segmented; is the noise sampled from a standard normal distribution; A hyperparameter that controls the noise level in the model; is a standard normal distribution.

[0070] After obtaining the noisy image, the noisy image and the implicit features of the text are input into the UNet module of the diffusion model to denoise the noisy image:

[0071]

[0072] in, is the internal feature of the image; is the implicit feature of the text; It is the denoising module for the backward process of the diffusion model.

[0073] Since the diffusion model calculates cross-attention between text embedding representation and image visual representation, the potential features of the diffusion model are well distinguished and correlated with the semantic concepts described by the language. Therefore, when performing open vocabulary image segmentation tasks, extracting internal image features through the text image diffusion model can improve the segmentation accuracy and generalization ability of subsequent models.

[0074] Furthermore, the diffusion model is obtained by training a preset text image dataset of power transmission line equipment.

[0075] Preferably, before extracting image features through the visual language large model, the preset power transmission line equipment text image data is first input into the text image diffusion model to refine the text image diffusion model, wherein the batch size is set to 4, and the iterative refinement is performed for 10 epochs in total, while other parameters remain unchanged, so that the text image diffusion model can better adapt to the specific scenes and features in the power transmission line equipment image.

[0076] S104: Input the internal features of the image into a pre-trained segmentation result predictor to obtain the segmentation result and the prediction result embedding representation.

[0077] Furthermore, when training the adapter and the segmentation result predictor, the correspondence degree between the segmentation result and the text category label and the segmentation result are iteratively trained through a cross entropy loss function.

[0078] Through the cross entropy loss function, not only the predicted segmentation results are iteratively trained, but also the precise alignment of the predicted results with the category label text is ensured, which improves the reliability and accuracy of the segmentation results.

[0079] Preferably, when the adapter and the segmentation result predictor participate in training, preset text image data of power transmission line equipment is used as a training set. During the training process, a total of 90 epochs are trained, and the Adam optimizer is used to optimize the model, wherein the hyperparameter batch size is set to 8, the learning rate is 0.0001, and the weight decay is 0.05.

[0080] Furthermore, the segmentation result is iteratively trained to determine the correspondence between the segmentation result and the text category label through a cross entropy loss function, and the segmentation result includes:

[0081] The cross entropy loss function is specifically:

[0082]

[0083]

[0084] in, is a text category label loss function, used for iteratively training the correspondence between the segmentation result and the text category label; is an image category label loss function, used for iteratively training the segmentation result; is the cross entropy loss function; is the normalization function; For the The prediction results of the segmentation categories are embedded in the representation; For the Segmentation results of the segmentation categories; For the The actual text category labels of the segmentation categories; For the The real segmentation images of the segmentation categories; Display features for text; is the number of segmentation categories.

[0085] Since the open vocabulary segmentation task involves a large number of new classification targets, in order to improve the segmentation effect of the model, in addition to iterative training of the segmentation results, it is also necessary to consider whether the category label text containing the new classification targets is aligned with the prediction results. Therefore, the prediction results are embedded in the representation and the text display features for feature fusion to obtain the prediction results of the text category labels. Then, the alignment between the prediction results and the category label text is iteratively trained through the cross entropy loss function. At the same time, the predicted segmentation results are iteratively trained to improve the reliability and accuracy of the segmentation results.

[0086] Preferably, the segmentation result predictor may be, but is not limited to, a trainable Mask r-cnn.

[0087] S105: Obtain a final segmentation result by combining the segmentation result, the prediction result embedding representation, the text category label, and the image feature, and segment the image to be segmented according to the final segmentation result.

[0088] Furthermore, the obtaining of the final segmentation result by combining the segmentation result, the prediction result embedding representation, the text category label and the image feature includes:

[0089] Extracting text display features in the text category label through a text encoder in the preset power transmission line equipment visual language large model;

[0090] The segmentation result, the prediction result embedding representation, the text display feature and the image feature are fused through a dot product operation to obtain the final segmentation result.

[0091] Preferably, the final segmentation result can be obtained by the following preferred implementation method:

[0092] The internal features of the image are input into the trained segmentation result predictor to obtain the segmentation result. and the prediction result embedding representation ; Then the segmentation result and the prediction result embedding representation , test target category label text and image features Combined to segment the image, specifically through the following formula:

[0093]

[0094]

[0095]

[0096]

[0097] in, Represents the final segmentation result; Representative The segmentation results of the segmentation categories are fused with features. For the The prediction results of the segmentation categories are embedded in the representation; For the Segmentation results of the segmentation categories; is the image feature; It means fusing the internal features of the image with the predicted segmentation results; Represents the text category label; represents the text display features extracted by the text encoder in the preset power transmission line equipment visual language large model; is the normalization function.

[0098] The above-mentioned preferred embodiment obtains the explicit features of the text in the text category labels through a large visual language model with rich semantic features, and proposes a unique feature fusion strategy, which comprehensively considers the image features, the predicted segmentation result features and the explicit features of the text, and fuses these features with the image features in the reasoning stage, thereby achieving a deeper level of information integration and improving the accuracy of segmentation.

[0099] In summary, it can be seen that the open vocabulary power line equipment image segmentation method proposed in the embodiment of the present invention has the following beneficial effects compared with the prior art: by combining the text image diffusion model with the visual language large model and optimizing the power line equipment image, the adaptability and robustness of the model in specific scenarios are improved, so that the model can be better generalized to new target categories; in addition, a unique feature fusion strategy is proposed, which comprehensively considers image features, predicted segmentation result features and text explicit features, and adjusts the image encoder output through a multi-layer perceptron (MLP) adapter to obtain implicit text features, and fuses these features with image features in the inference stage, thereby achieving deeper information integration; using the text-image diffusion model integrated by the UNet module, by processing noise and text prompt input, a high-quality denoised text representation segmentation image is generated, thereby improving the correlation between text and image features and further improving the accuracy of segmentation; through the cross entropy loss function, not only the predicted segmentation results are iteratively trained, but also the accurate alignment of the predicted results with the category label text is ensured, thereby improving the reliability and accuracy of the segmentation results.

[0100] Embodiment 2

[0101] refer to Figure 2 The embodiment of the present invention further provides an open vocabulary power transmission line equipment image segmentation device, comprising: an image feature extraction module 11, a text implicit feature extraction module 12, an image internal feature extraction module 13, an image segmentation module 14 and a feature fusion module 15.

[0102] Furthermore, the image feature extraction module 11 is used to obtain the image to be segmented and the text category label, and input the image to be segmented into the image encoder in the preset power transmission line equipment visual language large model to extract image features; the text implicit feature extraction module 12 is used to input the image features into a pre-trained adapter to obtain text implicit features; the image internal feature extraction module 13 is used to input the text implicit features and the image to be segmented into a pre-trained text image diffusion model to obtain image internal features; the image segmentation module 14 is used to input the image internal features into a pre-trained segmentation result predictor to obtain the segmentation result and the prediction result embedded representation; the feature fusion module 15 is used to obtain the final segmentation result by combining the segmentation result, the prediction result embedded representation, the text category label and the image feature, and segment the image to be segmented according to the final segmentation result.

[0103] Furthermore, the feature fusion module 15 is used to obtain the final segmentation result by combining the segmentation result, the prediction result embedding representation, the text category label and the image feature, including: extracting the text display features in the text category label through the text encoder in the preset power transmission line equipment visual language large model; through the dot product operation, the segmentation result, the prediction result embedding representation, the text display features and the image features are fused to obtain the final segmentation result.

[0104] Furthermore, the segmentation result, the prediction result embedding representation, the text display feature and the image feature are fused by dot product operation to obtain the final segmentation result, including:

[0105] The segmentation result, the prediction result embedding representation, the text display feature and the image feature are fused by the following formula:

[0106]

[0107]

[0108]

[0109]

[0110] in, Represents the final segmentation result; Representative The segmentation results of the segmentation categories are fused with features. For the The prediction results of the segmentation categories are embedded in the representation; For the Segmentation results of the segmentation categories; is the image feature; It means fusing the internal features of the image with the predicted segmentation results; Represents the text category label; represents the text display features extracted by the text encoder in the preset power transmission line equipment visual language large model; is the normalization function.

[0111] Furthermore, when training the adapter and the segmentation result predictor, the correspondence degree between the segmentation result and the text category label and the segmentation result are iteratively trained through a cross entropy loss function.

[0112] Furthermore, the segmentation result is iteratively trained to determine the correspondence between the segmentation result and the text category label through a cross entropy loss function, and the segmentation result includes:

[0113] The cross entropy loss function is specifically:

[0114]

[0115]

[0116] in, is a text category label loss function, used for iteratively training the correspondence between the segmentation result and the text category label; is an image category label loss function, used for iteratively training the segmentation result; is the cross entropy loss function; is the normalization function; For the The prediction results of the segmentation categories are embedded in the representation; For the Segmentation results of the segmentation categories; For the The actual text category labels of the segmentation categories; For the The real segmentation images of the segmentation categories; Display features for text; is the number of segmentation categories.

[0117] Furthermore, the image internal feature extraction module 13 is used to input the text implicit features and the image to be segmented into a pre-trained text image diffusion model to obtain the image internal features, including: extracting the noise image of the image to be segmented through the forward process of the diffusion model; inputting the noise image and the text implicit features into the denoising module in the backward process of the diffusion model to obtain the image internal features.

[0118] Furthermore, extracting the noise image of the image to be segmented through the forward process of the diffusion model includes:

[0119] The method for obtaining the noise image is specifically as follows:

[0120]

[0121] in, is a noise image; is the step length; is the image to be segmented; is the noise sampled from a standard normal distribution; A hyperparameter that controls the noise level in the model; is a standard normal distribution.

[0122] Furthermore, the adapter is composed of a multi-layer perceptron; and the adapter is residually connected to the text encoder in the large visual language model of the power transmission line equipment.

[0123] Furthermore, the diffusion model is obtained by training a preset text image dataset of power transmission line equipment.

[0124] Embodiment 3

[0125] Based on the above-mentioned embodiment of the open vocabulary power transmission line equipment image segmentation configuration method, another embodiment of the present invention provides an open vocabulary power transmission line equipment image segmentation configuration terminal device, the open vocabulary power transmission line equipment image segmentation configuration terminal device includes a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, when the processor executes the computer program, the open vocabulary power transmission line equipment image segmentation configuration method of any embodiment of the present invention is implemented.

[0126] Exemplarily, in this embodiment, the computer program may be divided into one or more modules, which are stored in the memory and executed by the processor to implement the present invention. The one or more modules may be a series of computer program instruction segments capable of implementing specific functions, which are used to describe the execution process of the computer program in the open vocabulary power transmission line equipment image segmentation configuration device.

[0127] The open vocabulary power transmission line equipment image segmentation configuration device may be a computing device such as a desktop computer, a notebook, a palm computer, a cloud server, etc. The open vocabulary power transmission line equipment image segmentation configuration terminal device may include, but is not limited to, a processor and a memory.

[0128] The processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or the processor may be any conventional processor, etc. The processor is the control center of the open vocabulary power transmission line equipment image segmentation configuration device, and uses various interfaces and lines to connect the various parts of the entire open vocabulary power transmission line equipment image segmentation configuration device. The memory may be used to store the computer program and / or module, and the processor implements various functions of the open vocabulary power transmission line equipment image segmentation configuration device by running or executing the computer program and / or module stored in the memory, and calling the data stored in the memory. The memory may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function, etc.; the data storage area may store data created according to the use of the mobile phone, etc. In addition, the memory may include high-speed random access memory and may also include non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card (Flash Card), at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.

[0129] Embodiment 4

[0130] Based on the above-mentioned embodiment of the open vocabulary power transmission line equipment image segmentation configuration method, another embodiment of the present invention provides a storage medium, wherein the storage medium includes a stored computer program, wherein when the computer program is running, the device where the storage medium is located is controlled to execute the open vocabulary power transmission line equipment image segmentation configuration method of any embodiment of the present invention.

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

[0132] The specific embodiments described above further illustrate the purpose, technical solutions and beneficial effects of the present invention. It should be understood that the above description is only a specific embodiment of the present invention and is not intended to limit the scope of protection of the present invention. It is particularly pointed out that for those skilled in the art, any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention should be included in the scope of protection of the present invention.

Claims

1. An open vocabulary power transmission line equipment image segmentation method, characterized in that: include: Obtain an image to be segmented and a text category label, input the image to be segmented into an image encoder in a preset power transmission line equipment visual language large model, and extract image features; Inputting the image features into a pre-trained adapter to obtain text implicit features; Inputting the text implicit features and the image to be segmented into a pre-trained text image diffusion model to obtain the internal features of the image; Inputting the internal features of the image into a pre-trained segmentation result predictor to obtain the segmentation result and the prediction result embedding representation; Acquire a final segmentation result by combining the segmentation result, the prediction result embedding representation, the text category label and the image feature, and segment the image to be segmented according to the final segmentation result; The obtaining of a final segmentation result by combining the segmentation result, the prediction result embedding representation, the text category label and the image feature includes: Extracting text display features in the text category label through a text encoder in the preset power transmission line equipment visual language large model; The method comprises: fusing the segmentation result, the prediction result embedding representation, the text display feature and the image feature through a dot product operation to obtain the final segmentation result; fusing the segmentation result, the prediction result embedding representation, the text display feature and the image feature through a dot product operation to obtain the final segmentation result, including: The segmentation result, the prediction result embedding representation, the text display feature and the image feature are fused by the following formula: in, Represents the final segmentation result; Representative The segmentation results of the segmentation categories are fused with features. For the The prediction results of the segmentation categories are embedded in the representation; For the Segmentation results of the segmentation categories; is the image feature; It means fusing the internal features of the image with the predicted segmentation results; Represents the text category label; represents the text display features extracted by the text encoder in the preset power transmission line equipment visual language large model; is the normalization function.

2. The open vocabulary power transmission line equipment image segmentation method according to claim 1, characterized in that: include: When training the adapter and the segmentation result predictor, the correspondence degree between the segmentation result and the text category label and the segmentation result are iteratively trained through a cross entropy loss function.

3. An open vocabulary power transmission line equipment image segmentation method as claimed in claim 2, characterized in that: The cross entropy loss function is used to iteratively train the correspondence between the segmentation result and the text category label, and the segmentation result includes: The cross entropy loss function is specifically: in, is a text category label loss function, used for iteratively training the correspondence between the segmentation result and the text category label; is an image category label loss function, used for iteratively training the segmentation result; is the cross entropy loss function; is the normalization function; For the The prediction results of the segmentation categories are embedded in the representation; For the Segmentation results of the segmentation categories; For the The actual text category labels of the segmentation categories; For the The real segmentation images of the segmentation categories; Display features for text; is the number of segmentation categories.

4. The open vocabulary power transmission line equipment image segmentation method according to claim 1, characterized in that: The step of inputting the text implicit features and the image to be segmented into a pre-trained text image diffusion model to obtain the internal features of the image includes: Extracting a noise image of the image to be segmented through a forward process of the diffusion model; The noise image and the implicit features of the text are input into a denoising module in the backward process of the diffusion model to obtain internal features of the image.

5. An open vocabulary power transmission line equipment image segmentation method as claimed in claim 4, characterized in that: The step of extracting the noise image of the image to be segmented through the forward process of the diffusion model includes: The method for obtaining the noise image is specifically as follows: in, is a noise image; is the step length; is the image to be segmented; A hyperparameter that controls the noise level in the model; is the noise sampled from a standard normal distribution; is a standard normal distribution.

6. The open vocabulary power transmission line equipment image segmentation method according to claim 1, characterized in that: include: The adapter is composed of a multi-layer perceptron, and the adapter is residually connected to the text encoder in the large visual language model of the power transmission line equipment.

7. The open vocabulary power transmission line equipment image segmentation method according to claim 1, characterized in that: include: The diffusion model is obtained by training with a preset text image data set of power transmission line equipment.

8. An open vocabulary transmission line equipment image segmentation device, characterized in that include: Image feature extraction module, text implicit feature extraction module, image internal feature extraction module, image segmentation module and feature fusion module; The image feature extraction module is used to obtain the image to be segmented and the text category label, input the image to be segmented into the image encoder in the preset power transmission line equipment visual language large model, and extract the image features; The text implicit feature extraction module is used to input the image features into a pre-trained adapter to obtain text implicit features; The image internal feature extraction module is used to input the text implicit features and the image to be segmented into a pre-trained text image diffusion model to obtain the image internal features; The image segmentation module is used to input the internal features of the image into a pre-trained segmentation result predictor to obtain the segmentation result and the prediction result embedding representation; The feature fusion module is used to obtain a final segmentation result by combining the segmentation result, the prediction result embedding representation, the text category label and the image feature, and segment the image to be segmented according to the final segmentation result; The feature fusion module is used to obtain a final segmentation result by combining the segmentation result, the prediction result embedding representation, the text category label and the image feature, including: Extracting text display features in the text category label through a text encoder in the preset power transmission line equipment visual language large model; By performing a dot product operation, the segmentation result, the prediction result embedding representation, the text display feature and the image feature are fused to obtain the final segmentation result; The step of fusing the segmentation result, the prediction result embedding representation, the text display feature and the image feature through a dot product operation to obtain the final segmentation result includes: The segmentation result, the prediction result embedding representation, the text display feature and the image feature are fused by the following formula: in, Represents the final segmentation result; Representative The segmentation results of the segmentation categories are fused with features. For the The prediction results of the segmentation categories are embedded in the representation; For the Segmentation results of the segmentation categories; is the image feature; It means fusing the internal features of the image with the predicted segmentation results; Represents the text category label; represents the text display features extracted by the text encoder in the preset power transmission line equipment visual language large model; is the normalization function.