Super-resolution image reconstruction method and device

The super-resolution image reconstruction method combined with the enhanced Swin Transformer and U-Net discriminator solves the problems of high image reconstruction cost and poor quality in thermal imaging of power equipment in the existing technology, and achieves high-quality image reconstruction, especially It is detail recovery in high frequency bands and multi-texture areas.

CN118780988APending Publication Date: 2024-10-15ELECTRIC POWER RESEARCH INSTITUTE OF STATE GRID JIBEI ELECTRIC POWER CO LTD +3
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410885218.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-03
Publication Date
2024-10-15

AI Technical Summary

Technical Problem

Existing super-resolution image reconstruction methods have problems in thermal imaging of power equipment such as high cost and overly smooth and blurry images. In particular, methods based on CNN and Transformer models are difficult to generate real details when processing high-frequency bands and multi-texture areas.

Method used

The enhanced Swin Transformer is used as the backbone of the generator, combined with the U-Net discriminator and region-aware strategy, and the generator is trained through BB and BP loss functions, BP and adversarial loss functions, and perceptual loss functions to achieve high-resolution reconstruction of images.

Benefits of technology

The image quality is improved, the generated super-resolution image has a higher PSNR effect, overcomes the singleness and unreality problems of the CNN model, and can better restore high-frequency information and details in thermal imaging of power equipment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118780988A_ABST
    Figure CN118780988A_ABST
Patent Text Reader

Abstract

The invention provides a super-resolution image reconstruction method and device, and relates to the technical field of artificial intelligence. The method comprises the following steps: acquiring a thermal imaging image of the power equipment; and processing the thermal imaging image of the power equipment based on a preset super-resolution image generation model, and reconstructing to obtain a super-resolution image corresponding to the thermal imaging image of the power equipment. The device executes the method. According to the super-resolution image reconstruction method and device provided by the embodiment of the invention, the thermal imaging image of the electrical equipment with higher image quality can be obtained.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of artificial intelligence technology, and in particular to a super-resolution image reconstruction method and device. Background Art

[0002] Infrared thermal imaging technology is a technology that uses signal processing and photoelectric conversion to accurately quantify the detected heat and intuitively express the temperature distribution state of an object in the form of an image. In the current situation where the power Internet of Things technology is widely used in the situation of power equipment situation awareness, infrared thermal imaging technology can be used to conduct real-time live detection of power equipment, obtain the temperature distribution of power equipment, thereby discovering equipment defects and faults, and evaluating the health status of power equipment. However, since higher-resolution infrared detectors often require hardware conditions such as extremely small unit pixel size or extremely large chip size, higher-resolution infrared detectors are very expensive and difficult to popularize in power grids. Therefore, it is necessary to perform super-resolution (SR) reconstruction of thermal imaging images to improve the resolution of the original low-resolution (LR) image and restore more information details of the image in high-frequency bands and multi-texture areas.

[0003] The existing mainstream image super-resolution algorithms are mainly based on the two frameworks of convolutional neural network (CNN) and Transformer, and are implemented with certain improvements and enhancements. By studying the improved network architecture based on CNN and the proposed complex structure, such as residual learning, dense connection, Laplacian pyramid and other channel attention mechanisms, but due to the design of the convolution layer of the CNN-based method, the convolution kernel will interact with the original image in a process that is irrelevant to the content, resulting in the problem of using the same convolution kernel to reconstruct different areas of the image. The Transformer-based architecture has a self-attention mechanism to interact with image information globally. At present, compared with CNN, the improved network has more outstanding performance in visual tasks, but due to the quadratic complexity of processing images, a large number of parameters are often generated during the training process and the amount of calculation is large. Therefore, the improved Transformer model combines the advantages of the Transformer-based and CNN-based models, not only establishing long-term dependencies between images, but also processing large-size images through local attention mechanisms, and achieving higher PSNR effects with fewer parameters. However, this model may produce ambiguous results because it often uses mean squared error (MSE) or mean absolute error (MAE) to perform one-to-one supervision between a single LR image and its corresponding single HR image, which may lead to pixel averaging of the image obtained after super-resolution as well as overly smoothed and blurred results, affecting its authenticity. Summary of the invention

[0004] In view of the problems in the prior art, the embodiments of the present invention provide a super-resolution image reconstruction method and device, which can at least partially solve the problems in the prior art.

[0005] In one aspect, the present invention provides a super-resolution image reconstruction method, comprising:

[0006] Acquire thermal imaging images of power equipment;

[0007] Processing the thermal imaging image of the electric power equipment based on a preset super-resolution image generation model to reconstruct a super-resolution image corresponding to the thermal imaging image of the electric power equipment;

[0008] The preset super-resolution image generation model is obtained by training a generator and a discriminator based on the original low-resolution image set, and the generator includes a shallow feature extraction module, a deep feature extraction module and an image reconstruction module connected in sequence;

[0009] The first four layers of the deep feature extraction module are ESTB, the fifth layer is a convolutional layer, and the first residual connection is after the fifth layer. The first residual connection is used to achieve cross-linking with the output result of the shallow feature extraction module. The sixth and seventh layers connected after the first residual connection are ESTB, the eighth layer is a convolutional layer, and the second residual connection is after the eighth layer. The second residual connection is used to achieve cross-linking with the output result of the first residual connection;

[0010] Each ESTB consists of six layers of ESTL, one layer of OCAB and one layer of convolutional layer connected in sequence;

[0011] Each ESTL includes a normalization layer, a channel attention mechanism layer, a normalization layer, and a first MLP layer connected in sequence. After the channel attention mechanism layer, there is a third residual connection, which is used to realize a cross-link with the input of the corresponding ESTL. After the first MLP layer, there is a fourth residual connection, which is used to realize a cross-link with the output result of the third residual connection.

[0012] Each OCAB layer includes a normalization layer, an overlapping cross attention layer, a normalization layer and a second MLP layer connected in sequence. After the overlapping cross attention layer, there is a fifth residual connection, and the fifth residual connection is used to realize cross-linking with the input of the corresponding OCAB. After the second MLP layer, there is a sixth residual connection, and the sixth residual connection is used to realize cross-linking with the output result of the fifth residual connection.

[0013] The discriminator includes an encoder and a decoder connected in sequence, and the encoder is used to downsample the super-resolution image generated by the image reconstruction module in the training phase to obtain global information;

[0014] The decoder is used to upsample the super-resolution image in the training phase to output an image with the same resolution as the super-resolution image in the training phase.

[0015] The encoder includes four layer structures, wherein the first layer structure includes a convolution layer and a spectral normalization layer connected in sequence, and the last three layer structures include a convolution layer, a spectral normalization layer and a Relu activation function connected in sequence;

[0016] The decoder comprises three groups of hierarchical structures connected in pairs in sequence, and a convolutional layer and a spectral normalization layer connected in sequence are connected after the last hierarchical structure;

[0017] Each hierarchical structure includes an interpolation operation structure as one part, and a sequentially connected convolution layer, a spectral normalization layer, and a ReLU activation function as another part.

[0018] The discriminator has a region-aware strategy, including:

[0019] The super-resolution image in the training stage is separated according to the statistical local pixel distribution of the original high-resolution image to obtain a texture-rich area image, which is input into the discriminator for learning and training, and compared with the original high-resolution image to output the authenticity result of the image.

[0020] Among them, the training generator includes:

[0021] The generator is trained using a BB loss function, a BP loss function, a first adversarial loss function corresponding to the generator, and a perceptual loss function.

[0022] The BB loss function is obtained by calculating the L1 loss of the absolute value of the difference between the predicted image block and the best matching high-resolution image block.

[0023] The BP loss function is obtained by calculating the L1 loss of the absolute value of the difference between the super-resolution image obtained by bicubic downsampling output r times and the original low-resolution image; r is a scaling factor.

[0024] In one aspect, the present invention provides a super-resolution image reconstruction device, comprising:

[0025] An acquisition unit, used for acquiring thermal imaging images of power equipment;

[0026] A reconstruction unit, configured to process the thermal imaging image of the electric power equipment based on a preset super-resolution image generation model, and reconstruct a super-resolution image corresponding to the thermal imaging image of the electric power equipment;

[0027] The preset super-resolution image generation model is obtained by training a generator and a discriminator based on the original low-resolution image set, and the generator includes a shallow feature extraction module, a deep feature extraction module and an image reconstruction module connected in sequence;

[0028] The first four layers of the deep feature extraction module are ESTB, the fifth layer is a convolutional layer, and the first residual connection is after the fifth layer. The first residual connection is used to achieve cross-linking with the output result of the shallow feature extraction module. The sixth and seventh layers connected after the first residual connection are ESTB, the eighth layer is a convolutional layer, and the second residual connection is after the eighth layer. The second residual connection is used to achieve cross-linking with the output result of the first residual connection;

[0029] Each ESTB consists of six layers of ESTL, one layer of OCAB and one layer of convolutional layer connected in sequence;

[0030] Each ESTL includes a normalization layer, a channel attention mechanism layer, a normalization layer, and a first MLP layer connected in sequence. After the channel attention mechanism layer, there is a third residual connection, which is used to realize a cross-link with the input of the corresponding ESTL. After the first MLP layer, there is a fourth residual connection, which is used to realize a cross-link with the output result of the third residual connection.

[0031] Each OCAB layer includes a normalization layer, an overlapping cross attention layer, a normalization layer and a second MLP layer connected in sequence. After the overlapping cross attention layer, there is a fifth residual connection, and the fifth residual connection is used to realize cross-linking with the input of the corresponding OCAB. After the second MLP layer, there is a sixth residual connection, and the sixth residual connection is used to realize cross-linking with the output result of the fifth residual connection.

[0032] In another aspect, an embodiment of the present invention provides an electronic device, including: a processor, a memory, and a bus, wherein:

[0033] The processor and the memory communicate with each other via the bus;

[0034] The memory stores program instructions that can be executed by the processor, and the processor calls the program instructions to execute the following method:

[0035] Acquire thermal imaging images of power equipment;

[0036] Processing the thermal imaging image of the electric power equipment based on a preset super-resolution image generation model to reconstruct a super-resolution image corresponding to the thermal imaging image of the electric power equipment;

[0037] The preset super-resolution image generation model is obtained by training a generator and a discriminator based on the original low-resolution image set, and the generator includes a shallow feature extraction module, a deep feature extraction module and an image reconstruction module connected in sequence;

[0038] The first four layers of the deep feature extraction module are ESTB, the fifth layer is a convolutional layer, and the first residual connection is after the fifth layer. The first residual connection is used to achieve cross-linking with the output result of the shallow feature extraction module. The sixth and seventh layers connected after the first residual connection are ESTB, the eighth layer is a convolutional layer, and the second residual connection is after the eighth layer. The second residual connection is used to achieve cross-linking with the output result of the first residual connection;

[0039] Each ESTB consists of six layers of ESTL, one layer of OCAB and one layer of convolutional layer connected in sequence;

[0040] Each ESTL includes a normalization layer, a channel attention mechanism layer, a normalization layer, and a first MLP layer connected in sequence. After the channel attention mechanism layer, there is a third residual connection, which is used to realize a cross-link with the input of the corresponding ESTL. After the first MLP layer, there is a fourth residual connection, which is used to realize a cross-link with the output result of the third residual connection.

[0041] Each OCAB layer includes a normalization layer, an overlapping cross attention layer, a normalization layer and a second MLP layer connected in sequence. After the overlapping cross attention layer, there is a fifth residual connection, and the fifth residual connection is used to realize cross-linking with the input of the corresponding OCAB. After the second MLP layer, there is a sixth residual connection, and the sixth residual connection is used to realize cross-linking with the output result of the fifth residual connection.

[0042] An embodiment of the present invention provides a non-transitory computer-readable storage medium, including:

[0043] The non-transitory computer-readable storage medium stores computer instructions, which cause the computer to execute the following method:

[0044] Acquire thermal imaging images of power equipment;

[0045] Processing the thermal imaging image of the electric power equipment based on a preset super-resolution image generation model to reconstruct a super-resolution image corresponding to the thermal imaging image of the electric power equipment;

[0046] The preset super-resolution image generation model is obtained by training a generator and a discriminator based on the original low-resolution image set, and the generator includes a shallow feature extraction module, a deep feature extraction module and an image reconstruction module connected in sequence;

[0047] The first four layers of the deep feature extraction module are ESTB, the fifth layer is a convolutional layer, and the first residual connection is after the fifth layer. The first residual connection is used to achieve cross-linking with the output result of the shallow feature extraction module. The sixth and seventh layers connected after the first residual connection are ESTB, the eighth layer is a convolutional layer, and the second residual connection is after the eighth layer. The second residual connection is used to achieve cross-linking with the output result of the first residual connection;

[0048] Each ESTB consists of six layers of ESTL, one layer of OCAB and one layer of convolutional layer connected in sequence;

[0049] Each ESTL includes a normalization layer, a channel attention mechanism layer, a normalization layer, and a first MLP layer connected in sequence. After the channel attention mechanism layer, there is a third residual connection, which is used to realize a cross-link with the input of the corresponding ESTL. After the first MLP layer, there is a fourth residual connection, which is used to realize a cross-link with the output result of the third residual connection.

[0050] Each OCAB layer includes a normalization layer, an overlapping cross attention layer, a normalization layer and a second MLP layer connected in sequence. After the overlapping cross attention layer, there is a fifth residual connection, and the fifth residual connection is used to realize cross-linking with the input of the corresponding OCAB. After the second MLP layer, there is a sixth residual connection, and the sixth residual connection is used to realize cross-linking with the output result of the fifth residual connection.

[0051] The super-resolution image reconstruction method and device provided by the embodiment of the present invention obtain thermal imaging images of power equipment; process the thermal imaging images of the power equipment based on a preset super-resolution image generation model, and reconstruct a super-resolution image corresponding to the thermal imaging images of the power equipment; wherein the preset super-resolution image generation model is obtained by training a generator and a discriminator according to an original low-resolution image set, and the generator includes a shallow feature extraction module, a deep feature extraction module and an image reconstruction module connected in sequence; the first four layers of the deep feature extraction module are ESTB, the fifth layer is a convolutional layer, and after the fifth layer is a first residual connection, the first residual connection is used to achieve cross-linking with the output result of the shallow feature extraction module, the sixth and seventh layers connected after the first residual connection are ESTB, the eighth layer is a convolutional layer, and after the eighth layer is a second residual connection, the second residual connection is used to achieve cross-linking with the output result of the first residual connection; each ESTB includes six layers of ESTL, one layer of OCAB and one layer of convolution layer connected in sequence; each ESTL includes a normalization layer, a channel attention mechanism layer, a normalization layer and a first MLP layer connected in sequence, and the channel attention mechanism layer is followed by a third residual connection, and the third residual connection is used to realize a cross-link with the input of the corresponding ESTL, and the first MLP layer is followed by a fourth residual connection, and the fourth residual connection is used to realize a cross-link with the output result of the third residual connection; each layer of OCAB includes a normalization layer, an overlapping cross attention layer, a normalization layer and a second MLP layer connected in sequence, and the overlapping cross attention layer is followed by a fifth residual connection, and the fifth residual connection is used to realize a cross-link with the input of the corresponding OCAB, and the second MLP layer is followed by a sixth residual connection, and the sixth residual connection is used to realize a cross-link with the output result of the fifth residual connection, so as to obtain thermal imaging images of power equipment with higher image quality. BRIEF DESCRIPTION OF THE DRAWINGS

[0052] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the prior art descriptions. 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 these drawings without creative work. In the drawings:

[0053] Figure 1 It is a flowchart of a super-resolution image reconstruction method provided by an embodiment of the present invention.

[0054] Figure 2 It is a schematic diagram illustrating the composition structure of the generator provided in an embodiment of the present invention.

[0055] Figure 3 It is a schematic diagram illustrating the composition structure of the discriminator provided by an embodiment of the present invention.

[0056] Figure 4 It is a flowchart of a super-resolution image reconstruction method provided by another embodiment of the present invention.

[0057] Figure 5 It is a schematic diagram of the structure of a super-resolution image reconstruction device provided by an embodiment of the present invention.

[0058] Figure 6 A schematic diagram of the physical structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0059] In order to make the purpose, technical scheme and advantages of the embodiments of the present invention more clear, the embodiments of the present invention are further described in detail below in conjunction with the accompanying drawings. Here, the illustrative embodiments of the present invention and their descriptions are used to explain the present invention, but are not intended to limit the present invention. It should be noted that, in the absence of conflict, the embodiments in this application and the features in the embodiments can be combined with each other arbitrarily.

[0060] Figure 1 FIG. 1 is a flow chart of a super-resolution image reconstruction method provided by an embodiment of the present invention. Figure 1 As shown, the super-resolution image reconstruction method provided by the embodiment of the present invention includes:

[0061] Step S1: Acquire thermal imaging images of power equipment.

[0062] Step S2: processing the thermal imaging image of the power equipment based on a preset super-resolution image generation model to reconstruct a super-resolution image corresponding to the thermal imaging image of the power equipment;

[0063] The preset super-resolution image generation model is obtained by training a generator and a discriminator based on the original low-resolution image set, and the generator includes a shallow feature extraction module, a deep feature extraction module and an image reconstruction module connected in sequence;

[0064] The first four layers of the deep feature extraction module are ESTB, the fifth layer is a convolutional layer, and the first residual connection is after the fifth layer. The first residual connection is used to achieve cross-linking with the output result of the shallow feature extraction module. The sixth and seventh layers connected after the first residual connection are ESTB, the eighth layer is a convolutional layer, and the second residual connection is after the eighth layer. The second residual connection is used to achieve cross-linking with the output result of the first residual connection;

[0065] Each ESTB consists of six layers of ESTL, one layer of OCAB and one layer of convolutional layer connected in sequence;

[0066] Each ESTL includes a normalization layer, a channel attention mechanism layer, a normalization layer, and a first MLP layer connected in sequence. After the channel attention mechanism layer, there is a third residual connection, which is used to realize a cross-link with the input of the corresponding ESTL. After the first MLP layer, there is a fourth residual connection, which is used to realize a cross-link with the output result of the third residual connection.

[0067] Each OCAB layer includes a normalization layer, an overlapping cross attention layer, a normalization layer and a second MLP layer connected in sequence. After the overlapping cross attention layer, there is a fifth residual connection, and the fifth residual connection is used to realize cross-linking with the input of the corresponding OCAB. After the second MLP layer, there is a sixth residual connection, and the sixth residual connection is used to realize cross-linking with the output result of the fifth residual connection.

[0068] In the above step S1, the device obtains a thermal imaging image of the power equipment. The device may be a computer device that executes the method, for example, it may include a client, specifically a mobile phone or a tablet computer, etc. It should be noted that the acquisition and analysis of sensitive data related to user privacy in the embodiment of the present invention is authorized by the user.

[0069] In the above step S2, the device processes the thermal imaging image of the power equipment based on a preset super-resolution image generation model to reconstruct a super-resolution image corresponding to the thermal imaging image of the power equipment;

[0070] The preset super-resolution image generation model is obtained by training a generator and a discriminator based on the original low-resolution image set, and the generator includes a shallow feature extraction module, a deep feature extraction module and an image reconstruction module connected in sequence;

[0071] The first four layers of the deep feature extraction module are ESTB, the fifth layer is a convolutional layer, and the first residual connection is after the fifth layer. The first residual connection is used to achieve cross-linking with the output result of the shallow feature extraction module. The sixth and seventh layers connected after the first residual connection are ESTB, the eighth layer is a convolutional layer, and the second residual connection is after the eighth layer. The second residual connection is used to achieve cross-linking with the output result of the first residual connection;

[0072] Each ESTB consists of six layers of ESTL, one layer of OCAB and one layer of convolutional layer connected in sequence;

[0073] Each ESTL includes a normalization layer, a channel attention mechanism layer, a normalization layer, and a first MLP layer connected in sequence. After the channel attention mechanism layer, there is a third residual connection, which is used to realize a cross-link with the input of the corresponding ESTL. After the first MLP layer, there is a fourth residual connection, which is used to realize a cross-link with the output result of the third residual connection.

[0074] Each OCAB layer includes a normalization layer, an overlapping cross attention layer, a normalization layer and a second MLP layer connected in sequence. After the overlapping cross attention layer, there is a fifth residual connection, and the fifth residual connection is used to realize cross-linking with the input of the corresponding OCAB. After the second MLP layer, there is a sixth residual connection, and the sixth residual connection is used to realize cross-linking with the output result of the fifth residual connection.

[0075] like Figure 2 As shown, the structure of the generator is described as follows:

[0076] In the shallow feature extraction module, a single convolutional layer is used to transform the input image I LR Mapping to a high-dimensional space helps visual representations to be better learned and stably optimized. The extracted shallow features can be expressed as:

[0077] F0=H SF (I LR )

[0078] Among them I LR represents the low-resolution image input to the model, H SF represents shallow extraction, and F0 represents the output mapped to a high-dimensional space.

[0079] In the deep feature extraction module, a new basic block is used, called the residual mixed attention group, that is, the enhanced Swin Transformer module (ESTB), which integrates the channel attention mechanism (CAB) and the overlapping cross attention block (OCAB), which can achieve effective aggregation of cross-window information. ESTB consists of six layers of ESTL, one layer of OCAB and one layer of convolutional layer, and the input and output use the residual connection mechanism.

[0080] In traditional deep neural networks, as the number of network layers increases, the gradient may gradually decrease during the back propagation process, resulting in slow network parameter updates and making the network difficult to train. The residual connection mechanism allows the gradient to flow directly to the earlier layers of the network through skip connections, thereby effectively alleviating the problem of gradient disappearance or explosion. At the same time, the residual connection mechanism can be seen as adding direct access to the previous layer information on the basis of each layer of the network, which helps the network better learn the intrinsic structure and characteristics of the data, thereby improving the optimization performance, representation ability and training effect of the model.

[0081] The ESTL hierarchical architecture is designed as LayerNorm, CAB, LayerNorm, MLP (first MLP layer). A residual connection mechanism is added after the second layer and a jump connection is established between the inputs. A residual connection mechanism is added to the last layer and connected to the output of the first residual mechanism.

[0082] The hierarchical architecture of the OCAB module is designed to be composed of layer normalization (LayerNorm), overlapping cross attention (OCA), LayerNorm and multilayer perception mechanism (Multilayer Perceptron), that is, the second MLP layer. A residual connection mechanism is established after the second layer to realize the jump connection with the input, and a second residual mechanism is established after the last layer to realize the jump connection with the previous residual output.

[0083] The CAB hierarchical architecture is designed as Conv layer, Gaussian Error Linear Unit activation function (GELU), Conv layer, Pooling layer, Conv layer, GELU activation function, Conv layer, Sigmoid activation function. At the end, the residual mechanism is added and jump connected with the output of the third layer.

[0084] The architecture of the entire deep feature extraction module is that the first four layers are ESTB, the fifth layer is a 3×3Conv layer, and a residual connection is added after it to achieve cross-connection with the shallow feature extraction, followed by two ESTBs. The last layer is a 3×3Conv layer, and the residual connection mechanism is introduced again at the output to achieve cross-connection with the previous residual connection.

[0085] Although residual blocks can increase the perceptual domain, in low-level reconstruction tasks such as image SR, too long residual connections will weaken the quality of the reconstructed image because overly abstract high-dimensional features make network learning more difficult, resulting in a decrease in the performance of the generated network. Experiments have determined that the model uses two residual connection mechanisms to achieve the best image super-resolution effect.

[0086] Therefore, the entire training process can be expressed as follows:

[0087]

[0088] Where: It is the first deep feature extraction module, which contains m1 ESTB blocks and a 3×3 convolutional layer. It is the second deep feature extraction module, which includes m2 ESTB blocks and a 3×3 convolutional layer, with m1=4 and m2=2.

[0089] In the image reconstruction module, the design uses skip connections to aggregate deep features and shallow features, and uses the pixel shuffling method to reconstruct high-resolution images. It can be expressed as:

[0090] I SR =H Rec (F D ' F )

[0091] Among them, H Rec () represents super-resolution reconstruction, I SR The generated super-resolution image.

[0092] The discriminator comprises an encoder and a decoder connected in sequence, wherein the encoder is used to downsample the super-resolution image generated by the image reconstruction module in the training phase to obtain global information;

[0093] The decoder is used to upsample the super-resolution image in the training phase to output an image with the same resolution as the super-resolution image in the training phase.

[0094] The encoder includes four layer structures, wherein the first layer structure includes a convolution layer and a spectral normalization layer connected in sequence, and the last three layer structures include a convolution layer, a spectral normalization layer and a Relu activation function connected in sequence;

[0095] The decoder comprises three groups of hierarchical structures connected in pairs in sequence, and a convolutional layer and a spectral normalization layer connected in sequence are connected after the last hierarchical structure;

[0096] Each hierarchical structure includes an interpolation operation structure as one part, and a sequentially connected convolution layer, a spectral normalization layer, and a ReLU activation function as another part.

[0097] The discriminator has a region-aware strategy, including:

[0098] The super-resolution image in the training stage is separated according to the statistical local pixel distribution of the original high-resolution image to obtain a texture-rich area image, which is input into the discriminator for learning and training, and compared with the original high-resolution image to output the authenticity result of the image.

[0099] A discriminator with regional self-learning mechanism based on U-Net network architecture is designed. According to the local pixel statistics of HR image (original high-resolution image), I SR The discriminator is divided into smooth areas and texture-rich areas, and only the texture-rich areas are input into the discriminator for adversarial learning. The U-Net discriminator is used. The overall architecture consists of an encoder and a decoder. The encoder continuously SR Downsampling is performed to obtain global information and ultimately respond to the overall image realism.

[0100] While focusing on judging the authenticity of local information, the decoder continuously performs progressive upsampling operations to output pixel-by-pixel authenticity at the same resolution as the ISR. It also uses skip connections to facilitate information communication between the two networks, further promoting detail recovery.

[0101] Such a structural design enables the discriminator to focus on the differences in structure and semantic information between fake samples and real samples, and pursue the accuracy of the global context and local information of the reconstruction results.

[0102] like Figure 3 As shown in the figure, the encoder consists of four layers. The first layer consists of a specific convolution kernel size Conv and a spectral normalization layer. The last three layers consist of a specific convolution kernel size Conv and a spectral normalization layer with a Relu activation function to ensure the stability of training and suppress artifacts.

[0103] The decoder consists of seven layers. Before each upsampling to restore the high resolution of the image, an interpolation operation is required to restore the size of the feature map. After three upsamplings, six layers are formed, and the last layer is Conv+spectral normalization.

[0104] In order to solve the artifact problem generated by the GAN-based method, a region-aware strategy is added to the U-Net discriminator. HR Statistical local pixel distribution separation of (original high-resolution image) I SR The smooth regions and texture-rich regions are separated, and only the texture-rich regions are fed into the U-Net discriminator for adversarial learning. This not only avoids the generation of artifacts in smooth regions, but also allows the discriminator to focus on regions where fine real details need to be restored, assisting in reconstructing perceptually realistic images. For a specific region-aware learning strategy, we first HR Perform an expansion operation with a kernel size of k on the kernel to obtain a kernel size of k 2 The rH×rW block Q i,j , and then calculate the standard deviation std(Q i,j ), and compared with the preset threshold to obtain the final binary feature map M i,j , recorded as:

[0105]

[0106] Where i and j represent the specific location of the image spot, and the pixel value is set to 0 in the flat area of ​​the image and 1 in the texture-rich area. i,j with I SR Multiply to get I SR_mask Then it is input into the discriminator for learning and training, and compared with the original high-resolution image to output the authenticity result of the image.

[0107] Training the generator, including:

[0108] The generator is trained using a BB loss function, a BP loss function, a first adversarial loss function corresponding to the generator, and a perceptual loss function.

[0109] The BB loss function is obtained by calculating the L1 loss of the absolute value of the difference between the predicted image block and the best matching high-resolution image block.

[0110] The BP loss function is obtained by calculating the L1 loss of the absolute value of the difference between the super-resolution image obtained by bicubic downsampling output r times and the original low-resolution image; r is a scaling factor.

[0111] Introducing BP and BB loss functions, dynamically searching for the best supervision under the condition of multi-constraint loss functions, so that the generated I SR With more realistic details. Since a single LR image (original low-resolution image) can correspond to multiple HR images, SISR (super-resolution reconstruction of a single image) is essentially an uncertainty problem. For a given HR-LR pair, the commonly used MSE / MAE loss tends to perform a one-to-one rigid mapping, but this ignores the inherent uncertainty of SISR, resulting in a lack of high-frequency information in the reconstructed image.

[0112] Adopting BB loss: Overcoming the problem of single IHR for I SR The limitation of supervision, which allows different supervised image patches For the predicted image block p sr Provide positive guidance and achieve multiplicity of supervision. Represents the best matching high-resolution image patch, used to supervise the predicted image patch p sr , which itself should be as close as possible to the predicted image patch p sr and I HR The image block p hr , this process can be expressed as follows:

[0113]

[0114] Among them, ‖·‖2 represents the L2 loss, B represents the supervised candidate database of the image, p represents the image in the supervised candidate database, which is obtained by expanding the three-level image pyramid achieved by the bicubic downsampling operation, and i represents the number of iterations.

[0115] Through the above formula, we can find the predicted block p from the supervised candidate database B. sr Closest high-resolution block Let the prediction block p sr With real blocks And the prediction block p sr Minimizing the difference between them enables multi-supervision and avoids simple one-to-one supervision, which helps to generate richer image details. Then the BB loss of the image block can be expressed as:

[0116]

[0117] Where: ‖·‖1 represents L1 loss. By calculating p sr and The absolute value of the difference between them is obtained by LBB loss, which produces good results for optimizing training.

[0118] Using adversarial loss: Adversarial loss is generated by the mutual confrontation between the generator and the discriminator during the learning and training process, which is used to promote the generation of perceptually realistic images and thus better ensure the authenticity of the generated images. Therefore, the adversarial loss of the generator and the discriminator can be expressed as:

[0119] L adv_G =L BCE (D(I SR ),U real )

[0120] L adv_D =L BCE (D(I HR ),U real )+L BCE (D(I SR ),U fake )

[0121] Among them, L BCE () represents the binary cross entropy loss, D() represents the output of the discriminator, which is a tensor with a shape of rH×rW×1, and U real and U fake is a tensor of the same shape as D(), where U real All values ​​of U correspond to the true label 1, fake All values ​​of correspond to false labels of 0. Using L BCE () Calculate the loss between the super-resolution image output by the generator and the real image, and you can get the generator loss L adv_G , while L adv_D It consists of two parts: one is the loss between the original high-resolution image and the real image, and the other is the loss between the generated super-resolution image and the fake image.

[0122] Using perceptual loss: The perceptual loss is calculated on the feature maps of three layers (conv3-4, conv4-4, and conv5-4) of the pre-trained VGG19 network and can be expressed as:

[0123]

[0124] where α iRepresents the weight of each layer. The weights of the third to fifth layers are α3=1 / 8, α4=1 / 4, and α5=1 / 2 respectively. For each feature map, the difference between the predicted image and the real image on the feature map of that layer is calculated. The absolute value of the difference is calculated using the L1 norm and the sum of the absolute values ​​is taken according to the weight. Finally, the perceptual loss L is obtained. p .

[0125] Using BP loss: Using BP loss to obtain I by downsampling ISR output r times SR Image and I LR Matching, so as to achieve further matching in the low-resolution image space SR supervision, which can be expressed as:

[0126] L BP =||bi(I SR ,r)-I LR ||1

[0127] Here, bi(,r) represents the bicubic downsampling operation with a scaling factor r.

[0128] Finally, the loss function of the model generator can be obtained as follows:

[0129] L G =L BB +L adv_G +L p +L BP

[0130] like Figure 4 As shown in the figure, the overall framework of the model is built, and the target infrared image is input into the trained model to obtain a super-resolution image. First, the pre-prepared infrared thermal imaging image is input into the model for training. Through continuous iteration, the generator and discriminator further enhance their corresponding ability to generate and discriminate the authenticity of the image in the confrontation. With the linear increase of the number of training times, the loss of the generator and discriminator is observed to be continuously reduced. When the generated I SR Effect in comparison I HR After meeting the requirements, the target image is input into the model after training is completed to generate the corresponding super-resolution image.

[0131] The super-resolution image reconstruction method provided by the embodiment of the present invention first establishes a GAN network generator with ESTN as the backbone. ESTN is mainly composed of three modules: shallow feature extraction, deep feature extraction and image reconstruction. The low-resolution target image ILR to be enhanced is first extracted by shallow features and then rises to a high-dimensional space, and then enters the deep feature extraction. This module is composed of multiple ESTB blocks and has an attention learning mechanism. Finally, a jump connection is used to aggregate shallow and deep features at the output and a pixel shuffle method is used to perform image super-resolution reconstruction.

[0132] Secondly, a U-Net discriminator with a regional learning strategy is built. The local pixel statistics of the ISR image are first performed to distinguish between the texture-rich area and the smooth area, and then the local image with rich texture is input into the U-Net. After the encoder and decoder up and down sampling, the output is an image with the same resolution as the original, which is then compared with the high-definition image to determine its authenticity.

[0133] Then, the loss function constraints of the training process are determined. Constraints such as BB and BP and adversarial loss are selected to dynamically seek the best supervision under multiple supervision conditions during the training process, so that the generated ISR has authenticity and produces more reasonable details.

[0134] Finally, the model is trained and then the thermal imaging images of electrical equipment are enhanced. The pre-prepared thermal imaging dataset of substation electrical equipment is applied to the model architecture built above. Because the overall architecture of the model is based on GAN, as the number of iterations increases, the generator and the discriminator continue to compete with each other, thereby further improving the performance of both parties. When the preset number of training times is completed, the images generated by the generator have both high resolution and rich and clear local details.

[0135] Compared with the prior art, the present invention has the following advantages:

[0136] (1) An image super-resolution framework ESTUGAN is proposed. It uses the enhanced Swin Transformer as the generator backbone and the U-Net discriminator. The enhanced Swin Transformer adds a joint channel and overlapping cross-attention mechanism, which can mobilize more input information to model local content and further aggregate cross-window information with stronger representation capabilities. While reducing parameters and lowering training costs, it has obvious advantages over other methods in the super-resolution evaluation indicator PSNR.

[0137] (2) A U-Net discriminator with a region-aware learning strategy is proposed to reconstruct highly detailed thermal imaging images. The region-aware learning strategy can effectively suppress artifacts by masking flat areas and providing only texture-rich areas to the discriminator for adversarial training. The U-net adopts a skip connection design to connect shallow and deep detail content, providing dense feedback on the authenticity of each pixel. This invention overcomes the singleness and unreality problems of the CNN network model.

[0138] (3) A method using BB and BP loss functions is proposed to further enhance the visual quality of images. Multiple supervisory signals similar to the ground truth images are used to flexibly guide image reconstruction, breaking the one-to-one rigid mapping from LR space to HR space, which reduces the difficulty of model training and helps generate high-frequency information.

[0139] The super-resolution image reconstruction method provided by the embodiment of the present invention obtains a thermal imaging image of an electric power equipment; processes the thermal imaging image of the electric power equipment based on a preset super-resolution image generation model, and reconstructs a super-resolution image corresponding to the thermal imaging image of the electric power equipment; wherein the preset super-resolution image generation model is obtained by training a generator and a discriminator according to an original low-resolution image set, and the generator includes a shallow feature extraction module, a deep feature extraction module and an image reconstruction module connected in sequence; the first four layers of the deep feature extraction module are ESTB, the fifth layer is a convolutional layer, and after the fifth layer is a first residual connection, the first residual connection is used to achieve a cross-link with the output result of the shallow feature extraction module, the sixth and seventh layers connected after the first residual connection are ESTB, the eighth layer is a convolutional layer, and after the eighth layer is a second residual connection, the second residual connection is used to achieve a cross-link with the output result of the first residual connection; each ES TB includes six layers of ESTL, one layer of OCAB and one layer of convolution layer connected in sequence; each ESTL includes a normalization layer, a channel attention mechanism layer, a normalization layer and a first MLP layer connected in sequence, and the channel attention mechanism layer is followed by a third residual connection, and the third residual connection is used to realize cross-linking with the input of the corresponding ESTL, and the first MLP layer is followed by a fourth residual connection, and the fourth residual connection is used to realize cross-linking with the output result of the third residual connection; each layer of OCAB includes a normalization layer, an overlapping cross attention layer, a normalization layer and a second MLP layer connected in sequence, and the overlapping cross attention layer is followed by a fifth residual connection, and the fifth residual connection is used to realize cross-linking with the input of the corresponding OCAB, and the second MLP layer is followed by a sixth residual connection, and the sixth residual connection is used to realize cross-linking with the output result of the fifth residual connection, so as to obtain thermal imaging images of power equipment with higher image quality.

[0140] Furthermore, the discriminator includes an encoder and a decoder connected in sequence, and the encoder is used to downsample the super-resolution image generated by the image reconstruction module in the training phase to obtain global information; the above embodiment can be referred to for description and will not be repeated here.

[0141] The decoder is used to upsample the super-resolution image in the training phase to output an image with the same resolution as the super-resolution image in the training phase.

[0142] Furthermore, the encoder includes four layer structures, wherein the first layer structure includes sequentially connected convolution layers and spectral normalization layers, and the last three layer structures include sequentially connected convolution layers, spectral normalization layers and Relu activation functions; the above-mentioned embodiments may be referred to for description and will not be repeated herein.

[0143] The decoder includes three groups of hierarchical structures connected in pairs in sequence, and a convolutional layer and a spectral normalization layer connected in sequence are connected after the last hierarchical structure; the description can be made with reference to the above embodiment and will not be repeated here.

[0144] Each hierarchical structure includes an interpolation operation structure as one part, and a convolution layer, a spectral normalization layer and a ReLU activation function connected in sequence as another part. The above-mentioned embodiments can be referred to for explanation and will not be described in detail.

[0145] Furthermore, the discriminator has a region-aware strategy, including:

[0146] The super-resolution image in the training phase is separated according to the statistical local pixel distribution of the original high-resolution image to obtain a texture-rich region image, which is input into the discriminator for learning and training, and compared with the original high-resolution image to output the authenticity result of the image. The above-mentioned embodiment can be referred to for explanation and will not be repeated here.

[0147] Furthermore, the training generator includes:

[0148] The generator is trained using a BB loss function, a BP loss function, a first adversarial loss function corresponding to the generator, and a perceptual loss function. The above description may be referred to in detail in the above embodiment.

[0149] Further, the BB loss function is obtained by calculating the L1 loss of the absolute value of the difference between the predicted image block and the best matching high-resolution image block. The above description can be referred to in the above embodiment and will not be repeated here.

[0150] Furthermore, the BP loss function is obtained by calculating the L1 loss of the absolute value of the difference between the super-resolution image obtained by bicubic downsampling output r times and the original low-resolution image; r is a scaling factor. The above embodiment can be referred to for explanation and will not be repeated here.

[0151] Figure 5 FIG. 1 is a schematic diagram of the structure of a super-resolution image reconstruction device provided by an embodiment of the present invention. Figure 5 As shown, the super-resolution image reconstruction device provided by the embodiment of the present invention includes an acquisition unit 501 and a reconstruction unit 502, wherein:

[0152] The acquisition unit 501 is used to acquire the thermal imaging image of the power equipment; the reconstruction unit 502 is used to process the thermal imaging image of the power equipment based on a preset super-resolution image generation model, and reconstruct a super-resolution image corresponding to the thermal imaging image of the power equipment; wherein the preset super-resolution image generation model is obtained by training a generator and a discriminator according to an original low-resolution image set, and the generator includes a shallow feature extraction module, a deep feature extraction module and an image reconstruction module connected in sequence; the first four layers of the deep feature extraction module are ESTB, the fifth layer is a convolutional layer, and after the fifth layer is a first residual connection, the first residual connection is used to achieve cross-linking with the output result of the shallow feature extraction module, the sixth and seventh layers connected after the first residual connection are ESTB, the eighth layer is a convolutional layer, and after the eighth layer is a second residual connection, the second residual connection is used to achieve cross-linking with the output result of the shallow feature extraction module, The output result is cross-linked; each ESTB includes six layers of ESTL, one layer of OCAB and one layer of convolution layer connected in sequence; each ESTL includes a normalization layer, a channel attention mechanism layer, a normalization layer and a first MLP layer connected in sequence, and the channel attention mechanism layer is followed by a third residual connection, and the third residual connection is used to realize the input cross-link with the corresponding ESTL, and the first MLP layer is followed by a fourth residual connection, and the fourth residual connection is used to realize the output result cross-link with the third residual connection; each layer of OCAB includes a normalization layer, an overlapping cross attention layer, a normalization layer and a second MLP layer connected in sequence, and the overlapping cross attention layer is followed by a fifth residual connection, and the fifth residual connection is used to realize the input cross-link with the corresponding OCAB, and the second MLP layer is followed by a sixth residual connection, and the sixth residual connection is used to realize the output result cross-link with the fifth residual connection.

[0153] Specifically, the acquisition unit 501 in the device is used to acquire the thermal imaging image of the power equipment; the reconstruction unit 502 is used to process the thermal imaging image of the power equipment based on a preset super-resolution image generation model, and reconstruct a super-resolution image corresponding to the thermal imaging image of the power equipment; wherein the preset super-resolution image generation model is obtained by training a generator and a discriminator according to an original low-resolution image set, and the generator includes a shallow feature extraction module, a deep feature extraction module and an image reconstruction module connected in sequence; the first four layers of the deep feature extraction module are ESTB, the fifth layer is a convolutional layer, and after the fifth layer is a first residual connection, the first residual connection is used to achieve cross-linking with the output result of the shallow feature extraction module, the sixth and seventh layers connected after the first residual connection are ESTB, the eighth layer is a convolutional layer, and after the eighth layer is a second residual connection, the second residual connection is used to achieve cross-linking with the output result of the shallow feature extraction module, The output result of the connection is cross-linked; each ESTB includes six layers of ESTL, one layer of OCAB and one layer of convolutional layer connected in sequence; each ESTL includes a normalization layer, a channel attention mechanism layer, a normalization layer, and a first MLP layer connected in sequence. After the channel attention mechanism layer, there is a third residual connection, and the third residual connection is used to realize the cross-link with the input of the corresponding ESTL. After the first MLP layer, there is a fourth residual connection, and the fourth residual connection is used to realize the cross-link with the output result of the third residual connection; each layer of OCAB includes a normalization layer, an overlapping cross attention layer, a normalization layer and a second MLP layer connected in sequence. After the overlapping cross attention layer, there is a fifth residual connection, and the fifth residual connection is used to realize the cross-link with the input of the corresponding OCAB. After the second MLP layer, there is a sixth residual connection, and the sixth residual connection is used to realize the cross-link with the output result of the fifth residual connection.

[0154] The super-resolution image reconstruction device provided by the embodiment of the present invention obtains a thermal imaging image of an electric power equipment; processes the thermal imaging image of the electric power equipment based on a preset super-resolution image generation model, and reconstructs a super-resolution image corresponding to the thermal imaging image of the electric power equipment; wherein the preset super-resolution image generation model is obtained by training a generator and a discriminator according to an original low-resolution image set, and the generator includes a shallow feature extraction module, a deep feature extraction module and an image reconstruction module connected in sequence; the first four layers of the deep feature extraction module are ESTB, the fifth layer is a convolutional layer, and after the fifth layer is a first residual connection, the first residual connection is used to achieve a cross-link with the output result of the shallow feature extraction module, the sixth and seventh layers connected after the first residual connection are ESTB, the eighth layer is a convolutional layer, and after the eighth layer is a second residual connection, the second residual connection is used to achieve a cross-link with the output result of the first residual connection; each ES TB includes six layers of ESTL, one layer of OCAB and one layer of convolution layer connected in sequence; each ESTL includes a normalization layer, a channel attention mechanism layer, a normalization layer and a first MLP layer connected in sequence, and the channel attention mechanism layer is followed by a third residual connection, and the third residual connection is used to realize cross-linking with the input of the corresponding ESTL, and the first MLP layer is followed by a fourth residual connection, and the fourth residual connection is used to realize cross-linking with the output result of the third residual connection; each layer of OCAB includes a normalization layer, an overlapping cross attention layer, a normalization layer and a second MLP layer connected in sequence, and the overlapping cross attention layer is followed by a fifth residual connection, and the fifth residual connection is used to realize cross-linking with the input of the corresponding OCAB, and the second MLP layer is followed by a sixth residual connection, and the sixth residual connection is used to realize cross-linking with the output result of the fifth residual connection, so as to obtain thermal imaging images of power equipment with higher image quality.

[0155] The embodiment of the super-resolution image reconstruction device provided by the embodiment of the present invention can be specifically used to execute the processing flow of the above-mentioned method embodiments. Its functions are not described in detail here, and reference can be made to the detailed description of the above-mentioned method embodiments.

[0156] Figure 6 A schematic diagram of the physical structure of an electronic device provided in an embodiment of the present invention, such as Figure 6 As shown, the electronic device includes: a processor (processor) 601, a memory (memory) 602 and a bus 603;

[0157] The processor 601 and the memory 602 communicate with each other via a bus 603;

[0158] The processor 601 is used to call the program instructions in the memory 602 to execute the methods provided by the above method embodiments, for example, including:

[0159] Acquire thermal imaging images of power equipment;

[0160] Processing the thermal imaging image of the electric power equipment based on a preset super-resolution image generation model to reconstruct a super-resolution image corresponding to the thermal imaging image of the electric power equipment;

[0161] The preset super-resolution image generation model is obtained by training a generator and a discriminator based on the original low-resolution image set, and the generator includes a shallow feature extraction module, a deep feature extraction module and an image reconstruction module connected in sequence;

[0162] The first four layers of the deep feature extraction module are ESTB, the fifth layer is a convolutional layer, and the first residual connection is after the fifth layer. The first residual connection is used to achieve cross-linking with the output result of the shallow feature extraction module. The sixth and seventh layers connected after the first residual connection are ESTB, the eighth layer is a convolutional layer, and the second residual connection is after the eighth layer. The second residual connection is used to achieve cross-linking with the output result of the first residual connection;

[0163] Each ESTB consists of six layers of ESTL, one layer of OCAB and one layer of convolutional layer connected in sequence;

[0164] Each ESTL includes a normalization layer, a channel attention mechanism layer, a normalization layer, and a first MLP layer connected in sequence. After the channel attention mechanism layer, there is a third residual connection, which is used to realize a cross-link with the input of the corresponding ESTL. After the first MLP layer, there is a fourth residual connection, which is used to realize a cross-link with the output result of the third residual connection.

[0165] Each OCAB layer includes a normalization layer, an overlapping cross attention layer, a normalization layer and a second MLP layer connected in sequence. After the overlapping cross attention layer, there is a fifth residual connection, and the fifth residual connection is used to realize cross-linking with the input of the corresponding OCAB. After the second MLP layer, there is a sixth residual connection, and the sixth residual connection is used to realize cross-linking with the output result of the fifth residual connection.

[0166] This embodiment discloses a computer program product, which includes a computer program stored on a non-transitory computer-readable storage medium. The computer program includes program instructions. When the program instructions are executed by a computer, the computer can perform the methods provided by the above method embodiments, for example, including:

[0167] Acquire thermal imaging images of power equipment;

[0168] Processing the thermal imaging image of the electric power equipment based on a preset super-resolution image generation model to reconstruct a super-resolution image corresponding to the thermal imaging image of the electric power equipment;

[0169] The preset super-resolution image generation model is obtained by training a generator and a discriminator based on the original low-resolution image set, and the generator includes a shallow feature extraction module, a deep feature extraction module and an image reconstruction module connected in sequence;

[0170] The first four layers of the deep feature extraction module are ESTB, the fifth layer is a convolutional layer, and the first residual connection is after the fifth layer. The first residual connection is used to achieve cross-linking with the output result of the shallow feature extraction module. The sixth and seventh layers connected after the first residual connection are ESTB, the eighth layer is a convolutional layer, and the second residual connection is after the eighth layer. The second residual connection is used to achieve cross-linking with the output result of the first residual connection;

[0171] Each ESTB consists of six layers of ESTL, one layer of OCAB and one layer of convolutional layer connected in sequence;

[0172] Each ESTL includes a normalization layer, a channel attention mechanism layer, a normalization layer, and a first MLP layer connected in sequence. After the channel attention mechanism layer, there is a third residual connection, which is used to realize a cross-link with the input of the corresponding ESTL. After the first MLP layer, there is a fourth residual connection, which is used to realize a cross-link with the output result of the third residual connection.

[0173] Each OCAB layer includes a normalization layer, an overlapping cross attention layer, a normalization layer and a second MLP layer connected in sequence. After the overlapping cross attention layer, there is a fifth residual connection, and the fifth residual connection is used to realize cross-linking with the input of the corresponding OCAB. After the second MLP layer, there is a sixth residual connection, and the sixth residual connection is used to realize cross-linking with the output result of the fifth residual connection.

[0174] This embodiment provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, wherein the computer program enables the computer to execute the methods provided by the above method embodiments, for example, including:

[0175] Acquire thermal imaging images of power equipment;

[0176] Processing the thermal imaging image of the electric power equipment based on a preset super-resolution image generation model to reconstruct a super-resolution image corresponding to the thermal imaging image of the electric power equipment;

[0177] The preset super-resolution image generation model is obtained by training a generator and a discriminator based on the original low-resolution image set, and the generator includes a shallow feature extraction module, a deep feature extraction module and an image reconstruction module connected in sequence;

[0178] The first four layers of the deep feature extraction module are ESTB, the fifth layer is a convolutional layer, and the first residual connection is after the fifth layer. The first residual connection is used to achieve cross-linking with the output result of the shallow feature extraction module. The sixth and seventh layers connected after the first residual connection are ESTB, the eighth layer is a convolutional layer, and the second residual connection is after the eighth layer. The second residual connection is used to achieve cross-linking with the output result of the first residual connection;

[0179] Each ESTB consists of six layers of ESTL, one layer of OCAB and one layer of convolutional layer connected in sequence;

[0180] Each ESTL includes a normalization layer, a channel attention mechanism layer, a normalization layer, and a first MLP layer connected in sequence. After the channel attention mechanism layer, there is a third residual connection, which is used to realize a cross-link with the input of the corresponding ESTL. After the first MLP layer, there is a fourth residual connection, which is used to realize a cross-link with the output result of the third residual connection.

[0181] Each OCAB layer includes a normalization layer, an overlapping cross attention layer, a normalization layer and a second MLP layer connected in sequence. After the overlapping cross attention layer, there is a fifth residual connection, and the fifth residual connection is used to realize cross-linking with the input of the corresponding OCAB. After the second MLP layer, there is a sixth residual connection, and the sixth residual connection is used to realize cross-linking with the output result of the fifth residual connection.

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

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

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

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

[0186] In the description of this specification, the description with reference to the terms "one embodiment", "a specific embodiment", "some embodiments", "for example", "example", "specific example", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner.

[0187] The specific embodiments described above further illustrate the objectives, technical solutions and beneficial effects of the present invention in detail. 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. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the scope of protection of the present invention.

Claims

1. A super-resolution image reconstruction method, It is characterized in that include: Acquire thermal imaging images of power equipment; Processing the thermal imaging image of the electric power equipment based on a preset super-resolution image generation model to reconstruct a super-resolution image corresponding to the thermal imaging image of the electric power equipment; The preset super-resolution image generation model is obtained by training a generator and a discriminator based on the original low-resolution image set, and the generator includes a shallow feature extraction module, a deep feature extraction module and an image reconstruction module connected in sequence; The first four layers of the deep feature extraction module are ESTB, the fifth layer is a convolutional layer, and the first residual connection is after the fifth layer. The first residual connection is used to achieve cross-linking with the output result of the shallow feature extraction module. The sixth and seventh layers connected after the first residual connection are ESTB, the eighth layer is a convolutional layer, and the second residual connection is after the eighth layer. The second residual connection is used to achieve cross-linking with the output result of the first residual connection; Each ESTB consists of six layers of ESTL, one layer of OCAB and one layer of convolutional layer connected in sequence; Each ESTL includes a normalization layer, a channel attention mechanism layer, a normalization layer, and a first MLP layer connected in sequence. After the channel attention mechanism layer, there is a third residual connection, which is used to realize a cross-link with the input of the corresponding ESTL. After the first MLP layer, there is a fourth residual connection, which is used to realize a cross-link with the output result of the third residual connection. Each OCAB layer includes a normalization layer, an overlapping cross attention layer, a normalization layer and a second MLP layer connected in sequence. After the overlapping cross attention layer, there is a fifth residual connection, and the fifth residual connection is used to realize cross-linking with the input of the corresponding OCAB. After the second MLP layer, there is a sixth residual connection, and the sixth residual connection is used to realize cross-linking with the output result of the fifth residual connection.

2. The super-resolution image reconstruction method according to claim 1, It is characterized in that The discriminator comprises an encoder and a decoder connected in sequence, wherein the encoder is used to downsample the super-resolution image generated by the image reconstruction module in the training phase to obtain global information; The decoder is used to upsample the super-resolution image in the training phase to output an image with the same resolution as the super-resolution image in the training phase.

3. The super-resolution image reconstruction method according to claim 2, It is characterized in that The encoder includes four layer structures, wherein the first layer structure includes a convolution layer and a spectral normalization layer connected in sequence, and the last three layer structures include a convolution layer, a spectral normalization layer and a Relu activation function connected in sequence; The decoder comprises three groups of hierarchical structures connected in pairs in sequence, and a convolutional layer and a spectral normalization layer connected in sequence are connected after the last hierarchical structure; Each hierarchical structure includes an interpolation operation structure as one part, and a sequentially connected convolution layer, a spectral normalization layer, and a ReLU activation function as another part.

4. The super-resolution image reconstruction method according to claim 3, It is characterized in that The discriminator has a region-aware strategy, including: The super-resolution image in the training stage is separated according to the statistical local pixel distribution of the original high-resolution image to obtain a texture-rich area image, which is input into the discriminator for learning and training, and compared with the original high-resolution image to output the authenticity result of the image.

5. The super-resolution image reconstruction method according to any one of claims 1 to 4, It is characterized in that Training the generator, including: The generator is trained using a BB loss function, a BP loss function, a first adversarial loss function corresponding to the generator, and a perceptual loss function.

6. The super-resolution image reconstruction method according to claim 5, It is characterized in that The BB loss function is obtained by calculating the L1 loss of the absolute value of the difference between the predicted image block and the best matching high-resolution image block.

7. The super-resolution image reconstruction method according to claim 5, It is characterized in that The BP loss function is obtained by calculating the L1 loss of the absolute value of the difference between the super-resolution image obtained by bicubic downsampling output r times and the original low-resolution image; r is a scaling factor.

8. A super-resolution image reconstruction device, It is characterized in that include: An acquisition unit, used for acquiring thermal imaging images of power equipment; A reconstruction unit, configured to process the thermal imaging image of the electric power equipment based on a preset super-resolution image generation model, and reconstruct a super-resolution image corresponding to the thermal imaging image of the electric power equipment; The preset super-resolution image generation model is obtained by training a generator and a discriminator based on the original low-resolution image set, and the generator includes a shallow feature extraction module, a deep feature extraction module and an image reconstruction module connected in sequence; The first four layers of the deep feature extraction module are ESTB, the fifth layer is a convolutional layer, and the first residual connection is after the fifth layer. The first residual connection is used to achieve cross-linking with the output result of the shallow feature extraction module. The sixth and seventh layers connected after the first residual connection are ESTB, the eighth layer is a convolutional layer, and the second residual connection is after the eighth layer. The second residual connection is used to achieve cross-linking with the output result of the first residual connection; Each ESTB consists of six layers of ESTL, one layer of OCAB and one layer of convolutional layer connected in sequence; Each ESTL includes a normalization layer, a channel attention mechanism layer, a normalization layer, and a first MLP layer connected in sequence. After the channel attention mechanism layer, there is a third residual connection, which is used to realize a cross-link with the input of the corresponding ESTL. After the first MLP layer, there is a fourth residual connection, which is used to realize a cross-link with the output result of the third residual connection. Each OCAB layer includes a normalization layer, an overlapping cross attention layer, a normalization layer and a second MLP layer connected in sequence. After the overlapping cross attention layer, there is a fifth residual connection, and the fifth residual connection is used to realize cross-linking with the input of the corresponding OCAB. After the second MLP layer, there is a sixth residual connection, and the sixth residual connection is used to realize cross-linking with the output result of the fifth residual connection.

9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, It is characterized in that When the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.

10. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.