Image super-resolution method based on hierarchical receptive field Transformer

By introducing the hierarchical receptive field Transformer module into the image super-resolution model, optimizing the self-attention mechanism and reducing computational complexity solves the problems of information processing and computational complexity of traditional models, and achieves efficient and high-quality super-resolution. rate image reconstruction.

CN118446899BActive Publication Date: 2024-08-30HANGZHOU DIANZI UNIV +1
View PDF 13 Cites 0 Cited by

Patent Information

Application Number
CN202410897395.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-05
Publication Date
2024-08-30
Estimated Expiration
2044-07-05

AI Technical Summary

Technical Problem

Existing image super-resolution models based on deep convolutional neural networks have difficulty distinguishing different types of information when processing information, and the traditional attention mechanism has high computational complexity and is difficult to fully utilize the non-local similarity of images and reduce the impact of noise.

Method used

Adopting an architecture based on hierarchical receptive field Transformer, through the global linear Transformer layer, anisotropic window Transformer layer and local channel offset convolution layer, the self-attention mechanism is optimized, the computational complexity is reduced, and the sub-pixel convolution layer and convolution layer are combined layers for image reconstruction.

Benefits of technology

Efficient and high-quality super-resolution image reconstruction is achieved, the representation ability and detail expression of the model are improved, and the image super-resolution reconstruction effect is significantly improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118446899B
    Figure CN118446899B
Patent Text Reader

Abstract

The present invention discloses an image super-resolution method based on a hierarchical receptive field transformer. The method first inputs a low-resolution image into a shallow feature extraction module, and obtains shallow features through a convolutional layer extraction. Secondly, the shallow features are input into a deep feature extraction module formed by cascading a number of HRT modules to obtain deep features. Finally, the shallow features and the deep features are respectively input into an image reconstruction module, and the outputs of the two reconstruction modules are added to obtain a high-resolution image. The present invention greatly improves the effect of image super-resolution reconstruction, and has broad application prospects and significant practical value.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of image super-resolution based on deep learning, and in particular to an image super-resolution method based on a hierarchical receptive field Transformer architecture. Background Art

[0002] As network technology continues to update and iterate, images and videos, as richer information carriers, have become the main form of network information dissemination. Images display content to users in the form of pixels arranged in two-dimensional space, which can present information more intuitively. Videos are essentially a series of images presented in chronological order, with each image representing a frame. In order to meet users' demand for high-quality network services, high-definition images and videos can provide a better Internet experience. In the academic field, resolution is usually used to measure the quality of images and videos. High-resolution images have rich texture details, while low-resolution images only contain outlines or basic frame information.

[0003] In recent years, with the development of deep learning technology, deep learning methods such as SwinIR (Swin-based Image Restoration), RNAN (Recurrent Neural Network based RecursiveAttention Network), RCAN (Residual Channel Attention Network), DRRN (Deep Recursive Residual Network) have become the main methods in single image super resolution (SISR) technology. The use of deep convolutional neural networks has significantly improved the performance of SISR models. However, although models based on deep convolutional neural networks have achieved excellent results, these models generally have a defect, that is, they often find it difficult to distinguish different types of information and perform appropriate processing when processing information, which limits the model's expressive power. The introduction of attention mechanism can effectively improve the model's equal processing method when processing different channels and spatial position information. However, image super-resolution technology based on attention mechanism currently faces the following two challenges: first, the traditional attention mechanism cannot make full use of the non-local similarity prior of the image, and its calculation method tends to assign a large weight to the noise, which makes the mining of information associations in the feature map insufficient, and the learned differentiated features also need to reasonably design feature fusion methods to improve the compatibility and embeddability of the attention module in the super-resolution network; second, since the input size in the image super-resolution task is usually large, the quadratic computational complexity of self-attention will bring a high amount of computation to the super-resolution model. Summary of the invention

[0004] In order to balance the model performance and model complexity, the present invention proposes a super-resolution method based on hierarchical receptive field transformer. The model architecture covers the network architecture design, image anisotropy processing, model computational complexity, and the influence of transformer on dependency capture distance and parameter quantity. The method is divided into three stages: shallow feature extraction, deep feature extraction, and image reconstruction to achieve effective processing of super-resolution tasks. In this model, a simple convolution layer is used in the shallow feature extraction stage, while a sub-pixel convolution layer and a convolution layer are combined in the image reconstruction stage. Among them, the hierarchical receptive field transformer block (hereinafter referred to as the HRT module) is the core component of the present invention, which consists of a global linear transformer layer, an anisotropic window transformer layer, and a local channel offset convolution layer. The global linear transformer layer achieves global dependency capture under linear complexity by optimizing the quadratic linear complexity of self-attention. This layer recursively aggregates the input features into representative feature maps, and then extracts global information using cross attention to make up for the coarse-grained defects of features. The anisotropic window Transformer layer uses a rectangular window to limit the dependency capture distance according to the anisotropy of the image, and adds the multi-head attention calculation results in all directions through learnable adaptive weights, thereby retaining high-frequency information while reducing the computational complexity. Finally, the local channel offset convolution layer performs knowledge fusion through shifted convolution, effectively reducing the number of parameters and computational complexity. Overall, the receptive field of the model designed by the present invention gradually decreases from the global range to the rectangular window and then to the local convolution, but it can still capture the global feature dependencies at each stage. The design of this model aims to reduce the complexity of the model while maintaining performance.

[0005] The specific steps of the method of the present invention include:

[0006] S1. Low-resolution image Input to the shallow feature extraction module, which uses a The convolutional layer initially extracts the shallow features of the input low-resolution image . It can be expressed as: ,in, represents a shallow feature extraction operation, Represents the output of the shallow feature extraction module, which will be used as the input of the deep feature extraction module for learning global features.

[0007] S2. Output of shallow feature extraction module The input is sent to the deep feature extraction module, which is composed of several HRT (Hierarchical Receptive Field Transformer) modules cascaded. Each HRT module consists of a sequentially connected global linear Transformer layer (GLTL), anisotropic window Transformer layer (ARwinTL) and local channel offset convolution layer (LCSL). The specific steps of the HRT module are as follows:

[0008] S21. In each HRT module, the output feature map of the previous module is The first part of the input to HRT is the global linear Transformer layer. This layer includes two residual modules. The first residual module includes a sequentially connected layer normalization layer and a cross attention layer, and the second residual module includes a sequentially connected layer normalization layer and a fully connected layer.

[0009] Specifically, the S21 global linear Transformer layer includes the following steps:

[0010] S211. Feature map Perform Layer Normalization , and through the depthwise convolution The input resolution is The feature map compression mapping is Feature map ,in and is the height, and is the width, is the number of channels; then, through pointwise convolution Adjust the number of channels to , the specific formula is:

[0011]

[0012]

[0013] S212. Feature map reconstruction: Reconstruct the feature map Refactored to , whose resolution is ; The feature map Refactored to , whose resolution is ; The feature map Refactored to , whose resolution is .

[0014] S213. Perform cross attention calculation, and Multiply and normalize through softmax to obtain the self-similarity matrix, which is the same as Multiply to get the feature map .

[0015] S214. The feature map Refactored to , As the output of the first residual block, its resolution is ;Will Output feature map after inputting the second residual block , which is the output of the global linear Transformer layer.

[0016] S22. The feature map output from step S21 The input is to the anisotropic window Transformer layer, which includes two residual modules. The first residual module includes a layer normalization layer and an anisotropic self-attention layer, and the second residual module includes a layer normalization layer and a fully connected layer.

[0017] Specifically, the steps of the S22 anisotropic window Transformer layer are as follows:

[0018] S221. Feature map Perform Layer Normalization , get the feature map .

[0019] S222. For feature map , using horizontal rectangular windows and vertical rectangular windows to divide it into equal feature blocks ,in is the height of the window, is the width of the window, in a horizontal rectangular window, , and vice versa for vertical windows. Perform multi-head self-attention calculation, feature block For The self-attention calculation of a head can be expressed as:

[0020]

[0021]

[0022] in, It is The output of the self-attention head, It is a feature block After reconstructing the matrix The reconstructed feature block, It is a feature block After reconstructing the matrix The reconstructed feature block, It is a feature block After reconstructing the matrix Reconstructed feature blocks. is the number of channels per self-attention head, is the number of self-attention heads, is the bias term.

[0023] S223. The feature blocks after horizontal and vertical multi-head self-attention calculation Splice according to the original spatial position to get the feature map and .

[0024] S224. Yes and Perform adaptive weighted addition, and the corresponding weight is and , the calculation formula is:

[0025]

[0026] S225. Input to the second residual block, and then through layer normalization and full connection layer calculation to get the output feature map , which is the output of the anisotropic window Transformer layer.

[0027] S23. The feature map output from step S22 Input to the local channel offset convolution layer, which consists of three parts: a channel attention module, a channel offset convolution layer, and a general convolution layer.

[0028] Specifically, the specific steps of the S23 local channel offset convolution layer are as follows:

[0029] S231. The feature map Input to the channel attention module for channel adaptive weighting to obtain the feature map , making the model pay more attention to important channel information.

[0030] S232. Input to the channel offset convolution layer, which converts the feature map The channel dimension is divided into sub-feature maps, the first sub-feature map remains unchanged, and the rest The sub-feature maps are shifted in different directions and the shifted feature maps are input into Convolutional layer, quickly captures local spatial features at the same spatial location.

[0031] S233. Input the feature map output in step S232 into Convolutional layer, get the output feature map , which is the output of the local channel offset convolutional layer.

[0032] S24.HRT modules are connected by residual learning. HRT module, which is input into the feature map The output feature map of step S23 Add together to get the output feature map of the HRT module .

[0033] S25. Shallow feature map After being processed by several HRT modules, Convolution, output feature map , which is the output of the deep feature extraction module.

[0034] S3. Shallow feature extraction output And deep feature extraction output They are respectively input into the image reconstruction module, which includes a sub-pixel convolution layer and a Convolutional Layer , the outputs of the two reconstruction modules are added together to obtain a high-resolution image , the specific calculation formula is:

[0035] .

[0036] Beneficial effects of the present invention: The image super-resolution model based on the hierarchical receptive field transformer effectively combines the advantages of global and local features by introducing the hierarchical receptive field transformer module (HRT), and realizes efficient and high-quality super-resolution image reconstruction. First, the shallow feature extraction module uses the convolution layer to perform preliminary processing on the low-resolution image to extract the shallow features of the image. Secondly, the deep feature extraction module extracts global features and anisotropic features by combining the global linear transformer module, the anisotropic window transformer module and the local channel offset convolution module, and fully integrates them. Finally, the image reconstruction module realizes the fine reconstruction of the high-resolution image through the sub-pixel convolution layer and the general convolution layer. The present invention has the following benefits: 1. The global linear transformer module is designed, and the efficient capture of global information is realized through the optimized self-attention mechanism; 2. The anisotropic window transformer module is designed, and the local dependencies in different directions are flexibly processed through the adaptive multi-head attention mechanism; 3. The local channel offset convolution module is designed, and the full integration of local features is realized without increasing the computational complexity. This multi-level feature extraction method not only improves the representation ability of the model, but also significantly enhances the detail expression of the super-resolution image. Overall, the present invention greatly improves the effect of image super-resolution reconstruction through innovative module design and efficient feature extraction and fusion mechanism, and has broad application prospects and significant practical value. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] Figure 1 Architecture diagram of image super-resolution method based on hierarchical receptive field Transformer;

[0038] Figure 2 Global linear Transformer layer structure diagram;

[0039] Figure 3 Schematic diagram of global linear attention calculation;

[0040] Figure 4 Anisotropic window Transformer layer structure diagram;

[0041] Figure 5 Schematic diagram of anisotropic window self-attention calculation;

[0042] Figure 6 The structure diagram of the local channel offset convolution layer;

[0043] Figure 7 Schematic diagram of channel offset convolution operation;

[0044] Figure 8Model qualitative analysis comparison results. DETAILED DESCRIPTION

[0045] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.

[0046] As a preferred implementation form of the present invention, an image super-resolution method based on a hierarchical receptive field Transformer is provided, and its architecture is as follows: Figure 1 As shown, the following steps are included:

[0047] S1. Low-resolution image Input to the shallow feature extraction module, which uses a The convolutional layer initially extracts the shallow features of the input low-resolution image , the specific formula is:

[0048]

[0049] in, Represents a shallow feature extraction operation, which is used to capture the local structure and texture information of the image. It will be used as the input of the deep feature extraction module for learning global features.

[0050] S2. Output of shallow feature extraction module The input is sent to the deep feature extraction module, which is composed of 8 HRT (Hierarchical Receptive Field Transformer) modules cascaded. Each HRT module includes a global linear Transformer layer (GLTL), an anisotropic window Transformer layer (ARwinTL), and a local channel offset convolutional layer (LCSL). The specific steps of the HRT module are as follows:

[0051] S21. In each HRT module, the output feature map of the previous module is The first part of the HRT input is the global linear Transformer layer, which has the following structure: Figure 2As shown. The global linear Transformer layer is mainly used to capture global spatial dependencies, and the optimized computational complexity is quadratic linear. This layer includes two residual modules. The first residual module includes a layer normalization layer and a cross attention layer, and the second residual module includes a layer normalization layer and a fully connected layer. Among them, the cross attention layer is used to extract global information and aggregate input features into representative feature maps. The calculation principle of the global linear Transformer layer is as follows Figure 3 As shown, the specific steps include:

[0052] S211. Feature map Perform Layer Normalization , and through the depthwise convolution The input resolution is The feature map compression mapping is Feature map ,in and is the height, and is the width, is the number of channels; then, through pointwise convolution Adjust the number of channels to , the specific formula is:

[0053]

[0054]

[0055] S212. Feature map reconstruction: Reconstruct the feature map Refactored to , whose resolution is ; The feature map Refactored to , whose resolution is ; The feature map Refactored to , whose resolution is .

[0056] S213. Perform cross attention calculation, and Multiply and normalize through softmax to obtain the self-similarity matrix, which is the same as Multiply to get the feature map , the specific calculation formula is:

[0057]

[0058] S214. As the output of the first residual block, its resolution is .Will Output feature map after inputting the second residual block , which is the output of the global linear Transformer layer.

[0059] S22. The feature map output from step S21 Input to the anisotropic window Transformer layer, whose structure is as follows Figure 4 This layer is used to capture the dependencies within the window. A rectangular window is used to limit the capture range of the attention calculation. The attention in different directions is calculated in parallel through the multi-head attention mechanism. The attention calculation results in each direction are weighted and summed through adaptive weights. This layer includes two residual modules. The first residual module includes a layer normalization layer and an anisotropic self-attention layer, and the second residual module includes a layer normalization layer and a fully connected layer. The anisotropic window self-attention calculation principle is shown in Figure 5 As shown, the specific steps are as follows:

[0060] S221. Feature map Perform Layer Normalization , get the feature map .

[0061] S222. For feature map , using horizontal rectangular windows and vertical rectangular windows to divide it into equal feature blocks ,in is the height of the window, is the width of the window, in a horizontal rectangular window, , and vice versa for vertical windows. Perform multi-head self-attention calculation, feature block For The self-attention calculation of a head can be expressed as:

[0062]

[0063]

[0064] in, It is The output of the self-attention head, It is a feature block After reconstructing the matrix The reconstructed feature block, It is a feature block After reconstructing the matrix The reconstructed feature block, It is a feature block After reconstructing the matrix Reconstructed feature blocks. is the number of channels per self-attention head, is the number of self-attention heads, is the bias term.

[0065] S223. The feature blocks after horizontal and vertical multi-head self-attention calculation Splice according to the original spatial position to get the feature map and .

[0066] S224.Yes and Perform adaptive weighted addition, and the corresponding weight is and , the calculation formula is:

[0067]

[0068] S225. Input to the second residual block, after layer normalization and full connection layer calculation, the output feature map is obtained , which is the output of the anisotropic window Transformer layer.

[0069] S23. The feature map output from step S22 Input to the local channel offset convolution layer, which is used to realize local feature fusion. Its structure is as follows Figure 6 As shown in Figure 2. This layer consists of three parts: a channel attention module, a channel offset convolution layer, and a general convolution layer. The specific steps are as follows:

[0070] S231. The feature map Input to the channel attention module for channel adaptive weighting to obtain the feature map , making the model pay more attention to important channel information.

[0071] S232. The input is sent to the channel offset convolution layer, which integrates the surrounding knowledge by matching the information of different spatial positions between adjacent features in the channel dimension. The principle of channel offset convolution operation is as follows: Figure 7 As shown, the specific steps are:

[0072] The feature map The channel dimension is divided into sub-feature maps, the first sub-feature map remains unchanged, and the rest The sub-feature maps are shifted in different directions and the shifted feature maps are input into Convolutional layer, quickly captures local spatial features at the same spatial location.

[0073] S233. Input the feature map output in step S232 into Convolutional layer, get the output feature map , which is the output of the local channel offset convolutional layer.

[0074] S24.HRT modules are connected by residual learning. HRT module, which is input into the feature map The output feature map of step S23 Add together to get the output feature map of the HRT module , the formula is:

[0075]

[0076] S25. Shallow feature map After being processed by a series of HRT modules, Convolution, output feature map , which is the output of the deep feature extraction module.

[0077] S3. Shallow feature extraction output And deep feature extraction output They are respectively input into the image reconstruction module, which includes a sub-pixel convolution layer and a Convolutional Layer , the outputs of the two reconstruction modules are added together to obtain a high-resolution image , the specific calculation formula is:

[0078]

[0079] Example:

[0080] The steps of this embodiment are the same as those of the specific implementation method, and will not be described in detail here. The following is a demonstration of some implementation processes and implementation results.

[0081] The experiment of the present invention uses the test sets Set5, Set14, BSD100 (Berkeley Segmentation Dataset), Urban100, and Manga109, and the training set uses the DF2K dataset. The DF2K dataset includes the DIV2K training set and the Flick2K training set, which consists of 3450 2K images in total. Using the DF2K dataset as a training set can make the Transformer-based image super-resolution model have stronger training stability, thereby obtaining higher model accuracy.

[0082] Depend on Figure 8The difference between the super-resolution images generated by the HRT model and other models can be intuitively seen. In the first image, the framed area contains a large number of checkered textures, and the HRT model proposed in the present invention combines the lateral and longitudinal anisotropy of the image to perform feature extraction, so that the visual effect of the generated high-resolution image is significantly better than other models. The same is true in the second image. While most models have serious texture offsets at the edge of the image, HRT can reconstruct most of the texture details, with only partial blurring at the very edge. In the third image, the framed area contains a large number of complex texture details, and the image anisotropy is significant. The HRT model can also obtain a relatively good super-resolution effect, and the complex detail texture that can be generated is significantly better than other models. In summary, the model proposed in the present invention has a relatively obvious improvement in qualitative analysis compared to other models and LR images.

[0083] The PSNR (Peak Signal-to-Noise Ratio) of the HRT model was quantitatively analyzed under the bicubic degradation model. The evaluation selected five test sets: Set5 (containing 5 natural scenery, portraits, etc.), Set14 (containing 14 natural scenery, animals, people, etc.), B100 (containing 100 natural scenery, animals, people, etc.), Urban100 (city data set) and Manga109 (comic image data set), and set the scale factor to 2, 3, and 4, and conducted three groups of comparative tests. The compared models are RCAN (Residual Channel Attention Networks): an image super-resolution method based on residual and channel attention mechanism, SAN (Shift-Attention Network): an image super-resolution method based on translation attention mechanism, AMNLN (Adaptive Multiscale Non-Local Network): an image super-resolution method based on adaptive multi-scale non-local network, IPT (Iterative Projection and Thresholding): an image super-resolution method based on iterative projection and thresholding, ESRT (Example-based Super-Resolution via Transfer learning): an example-based image super-resolution method based on transfer learning, EMT (Edge-Enhanced Multi-Scale Transform): an image super-resolution method based on edge-enhanced multi-scale transform, SwinIR (Swin-based Image Restoration): an image restoration method based on translation window, DGSM-Swin (Deep Global-Local Structure Modeling with Swin Transformer): an image super-resolution method based on deep global-local structure modeling of Swin Transformer, HIPA (Hybrid IterativeProjection and Adaptation): A hybrid iterative projection and adaptive image super-resolution method. The results are shown in Table 1 below:

[0084] Table 1 PSNR (dB) evaluation results of selected datasets

[0085]

[0086] It can be seen intuitively from the quantization results that among the compared models, HRT can achieve the optimal or suboptimal PSNR value in all test sets. It can be seen that the model proposed in the present invention is superior to the SwinIR model and the HIPA model in most test sets when the scale factors are 2 and 4, which also intuitively illustrates the advantages of this model in module design. From the overall data, the image super-resolution model based on CNN+Transformer is superior to the super-resolution model based on CNN in performance, which confirms the effectiveness of Transformer in the field of image super-resolution.

Claims

1. An image super-resolution method based on hierarchical receptive field Transformer, It is characterized in that The following steps are involved: S1. Input the low-resolution image into the shallow feature extraction module and extract the feature F through the convolution layer 0 ; S2. The feature F 0 Input to the deep feature extraction module composed of several HRT modules cascaded together to obtain the feature F ODFE ; Each of the HRT modules includes a global linear Transformer layer, an anisotropic window Transformer layer and a local channel offset convolution layer connected in sequence; The specific implementation process of the i-th HRT module is as follows: S21. In the i-th HRT module, the output feature map F of the previous module is i-1 The global linear Transformer layer in HRT is input, which includes two residual modules. The first residual module includes a sequentially connected layer normalization layer and a cross attention layer, and the second residual module includes a sequentially connected layer normalization layer and a fully connected layer. Finally, the feature map F is output. GLTL ; S22. The feature map F GLTL Input to the anisotropic window Transformer layer, which includes two residual modules. The first residual module includes a layer normalization layer and an anisotropic self-attention layer, and the second residual module includes a layer normalization layer and a fully connected layer. Finally, the feature map F is output. ARwinTL , the specific process is as follows: S221. For feature map F GLTL Perform Layer normalization L Norm , get the feature map X∈R H×W×C ; S222. For the feature map X, use horizontal rectangular windows and vertical rectangular windows to divide it into equal feature blocks. Among them, H w is the height of the window, W w is the width of the window. In a horizontal rectangular window, H w <W w , and vice versa for vertical windows; for each feature block X i Perform multi-head self-attention calculation, feature block X i The self-attention calculation for the mth head is expressed as: in, is the output of the mth self-attention head, is the feature block X i After reconstructing the matrix The reconstructed feature block, is the feature block X i After reconstructing the matrix The reconstructed feature block, is the feature block X i After reconstructing the matrix The reconstructed feature block, is the number of channels of each self-attention head, M is the number of self-attention heads, and B is the bias term; S223. The feature blocks after horizontal and vertical multi-head self-attention calculation Splice according to the original spatial position to get the feature map F V1 and F H ; S224.F V1 and F H Perform adaptive weighted addition, the corresponding weight is λ V and λ H , the calculation formula is: F out =λ V F V1 +λ H F H S225.F out The input is sent to the second residual block, and then it is normalized by Layer and calculated by the fully connected layer to obtain the output feature map F. ARwinTL , which is the output of the anisotropic window Transformer layer; S23. The feature map F ARwinTL Input to the local channel offset convolution layer, which consists of a channel attention module, a channel offset convolution layer and a general convolution layer, and finally outputs the feature map F LCSL ; S24.HRT modules are connected by residual learning. For the i-th HRT module, it is input into the feature map F i-1 With the feature map F LCSL Add together to get the output feature map F of the HRT module i ; S25. Shallow feature map F 0 After being processed by several HRT modules, a 3×3 convolution layer is performed to output the feature map F ODFE , which is the output of the deep feature extraction module; S3. The feature F 0 and feature F ODFE The outputs of the two reconstruction modules are added together to obtain a high-resolution image I HR .

2. The image super-resolution method based on hierarchical receptive field Transformer according to claim 1, It is characterized in that The specific implementation process of the global linear Transformer layer in S21 is as follows: S211. For feature map F i-1 Perform Layer normalization L Norm , and through the depth convolution L DW Compress the input feature map with a resolution of H×W×C to a feature map F of h×w×C DW , where H and h are heights, W and w are widths, and C is the number of channels; then, through point-by-point convolution L PW Adjust the number of channels to c r , the specific formula is: F DW =L DW (L Norm (F i-1 )) F PW =L PW (F DW ) S212. The feature map F i-1 Refactored to F Q , whose resolution is HW×c r ; The feature map F PW Refactored to F K , whose resolution is c r ×hw; the feature map F DW Refactored to F V , whose resolution is hw×C; S213. Perform cross attention calculation and convert F Q and F K Multiply and normalize through softmax to obtain the self-similarity matrix, which is consistent with F v Multiply them together to get the feature map F m ; S214. The feature map F m Refactored to F crossA , F crossA As the output of the first residual block, its resolution is H×W×C; F crossA After inputting the second residual block, the feature map F is output GLTL , which is the output of the global linear Transformer layer.

3. The image super-resolution method based on hierarchical receptive field Transformer according to claim 1, It is characterized in that The specific implementation process of the local channel offset convolution layer in S23 is as follows: S231. The feature map F ARwinTL Input to the channel attention module for channel adaptive weighting to obtain the feature map F CAB ; S232.F CAB Input to the channel offset convolution layer, which transforms the feature map F CAB The channel dimension is divided into n sub-feature maps, the first sub-feature map remains unchanged, and the remaining n-1 sub-feature maps are shifted in different directions. The shifted feature maps are input into the 1×1 convolution layer to quickly capture local spatial features at the same spatial position; S233. Input the feature map output in step S232 into the 3×3 convolutional layer to obtain the output feature map F LCSL , which is the output of the local channel offset convolutional layer.

4. The image super-resolution method based on hierarchical receptive field Transformer according to any one of claims 1 to 3, It is characterized in that The specific process of step S3 is as follows: The feature F 0 and feature F ODFE The image reconstruction module includes a sub-pixel convolution layer U constructed sequentially. ↑ and a 3×3 convolutional layer L 3×3Conv , the outputs of the two reconstruction modules are added together to obtain a high-resolution image I HR , the specific calculation formula is: I HR =L 3×3Conv (U ↑ (F 0 ))+L 3×3Conv (U ↑ (F ODFE ))。

Citation Information

Patent Citations

  • Image super-resolution method based on multi-stage attention enhancement network

    CN111179167A

  • Residual feature attention fusion method for super-resolution of lightweight chest CT (Computed Tomography) image

    CN117036162A

  • Mine image super-resolution reconstruction system and method based on overall attention

    CN117173024A

  • Infrared image super-resolution reconstruction method combining two-way convolution and self-attention

    CN117274047A

  • Single-frame image super-resolution method and device based on mixed feature interaction Transformer

    CN117422614A