Image super-resolution method and system based on recursive generalization

By adopting a recursive generalization method in the image super-resolution task, combining shallow and deep feature extraction, local self-attention processing and recursive generalization self-attention processing, the problems of traditional Transformer calculation and high memory consumption are solved, and high efficiency is achieved. image super-resolution processing.

CN118587089APending Publication Date: 2024-09-03STATE GRID XIONGAN FINANCIAL TECH GRP CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410671943.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-28
Publication Date
2024-09-03

AI Technical Summary

Technical Problem

Traditional Transformers have high computational and memory consumption in image super-resolution tasks, resulting in high image processing costs and low efficiency, making it difficult to effectively capture image information.

Method used

An image super-resolution method based on recursive generalization is adopted, through shallow feature extraction and deep feature extraction, combined with local self-attention processing and recursive generalization self-attention processing, to reduce computing and memory consumption and improve the performance of image super-resolution.

Benefits of technology

It effectively reduces the calculation and memory consumption of image processing, improves the performance of image super-resolution, reduces costs, and improves processing efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118587089A
    Figure CN118587089A
Patent Text Reader

Abstract

The invention relates to the technical field of image processing, in particular to an image super-resolution method and system based on recursive generalization, and the method comprises the steps: obtaining a low-resolution image, carrying out the shallow feature extraction of the low-resolution image, and obtaining the low-level feature information; deep feature extraction is carried out on the low-level feature information, the deep feature extraction comprises recursive generalization residual group processing and convolution processing, and deep feature information is obtained; the low-level feature information and the depth feature information are fused and reconstructed to obtain the high-resolution image, so that the image information is captured more effectively, the super-resolution performance of the image is improved, the cost is reduced, and the efficiency is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of image processing technology, and in particular to an image super-resolution method and system based on recursive generalization. Background Art

[0002] In the imaging process, image quality degradation is inevitable. Using more powerful physical sensing materials and shooting devices to improve image resolution is not only expensive, but also has limited improvement. Driven by the demand for high-resolution image or video applications, super-resolution reconstruction has become a research hotspot in the field of computer vision and image processing. Image super-resolution is a key technology in the field of computer vision and image processing, which aims to reconstruct high-resolution images from low-resolution images.

[0003] Deep learning technology, especially convolutional neural networks, has become the mainstream technology for image super-resolution and has made significant progress. At present, the Transformer structure has achieved great success in the field of natural language processing and has gradually begun to be applied to computer vision tasks, including image super-resolution. The Transformer model is suitable for processing long-range dependencies and complex scenes in image super-resolution. However, traditional Transformers face huge computational and memory consumption problems when processing images, especially for high-resolution images in super-resolution tasks, resulting in high image processing costs and low efficiency. The above problems need to be solved. Summary of the invention

[0004] In order to more effectively capture image information, improve the performance of image super-resolution, thereby reducing costs and improving efficiency, the present application provides an image super-resolution method and system based on recursive generalization, which adopts the following technical solutions:

[0005] In a first aspect, the present application provides an image super-resolution method based on recursive generalization, comprising:

[0006] Obtain a low-resolution image, perform shallow feature extraction on the low-resolution image, and obtain low-level feature information;

[0007] Perform deep feature extraction on low-level feature information. The deep feature extraction includes recursive generalization residual group processing and convolution processing to obtain deep feature information.

[0008] The low-level feature information and deep feature information are fused to reconstruct a high-resolution image.

[0009] Preferably, the recursive generalized residual group processing includes several residual group processings, and a convolution process is performed on the low-level feature information after performing several residual group processings to obtain deep feature information.

[0010] Preferably, the residual group processing includes several local self-attention processings, several recursive generalized self-attention processings and one convolution processing. After performing several local self-attention processings and several recursive generalized self-attention processings on the low-level feature information, a convolution processing is performed, and then the next residual group processing is performed.

[0011] Preferably, the local self-attention processing and the recursive generalized self-attention processing process alternately process low-level feature information.

[0012] Preferably, the specific steps of the recursive generalized self-attention processing are:

[0013] The low-level feature information processed by local self-attention is obtained as input feature information, and the input feature information is recursively generalized to obtain a refined aggregation graph;

[0014] According to the refined aggregation graph and input feature information, the cross attention value is calculated;

[0015] The cross attention values ​​are reshaped to obtain the output feature information of the input convolution processing.

[0016] Preferably, the recursive generalization processing includes depth convolution processing and pixel convolution processing.

[0017] Preferably, the method further comprises performing hybrid adaptive integration processing on the input feature information, wherein the hybrid adaptive integration processing

[0018]

[0019] The reason is:

[0020] Among them, B l For the converter block equipped with the hybrid adaptive integration method, Z l-1 is the input of the converter block, Z l is the output of the converter block, α l is a parameter in the adapter.

[0021] In a second aspect, the present application provides an image super-resolution system based on recursive generalization, comprising:

[0022] A shallow feature extraction module is used to obtain low-resolution images, perform shallow feature extraction on the low-resolution images, and obtain low-level feature information;

[0023] A deep feature extraction module is used to perform deep feature extraction on low-level feature information. The deep feature extraction includes recursive generalization residual group processing and convolution processing to obtain deep feature information.

[0024] The image reconstruction module is used to fuse low-level feature information and deep feature information to reconstruct a high-resolution image.

[0025] In a third aspect, the present application provides an image super-resolution device based on recursive generalization, comprising a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to execute the image super-resolution method based on recursive generalization as described above.

[0026] In a fourth aspect, the present application provides a computer-readable storage medium, in which a computer program is stored, wherein the computer program is configured to execute the image super-resolution method based on recursive generalization as described above when run.

[0027] In summary, compared with the prior art, the technical solution provided by this application has at least the following beneficial effects:

[0028] The present application extracts features from low-resolution images to obtain low-level feature information as input information for deep processing. The deep feature extraction obtains deep feature information through recursive generalized residual group processing and convolution processing. The recursive generalized residual group processing uses local self-attention processing and recursive generalized self-attention processing to be executed alternately, thereby reducing the huge computational and memory consumption problems faced by traditional Transformers when processing images, and more effectively capturing image information. Finally, the low-level feature information and the deep feature information are fused to reconstruct a high-resolution image, thereby improving the performance of image super-resolution, thereby reducing costs and improving efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0029] Figure 1 It is a flowchart of an image super-resolution method based on recursive generalization described in an embodiment of the present application.

[0030] Figure 2 It is a schematic diagram of the overall architecture of the recursive generalized Transformer described in the embodiment of the present application.

[0031] Figure 3 It is a schematic diagram of the recursive generalized self-attention model described in an embodiment of the present application.

[0032] Figure 4 It is a module diagram of an image super-resolution system based on recursive generalization described in an embodiment of the present application.

[0033] Description of reference numerals:

[0034] 1. Shallow feature extraction module; 2. Deep feature extraction module; 3. Image reconstruction module. DETAILED DESCRIPTION

[0035] The following combination Figure 1-Figure 4The present application is described in further detail. The terms used in the embodiments of the present application are only for the purpose of describing specific embodiments and are not intended to be limiting.

[0036] Reference Figure 1 The present application relates to an image super-resolution method based on recursive generalization, which specifically includes:

[0037] Step S1: obtaining a low-resolution image, performing shallow feature extraction on the low-resolution image, and obtaining low-level feature information;

[0038] Step S2: performing deep feature extraction on the low-level feature information, the deep feature extraction includes recursive generalization residual group processing and convolution processing to obtain deep feature information;

[0039] Step S3: Fuse the low-level feature information and the deep feature information to reconstruct a high-resolution image.

[0040] Specifically, the present application first obtains a low-resolution image that requires super-resolution processing, extracts features from the low-resolution image, and obtains low-level feature information as input information for deep processing. The deep feature extraction obtains deep feature information through recursive generalized residual group processing and convolution processing. The recursive generalized residual group processing uses local self-attention processing and recursive generalized self-attention processing to be executed alternately to reduce redundancy in the channel domain and reduce the huge computational and memory consumption problems faced by traditional Transformers when processing images, so as to capture image information more effectively. Finally, the low-level feature information and the deep feature information are fused to reconstruct a high-resolution image, thereby improving the performance of image super-resolution, thereby reducing costs and improving efficiency.

[0041] Reference Figure 2 This embodiment proposes the overall architecture of the recursive generalized Transformer, which consists of three modules: shallow feature extraction, deep feature extraction, and image reconstruction. First, given a low-resolution LR image The first part of the recursive generalized Transformer performs shallow feature extraction on the low-resolution image, using the convolutional layer as a shallow feature extractor to obtain low-level feature information Where H, W and C represent the image height, image width and number of channels respectively. The low-level feature information F0 is used as the input information of the deep feature extraction module, which consists of N1 residual groups and a convolutional layer. Through this module, F0 is converted into deep feature information Finally, F0 and F d The resulting images are fused through residual connections and processed by the reconstruction module to generate high-resolution HR images. Where H^ and W^ are the output height and output width respectively, and the reconstruction module consists of pixel shuffling and convolution layers. Each residual group processing contains N2 Transformer modules and a convolution layer. And residual connection is adopted to ensure training stability. There are two types of transformer modules, including the local self-attention method L-SA module and the self-attention model module. The two types of blocks are arranged alternately to organize the topological structure and capture the image information more effectively. Finally, the low-level feature information and deep feature information are fused to reconstruct a high-resolution image, improve the performance of image super-resolution and reduce the cost.

[0042] As one implementation method, the recursive generalized residual group processing includes several residual group processings, and a convolution process is performed on the low-level feature information after performing several residual group processings to obtain deep feature information.

[0043] Specifically, the recursive generalized residual group processing includes several residual group processings. The embodiment of the present application includes three residual group processings, but the present solution is not limited to three. Several residual groups have undergone several local self-attention processings and recursive generalized self-attention processings, which can capture global information to a certain extent by replacing the complexity of the spatial domain with the correlation between channels. Multiple residual group processings can simplify the input features into representative feature maps with small, constant size through the recursive generalization module multiple times, greatly reducing the computational cost while maintaining effective aggregation of global information.

[0044] As one of the implementation methods, the residual group processing includes several local self-attention processings, several recursive generalized self-attention processings and one convolution processing. After performing several local self-attention processings and several recursive generalized self-attention processings on the low-level feature information, a convolution processing is performed, and then the next residual group processing is performed.

[0045] Specifically, the recursive generalized Transformer model RGT contains a local self-attention L-SA model and a recursive generalized self-attention RG-SA model, which process image information with shallow feature extraction for accurate image super-resolution, and can model global spatial information while maintaining low computational cost. The recursive generalized self-attention model performs recursive generalized self-attention on information, which can effectively extract global information in linear complexity, while further scaling the channel dimension of the attention matrix to reduce redundancy in the channel domain.

[0046] As one implementation method, local self-attention processing and recursive generalized self-attention processing alternately process low-level feature information.

[0047] Specifically, the local self-attention module and the recursive generalized self-attention model module are respectively good at capturing information of different scales by alternating the topological structure of the organization. The local self-attention module can better capture local information, while the recursive generalized self-attention model module can better capture global information. By arranging these two modules alternately, the model's modeling ability for information of different scales is enhanced, and the model's expressiveness is improved. The recursive generalized self-attention processing has good generalization ability when processing global information, which helps the model learn abstract features and long-range dependencies. The local self-attention processing can better capture local features and detail information. By alternating these two modules, the model can be better generalized to unseen data. The design makes the model more flexible in processing different types of tasks, and the proportion and order of the local self-attention module and the recursive generalized self-attention model module can be flexibly adjusted according to the requirements of the task.

[0048] As one of the implementation methods, the specific steps of recursive generalized self-attention processing are: obtaining low-level feature information that has been processed by local self-attention as input feature information, recursively generalizing the input feature information to obtain a refined aggregation graph; calculating the cross-attention value based on the refined aggregation graph and the input feature information; reshaping the cross-attention value to obtain the output feature information of the input convolution processing.

[0049] Specifically, an embodiment of the present application proposes a recursive generalized self-attention model RG-SA, which captures global information while maintaining linear computational complexity. The self-attention model first aggregates input image features of arbitrary resolution into a compressed map through the recursive generalization module RGM therein. The compressed map is also called a representative feature map. The representative map aggregates the information of the entire image features and provides a global view of the image. Then, the cross attention between the input features and the representative map is calculated. Therefore, each token in the input image features can obtain a global receptive field. At the same time, the channel dimensions of the query, key, and value matrices in the attention are further scaled to reduce channel redundancy. Improved performance and reduced consumption.

[0050] As one implementation method, the recursive generalization process includes depth convolution process and pixel convolution process.

[0051] Specifically, refer to Figure 3In order to simplify the system, the recursive generalization module consists only of depth convolution and pixel convolution. A linear layer is set before the recursive generalization self-attention module in the recursive generalization self-attention model to perform a linear transformation on the input features and map them to another feature space. This helps the model learn more discriminative feature representations. Linear layers are placed before and after the recursive generalization self-attention module to achieve dimensional transformation of input and output features, so that the input feature dimension matches the input dimension of the recursive generalization self-attention module, and the feature dimension of the module output is mapped to the appropriate output space.

[0052] Multilayer perceptron processing is performed after the output linear layer processing. Multilayer perceptron MLP is usually composed of multiple fully connected layers, and nonlinear activation functions are added between each fully connected layer. Placing multilayer perceptron processing before and after the recursive generalized self-attention module is used to introduce more nonlinear modeling capabilities, which helps the model learn more complex feature representations and decision boundaries. Linear layers and multilayer perceptron processing enhance the expressiveness of the model, enabling it to better adapt to complex data distributions and task requirements, which helps improve the performance and generalization ability of the model.

[0053] The embodiment of the present application performs recursive generalization processing in the recursive generalization self-attention module. Given an input The input information here is the information that has been processed by the previous round of local self-attention or shallow feature extraction. First, a single deep convolution is used recursively This is used to compress the feature space size to obtain a rough aggregation graph. where s r is the convolution step size, h is a constant, In the embodiment of the present application, W≤H is assumed, then w≤h. Next, a 3×3 depth convolution is performed for depth convolution and a 1×1 point convolution is performed for pixel convolution to refine the rough aggregation map and generate a representative map. The formula of the recursive generalization module is:

[0054]

[0055] Among them, W r It has an s r The depth of the convolution stride, W d is a 3×3 depth convolution, W P is a 1×1 point convolution. In addition, the 1×1 point convolution scales the channels from C to C r =C×c r , where c r is the adjustment factor. The global information of the input image features is aggregated through the recursive generalization module. At the same time, the recursive design is flexible for processing inputs with different sizes, and the number of recursions T can be dynamically selected.

[0056] Then, the input features X are reshaped and projected in As a query and a representative map as key Sum To calculate the cross attention value. Attention matrix It is calculated from the dot product interaction of query Q and key K. We further scale the channel dimensions of query, key, and value, and the whole cross-attention Q = W Q X in , K=W K X r ,V=W V X r ,

[0057]

[0058] Cross-Attention(X in ,X r )=W m (A.V.),

[0059] The process is defined as:

[0060] in, and is a learnable parameter, and the bias is omitted for simplicity; is the projection matrix for feature fusion. The channels are divided into multiple "heads" and the attention operations are performed in parallel. Finally, we reshape the result of the cross-attention to obtain the output feature Through recursive generalization modules, cross-attention, and channel adjustment, the self-attention model is able to capture global spatial information while maintaining low computational overhead.

[0061] As one implementation manner, it further includes performing hybrid adaptive integration processing on the input feature information, wherein the hybrid adaptive integration processing is:

[0062]

[0063] Among them, B l For the converter block equipped with the hybrid adaptive integration method, Z l-1 is the input of the converter block, Z l is the output of the converter block, α l is a parameter in the adapter.

[0064] As one of the implementations, in order to improve the exploitation of global context, this application introduces local self-attention L-SA and combines it with the proposed self-attention model. The two attention modules are alternately arranged in each residual group RG.

[0065] The embodiment of the present application proposes a hybrid adaptive integration HAI, which acts on the outside of each transformer block. The input features are adaptively adjusted through a learnable adapter α and added to the output features.

[0066] Reference Figure 4 , an image super-resolution system based on recursive generalization is provided for an embodiment of the present application, the system comprising:

[0067] A shallow feature extraction module 1 is used to obtain a low-resolution image, perform shallow feature extraction on the low-resolution image, and obtain low-level feature information;

[0068] A deep feature extraction module 2 is used to perform deep feature extraction on low-level feature information, wherein the deep feature extraction includes recursive generalization residual group processing and convolution processing to obtain deep feature information;

[0069] The image reconstruction module 3 is used to fuse the low-level feature information and the deep feature information to reconstruct a high-resolution image.

[0070] Specifically, the recursive generalized Transformer model of the present application includes a local self-attention model and a recursive generalized self-attention model, and the two types of models are arranged alternately to organize the topological structure. The recursive generalized Transformer for image super-resolution proposed therein, namely RGT. The component modules include a shallow feature extraction module, a deep feature extraction module and an image reconstruction module. First, the convolution layer is used as a shallow feature extraction to obtain the low-level feature F0, and then the deep feature extraction module is used to convert it into a deep feature F0. d Finally, F0 and F dThrough residual connection fusion and processing by the reconstruction module, a high-resolution image is generated. And residual connection is adopted to improve training stability. The proposed recursive generalization self-attention model structure, which is an important component of the embodiment of the present application, constitutes a recursive generalization Transformer model together with the introduced local self-attention method model, and the two attention modules are arranged alternately in each residual group. The composition includes deep convolution and pixel convolution. It is divided into three steps. Through the recursive generalization module, the self-attention model first aggregates the input image features of any resolution into a compressed map, called a representative feature map. Calculate cross attention to calculate the cross attention between the input features and the representative map. Channel adjustment, reshape and project the input features, further scale the channel dimensions of the query, key and value, and reduce channel redundancy. The above steps maintain low computational overhead while capturing global spatial information. The hybrid adaptive integration method used is used for module integration, acting on the outside of each local self-attention model or recursive generalization self-attention model. The input features are adaptively adjusted through a learnable adapter and added to the output features, directly and effectively fusing different levels, including local or global features.

[0071] The system of the present application is used for accurate image super-resolution, which is able to model global spatial information while maintaining low computational cost. Recursive generalized self-attention can effectively extract global information in linear complexity, while further scaling the channel dimension of the attention matrix to reduce redundancy in the channel domain. In addition, the proposed hybrid adaptive integration can be used for module integration to improve the exploitation of global context. The hybrid adaptive integration method acts on the outside of each transformer block and directly fuses features at different levels. It captures global information with controllable complexity to achieve accurate image super-resolution.

[0072] An embodiment of the present application provides an image super-resolution device based on recursive generalization, including a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to execute the image super-resolution method based on recursive generalization as described above.

[0073] An embodiment of the present application provides a computer-readable storage medium, in which a computer program is stored, wherein the computer program is configured to execute the above-mentioned image super-resolution method based on recursive generalization when running.

[0074] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the above-described device and product can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.

[0075] In several embodiments provided in this application, it should be understood that the disclosed methods, systems, devices and program products may be implemented in other ways.

[0076] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0077] As described above, the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims

1. A recursive generalization-based image super-resolution method, It is characterized in that include: Obtain a low-resolution image, perform shallow feature extraction on the low-resolution image, and obtain low-level feature information; Perform deep feature extraction on low-level feature information. The deep feature extraction includes recursive generalization residual group processing and convolution processing to obtain deep feature information. The low-level feature information and deep feature information are fused to reconstruct a high-resolution image.

2. The image super-resolution method based on recursive generalization according to claim 1, It is characterized in that The recursive generalized residual group processing includes several residual group processings, and a convolution processing is performed on the low-level feature information after performing several residual group processings to obtain deep feature information.

3. The image super-resolution method based on recursive generalization according to claim 2, It is characterized in that The residual group processing includes several local self-attention processings, several recursive generalized self-attention processings and one convolution processing. After performing several local self-attention processings and several recursive generalized self-attention processings on low-level feature information, a convolution processing is performed, and then the next residual group processing is performed.

4. The image super-resolution method based on recursive generalization according to claim 3, It is characterized in that The local self-attention processing and the recursive generalized self-attention processing alternately process low-level feature information.

5. The image super-resolution method based on recursive generalization according to claim 4, It is characterized in that The specific steps of the recursive generalized self-attention process are: The low-level feature information processed by local self-attention is obtained as input feature information, and the input feature information is recursively generalized to obtain a refined aggregation graph; According to the refined aggregation graph and input feature information, the cross attention value is calculated; The cross attention values ​​are reshaped to obtain the output feature information of the input convolution processing.

6. The image super-resolution method based on recursive generalization according to claim 5, It is characterized in that The recursive generalization process includes a depth convolution process and a pixel convolution process.

7. The image super-resolution method based on recursive generalization according to claim 5, It is characterized in that It also includes performing hybrid adaptive integration processing on the input feature information, wherein the hybrid adaptive integration processing is: Among them, B l For the converter block equipped with the hybrid adaptive integration method, Z l-1 is the input of the converter block, Z l is the output of the converter block, α l is a parameter in the adapter.

8. An image super-resolution system based on recursive generalization, It is characterized in that include: A shallow feature extraction module is used to obtain low-resolution images, perform shallow feature extraction on the low-resolution images, and obtain low-level feature information; A deep feature extraction module is used to perform deep feature extraction on low-level feature information. The deep feature extraction includes recursive generalization residual group processing and convolution processing to obtain deep feature information. The image reconstruction module is used to fuse low-level feature information and deep feature information to reconstruct a high-resolution image.

9. An image super-resolution device based on recursive generalization, It is characterized in that The invention comprises a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to execute the image super-resolution method based on recursive generalization according to any one of claims 1 to 7.

10. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores a computer program, wherein the computer program is configured to execute the image super-resolution method based on recursive generalization according to any one of claims 1 to 7 when running.