A method and system for super-resolution reconstruction of feature aggregation images

By using the feature aggregation method of residual local features and attention in image super-resolution reconstruction, the problems of training instability and information loss of generative adversarial networks in image super-resolution reconstruction are solved, and high-resolution images are achieved. Efficient reconstruction improves visual effects and network performance.

CN117788293BActive Publication Date: 2024-09-10XIAN UNIV OF POSTS & TELECOMM
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410112529.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-01-26
Publication Date
2024-09-10
Estimated Expiration
2044-01-26

AI Technical Summary

Technical Problem

Existing generative adversarial networks suffer from training instability and information loss problems in image super-resolution reconstruction, making it difficult to effectively integrate different levels of feature information, resulting in a lack of detail and diversity in generated results.

Method used

A feature aggregation method based on residual local features and attention is adopted. By constructing a convolutional neural network, the feature extraction unit, feature enhancement unit and attention unit are used to aggregate the shallow and deep features of the image and enhance the model's attention to the input features. degree and selectivity, reduce information loss, and solve the vanishing gradient problem through residual connections.

Benefits of technology

It achieves high-resolution image reconstruction with higher peak signal-to-noise ratio and better visual effects, avoids overly complex network structure and training difficulty, and improves network convergence speed and super-resolution results.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117788293B
    Figure CN117788293B
Patent Text Reader

Abstract

The present invention discloses a method and system for super-resolution reconstruction of feature-aggregated images, including: obtaining training samples of the image to be reconstructed, and constructing a convolutional neural network based on a generative network as a basic network; training the convolutional neural network based on the training samples to obtain a trained reconstruction neural network; using the trained reconstruction neural network to iteratively reconstruct the image to be reconstructed at super-resolution until the preset requirements are met, thereby obtaining the final target image. The present invention can effectively solve the problems of training instability and information loss in adversarial training; at the same time, it can obtain high-resolution images with higher peak signal-to-noise ratio and better visual effects.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of image processing, and in particular relates to a method and system for super-resolution reconstruction of feature-aggregated images. Background Art

[0002] With the rapid development of social intelligence and informatization, images have become an important way for humans to obtain information. They have very important application value in monitoring equipment, satellite image remote sensing, video restoration and medical imaging. High-resolution images can provide more important detail information for digital image processing due to their high pixel density. However, due to the limitations of imaging equipment, lighting and other conditions, the resolution of the acquired images is often relatively low. How to effectively improve the quality of imaging images has become a very critical and important task in image processing. Image super-resolution reconstruction technology is currently one of the main means to improve image resolution.

[0003] From the perspective of image super-resolution algorithm models, the existing algorithms are divided into three types: interpolation-based, reconstruction-based, and learning-based. In recent years, with the development and progress of neural network research, image super-resolution methods based on deep learning have shown the best performance among many technologies. Among them, image super-resolution technology mainly relies on the prior knowledge of high-resolution images and the restoration of high-frequency information in the form of aliasing, which has become the focus of current research in the field of image super-resolution. However, the performance of image super-resolution is greatly affected by the estimation of image degradation. At present, great research progress has been made in image super-resolution technology for known degradation patterns. Due to the full understanding of the image degradation process, non-blind super-resolution methods can more accurately restore image details and clarity, and can use prior knowledge and high-frequency information for restoration, which can usually provide efficient image super-resolution effects.

[0004] At present, most of the image super-resolution methods with good results use generative adversarial networks. However, during the adversarial training between the generative network and the discriminative network, the generative network has difficulties in effectively integrating feature information at different levels and lacks the ability to accurately capture important parts of the input data. This may lead to a lack of details and diversity in the generated results. Therefore, the optimization of the network structure has become a promising and challenging research topic.

[0005] In summary, the existing generative adversarial network image super-resolution inventions that can obtain high-resolution images generally have problems such as training instability and information loss. There is an urgent need for a feature aggregation image super-resolution reconstruction method based on residual local features and attention. Summary of the invention

[0006] The purpose of the present invention is to provide a method and system for image super-resolution reconstruction based on residual local features and attention feature aggregation to solve one or more of the above-mentioned technical problems. The present invention can effectively solve the problems of training instability and information loss in adversarial training; at the same time, it can obtain high-resolution images with higher peak signal-to-noise ratio and better visual effects.

[0007] To achieve the above-mentioned purpose, the present invention provides the following solution: a method and system for super-resolution reconstruction of feature-aggregated images. Among them, a method for super-resolution reconstruction of feature-aggregated images includes:

[0008] Obtain training samples of the image to be reconstructed, and construct a convolutional neural network based on the generated network;

[0009] Training the convolutional neural network based on the training samples to obtain a trained reconstruction neural network;

[0010] The trained reconstruction neural network is used to perform super-resolution iterative reconstruction on the image to be reconstructed until the preset requirements are met to obtain the final target image.

[0011] Preferably, the process of obtaining training samples of the image to be reconstructed includes:

[0012] For the original image I HR Perform convolution operation with blur kernel to simulate blur effect of image and obtain initial sample;

[0013] Performing a downsampling operation on the initial samples to obtain training samples of the image to be reconstructed;

[0014] Wherein, the training samples include: a mapping relationship between pairs of high-resolution and low-resolution training samples;

[0015] I LR =(I HR *k s )↓ s

[0016] Where: I LR is the sample to be reconstructed, k s is the blur kernel, s is the downsampling factor, ↓ s is a downsampling operation.

[0017] Preferably, the process of constructing a convolutional neural network based on a generated network includes:

[0018] Construct a feature extraction unit and use the convolution layer to perform shallow extraction of features of the image to be reconstructed to obtain image features;

[0019] Constructing a feature enhancement unit to perform deep extraction on the image features again;

[0020] Construct attention units to avoid information loss when images are transferred between convolutional layers, improve the model's attention and selectivity to input features, and compensate for image information loss;

[0021] Construct an image reconstruction unit and input the test image into the trained convolutional neural network for super-resolution reconstruction.

[0022] Preferably, a feature extraction unit is constructed to perform shallow extraction of image features using a convolutional layer. The process of obtaining image features includes:

[0023] Design feature extraction layer, input low resolution image I LR Directly downsample the low-resolution image I LR Perform feature extraction and select the filter of [7, 5, 1, 1, 1, 1] to extract the shallow features of the image;

[0024] The process expression of extracting shallow features of the image is:

[0025] F n =h ext (I LR )

[0026] Among them: F n represents the extracted features of the nth layer, h ext (·) represents the convolution operation for feature extraction.

[0027] Preferably, the process of constructing the feature enhancement unit includes:

[0028] A feature aggregation module is added to the generative network. The generative network includes six convolutional layers. The output features of the F3, F4, and F5 layers are aggregated to obtain the feature F. features-fusion , then the feature F features-fusion Send it to the F6 layer as input feature to obtain the feature aggregation network; it is expressed as:

[0029] F features-fusion =H fusion (Concat(F3,F4,F5))

[0030] Where: Concat(·) represents the concatenation operation along the channel dimension, H fusion (·) indicates the aggregation module, F features-fusion represents the aggregate feature;

[0031] After feature aggregation, the last aggregated feature and the feature of the F6 layer are added to obtain the final output feature, which is expressed as:

[0032] F 6-output =F features-fusion +F6

[0033] Among them: F 6-output Represents the output features of the generated network after adding the feature aggregation module.

[0034] Preferably, obtaining the feature aggregation network further comprises adding a residual local feature network to the feature aggregation network;

[0035] The residual local feature network includes at least four residual local feature blocks that perform deep feature extraction on aggregated features in a cascaded manner. features-fusion As the input of the residual local feature network, the final output feature is obtained; the whole process is expressed as:

[0036]

[0037]

[0038]

[0039]

[0040] in: represents the nth residual local characteristic function, Represents the enhanced features of each residual local feature block, Represents the final output features of the residual local feature network.

[0041] Preferably, adding a residual local feature network to the feature aggregation network further comprises:

[0042] Contrast-aware channel attention is added to each residual local feature block, and modeling is improved through dynamic weight adjustment and channel association, which can be expressed as:

[0043]

[0044]

[0045]

[0046] Where: H CCA (·) represents the contrast-aware channel attention module, Represents the output features of the nth residual local feature block;

[0047] After adding contrast-aware channel attention to the first three layers of the residual local feature network, the output feature F out3 Input into the last residual local feature block to obtain the output features of the entire feature aggregation network; expressed as:

[0048]

[0049] Among them: F out Represents the final output features.

[0050] Preferably, the process of using the trained reconstruction neural network to iteratively reconstruct the image to be reconstructed with super-resolution until the preset requirements are met to obtain the final target image includes:

[0051] Perform super-resolution reconstruction on the image to be reconstructed using the trained reconstruction neural network to obtain an initial super-resolution reconstructed image;

[0052] The initial super-resolution reconstructed image is used as the image to be reconstructed again, and is fed back to the input end through the back propagation algorithm for super-resolution reconstruction, and it is iterated repeatedly until the preset requirements are met to obtain the final target image.

[0053] The present invention also provides a feature aggregation image super-resolution reconstruction system, comprising:

[0054] A sample acquisition module, used to acquire training samples of the image to be reconstructed;

[0055] A model building module, connected to the sample acquisition module, for building a convolutional neural network based on the generated network;

[0056] A model training module, connected to the model building module, for training the convolutional neural network based on the training samples to obtain a trained reconstructed neural network;

[0057] The iterative reconstruction module is connected to the model training module and is used to use the trained reconstruction neural network to perform super-resolution iterative reconstruction on the image to be reconstructed until the preset requirements are met to obtain the final target image.

[0058] Preferably, the convolutional neural network includes a feature extraction unit, a feature enhancement extraction unit, and an attention unit;

[0059] The feature extraction unit includes a plurality of convolutional layers, the input of the convolutional layers is the image to be reconstructed, and the output is a feature map;

[0060] The feature enhancement extraction unit includes a plurality of convolutional layers, the input of the first layer of the plurality of convolutional layers is the feature map output by the feature extraction unit, and the input of the remaining layers is the output of the previous layer; the outputs of the plurality of convolutional layers are all feature maps;

[0061] The attention unit includes several convolutional layers and adaptive average pooling layers.

[0062] Compared with the prior art, the present invention has the following advantages and technical effects:

[0063] The present invention discloses a method for super-resolution reconstruction of images based on residual local features and feature aggregation of attention, which realizes super-resolution reconstruction of the image itself using a single image. The present invention constructs a lightweight convolutional network, which includes a feature extraction unit, a feature enhancement extraction unit, an attention unit and a reconstruction unit. The training process forms a high- and low-resolution image pair by downsampling the input image. The network is trained with the image pair to obtain more high- and low-resolution details, restore more high-frequency details, and avoid the loss of image details. The goal of the present invention is to obtain more high-resolution details. For this purpose, the present invention adds an attention unit to improve the model's attention and selectivity to the input features, enhance the model's expression ability and reduce the impact of redundant information. Through the combination of the above operations, a high-resolution image with a higher peak signal-to-noise ratio and better visual effects can be obtained.

[0064] In the present invention, sample enhancement is performed on a single image to avoid network underfitting.

[0065] In the present invention, a convolutional network is constructed, and the mapping relationship between high- and low-resolution training sample pairs is learned through the network to reconstruct the image. Since the training data are all obtained from the image itself, and the image has self-similarity, the data distribution is relatively concentrated, which is different from the network that relies on external training and requires a large number of high- and low-resolution sample pairs with certain differences. Therefore, the network can converge quickly, and the network structure is relatively simple, and there is no need to build complex units to learn the mapping relationship between high- and low-resolution sample pairs. A large number of previous experiments have shown that a single image contains a lot of intrinsic information. The present invention uses the reproducibility of this information to build a relatively lightweight network, which can adapt to different settings of each image, and can obtain better super-resolution results by extracting feature information from it. The present invention constructs an attention unit. The model may not be able to effectively learn the correlation and importance between each channel. When the image is transmitted between convolutional layers, there will inevitably be information loss. Therefore, an attention unit can be added to improve the model's attention and selectivity to input features and make up for the loss of image information.

[0066] A large number of facts show that low-resolution images contain many rich low-frequency details, while the present invention only performs shallow feature extraction on the image in the feature extraction stage. If these shallow features are only passed to the hidden layer behind to continue feature extraction like the previous deep network structure, it is obvious that a lot of important detail information is lost, and the intrinsic deep information of the image and the power of the deep learning network are not fully utilized. Therefore, the present invention attempts to introduce an enhancement unit to extract the deep features of the image. The present invention aggregates the information extracted from the feature maps of different levels, and introduces a residual local feature block for this, and uses a small number of convolutional layers to perform residual local feature learning on the aggregated features; since the generative network usually uses downsampling operations to gradually reduce the spatial resolution of the image, this will make it difficult for the generative network to restore the details and high-frequency information of the input image, especially for those tasks that require fine textures or subtle structures. Adding this enhancement unit is mainly to perform deep extraction of the shallow features extracted by the front layer of the network, and the use of residual connections can help solve the gradient vanishing problem in the convolutional network, thereby making the network easier to train and converge. Experiments show that this not only improves the convergence speed of the network but also has better super-resolution results.

[0067] The present invention can restore high-resolution images with good visual effects, and high-resolution images are widely used in work and life. For example, they have important application value in the fields of monitoring equipment, satellite image remote sensing, digital high definition, microscopic imaging, video coding communication, video restoration and medical imaging. High-resolution images can provide more important detail information for digital image processing due to their high pixel density, laying a good foundation for image post-processing. In summary, the invention of the present invention has a wide range of applications and is of great significance. BRIEF DESCRIPTION OF THE DRAWINGS

[0068] The drawings constituting a part of the present application are used to provide a further understanding of the present application. The illustrative embodiments and descriptions of the present application are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

[0069] Figure 1 A schematic diagram of a method flow of an embodiment of the present invention;

[0070] Figure 2 A schematic diagram of the structure of a network built in an embodiment of the present invention;

[0071] Figure 3 A schematic diagram of a network model process in an embodiment of the present invention;

[0072] Figure 4 is a schematic diagram of feature aggregation in a feature enhancement extraction unit in an embodiment of the present invention;

[0073] Figure 5Schematic diagram of a residual local feature block in a feature enhancement extraction unit in an embodiment of the present invention;

[0074] Figure 6 Schematic diagram of comparing perceptual channel attention in a network attention unit in an embodiment of the present invention;

[0075] Figure 7 A schematic diagram showing a comparison of super-resolution results of a face image of an embodiment of the present invention using the method of the present invention and various methods;

[0076] Figure 8 It is a schematic diagram comparing the super-resolution results of the method of the present invention and various methods on the building image 1 of the embodiment of the present invention;

[0077] Fig. 9 Schematic diagram comparing the super-resolution results of the building image 2 of the embodiment of the present invention using the method of the present invention and various methods. DETAILED DESCRIPTION

[0078] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.

[0079] It should be noted that the steps shown in the flowcharts of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and that, although a logical order is shown in the flowcharts, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0080] Embodiment 1

[0081] like Figure 1-9 As shown, the present invention provides a feature aggregation image super-resolution reconstruction method, comprising:

[0082] Obtain training samples of the image to be reconstructed, and construct a convolutional neural network based on the generated network;

[0083] The convolutional neural network is trained based on the training samples to obtain a trained reconstruction neural network;

[0084] The trained reconstruction neural network is used to perform super-resolution iterative reconstruction on the image to be reconstructed until the preset requirements are met to obtain the final target image.

[0085] Further, including:

[0086] Step 1: Select a suitable sample enhancement method to enhance and expand the training samples;

[0087] Step 2, build a convolutional network, through which the mapping relationship between high-resolution and low-resolution training sample pairs is learned to reconstruct the image. Since the training data is obtained from the image itself, and the image has self-similarity, the data distribution is relatively concentrated, which is different from the network that relies on external training and requires a large number of high-resolution and low-resolution sample pairs with certain differences. Therefore, the network can converge quickly, and the network structure is relatively simple, and there is no need to build complex units to learn the mapping relationship between high-resolution and low-resolution sample pairs. A large number of previous experiments have shown that a single image contains a lot of intrinsic information. The present invention uses the reproducibility of this information to build a relatively lightweight network, which can adapt to different settings of each image, and can obtain better super-resolution results by extracting feature information from it.

[0088] In the embodiment of the present invention, the specific steps of step 1 include:

[0089] Step 1.1, input the original image I HR ;

[0090] Step 1.2: the original image I obtained in step 1.1 HR Perform convolution operation with blur kernel to simulate blur effect of image and obtain initial sample;

[0091] Perform downsampling operation on the initial samples to obtain training samples of the image to be reconstructed;

[0092] Wherein, the training samples include: a mapping relationship between pairs of high-resolution and low-resolution training samples;

[0093] I LR =(I HR *k s )↓ s

[0094] Where: I LR is the sample to be reconstructed, k s is the blur kernel, s is the downsampling factor, ↓ s is a downsampling operation.

[0095] In the embodiment of the present invention, the specific steps of step 2 include:

[0096] Step 2.1, construct a feature extraction unit, use the convolution layer to perform shallow extraction on the features of the image to be reconstructed, and obtain image features;

[0097] Step 2.2, construct a feature enhancement unit, and perform deep extraction again on the image features obtained in step 2.1;

[0098] Step 2.3, construct an attention unit. When the image is transmitted between convolutional layers, there will inevitably be information loss. Therefore, an attention unit can be added to improve the model's attention and selectivity to input features and compensate for the loss of image information.

[0099] Step 2.4, the image reconstruction unit inputs the test image into the trained network for super-resolution reconstruction.

[0100] In the embodiment of the present invention, the specific steps of step 2.1 include:

[0101] Design feature extraction layer, input low resolution image I LR Directly downsample the low-resolution image I LR Perform feature extraction and select the filter of [7, 5, 1, 1, 1, 1] to extract the shallow features of the image;

[0102] The process expression of extracting shallow features of the image is:

[0103] Fn=hext(I LR )

[0104] Among them: F n represents the extracted features of the nth layer, h ext (·) represents the convolution operation for feature extraction.

[0105] In the embodiment of the present invention, the specific steps of step 2.2 include:

[0106] (1) Aggregate the features extracted in step 2.1. A large number of facts show that low-resolution images contain many rich low-frequency details, but the present invention only performs shallow feature extraction on the image in the feature extraction stage. If these shallow features are only passed to the hidden layer behind to continue feature extraction as in the previous deep network structure, it is obvious that a lot of important detail information is lost, and the inherent deep information of the image and the power of the deep learning network are not fully utilized. Therefore, the present invention attempts to introduce an enhancement unit to extract the deep features of the image.

[0107] In the embodiment of the present invention, Figure 1 and Figure 4 As shown in FIG. 1 , a feature aggregation module is added to the generative network. Since downsampling usually reduces the resolution of feature maps, resulting in information loss and blurred details, the present invention designs a feature aggregation network to obtain rich and complete information, thereby improving the performance of the model. The generative network includes six convolutional layers. The present invention aggregates the output features of the F3, F4, and F5 layers to obtain the feature F features-fusion , then the feature F features-fusion Send it to the F6 layer as input feature to obtain the feature aggregation network; it is expressed as:

[0108] F features-fusion =H fusion (Concat(F3,F4,F5))

[0109] Where: Concat(·) represents the concatenation operation along the channel dimension, H fusion (·) indicates the aggregation module, F features-fusion represents the aggregate feature;

[0110] After feature aggregation, the final aggregated features and the features of the F6 layer are added to obtain the final output features. It can be expressed as:

[0111] F 6-output =F features-fusion +F6

[0112] Among them: F 6-output Represents the output features of the generated network after adding the feature aggregation module.

[0113] (2) In the embodiment of the present invention, Figure 1 and Figure 5 As shown, after completing the feature aggregation operation, the present invention adds a residual local feature network to the feature aggregation network. Since the feature aggregation module needs to fuse and select features of multiple layers, it may lead to an increase in the amount of calculation. Therefore, the residual local feature block introduces residual connections to solve the problem of increased computation and increased parameters that may exist when only adding feature aggregation. Compared with general feature aggregation methods, adding residual local feature blocks can reduce the number of model parameters, reduce the complexity and training difficulty of the model, and improve the model's discrimination and expression capabilities. The residual local feature network designed by the present invention includes four residual local feature blocks, which perform deep feature extraction on the aggregated features in a cascaded manner. The present invention extracts deep features from the aggregated features F features-fusion As the input of the residual local feature network, the final output feature is obtained; the whole process is expressed as:

[0114]

[0115]

[0116]

[0117]

[0118] in: represents the nth residual local characteristic function, Represents the enhanced features of each residual local feature block, Represents the final output features of the residual local feature network.

[0119] The purpose of adding this enhancement unit is to perform deep extraction of shallow features extracted by the front layer of the network. Experiments show that this not only improves the convergence speed of the network but also has better super-resolution results.

[0120] (3) In the embodiment of the present invention, Figure 1 and Figure 6 As shown in the figure, after completing the residual local feature learning, the present invention adds contrast-aware channel attention to each residual local feature block, and makes up for the shortcomings of the residual local feature block in feature channel modeling and adjustment through improvements such as dynamic weight adjustment and channel association modeling. Contrast-aware channel attention can help the network better understand the correlation between features and apply this correlation to feature aggregation to enhance the representation ability of the model while maintaining efficiency. It can be expressed as:

[0121]

[0122]

[0123]

[0124] Where: H CCA (·) represents the contrast-aware channel attention module, Represents the output features of the nth residual local feature block;

[0125] After adding contrast perception channel attention to the first three layers of the residual local feature network, the present invention converts the output feature F of the third layer into out3 Input into the last residual local feature block to obtain the output features of the entire feature aggregation network. It can be expressed as:

[0126]

[0127] Among them: F out Represents the final output features.

[0128] The purpose of adding this attention unit is to improve the model's attention and selectivity to input features and compensate for the loss of image information.

[0129] In the embodiment of the present invention, the specific steps of step 2.3 include:

[0130] (1) In order to make full use of the intrinsic information of the image, the present invention also introduces an attention unit. In this unit, the present invention uses several convolutional layers and adaptive average pooling layers. Through the convolution operation, the input feature map is subjected to feature extraction and dimensionality reduction to reduce the number of parameters and computational complexity. The present invention also performs global average pooling on the input feature map to capture the overall features and reduce the spatial dimension.

[0131] (2) Different from the previous channel attention, contrast-aware channel attention calculates weights by calculating the similarities between different channels. Therefore, it can more effectively capture the relationship between channels and thus improve the discriminative ability of features.

[0132] The process of using the trained reconstruction neural network to iteratively reconstruct the image to be reconstructed until the preset requirements are met to obtain the final target image includes:

[0133] Perform super-resolution reconstruction on the image to be reconstructed using the trained reconstruction neural network to obtain an initial super-resolution reconstructed image;

[0134] The initial super-resolution reconstructed image is used as the image to be reconstructed again, and is fed back to the input end through the back propagation algorithm for super-resolution reconstruction, and it is iterated repeatedly until the preset requirements are met to obtain the final target image.

[0135] As a further optimization scheme, in the embodiment of the present invention, the specific steps of step 2.4 include:

[0136] Input low-resolution image I LR ;

[0137] (2) For the low-resolution image I input in (1), LR Downsample to obtain the downsampled image I ↓s , input the downsampled image into the network to extract features and learn parameters, and obtain I ↓s The corresponding super-resolution reconstructed image HI ↓s ;

[0138] (3) The reconstructed image HI obtained in (2) ↓s The information is fed back to the input end through the back propagation algorithm, and it is iterated repeatedly until the preset requirements are met to obtain the final target image I sr .

[0139] In summary, the method of the embodiment of the present invention improves the resolution of a single image by means of feature aggregation, that is, the information extracted from the feature maps of different levels in the generative network is aggregated, and the lost details and high-frequency information are restored by using multi-scale features, thereby realizing the reconstruction of the image. The method proposed in the present invention is dedicated to finding ways to utilize the intrinsic information of a single image, that is, to reconstruct a low-resolution image in super-resolution. LR When , the image is first downsampled to obtain the downsampled image I ↓s (s is the sampling factor), and then the network convolution layer is used to learn the mapping relationship between the two. Finally, the trained network is used for super-resolution reconstruction of the low-resolution image to obtain the reconstructed image I sr That is, high-resolution images.

[0140] Embodiment 2

[0141] The present invention also provides a feature aggregation image super-resolution reconstruction system, comprising:

[0142] A sample acquisition module, used to acquire training samples of the image to be reconstructed;

[0143] A model building module, connected to the sample acquisition module, is used to build a convolutional neural network based on the generated network;

[0144] A model training module, connected to the model building module, is used to train the convolutional neural network based on the training samples to obtain a trained reconstructed neural network;

[0145] The iterative reconstruction module is connected to the model training module and is used to use the trained reconstruction neural network to perform super-resolution iterative reconstruction on the image to be reconstructed until the preset requirements are met to obtain the final target image.

[0146] Furthermore, the convolutional neural network includes a feature extraction unit, a feature enhancement extraction unit, and an attention unit;

[0147] The feature extraction unit includes several convolutional layers, the input of the convolutional layer is the image to be reconstructed, and the output is the feature map;

[0148] The feature enhancement extraction unit includes a plurality of convolutional layers, wherein the input of the first layer of the plurality of convolutional layers is the feature map output by the feature extraction unit, and the input of the remaining layers is the output of the previous layer; the outputs of the plurality of convolutional layers are all feature maps;

[0149] The attention unit consists of several convolutional layers and adaptive average pooling layers.

[0150] The working principle of the method disclosed in the embodiment of the present invention includes: the present invention is based on a convolutional network and improves the resolution of a single image by a feature aggregation method, that is, the information extracted from the feature maps of different levels in the generative network is aggregated, and the lost details and high-frequency information are restored by using multi-scale features, thereby realizing the reconstruction of the image. The method proposed in the present invention is dedicated to finding ways to utilize the inherent information of a single image, that is, to reconstruct a low-resolution image in super-resolution. LR When , the image is first downsampled to obtain the downsampled image I ↓s (s is the sampling factor), and then the network convolution layer is used to learn the mapping relationship between the two. Finally, the trained network is used for super-resolution reconstruction of the low-resolution image to obtain the reconstructed image I sr That is, high-resolution images.

[0151] Experimental comparative analysis of the embodiments of the present invention: The image super-resolution reconstruction effect is measured by comparing and calculating the peak signal-to-noise ratio (PSNR).

[0152] The mean square error (MSE) can reflect the difference between the reconstructed image and the original image. The formula is as follows:

[0153]

[0154] in: ξ is the number of rows and columns of image data, X i,j is the pixel value of the i-th row and j-th column of the original image, Y i,j is the pixel value of the i-th row and j-th column of the reconstructed image;

[0155] The peak signal-to-noise ratio (PSNR) reflects the fidelity of the reconstructed image, and the calculation formula is as follows:

[0156]

[0157] Where: L represents the dynamic range of image pixels.

[0158] The network constructed by the present invention includes aggregation units, enhancement units and attention units. In order to verify the necessity and effectiveness of adding these units, the present invention designed four network structures and conducted comparative tests on the dataset set5 with a sampling factor of 4×. The four network structures are:

[0159] Structure 1: Aggregation unit + reinforcement unit;

[0160] Structure 2: Aggregation unit + attention unit;

[0161] Structure 3: reinforcement unit + attention unit;

[0162] Structure 4: aggregation unit + enhancement unit + attention unit.

[0163] The peak signal-to-noise ratios of the four network structures are shown in Table 1 below:

[0164] Table 1

[0165]

[0166] From the analysis of Table 1, we can see that the PSNR value of structure 4 is the highest, that is, when the network combines the aggregation unit, the enhancement unit and the attention unit, the super-resolution reconstruction effect of the image is better.

[0167] refer to Figures 6 to 8 , the data results are compared as shown in Table 2:

[0168] Table 2

[0169]

[0170] From the analysis of the results in Table 2, it can be seen that when reconstructing images with sampling factors of 2, 3 and 4 on the datasets Set5, Set14 and Urban100, the method of the present invention can obtain high-resolution images with higher peak signal-to-noise ratio and better visual effects than Bicubicinterpolation, the external learning method EDSR of deep learning, and the self-learning method ZSSR of deep learning, and has a wider range of applications. Compared with Bicubicinterpolation, the external learning method EDSR of deep learning, and the self-learning method ZSSR of deep learning, the peak signal-to-noise ratio of the method in the embodiment of the present invention can be improved by 0.5-1dB.

[0171] In summary, the present invention discloses a method for super-resolution reconstruction of feature-aggregated images based on residual local features and attention, the method comprising: selecting a suitable sample enhancement method to enhance and expand the training samples; building a convolutional network to reconstruct the image by learning the mapping relationship between high-resolution and low-resolution training sample pairs; constructing a feature extraction unit to shallowly extract the features of the image using the convolutional layer; constructing a feature enhancement unit to deeply extract the image features again; constructing an attention unit, when the image is transmitted between convolutional layers, there will inevitably be information loss, so an attention unit can be added to improve the model's attention and selectivity to the input features and make up for the loss of image information; image reconstruction, inputting the test image into the trained network for super-resolution reconstruction. A single image contains a lot of intrinsic information, and the image has self-similarity, and the data distribution is concentrated. There is no need to construct a complex unit to learn the mapping relationship between high-resolution and low-resolution sample pairs, so the network structure is relatively simple and can converge quickly. The feature aggregation image super-resolution reconstruction method based on residual local features and attention of the present invention can effectively solve the problems that the generation network is difficult to effectively integrate feature information at different levels and lacks accurate capture of important parts of the input data, and at the same time can obtain high-resolution images with higher peak signal-to-noise ratio and better visual effects.

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

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

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

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

[0176] The above are only preferred specific implementations of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions that can be easily thought of by a person skilled in the art within the technical scope disclosed in the present application should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. A feature aggregation image super-resolution reconstruction method, characterized in that: include: Obtain training samples of the image to be reconstructed, and construct a convolutional neural network based on the generated network; Training the convolutional neural network based on the training samples to obtain a trained reconstruction neural network; The trained reconstruction neural network is used to iteratively reconstruct the image to be reconstructed with super-resolution until the preset requirements are met to obtain the final target image; The process of building a convolutional neural network based on a generated network includes: Construct a feature extraction unit and use the convolution layer to perform shallow extraction of features of the image to be reconstructed to obtain image features; Constructing a feature enhancement unit to perform deep extraction on the image features again; Construct attention units to avoid information loss when images are transferred between convolutional layers, improve the model's attention and selectivity to input features, and compensate for image information loss; Construct an image reconstruction unit and input the test image into the trained convolutional neural network for super-resolution reconstruction; The process of constructing a feature enhancement unit includes: A feature aggregation module is added to the generative network. The generative network includes six convolutional layers. The output features of the F3, F4, and F5 layers are aggregated to obtain the feature F. features-fusion , then the feature F features-fusion Send it to the F6 layer as input feature to obtain the feature aggregation network; it is expressed as: F features-fusion =H fusion (Concat(F3,F4,F5)) Where: Concat(·) represents the concatenation operation along the channel dimension, H fusion (·) indicates the aggregation module, F features-fusion represents the aggregate feature; After feature aggregation, the final aggregated features and the features of the F6 layer are added to obtain the final output features, which are expressed as: F 6-output =F features-fusion +F6 Among them: F 6-output Represents the output features of the generated network after adding the feature aggregation module; Obtaining the feature aggregation network also includes adding a residual local feature network to the feature aggregation network; The residual local feature network includes at least four residual local feature blocks that perform deep feature extraction on aggregated features in a cascaded manner. features-fusion As the input of the residual local feature network, the final output feature is obtained; the whole process is expressed as: in: represents the nth residual local characteristic function, Represents the enhanced features of each residual local feature block, Represents the final output features of the residual local feature network; Adding a residual local feature network to the feature aggregation network also includes: Contrast-aware channel attention is added to each residual local feature block, and modeling is improved through dynamic weight adjustment and channel association, which can be expressed as: Where: H CCA (·) represents the contrast-aware channel attention module, Represents the output features of the nth residual local feature block; After adding contrast-aware channel attention to the first three layers of the residual local feature network, the output feature F out3 Input into the last residual local feature block to obtain the output features of the entire feature aggregation network; expressed as: Among them: F out Represents the final output features.

2. The feature aggregation image super-resolution reconstruction method according to claim 1, characterized in that: The process of obtaining training samples of the image to be reconstructed includes: For the original image I HR Perform convolution operation with blur kernel to simulate blur effect of image and obtain initial sample; Performing a downsampling operation on the initial samples to obtain training samples of the image to be reconstructed; Wherein, the training samples include: a mapping relationship between pairs of high-resolution and low-resolution training samples; I LR =(I HR *k s )↓ s Where: I LR is the sample to be reconstructed, k s is the blur kernel, s is the downsampling factor, ↓ s is a downsampling operation.

3. The feature aggregation image super-resolution reconstruction method according to claim 1, characterized in that: Construct a feature extraction unit and use the convolution layer to perform shallow extraction of image features. The process of obtaining image features includes: Design feature extraction layer, input low resolution image I LR Directly downsample the low-resolution image I LR Perform feature extraction and select the filter of [7, 5, 1, 1, 1, 1] to extract the shallow features of the image; The process expression of extracting shallow features of the image is: F n =h ext (I LR ) Among them: F n represents the extracted features of the nth layer, h ext (·) represents the convolution operation for feature extraction.

4. The feature aggregation image super-resolution reconstruction method according to claim 1, characterized in that: The process of using the trained reconstruction neural network to iteratively reconstruct the image to be reconstructed until the preset requirements are met to obtain the final target image includes: Perform super-resolution reconstruction on the image to be reconstructed using the trained reconstruction neural network to obtain an initial super-resolution reconstructed image; The initial super-resolution reconstructed image is used as the image to be reconstructed again, and is fed back to the input end through the back propagation algorithm for super-resolution reconstruction, and it is iterated repeatedly until the preset requirements are met to obtain the final target image.

5. A feature aggregation image super-resolution reconstruction system, characterized in that: include: A sample acquisition module, used to acquire training samples of the image to be reconstructed; A model building module, connected to the sample acquisition module, for building a convolutional neural network based on the generated network as a base network; A model training module, connected to the model building module, for training the convolutional neural network based on the training samples to obtain a trained reconstructed neural network; An iterative reconstruction module, connected to the model training module, is used to perform super-resolution iterative reconstruction on the image to be reconstructed using the trained reconstruction neural network until the preset requirements are met to obtain a final target image; The process of building a convolutional neural network based on a generated network includes: Construct a feature extraction unit and use the convolution layer to perform shallow extraction of features of the image to be reconstructed to obtain image features; Constructing a feature enhancement unit to perform deep extraction on the image features again; Construct attention units to avoid information loss when images are transferred between convolutional layers, improve the model's attention and selectivity to input features, and compensate for image information loss; Construct an image reconstruction unit and input the test image into the trained convolutional neural network for super-resolution reconstruction; The process of constructing a feature enhancement unit includes: A feature aggregation module is added to the generative network. The generative network includes six convolutional layers. The output features of the F3, F4, and F5 layers are aggregated to obtain the feature F. features-fusion , then the feature F features-fusion Send it to the F6 layer as input feature to obtain the feature aggregation network; it is expressed as: F features-fusion =H fusion (Concat(F3,F4,F5)) Where: Concat(·) represents the concatenation operation along the channel dimension, H fusion (·) indicates the aggregation module, F features-fusion represents the aggregate feature; After feature aggregation, the final aggregated features and the features of the F6 layer are added to obtain the final output features, which are expressed as: F 6-output =F features-fusion +F6 Among them: F 6-output Represents the output features of the generated network after adding the feature aggregation module; Obtaining the feature aggregation network also includes adding a residual local feature network to the feature aggregation network; The residual local feature network includes at least four residual local feature blocks that perform deep feature extraction on aggregated features in a cascaded manner. features-fusion As the input of the residual local feature network, the final output feature is obtained; the whole process is expressed as: in: represents the nth residual local characteristic function, Represents the enhanced features of each residual local feature block, Represents the final output features of the residual local feature network; Adding a residual local feature network to the feature aggregation network also includes: Contrast-aware channel attention is added to each residual local feature block, and modeling is improved through dynamic weight adjustment and channel association, which can be expressed as: Where: H CCA (·) represents the contrast-aware channel attention module, Represents the output features of the nth residual local feature block; After adding contrast-aware channel attention to the first three layers of the residual local feature network, the output feature F out3 Input into the last residual local feature block to obtain the output features of the entire feature aggregation network; expressed as: Among them: F out Represents the final output features.

6. The feature aggregation image super-resolution reconstruction system according to claim 5, characterized in that: The convolutional neural network includes a feature extraction unit, a feature enhancement extraction unit, and an attention unit; The feature extraction unit includes a plurality of convolutional layers, the input of the convolutional layers is the image to be reconstructed, and the output is a feature map; The feature enhancement extraction unit includes a plurality of convolutional layers, the input of the first layer of the plurality of convolutional layers is the feature map output by the feature extraction unit, and the input of the remaining layers is the output of the previous layer; the outputs of the plurality of convolutional layers are all feature maps; The attention unit includes several convolutional layers and adaptive average pooling layers.