Image super-resolution reconstruction system and method based on overlapping window attention mechanism
By introducing the overlapping window attention mechanism and channel attention mechanism into the image super-resolution reconstruction system, the shortcomings of the convolutional neural network and SwinTransformer algorithm in image global information extraction and blocking artifacts are solved, and image details and features are realized. Efficient extraction and reconstruction of information.
Patent Information
- Application Number
- CN202410798546.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-20
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2044-06-20
AI Technical Summary
Existing image super-resolution algorithms are insufficiently robust in complex scenes, especially algorithms based on convolutional neural networks that lack the ability to extract global information from images, and the window division operation of SwinTransformer causes blocking artifacts in high-resolution images.
An image super-resolution reconstruction system based on the overlapping window attention mechanism is adopted to realize the global information of the image through shallow feature extraction, pixel encoding, deep feature extraction, batch normalization and pixel-by-pixel addition processing, combined with the channel attention mechanism. Extraction and adaptive application solve the problem of window blocking artifacts.
It effectively realizes the reconstruction of image details, enhances the ability to extract local and global feature information of the image, solves the problem of blocking artifacts, and improves the quality of image super-resolution reconstruction.
Smart Images

Figure CN118365527B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of image processing technology, and in particular to an image super-resolution reconstruction system and method based on an overlapping window attention mechanism. Background Art
[0002] Image super-resolution is one of the important tasks in the field of computer vision. It is mainly used to extract and enhance high-resolution details from low-resolution images through algorithms to generate high-quality high-resolution images. The calculation method of traditional image super-resolution algorithms is fixed, the robustness is not strong, and it is difficult to adapt to complex application scenarios. At present, many image super-resolution algorithms based on convolutional neural networks have emerged. However, due to the insufficient ability of convolution operations to extract global information from images, the ability to reconstruct image details is poor. Recently, some image super-resolution algorithms based on natural language processing technology SwinTransformer have also emerged. Since Swin Transformer has stronger information extraction capabilities than convolution operations, these algorithms perform better than image super-resolution algorithms based on convolution operations. However, the window division operation of Swin Trannformer will cause blocking artifacts in the reconstructed high-resolution image. Therefore, it is necessary to study an image super-resolution algorithm based on attention mechanism that can effectively solve blocking artifacts. Summary of the invention
[0003] In view of the above-mentioned defects or deficiencies in the prior art, the present invention provides an image super-resolution reconstruction system and method based on an overlapping window attention mechanism. First, the image feature information is preliminarily extracted to obtain a feature image representing the shallow feature information of the image. On this basis, the image feature pixels are encoded, and then the deep feature information of the image is effectively extracted. The pixels are decoded to obtain a feature image representing the deep feature information of the image. The shallow features and the deep features of the image are added pixel by pixel to obtain a feature image rich in the shallow and deep feature information of the image. Finally, the super-resolution reconstruction of the input image can be achieved through an upsampling module.
[0004] One aspect of the present invention provides an image super-resolution reconstruction system based on an overlapping window attention mechanism, comprising:
[0005] A shallow feature extraction module is used to perform preliminary extraction of input image feature information to obtain a first feature image representing the shallow feature information of the image;
[0006] A pixel encoding module, used for encoding image feature pixels of the first feature image;
[0007] A deep feature extraction module, used for extracting deep feature information of the image from the output result of the pixel encoding module based on an overlapping window division mechanism;
[0008] A batch normalization module, used for performing batch normalization processing on the deep feature information extracted by the deep feature extraction module;
[0009] The pixel decoding module is used to decode the output value of the batch normalization module to obtain a second feature image representing deep feature information of the image;
[0010] A first pixel-by-pixel addition operation module, used for performing pixel-by-pixel addition processing on the first feature image and the second feature image to obtain a third feature image including image shallow feature information and image deep feature information;
[0011] The image upsampling module is used to perform super-resolution reconstruction on the third feature image and output a high-resolution image.
[0012] Another aspect of the present invention further provides an image super-resolution reconstruction method based on an overlapping window attention mechanism, comprising:
[0013] Preliminarily extracting the input image feature information to obtain a first feature image representing the shallow feature information of the image;
[0014] encoding image feature pixels of the first feature image;
[0015] Based on the overlapping window division mechanism, the deep feature information of the image is extracted from the encoded image feature pixels;
[0016] Perform batch normalization on the extracted deep feature information;
[0017] Decoding the output values after batch normalization processing to obtain a second feature image representing deep feature information of the image;
[0018] Performing pixel-by-pixel addition processing on the first feature image and the second feature image to obtain a third feature image including image shallow feature information and image deep feature information;
[0019] Perform super-resolution reconstruction on the third feature image to output a high-resolution image.
[0020] The image super-resolution reconstruction system and method based on the overlapping window attention mechanism provided by the present invention proposes an overlapping window attention mechanism, realizes the flow of feature information of each window, and realizes the extraction of global image information based on this. In addition, due to the adoption of the channel attention mechanism, the adaptive use of image feature information is realized. The present invention has a strong extraction capability for both local feature information and global feature information of the image, and can effectively realize the reconstruction of image details. The use of the overlapping window attention mechanism also solves the technical problem of window blocking artifacts. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] Other features, objects and advantages of the present application will become more apparent by reading the detailed description of non-limiting embodiments made with reference to the following drawings:
[0022] Figure 1 It is a structural schematic diagram of an image super-resolution reconstruction system based on an overlapping window attention mechanism provided by an embodiment of the present application;
[0023] Figure 2 This is a network structure diagram of an image super-resolution reconstruction system based on an overlapping window attention mechanism provided by an embodiment of the present application;
[0024] Figure 3 is a schematic diagram of an overlapping window division mechanism provided by an embodiment of the present application;
[0025] Figure 4 is a schematic diagram of an overlapping window multi-head attention module provided by an embodiment of the present application;
[0026] Figure 5 It is a flowchart of an image super-resolution reconstruction method based on an overlapping window attention mechanism provided by an embodiment of the present application. DETAILED DESCRIPTION
[0027] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are 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.
[0028] The terms used in the embodiments of the present invention are only for the purpose of describing specific embodiments, and are not intended to limit the present invention. The singular forms "a", "said" and "the" used in the embodiments of the present invention and the appended claims are also intended to include plural forms, unless the context clearly indicates other meanings.
[0029] It should be understood that although the terms first, second, third, etc. may be used to describe the acquisition modules in the embodiments of the present invention, the acquisition modules should not be limited to these terms. These terms are only used to distinguish the acquisition modules from each other.
[0030] The word "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining" or "in response to detecting", depending on the context. Similarly, the phrases "if it is determined" or "if (stated condition or event) is detected" may be interpreted as "when it is determined" or "in response to determining" or "when detecting (stated condition or event)" or "in response to detecting (stated condition or event)", depending on the context.
[0031] It should be noted that the directional words such as "upper", "lower", "left", and "right" described in the embodiments of the present invention are described at the angles shown in the drawings and should not be understood as limiting the embodiments of the present invention. In addition, in the context, it should also be understood that when it is mentioned that an element is formed "on" or "under" another element, it can not only be formed directly "on" or "under" another element, but also be formed "on" or "under" another element indirectly through an intermediate element.
[0032] In order to solve the problem of insufficient ability of convolutional neural network to extract global information of images, this application chooses to extract image feature information based on Transformer technology. However, the standard Transformer algorithm has too much computational complexity and is difficult to be applied to high-resolution image reconstruction tasks. The window division operation of Swin Transformer will cause blocking artifacts in the reconstructed high-resolution image. Therefore, the present invention adopts an image window division method different from the conventional Transformer algorithm and Swin Transformer algorithm, proposes a new algorithm of overlapping window attention mechanism, and develops an overlapping window transformer image reconstruction algorithm based on this.
[0033] See also Figure 1 An embodiment of the present application provides an image super-resolution reconstruction system 100 based on an overlapping window attention mechanism, including the following network modules:
[0034] (1) Shallow feature extraction module
[0035] The shallow feature extraction module 101 is used to perform preliminary extraction of input image feature information to obtain a first feature image representing the shallow feature information of the image. Figure 2 The shallow feature extraction module 101 is preferably a convolution module Conv, which is used to realize the preliminary extraction of image feature information, so as to obtain a feature image representing the shallow feature information of the image.
[0036] (2) Pixel encoding module
[0037] The pixel encoding module 102 is used to encode the image feature pixels of the first feature image. Preferably, the Patch Embed module is used to implement the encoding of the image feature pixels.
[0038] (3) Deep feature extraction module
[0039] The deep feature extraction module 103 is used to extract the deep feature information of the image from the output result of the pixel encoding module based on the overlapping window division mechanism. Figure 2 The deep feature extraction module 103 includes N basic operation modules BCB; each of the basic operation modules BCB includes a basic attention calculation module BAB, an overlapping window attention calculation module OAB, a feature channel attention calculation module CAB and a second pixel-by-pixel addition operation module connected in sequence; the second pixel-by-pixel addition operation module is used to perform pixel-by-pixel addition processing on the input of the basic operation unit BCB and the output of the feature channel attention calculation module CAB, and use the result of the pixel-by-pixel addition as the output of the basic operation unit BCB.
[0040] The above-mentioned basic operation module BCB is the core module of the image super-resolution reconstruction system 100 of this embodiment. The basic attention calculation module BAB, the overlapping window attention calculation module OAB, the feature channel attention calculation module CAB, etc. included in the basic operation module BCB are all deep learning network modules with improved structures adopted to realize or cooperate with the overlapping window division mechanism of the present invention. Although the names of some modules follow the names of the prior art, their network structures are different from those of the prior art.
[0041] See also Figure 2, the basic attention calculation module BAB includes a first layer normalization module LN, a window multi-head attention module W-MSA, a third pixel-by-pixel addition operation module, a second layer normalization module LN, a first multi-layer perceptron module MLP and a fourth pixel-by-pixel addition operation module connected in sequence; the third pixel-by-pixel addition operation module is used to perform pixel-by-pixel addition processing on the input of the first layer normalization module LN and the output of the window multi-head attention module W-MSA, and use the result of the pixel-by-pixel addition as the input of the second layer normalization module LN; the fourth pixel-by-pixel addition operation module is used to perform pixel-by-pixel addition processing on the input of the second layer normalization module LN and the output of the first multi-layer perceptron module MLP, and use the result of the pixel-by-pixel addition as the output of the basic attention calculation module BAB. Furthermore, the window multi-head attention module W-MSA is obtained based on the ordinary window division mechanism. The W-MSA module has a lower amount of operation and is mainly responsible for extracting local feature information of the image. The W-MSA module includes a head tensor deformation module, a normal window division module, a multi-head attention calculation module, a normal window merging module and a tail tensor deformation module connected in sequence. Figure 3 Left picture in .
[0042] See also Figure 2 , the overlapping window attention calculation module OAB includes a third layer normalization module LN, an overlapping window multi-head attention module OW-MSA, a fifth pixel-by-pixel addition operation module, a fourth layer normalization module LN, a second multi-layer perceptron module MLP and a sixth pixel-by-pixel addition operation module connected in sequence. Among them, the fifth pixel-by-pixel addition operation module is used to perform pixel-by-pixel addition processing on the input of the third layer normalization module LN and the output of the overlapping window multi-head attention module OW-MSA, and use the result of the pixel-by-pixel addition as the input of the fourth layer normalization module LN; the sixth pixel-by-pixel addition operation module is used to perform pixel-by-pixel addition processing on the input of the fourth layer normalization module LN and the output of the second multi-layer perceptron module MLP, and use the result of the pixel-by-pixel addition as the output of the overlapping window attention calculation module OAB.
[0043] It should be noted that in order to reduce the amount of image calculation, it is necessary to use image window division operation and perform multi-head attention calculation in the divided windows. In order to solve the problem of feature information flow between different windows, the image super-resolution reconstruction system 100 of this embodiment adopts an overlapping window division mechanism to make up for the shortcomings of the ordinary window division mechanism Transformer and Swin Transformer. Figure 3The left picture shows a common window division method, where each window has the same size and does not overlap each other. The right picture shows the overlapping window division method of the present invention, which ensures that there is a certain degree of overlap between each window, so that the feature information between each window can flow between each other. The overlapping window multi-head attention module OW-MSA is a new network module obtained by the present invention based on the original overlapping window division mechanism.
[0044] See also Figure 4 The overlapping window multi-head attention module OW-MSA includes a head tensor deformation module, an overlapping window division module, a multi-head attention calculation module, an overlapping window merging module (i.e., the inverse operation of the overlapping window division module) and a tail tensor deformation module which are connected in sequence. The overlapping window division module is used to make the divided windows partially overlapped to realize the flow of feature information between windows, thereby realizing the extraction of global information of the image.
[0045] It should be pointed out that although the tensor deformation module, multi-head attention calculation module, ordinary window division module and ordinary window merging module are all existing network modules, the overlapping window multi-head attention module OW-MSA of the present invention is a new network module based on the innovative overlapping window division mechanism, which is the basis for building the OAB module. The present invention creatively combines and alternates the BAB module based on the ordinary window division mechanism and the OAB module based on the overlapping window division mechanism, which can effectively realize the flow of feature information of each window and the extraction of local and global information of the image, thereby solving the problem of window blocking artifacts.
[0046] See also Figure 2, the image super-resolution reconstruction system 100 of the present invention also adopts a channel attention mechanism to adaptively adjust the influence of each feature channel on the final reconstructed high-resolution image. Specifically, the present embodiment adopts a feature channel attention calculation module CAB, but the network structure of the CAB module of the present invention is different from the CAB module in the prior art, which includes a first convolution module Conv, a first GeLU activation function module, a second convolution module Conv, a global average pooling module, a third convolution module Conv, a second GeLU activation function module, a fourth convolution module Conv, a Sigmoid activation function module and a pixel-by-pixel multiplication module connected in sequence; the pixel-by-pixel multiplication module is used to multiply the input of the global average pooling module and the output of the Sigmoid activation function module pixel by pixel, and use the result of the pixel-by-pixel multiplication as the output of the feature channel attention calculation module. The present invention uses the improved feature channel attention calculation module CAB to process the input feature information through convolution operation to obtain the feature tensor TB to be processed, and on this basis, the weights representing the importance of each feature channel of TB are obtained through global average pooling and convolution operation, and finally the weight parameter is multiplied with TB to obtain the final feature tensor TC.
[0047] In summary, the present invention effectively realizes the extraction and arrangement of image feature information by continuously and alternately using the BCB basic operation unit composed of the BAB module, the OAB module, and the CAB module. In order to ensure the effective extraction of deep feature information of the image, the image super-resolution reconstruction system 100 adopts multiple basic operation units BCB to ensure the structural depth of the network. In order to speed up the convergence speed and reconstruction effect of the network, the image super-resolution reconstruction system 100 also adopts a large number of jump connection structures.
[0048] (4) Batch Normalization Module
[0049] The batch normalization module 104 is used to perform batch normalization processing on the deep feature information extracted by the deep feature extraction module.
[0050] (5) Pixel decoding module
[0051] The pixel decoding module 105 is used to decode the output value of the batch normalization module 104 to obtain a second feature image representing the deep feature information of the image. Specifically, the pixel decoding can be achieved through the batch normalization processing of the batch normalization module 104 and the processing of the Patch UnEmbed module.
[0052] (6) First pixel-by-pixel addition operation module
[0053] The first pixel-by-pixel addition operation module 106 is used to perform pixel-by-pixel addition processing on the first feature image and the second feature image to obtain a third feature image rich in image shallow feature information and image deep feature information.
[0054] (7) Image upsampling module
[0055] The image upsampling module 107 is used to perform super-resolution reconstruction on the third feature image and output a high-resolution image. Preferably, the image upsampling module 107 includes a convolution module Conv, a pixel rearrangement upsampling module Pixel Shuffle and another convolution module Conv connected in sequence. Among them, the front "convolution module and pixel rearrangement upsampling module Pixel Shuffle" are used to achieve upsampling of image resolution, and the rear another convolution module is used to achieve image restoration.
[0056] See also Figure 5 Another embodiment of the present invention further provides an image super-resolution reconstruction method based on an overlapping window attention mechanism, the steps of which correspond to the various modules of the image super-resolution reconstruction system 100, and specifically include:
[0057] Step S101, preliminarily extracting input image feature information to obtain a first feature image representing shallow feature information of the image;
[0058] Step S102, encoding the image feature pixels of the first feature image;
[0059] Step S103, extracting deep feature information of the encoded image feature pixels based on an overlapping window division mechanism;
[0060] Step S104, performing batch normalization processing on the extracted deep feature information;
[0061] Step S105, decoding the output value after the batch normalization process to obtain a second feature image representing deep feature information of the image;
[0062] Step S106, performing pixel-by-pixel addition processing on the first feature image and the second feature image to obtain a third feature image including image shallow feature information and image deep feature information;
[0063] Step S107, performing super-resolution reconstruction on the third feature image to output a high-resolution image.
[0064] The above-mentioned image super-resolution reconstruction system and method based on overlapping window attention mechanism of the present application proposes an overlapping window attention mechanism, realizes the flow of feature information of each window, and realizes the extraction of global image information based on this. Due to the adoption of the channel attention mechanism, the present invention realizes the adaptive use of image feature information, has a strong extraction capability for both local feature information and global feature information of the image, can effectively realize the reconstruction of image details, and solves the technical problem of window blocking artifacts.
[0065] The above description is only a preferred embodiment of the present invention. Those skilled in the art should understand that the scope of disclosure involved in the present invention is not limited to the technical solution formed by a specific combination of the above technical features, but also should cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above disclosed concept. For example, the above features are replaced with the technical features with similar functions disclosed in the present invention (but not limited to) to form a technical solution.
Claims
1. An image super-resolution reconstruction system based on overlapping window attention mechanism, It is characterized in that include: A shallow feature extraction module is used to perform preliminary extraction of input image feature information to obtain a first feature image representing the shallow feature information of the image; A pixel encoding module, used for encoding image feature pixels of the first feature image; A deep feature extraction module, used to extract deep feature information of the image from the output result of the pixel encoding module based on an overlapping window division mechanism; the deep feature extraction module includes N basic operation modules; each of the basic operation modules includes a basic attention calculation module, an overlapping window attention calculation module, a feature channel attention calculation module and a second pixel-by-pixel addition operation module connected in sequence; the second pixel-by-pixel addition operation module is used to perform pixel-by-pixel addition processing on the input of the basic attention calculation module and the output of the feature channel attention calculation module, and use the result of the pixel-by-pixel addition as the output of the basic operation module; Among them, the basic attention calculation module includes a first layer normalization module, a window multi-head attention module, a third pixel-by-pixel addition operation module, a second layer normalization module, a first multi-layer perceptron module and a fourth pixel-by-pixel addition operation module connected in sequence; the third pixel-by-pixel addition operation module is used to perform pixel-by-pixel addition processing on the input of the first layer normalization module and the output of the window multi-head attention module, and use the result of pixel-by-pixel addition as the input of the second layer normalization module; the fourth pixel-by-pixel addition operation module is used to perform pixel-by-pixel addition processing on the input of the second layer normalization module and the output of the first multi-layer perceptron module, and use the result of pixel-by-pixel addition as the output of the basic attention calculation module; the window multi-head attention module includes a first tensor deformation module, a normal window division module, A first multi-head attention calculation module, a normal window merging module and a second tensor deformation module; the overlapping window attention calculation module includes a third-layer normalization module, an overlapping window multi-head attention module, a fifth pixel-by-pixel addition operation module, a fourth-layer normalization module, a second multi-layer perceptron module and a sixth pixel-by-pixel addition operation module connected in sequence; the fifth pixel-by-pixel addition operation module is used to perform pixel-by-pixel addition processing on the input of the third-layer normalization module and the output of the overlapping window multi-head attention module, and use the result of the pixel-by-pixel addition as the input of the fourth-layer normalization module; the sixth pixel-by-pixel addition operation module is used to perform pixel-by-pixel addition processing on the input of the fourth-layer normalization module and the output of the second multi-layer perceptron module, and use the result of the pixel-by-pixel addition as the output of the overlapping window attention calculation module; The overlapping window multi-head attention module includes a third tensor deformation module, an overlapping window division module, a second multi-head attention calculation module, an overlapping window merging module and a fourth tensor deformation module connected in sequence; wherein the overlapping window division module is used to make the divided windows partially overlap to realize the flow of feature information between windows; Among them, the feature channel attention calculation module includes a first convolution module, a first GeLU activation function module, a second convolution module, a global average pooling module, a third convolution module, a second GeLU activation function module, a fourth convolution module, a Sigmoid activation function module and a pixel-by-pixel multiplication module connected in sequence; the pixel-by-pixel multiplication module is used to perform pixel-by-pixel multiplication processing on the input of the global average pooling module and the output of the Sigmoid activation function module, and use the result of the pixel-by-pixel multiplication as the output of the feature channel attention calculation module; A batch normalization module, used for performing batch normalization processing on the deep feature information extracted by the deep feature extraction module; The pixel decoding module is used to decode the output value of the batch normalization module to obtain a second feature image representing deep feature information of the image; A first pixel-by-pixel addition operation module, used for performing pixel-by-pixel addition processing on the first feature image and the second feature image to obtain a third feature image including image shallow feature information and image deep feature information; The image upsampling module is used to perform super-resolution reconstruction on the third feature image and output a high-resolution image.
2. According to claim 1, an image super-resolution reconstruction system based on overlapping window attention mechanism, Features: The image upsampling module includes a fifth convolution module, a pixel rearrangement upsampling module and a sixth convolution module.
3. According to claim 1, an image super-resolution reconstruction system based on overlapping window attention mechanism, It is characterized in that The shallow feature extraction module is a convolution module.
4. An image super-resolution reconstruction method based on overlapping window attention mechanism, It is characterized in that include: Preliminarily extracting the input image feature information to obtain a first feature image representing the shallow feature information of the image; encoding image feature pixels of the first feature image; The method extracts deep feature information of the encoded image feature pixels based on the overlapping window division mechanism, including: inputting the encoded image feature pixels into a deep feature extraction module; the deep feature extraction module includes N basic operation modules, each of which includes a basic attention calculation module, an overlapping window attention calculation module, a feature channel attention calculation module and a second pixel-by-pixel addition operation module connected in sequence; the second pixel-by-pixel addition operation module is used to perform pixel-by-pixel addition processing on the input of the basic attention calculation module and the output of the feature channel attention calculation module, and use the result of the pixel-by-pixel addition as the output of the basic operation module; Among them, the basic attention calculation module includes a first layer normalization module, a window multi-head attention module, a third pixel-by-pixel addition operation module, a second layer normalization module, a first multi-layer perceptron module and a fourth pixel-by-pixel addition operation module connected in sequence; the third pixel-by-pixel addition operation module is used to perform pixel-by-pixel addition processing on the input of the first layer normalization module and the output of the window multi-head attention module, and use the result of the pixel-by-pixel addition as the input of the second layer normalization module; the fourth pixel-by-pixel addition operation module is used to perform pixel-by-pixel addition processing on the input of the second layer normalization module and the output of the first multi-layer perceptron module, and use the result of the pixel-by-pixel addition as the output of the basic attention calculation module; the window multi-head attention module includes a first tensor deformation module, a normal window division module, a first multi-head attention calculation module, a normal window merging module and a second tensor deformation module connected in sequence; Wherein, the overlapping window attention calculation module includes a third layer normalization module, an overlapping window multi-head attention module, a fifth pixel-by-pixel addition operation module, a fourth layer normalization module, a second multi-layer perceptron module and a sixth pixel-by-pixel addition operation module connected in sequence; the fifth pixel-by-pixel addition operation module is used to perform pixel-by-pixel addition processing on the input of the third layer normalization module and the output of the overlapping window multi-head attention module, and use the result of the pixel-by-pixel addition as the input of the fourth layer normalization module; the sixth pixel-by-pixel addition operation module is used to perform pixel-by-pixel addition processing on the input of the fourth layer normalization module and the output of the second multi-layer perceptron module, and use the result of the pixel-by-pixel addition as the output of the overlapping window attention calculation module; the overlapping window multi-head attention module includes a third tensor deformation module, an overlapping window division module, a second multi-head attention calculation module, an overlapping window merging module and a fourth tensor deformation module connected in sequence; wherein, the overlapping window division module is used to make the divided windows partially overlap to realize the flow of feature information between windows; Among them, the feature channel attention calculation module includes a first convolution module, a first GeLU activation function module, a second convolution module, a global average pooling module, a third convolution module, a second GeLU activation function module, a fourth convolution module, a Sigmoid activation function module and a pixel-by-pixel multiplication module connected in sequence; the pixel-by-pixel multiplication module is used to perform pixel-by-pixel multiplication processing on the input of the global average pooling module and the output of the Sigmoid activation function module, and use the result of the pixel-by-pixel multiplication as the output of the feature channel attention calculation module; Perform batch normalization on the extracted deep feature information; Decoding the output values after batch normalization processing to obtain a second feature image representing deep feature information of the image; Performing pixel-by-pixel addition processing on the first feature image and the second feature image to obtain a third feature image including image shallow feature information and image deep feature information; Perform super-resolution reconstruction on the third feature image to output a high-resolution image.
