A single image super-resolution reconstruction method based on a multi-scale residual attention mechanism network

By introducing a multi-scale residual attention mechanism network in single-image super-resolution reconstruction, and using deep connections and global-aware external attention mechanisms, the problem of not utilizing intermediate layer features and the same sample channel correlation in the existing technology is solved, significantly improving Improved image reconstruction performance.

CN114298911BActive Publication Date: 2024-09-20CHINA UNIV OF MINING & TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111672918.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-31
Publication Date
2024-09-20
Estimated Expiration
2041-12-31

AI Technical Summary

Technical Problem

Existing CNN-based single image super-resolution reconstruction methods fail to fully utilize the scale and hierarchical characteristics of the intermediate layer, ignore the feature correlation between channels of the same sample, and do not fully explore the correlation between different samples, resulting in poor performance lower.

Method used

Propose a multi-scale residual attention mechanism network, including deep connection multi-scale residual attention groups, long-range skip connections and global perceptual external attention mechanisms. Through multi-scale convolution operations and local perceptual channel attention mechanisms, different scales and levels of features are utilized. , and learn the correlation between different samples.

Benefits of technology

It improves the performance of image reconstruction, captures rich scale features and channel correlation of the same sample through deep connection and multi-scale feature fusion, simplifies the training of deep networks, and significantly improves the quality of super-resolution images.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114298911B
    Figure CN114298911B
Patent Text Reader

Abstract

The present invention provides a single image super-resolution reconstruction method of a multi-scale residual attention mechanism network, comprising: constructing a multi-scale residual attention mechanism network, comprising a shallow feature extraction part constructed by a convolutional layer connected in sequence, a deep feature extraction part composed of N deeply connected multi-scale residual attention groups, a long-range skip connection and a global perception external attention mechanism, an amplification module part, and a reconstruction part constructed by a convolutional layer; a low-resolution image to be reconstructed I LR , extract its shallow feature F0 through the shallow feature extraction part, and input it into the deep feature extraction module to obtain the deep feature F DF ; By enlarging the module part, the deep feature F DF Amplify; by reconstructing the part, the amplified feature F UP Convert to super-resolution image I SR The present invention constructs a deeply connected multi-scale residual attention network to achieve accurate SISR.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer vision technology, and in particular to a single image super-resolution reconstruction method of a multi-scale residual attention mechanism network. Background Art

[0002] Single image super-resolution (SISR) is a research hotspot in the field of computer vision. Its goal is to accurately construct a high-resolution (HR) image from a given low-resolution (LR) image. It has been widely used in various computer vision scenarios, such as public safety monitoring, medical imaging, and satellite imaging. However, due to the lack of high-frequency information, the same LR input may generate multiple different versions of HR images, so SISR is a highly ill-posed problem. To address this problem, a large number of SISR methods have been proposed, which can be roughly divided into three categories: interpolation-based, reconstruction-based, and learning-based methods.

[0003] In recent years, thanks to its excellent feature representation ability and end-to-end training mode, SR methods based on deep convolutional neural networks (CNNs) have become the mainstream methods for SISR. CNN-based SR methods attempt to find the nonlinear mapping relationship between LR images and HR images, and show significant superiority over traditional SR methods. However, existing CNN-based SIS-R methods still have some shortcomings. First, most CNN-based SISR methods do not fully utilize the scale and hierarchical features obtained from the intermediate layers of the network, resulting in relatively low performance. Second, CNN-based SISR methods focus more on designing deeper or wider networks, while ignoring the inherent feature correlation between channels of the same sample to obtain more discriminative high-frequency information. Finally, the correlation between different samples has been shown to be beneficial to deep feature representation in various visual tasks, which remains to be explored in existing SISR methods.

[0004] To this end, the present invention proposes a new single image super-resolution reconstruction method based on a multi-scale residual attention mechanism network. Summary of the invention

[0005] To solve the above problems, the present invention proposes a single image super-resolution reconstruction method based on a multi-scale residual attention mechanism network.

[0006] To achieve the above object, the present invention provides the following technical solutions.

[0007] A single image super-resolution reconstruction method based on a multi-scale residual attention mechanism network comprises the following steps:

[0008] Construct a multi-scale residual attention mechanism network, including a shallow feature extraction part constructed by convolutional layers connected in sequence, a deep feature extraction part consisting of N deeply connected multi-scale residual attention groups, a long-range skip connection and a global-aware external attention mechanism, an amplification module part, and a reconstruction part constructed by convolutional layers;

[0009] The low-resolution image I to be reconstructed LR , extract its shallow feature F0 through the shallow feature extraction part;

[0010] Input the shallow feature F0 into the deep feature extraction module to obtain the deep feature F DF ;

[0011] By enlarging the module part, the deep feature F DF Zoom in and get the enlarged feature F UP ;

[0012] By reconstructing the part, the enlarged feature F UP Convert to super-resolution image I SR .

[0013] Preferably, the extraction of the shallow feature F0 is specifically shown in the following formula:

[0014] F0=f SFEP (I LR )

[0015] Among them, f SFEP (.) represents a convolution operation, and the kernel size of this convolution layer is 3×3.

[0016] Preferably, the depth feature F DF The extraction comprises the following steps:

[0017] The deeply connected multi-scale residual attention group in the i-th group is expressed as:

[0018] F i =g i (F i-1 ) = g i (g i-1 (…g1(F0)…))

[0019] Among them, g i (·) represents the function of the i-th deeply connected multi-scale residual attention group; F i-1 and F i are the input and output of the i-th deeply connected multi-scale residual attention group, respectively;

[0020] Introducing long-range skip connections, the obtained deep features F df for:

[0021] F df =F0+W LRSC F N =F0+W LRSC g i (g i-1 (…g1(F0)…))

[0022] Among them, W LRSC is the weight of the convolutional layer after the Nth deeply connected multi-scale residual attention group;

[0023] The deep features obtained by the global perception external attention mechanism are:

[0024] F DF =f GAEA (F df )

[0025] Among them, f GAEA represents the operation of the global perception external attention mechanism;

[0026] Specific:

[0027] Assume F∈R N×d is the input feature map, where N = h × w represents the number of pixels, d represents the feature dimension, and the global perception external attention mechanism is expressed as:

[0028]

[0029] F out =AM v

[0030] Among them, (α) i,j It is an external storage unit M k The similarity between the i-th pixel and the j-th pixel; M k , M v ∈R S×d are two different and learnable parameters independent of a single sample and serve as two memories for the entire training dataset; A is the attention map learned from prior knowledge;

[0031] Use the similarity in A to update M v The features in are used to obtain the final deep features.

[0032] Preferably, each of the deeply connected multi-scale residual attention groups comprises a plurality of deeply connected multi-scale residual attention blocks with short-range skip connections;

[0033] The jth deeply connected multi-scale residual attention block in the i-th deeply connected multi-scale residual attention group is:

[0034] F i,j =gi,j (F i,j-1 ) = g i,j (g i,j-1 (…g i,1 (F i-1 )…))

[0035] Among them, F i,j-1 and F i,j refer to the input and output of the jth deeply connected multi-scale residual attention block in the i-th deeply connected multi-scale residual attention group, respectively, and g i,j (·) indicates the corresponding function;

[0036] Add short-range skip connections to get the block output:

[0037] F i =F i-1 +W SRSC F i,M =F i-1 +W SRSC g i,M (g i,M-1 (…g i,1 (F i-1 )…))

[0038] Among them, W SRSC represents the weights of the convolutional layer at the end of the i-th deeply connected multi-scale residual attention group.

[0039] Preferably, each of the deeply connected multi-scale residual attention blocks includes deeply connected multi-scale feature fusion, local perception channel attention mechanism operation and local residual learning performed sequentially.

[0040] Preferably, the deep connection multi-scale feature fusion comprises the following steps:

[0041]

[0042] B4=[B 11 , B 12 , B 31 , B 32 ]

[0043] Among them, ω and b represent weight and bias respectively, the subscript represents the size of the convolution kernel, and the superscript represents the layer number of the convolution kernel; γ(x)=max(0,x) represents the ReLU function; [.] represents the connection operation;

[0044] Features from different network depths and different branches are connected through deep connections to obtain feature B4.

[0045] Preferably, the local perception channel attention mechanism operation comprises the following steps:

[0046] According to the learned statistics of local cross-channel interdependence, different weights are assigned to each channel feature:

[0047] R=W R (LACA(B4))

[0048] Where LACA(·) represents the operation of the local perceptual channel attention mechanism, W R is the weight of the 1×1 convolutional layer so that the number of feature maps is the same as the number of input features of the deeply connected multi-scale residual attention block; R is the deeply connected multi-scale residual;

[0049] Specific:

[0050] Assume X = [x1,…,x c ,…,x C ] is the input of C feature map with spatial dimension h×w, and global average pooling is used along the spatial dimension to obtain global statistics, which is expressed as Z = [z1,…,z c ,…,z C ];

[0051] The c-th element of Z is obtained by the following formula:

[0052]

[0053] Among them, x c (i, j) represents the value at position (i, j) of the cth feature map x, f GAP (.) represents the global average pooling (GAP) function;

[0054] Fast 1D convolution:

[0055] S=σ(C1D s (Z)

[0056] Among them, C1D s (.) represents a 1D convolution operation with a kernel size of s; σ(.) is the sigmoid function responsible for generating the final channel weight S;

[0057] The kernel size s is adaptively obtained in the following way:

[0058]

[0059] Among them, |e| odd represents the nearest odd integer of e; b and δ are set to 1 and 2 respectively;

[0060] The learned weight set S is used to re-weight the input X:

[0061]

[0062] in, represents matrix multiplication, Represents the output of the LACA mechanism.

[0063] Preferably, the local residual learning comprises the following steps: by residual learning, the deeply connected multi-scale residual attention block is represented as:

[0064] H s =R+H s-1

[0065] Among them, H s-1 and H s are the input and output of the deeply connected multi-scale residual attention block, respectively, and the operation + represents element-wise addition.

[0066] Preferably, the amplification module part adopts ESPCN; the reconstruction part adopts a convolution layer with a kernel size of 3×3, and outputs a reconstructed color image through three filters.

[0067] Preferably, it also includes optimizing the multi-scale residual attention mechanism network through a loss function.

[0068] Beneficial effects of the present invention: The present invention proposes a deeply connected multi-scale residual attention network DMRAN for super-resolution image reconstruction, and further proposes a deeply connected multi-scale residual attention block DMRAB composed of multi-scale and channel attention mechanisms. The DMRAB proposed in the present invention can utilize characteristics of different scales and levels through multi-scale convolution operations. At the same time, the DMRAB proposed in the present invention can adaptively rescale channel features by allowing local correlations between channels of the same sample. In addition, the present invention also proposes a deep feature extraction structure DFES, which is used to learn abstract feature representations and simplify the training of deep networks. Among them, the deeply connected multi-scale residual attention group DMRAG is used as the basic component, and the long-range jump connection LRSC is used to realize coarse residual learning. At the same time, the global perception external attention GAEA is introduced in DFES to learn the correlation between different samples, further improving the performance of image reconstruction. BRIEF DESCRIPTION OF THE DRAWINGS

[0069] Figure 1 is the architecture of the DMRAN of the embodiment of the present invention;

[0070] Figure 2 It is the module structure of the local attention perception mechanism of the embodiment of the present invention;

[0071] Figure 3 It is the global attention perception mechanism module structure of an embodiment of the present invention;

[0072] Figure 44 is a visual comparison diagram of a test data set with a scale factor of ×4 according to an embodiment of the present invention. DETAILED DESCRIPTION

[0073] 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 intended to limit the present invention.

[0074] Example 1

[0075] The present invention proposes a single image super-resolution reconstruction method based on a multi-scale residual attention mechanism network. Figure 1 As shown, the specific steps include:

[0076] like Figure 1 As shown, a multi-scale residual attention mechanism network DMRAN is constructed. DMRAN includes a shallow feature extraction part SFEP constructed by convolutional layers connected in sequence, a deep feature extraction part DFEP composed of N deeply connected multi-scale residual attention groups DMRAG, a long-range skip connection LRSC and a global perception external attention mechanism GAEA, an amplification module part UP, and a reconstruction part REC constructed by convolutional layers;

[0077] S1. The low-resolution image I to be reconstructed LR , and extract its shallow feature F0 through the shallow feature extraction part.

[0078] The extraction of shallow feature F0 is shown in the following formula:

[0079] F0=f SFEP (I LR )

[0080] Among them, f SFEP (.) represents a convolution operation, and the kernel size of this convolution layer is 3×3.

[0081] S2, input shallow feature F0 into deep feature extraction module to obtain deep feature F DF .

[0082] The specific steps include:

[0083] The deeply connected multi-scale residual attention group in the i-th group is expressed as:

[0084] F i =g i (F i-1 ) = g i (g i-1 (…g1(F0)…))

[0085] Among them, g i(·) represents the function of the i-th deeply connected multi-scale residual attention group; F i-1 and F i are the input and output of the i-th deeply connected multi-scale residual attention group, respectively;

[0086] Introducing long-range skip connections, the obtained deep features F df for:

[0087] F df =F0+W LRSC F N =F0+W LRSC g i (g i-1 (…g1(F0…))

[0088] Among them, W LRSC is the weight of the convolutional layer after the Nth deeply connected multi-scale residual attention group;

[0089] The deep features obtained by the global perception external attention mechanism are:

[0090] F DF =f GAEA (F df )

[0091] Among them, f GAEA represents the operation of the global perception external attention mechanism. The global attention perception mechanism is as follows Figure 3 shown.

[0092] A lightweight global-aware external attention module GAEA is used to capture the potential correlations between different samples, such as Figure 3 Assume that F∈R N×d is the input feature map, where N = h × w represents the number of pixels and d represents the feature dimension. Inspired by the self-attention mechanism, two small, external, shared, learnable memory units are used and the key and value are specified. The purpose of the two external memories is to capture the most discriminative features of the entire dataset and exclude interference information from other samples. GAEA can be expressed as:

[0093]

[0094] F out =AM v

[0095] Here, (α) i,j It is an external storage unit M k The similarity between the i-th pixel and the j-th pixel. k , M v ∈R S×dare two different and learnable parameters independent of a single sample and serve as two memories for the entire training dataset. A is the attention map learned from prior knowledge, which is regularized in a mechanism similar to self-attention. Finally, the similarity in A is used to update M v The two memories are easy to implement in linear layers in experiments, and the computational complexity of GAEA is linear with the number of pixels. Combined with the lightweight GAEA mechanism, DMRAN can adaptively learn the attention between different samples in the entire dataset.

[0096] Further:

[0097] Each deeply connected multi-scale residual attention group includes multiple deeply connected multi-scale residual attention blocks with short-range skip connections;

[0098] The jth deeply connected multi-scale residual attention block in the i-th deeply connected multi-scale residual attention group is:

[0099] F i,j =g i,j (F i,j-1 ) = g i,j (g i,j-1 (…g i,1 (F i-1 )…))

[0100] Among them, F i,j-1 and F i,j refer to the input and output of the jth deeply connected multi-scale residual attention block in the i-th deeply connected multi-scale residual attention group, respectively, and g i,j (·) indicates the corresponding function;

[0101] Add short-range skip connections to get the block output:

[0102] F i =F i-1 +W SRSC F i,M =F i-1 +W SRSC g i,M (g i,M-1 (…g i,1 (F i-1 )…))

[0103] Among them, W SRSC represents the weights of the convolutional layer at the end of the i-th deeply connected multi-scale residual attention group.

[0104] Going further:

[0105] In order to make full use of image features of different scales and feature correlation of the same sample, a deeply connected multi-scale residual attention block is proposed. Each deeply connected multi-scale residual attention block includes the sequential operation of deeply connected multi-scale feature fusion, local-aware channel attention mechanism and local residual learning.

[0106] Deep connection multi-scale feature fusion includes the following steps:

[0107]

[0108]

[0109] B4=[B 11 , B 12 , B 31 , B 32 ]

[0110] Among them, ω and b represent weight and bias respectively, the subscript represents the size of the convolution kernel, and the superscript represents the layer number of the convolution kernel; γ(x)=max(0,x) represents the ReLU function; [.] represents the connection operation;

[0111] Features from different network depths and different branches are connected through deep connections to obtain feature B4.

[0112] The local perception channel attention mechanism operation includes the following steps:

[0113] According to the learned statistics of local cross-channel interdependence, different weights are assigned to each channel feature:

[0114] R=W R (LACA(B4))

[0115] Where LACA(·) represents the operation of the local perceptual channel attention mechanism, W R is the weight of the 1×1 convolutional layer so that the number of feature maps is the same as the number of input features of the deeply connected multi-scale residual attention block; R is the deeply connected multi-scale residual.

[0116] LR images contain rich low-frequency information, but compared with HR images, valuable high-frequency information (such as sharp contrast edges, textures, and other details) in LR images is very limited. Therefore, it is crucial to extract more limited but valuable high-frequency information from LR images. In order to extract more important information from the input, a local-aware channel preservation (LACA) mechanism is used to capture cross-channel interactions of the same sample and rescale the previously acquired features.

[0117] like Figure 2 As shown, assuming X = [x1,…,x c ,…,xC ] is the input of C feature map with spatial dimension h×w. The present invention first uses global average pooling along the spatial dimension to obtain global statistics, which can be expressed as Z=[z1,…,z c ,…,z C ]. The c-th element of Z is obtained by the following formula

[0118]

[0119] Among them, x c (i, j) represents the value at position (i, j) of the cth feature map x, f GAP (.) represents the global average pooling (GAP) function. It is worth noting that the global average pooling can also be replaced by other more complex aggregation techniques. Then there is a fast one-dimensional convolution:

[0120] S=σ(C1D s (Z)

[0121] Among them, C1D s (.) represents a 1D convolution operation with a kernel size of s. σ(.) is the sigmoid function responsible for generating the final channel weight S, which is the core of the LACA mechanism. Compared with SENet, the LACA model with only s parameters has a lower model complexity. The kernel size s can be adaptively obtained by

[0122]

[0123] Among them, |e| odd represents the nearest odd number of e. Here, b and δ are set to 1 and 2 respectively. From the mapping function It can be clearly seen that the larger the value of C, the wider the range of local correlations between channels captured by LACA. Finally, the learned weight set S is used to re-weight the input X:

[0124]

[0125] in, represents matrix multiplication, represents the output of the LACA mechanism. Through the LACA module, the multi-scale residual features in DMRAB are adaptively rescaled.

[0126] Local residual learning, includes the following steps: Through residual learning, the deeply connected multi-scale residual attention block is represented as:

[0127] H s =R+H s-1

[0128] Among them, H s-1 and Hs are the input and output of the deeply connected multi-scale residual attention block, respectively, and the operation + represents element-wise addition.

[0129] S3, by enlarging the module part, the deep feature F DF Zoom in and get the enlarged feature F UP , the amplification module part adopts ESPCN.

[0130] S4, through the reconstruction part, the enlarged feature F UP Convert to super-resolution image I SR The reconstruction part uses a convolutional layer with a kernel size of 3×3, and outputs the reconstructed color image through three filters.

[0131] S5. Optimize the multi-scale residual attention mechanism network through the loss function.

[0132] Select a loss function to optimize the proposed DMRAN. Some loss functions have been widely used, such as L1, L2, perceptual loss and adversarial loss. For a fair comparison, the widely used loss function L1 is adopted. Given a training dataset It contains N LR-HR image pairs, and optimizing the loss function L1 is the ultimate goal of training DMRAN.

[0133]

[0134] Here, θ represents the set of learnable parameters of DMRAN, and the loss function is optimized by stochastic gradient descent.

[0135] In this embodiment,

[0136] In DFES, N=5 DMRAGs are used with a single GAEA module. In each DMRAG, the number of DMRABs is set to M=10. The output feature map of each convolutional layer is set to 64, except for the LACA mechanism and the final reconstruction part. The kernel size of all convolutional layers except DMRAB and GAEA is set to 3×3, where a zero padding strategy is used to keep the feature size unchanged. ESPCN is used as the upscaling module, followed by the last convolutional layer, which outputs a color image with three filters.

[0137] In this example, 800 HR images are selected from the DIV2K dataset as the training set. Bicubic downsampling is performed on the training set to obtain LR images, and data augmentation is performed on all training images by horizontal flipping and random rotations of 90°, 180°, and 270°. For each mini-batch training, 16 randomly cropped LR patches of size 48×48 are used as input. β1=0.9, β2=0.999, ε=10 -8The model is optimized by ADAM, with the initial learning rate set to 10-4 and then decayed by half every 200 mini-batch iterations.

[0138] Five standard benchmark datasets are used for testing: Set5, Set14, BSD100, Urban100 and Manga109, which are different in content and style. All SR outputs of our DMRAN are evaluated by PSNR and SSIM metrics on the luminance channel (also called Y channel) of the converted YCbCr space. Our DMRAN is performed on a NVIDIA RTX 2080Ti GPU on the PyTorch framework.

[0139] (1) Ablation experiment

[0140] In this section, the present invention decomposes DMRAN to verify the effectiveness of each component, namely multi-scale feature fusion (Multi-scale), local-aware channel attention (LACA), deep connection (DC), short-range skip connection (SRSC), long-range skip connection (LRSC) and global-aware external attention (GAEA). The basic model of the present invention (denoted as BASE) is obtained by removing these six parts and replacing the two branch structures with a single path. Therefore, in the BASE scheme, each DMRAB will become a residual block with a kernel size of 3×3. The number of DMRAGs and DMRABs is set to 5 and 10 respectively. Table 1 lists the best results of Set5 when the scale factor is 2 and runs for 200 cycles.

[0141] As shown in Table 1, the BASE network has poor performance, with a PSNR of only 37.84dB. This shows that simple residual block superposition is not an ideal method for building a deep SR network. The present invention then gradually adds each part to BASE to verify the effectiveness of the six parts, and obtains the A, B, C, D, E, F, G, and H schemes in Table 1. Compared with BASE, the PSNRs of A and B are improved to 37.92dB and 37.94dB, respectively. When SRSC and LRSC exist at the same time, the network performance is better, with a PSNR of 37.98dB (Table 1, column 5). This shows that SRSC and LRSC play a vital role in deep trainable networks because they allow a lot of information to be ignored. This also proves the positive effect of the DFES designed by the present invention on deep networks.

[0142] Then, the results of D, E, F and G also verify the effectiveness of the DMRAB module of the present invention. Specifically, D improves the performance of C from 37.98dB to 38.01dB, because the multi-scale structure can capture rich scale features and provide more sufficient clues for information recovery. In addition, the PSNR of E using the LACA model is improved by about 0.03dB compared with the C model, indicating that adaptive attention to channel features is very important for improving the performance of deep SR networks. When Multi-scale and LACA are used together, the performance can be further improved (such as F). Adding a DC component to F, G with a PSNR of 38.11dB is obtained. Compared with C, the quantitative performance gain of G is obvious. The results of D, E, F and G show that the DMRAB proposed in the present invention has a significant effect on improving the performance of deep SR networks. Therefore, the present invention can draw a conclusion that the effectiveness of the DMRAB module of the present invention has been verified.

[0143] Table 1. Impact of different components. Best PSNR (dB) values ​​on Set5 (2×) for 200 cycles

[0144]

[0145] Finally, it can be seen from Table 1 that the PSNR of H and G are both 38.11dB, which seems to indicate that GAEA cannot help improve the performance of the network of the present invention. However, when the present invention increases the number of cycles from 200 to 600, H improves the performance of G from 38.18dB to 38.20dB. This not only shows that GAEA may cause the network to converge slowly, but also proves the effectiveness of GAEA. In addition, the present invention further evaluates models G and H on Set14, BSD100, Urban100 and Manga109 to verify the effectiveness of GAEA, and its best PSNR (dB) and SSIM values ​​are listed in Table 2 (× is model G without GAEA, √ is model H with GAEA). It can be seen from the 2nd, 4th and 5th columns of Table 2 that GAEA significantly improves the performance of the network. However, as shown in the 3rd column of Table 2, the network performance is almost not improved. The reason is that the correlation between different samples in different data sets is variable. This proves that GAEA does learn the potential correlation between different samples. Therefore, all the above comparisons strongly verify the effectiveness of the six components of DMRAN.

[0146] Table 2. Impact of GAEA on Set14, BSD100, Urban100, and Manga109, reporting the best PSNR (dB) and SSIM (2×) values ​​for 200 cycles

[0147]

[0148] (2) Qualitative analysis

[0149] In order to further verify the effectiveness of DMRAN, the present invention conducts a qualitative analysis of the results. Figure 4 In Figure 1, the present invention shows a visual comparison on three test datasets with a scale factor of ×4. For the monarch butterfly image, it can be seen that the early bicubic methods have serious blurring artifacts, and most of the other methods cannot recover texture details well, while the DMRAN and DMRAN+ of the present invention can obtain clearer images and finer details. For image 3096 from the BSD100 dataset, the images output by the compared methods are mostly blurring artifacts. Worse, Bicubic, SRCNN and FSRCNN cannot even recover the A and star marks on the plane. img055 and img081 are from Urban100, a challenging dataset that contains a rich urban environment background. It is obvious that compared with other SISR methods, the HR images generated by the method of the present invention are more visually comfortable, with clearer grids and lines. Taking img055 as an example, SRCNN, FSRCNN and LapSRN can at least recover the blurred lines, while Bicubic and VDSR cannot even reconstruct the lines. DMRAN and DMRAN+ of the present invention not only recover the clear lines, but also clearly reconstruct the light inside the building, thereby outputting more realistic results. Therefore, these controls verify the effectiveness of the DMRAN proposed in the present invention from a qualitative perspective.

[0150] The above are only preferred embodiments of the present invention and are not intended to limit the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the protection scope of the present invention.

Claims

1. A single image super-resolution reconstruction method based on a multi-scale residual attention mechanism network, characterized in that: The steps include: Constructing a multi-scale residual attention mechanism network, the multi-scale residual attention mechanism network includes a shallow feature extraction part constructed by convolutional layers connected in sequence, a deep feature extraction part consisting of N deeply connected multi-scale residual attention groups, a long-range skip connection and a global perception external attention mechanism, an amplification module part, and a reconstruction part constructed by convolutional layers; The low-resolution image I to be reconstructed LR , extract its shallow feature F0 through the shallow feature extraction part; Input the shallow feature F0 into the deep feature extraction module to obtain the deep feature F DF ; By enlarging the module part, the deep feature F DF Zoom in and get the enlarged feature F UP ; By reconstructing the part, the enlarged feature F UP Convert to super-resolution image I SR ; The deep feature F DF The extraction comprises the following steps: The deeply connected multi-scale residual attention group in the i-th group is expressed as: F i =g i (F i-1 )=g i (g i-1 (…g1(F0)…)) Among them, g i (·) represents the function of the i-th deeply connected multi-scale residual attention group; F i-1 and F i are the input and output of the i-th deeply connected multi-scale residual attention group, respectively; Introducing long-range skip connections, the obtained deep features F df for: F df =F0+W LRSC F N =F0+W LRSC g i (g) i-1 (…g1(F0)…)) Among them, W LRSC is the weight of the convolutional layer after the Nth deeply connected multi-scale residual attention group; The deep features obtained by the global perception external attention mechanism are: F DF =f GAEA (F df ) Among them, f GAEA represents the operation of the global perception external attention mechanism; Assume F∈R N×d is the input feature map, where N = h × w represents the number of pixels, d represents the feature dimension, and the global perception external attention mechanism is expressed as: F out =AM v Among them, (α) i,j It is an external storage unit M k The similarity between the i-th pixel and the j-th pixel; M k , M v ∈R S×d are two different and learnable parameters independent of a single sample and serve as two memories for the entire training dataset; A is the attention map learned from prior knowledge; Use the similarity in A to update M v The features in are used to obtain the final deep features.

2. The single image super-resolution reconstruction method of the multi-scale residual attention mechanism network according to claim 1 is characterized in that: The extraction of the shallow feature F0 is specifically shown in the following formula: F0=f SFEP (IN LR ) Among them, f SFEP (.) represents a convolution operation, and the kernel size of this convolution layer is 3×3.

3. The single image super-resolution reconstruction method of the multi-scale residual attention mechanism network according to claim 1 is characterized in that: Each of the deeply connected multi-scale residual attention groups includes a plurality of deeply connected multi-scale residual attention blocks with short-range skip connections; The jth deeply connected multi-scale residual attention block in the i-th deeply connected multi-scale residual attention group is: F i,j =g i,j (F i,j-1 )=g i,j (g i,j-1 (…g i,1 (F i-1 )…)) Among them, F i,j-1 and F i,j refer to the input and output of the jth deeply connected multi-scale residual attention block in the i-th deeply connected multi-scale residual attention group, respectively, and g i,j (·) indicates the corresponding function; Add short-range skip connections to get the block output: F i =F i-1 +W SRSC F i,M =F i-1 +W SRSC g i,M (g i,M-1 (…g i,1 (F i-1 )…)) Among them, W SRSC represents the weights of the convolutional layer at the end of the i-th deeply connected multi-scale residual attention group.

4. The single image super-resolution reconstruction method of the multi-scale residual attention mechanism network according to claim 3 is characterized in that: Each of the deeply connected multi-scale residual attention blocks includes deeply connected multi-scale feature fusion, local perception channel attention mechanism operation and local residual learning performed in sequence.

5. The single image super-resolution reconstruction method of the multi-scale residual attention mechanism network according to claim 4 is characterized in that: The deep connection multi-scale feature fusion comprises the following steps: B4=[B 11 ,B 12 ,B 31 ,B 32 ] Among them, ω and b represent weight and bias respectively, the subscript represents the size of the convolution kernel, and the superscript represents the layer number of the convolution kernel; γ(x)=max(0,x) represents the ReLU function; [.] represents the connection operation; Features from different network depths and different branches are connected through deep connections to obtain feature B4.

6. The single image super-resolution reconstruction method of the multi-scale residual attention mechanism network according to claim 5, characterized in that: The local perception channel attention mechanism operation includes the following steps: According to the learned statistics of local cross-channel interdependence, different weights are assigned to each channel feature: R=W R (LACA(B4)) Where LACA(·) represents the operation of the local perceptual channel attention mechanism, W R is the weight of the 1×1 convolutional layer so that the number of feature maps is the same as the number of input features of the deeply connected multi-scale residual attention block; R is the deeply connected multi-scale residual; Specific: Assume X = [x1, ..., x c , …, x C ] is the input of C feature map with spatial dimension h×w, and global average pooling is used along the spatial dimension to obtain global statistics, which is expressed as Z = [z1,…,z c , …, z C ]; The c-th element of Z is obtained by the following formula: Among them, x c (i, j) represents the value at position (i, j) of the cth feature map x, f GAP (.) represents the global average pooling (GAP) function; Fast 1D convolution: S=σ(C1D s (WITH)) Among them, C1D s (.) represents a 1D convolution operation with a kernel size of s; σ(.) is the sigmoid function responsible for generating the final channel weight S; The kernel size s is adaptively obtained in the following way: Among them, |e| odd represents the nearest odd integer of e; b and δ are set to 1 and 2 respectively; The learned weight set S is used to re-weight the input X: in, represents matrix multiplication, Represents the output of the LACA mechanism.

7. The single image super-resolution reconstruction method of the multi-scale residual attention mechanism network according to claim 6, characterized in that: The local residual learning comprises the following steps: through residual learning, the deep connection multi-scale residual attention block is represented as: H s =R+H s-1 Among them, H s-1 and H s are the input and output of the deeply connected multi-scale residual attention block, respectively, and the operation + represents element-wise addition.

8. The single image super-resolution reconstruction method of the multi-scale residual attention mechanism network according to claim 1, characterized in that: The amplification module part adopts ESPCN; the reconstruction part adopts a convolution layer with a kernel size of 3×3, and outputs a reconstructed color image through three filters.

9. The single image super-resolution reconstruction method of the multi-scale residual attention mechanism network according to claim 1, characterized in that: It also includes optimizing the multi-scale residual attention mechanism network through the loss function.