A blind super-resolution reconstruction method based on kernel-guided network
By employing a kernel-guided network-based blind super-resolution reconstruction method, which combines downscaling and upscaling generators with a feature transformation module, the method addresses the dataset dependency issue of existing methods, achieving high-quality image generation and improved accuracy in real-world scenarios.
Patent Information
- Application Number
- CN202310353790.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-04-05
- Publication Date
- 2026-11-24
- Estimated Expiration
- 2043-04-05
AI Technical Summary
Existing supervised image super-resolution methods require a large number of low-resolution-high-resolution image pairs, making them difficult to apply in real-world scenarios, and they also lack model structure and performance.
A blind super-resolution reconstruction method based on kernel-guided networks is adopted. By combining downscaling generator and upscaling generator with feature transformation module, the network is trained using given low-resolution image patches to generate high-quality high-resolution images. Cyclic consistency loss and mask interpolation loss are used to improve the generation accuracy.
It can generate high-quality, high-resolution images without requiring large amounts of high-quality datasets, capture orientation information, improve the accuracy of generated images, and reduce artifacts and ringing effects.
Smart Images

Figure CN116563100B_ABST
Abstract
Description
Technical Field
[0001] This invention belongs to the field of image processing technology, and specifically relates to a blind super-resolution reconstruction method. Background Technology
[0002] Image super-resolution aims to recover a clear, high-resolution image from a low-resolution image. Most existing methods are supervised super-resolution methods, which use a large number of low-resolution-high-resolution image pairs to learn the mapping relationship between low and high frequencies, and then use this mapping relationship to reconstruct the image requiring super-resolution. However, these supervised methods require a large number of low-resolution-high-resolution image pairs, and real-world imaging processes are complex, making large-scale, high-quality datasets difficult to obtain. The paper "Image Super-Resolution Reconstruction Based on Multi-Scale Dense Feature Fusion, Optics and Precision Engineering, 2022, Vol 30(20), pp 2489-2500" discloses an image super-resolution reconstruction method based on a multi-scale dense feature fusion network. This method extracts image features at different scales through a multi-scale feature fusion residual module containing convolutional kernels of different scales and fuses these features to extract rich image features. A dense feature fusion structure is used between modules to fully fuse the feature information extracted by different modules, thereby better preserving high-frequency details of the image and obtaining a better visual experience. The methods described in the literature are supervised methods that require a large number of image pairs. However, constructing large-scale and high-quality super-resolution datasets is a challenging or even impossible task, especially when capturing real-world images. Therefore, these methods are not suitable for super-resolution processing of real-world scene images. Furthermore, these methods focus more on lightweight parameters and are still lacking in terms of model structure and performance. Summary of the Invention
[0003] To overcome the shortcomings of existing technologies, this invention provides a blind super-resolution reconstruction method based on a kernel-guided network. First, an image patch is input into a downscaling generator to obtain a downsampled image and a kernel. Then, another image patch and the downsampled image are simultaneously input into a discriminator. Next, the downsampled image and the kernel are simultaneously input into an upscaling generator, finally obtaining the super-resolution reconstructed image. This invention can capture orientation information and improve the accuracy of the generated image. Furthermore, it generates high-quality, high-resolution images.
[0004] The technical solution adopted by this invention to solve its technical problem includes the following steps:
[0005] Step 1: Input image patch x of image A into the downscaling generator G DN The downsampled image x′ and kernel K are obtained. s ;
[0006] A downsampled version of the image with a given resolution is obtained through a downscaling generator. The downscaling process for image patch x is as follows:
[0007] x′,K s =G DN (x) (1) Where x is the high-resolution image, x′ is the downsampled image, and K s It is the kernel, and s is the scaling factor;
[0008] The downscaling generator includes six hidden convolutional layers, each with 64 channels. First, the image passes through three convolutional layers, and then through a pooling operation to represent secondary sampling. The pooling operation includes three additional 1×1 filters to obtain the downsampled image.
[0009] Step 2: Input the image patch y of image A and the downsampled image x′ into the discriminator D simultaneously. DN The discriminator makes the downsampled image x′ approach the original image by judging the authenticity of image patches;
[0010] The discriminator consists of convolution, spectral normalization, batch normalization, ReLU, and sigmoid activation. The first layer is a 7×7 convolution and spectral normalization operation. The middle five layers are five 1×1 convolutions, each followed by a batch normalization operation and ReLU activation. The last layer uses three parallel convolutions with sigmoid activation. The kernel sizes of the parallel convolutions are 1×3 horizontally, 3×1 vertically, and 3×3 diagonally. The output of the discriminator is the average mapping of the outputs of the three parallel convolutions, which belongs to the interval [0, 1]. The output size is the same as the input size.
[0011] Design a mapping with the same size as the discriminator input as the discriminator's label. This mapping is a true / false matrix, representing 1 / 0 labels respectively.
[0012] Step 3: Combine the downsampled image x′ and kernel K s Simultaneously input the upscaling generator G UP This yields the image x″;
[0013] The image x″ output by the upscaling generator is approximately equal to the initial input image patch x, as follows:
[0014] x″=G UP (G DN (x))≈x (2)
[0015] In the formula, x″ is the super-resolution reconstructed image;
[0016] The upscaling generator includes an image branch and a kernel branch. The image branch includes nine hidden 3×3 convolutional layers and three feature transform (FT) modules. The last layer is a 3×3 convolutional layer used to generate the final image. The kernel branch includes two hidden layers and a 64-node output layer. The output of the kernel branch is fed into the FT module. Finally, a high-resolution image is obtained through a global residual connection between the input and output.
[0017] The feature transformation FT module is based on the kernel feature F K For the features F of the image I To refine this, within each FT module, two kernel-aware FC layers are used to adjust the features. The FT module uses scaling and shifting operations to adjust the kernel features. K Feature map F under condition I Provides affine transformations:
[0018] FT(F I F K ) = F I +γ⊙F K +β (3)
[0019] In the formula, γ and β represent the scaling and translation parameters, respectively, and ⊙ represents the Hadamard product;
[0020] Transformation parameters γ and β are derived from F with kernel characteristics K The FC layer obtains:
[0021] γ=FC2(FC1(F K (4)
[0022] β=FC4(FC3(F K (5)
[0023] In the formula FC i (·), i = 1, 2, 3, 4 are fully connected layers;
[0024] Step 4: Implement the reverse process, and compare image block y of image A with kernel K. s The image y″ is obtained by inputting an upscaling generator and then a downscaling generator, as shown below:
[0025] y″=G DN (G UP (y))≈y (6)
[0026] Step 5: Train the downscaling generator, discriminator, and upscaling generator;
[0027] Using cycle consistency loss L cycle To constrain the forward and backward cyclic flow; mask interpolation loss L interp Used to remove GUP Unsatisfactory artifacts in the results; using L GAN To improve the accuracy of the downscaling generator for the learning degradation process;
[0028] The loss function used for training is:
[0029] L total =L GAN +λ cycle L cycle +λ interp L interp (7)
[0030] L GAN =E x [D DN (G DN (x)) 2 ]+E y [(D DN (y)-1) 2 ]+R (8)
[0031] Where R is generated by the generator G DN The resulting regularization term on the degraded super-resolution kernel; E x and E y Expressing expectations;
[0032] The cycle consistency loss can be written as:
[0033] L cycle =E x [G UP (G DN (x))-x]+E y [G DN (G UP (y))-y] (9)
[0034] For the mask interpolation loss, the frequency mask f is first calculated by applying the Sobel operator to the bicubic upsampled image Bicubic(y). mask :
[0035] f mask =1-Sobel(Bicubic(y)) (10)
[0036] The mask interpolation loss is defined as:
[0037] L interp =E y ||[G UP [(y)-Bicubic(y)]×f mask ||1 (11)
[0038] Preferably, in step 1, three filters are used to represent the three filters in the convolution process of equation (1), with sizes of 7×7, 5×5 and 3×3, respectively.
[0039] The beneficial effects of this invention are as follows:
[0040] To overcome the shortcomings of existing supervised image super-resolution methods, this invention provides a blind super-resolution reconstruction method based on kernel-guided networks. This invention uses image patches from a given low-resolution image to train two networks: an upscaling network and a downscaling network. It only requires the given image and does not require a large amount of high-quality dataset. The downscaling network can directly learn the image-specific degradation process based on a generative adversarial network and obtain a downsampled version of the given low-resolution image. To better estimate the input degradation, this invention uses a specific discriminator to force the network to focus its attention on the direction of the kernel specific to the image being estimated. Furthermore, to focus on different features of the output, this invention extracts three directional features: horizontal, vertical, and diagonal. In other words, the discriminator in this invention is more powerful, capturing directional information and improving the accuracy of the generated image. Moreover, based on the learned kernel and the given low-resolution downsampled version, this invention uses a feature transformation module to guide the upscaling network to generate high-quality high-resolution images. Attached Figure Description
[0041] Figure 1 This is a flowchart of the method of the present invention.
[0042] Figure 2 Image block x is image A in an embodiment of the present invention.
[0043] Figure 3 Image block y is the image block of image A in the embodiment of the present invention. Detailed Implementation
[0044] The present invention will be further described below with reference to the accompanying drawings and embodiments.
[0045] The following describes the specific implementation method using image block x of image A as an example. Image block x of image A is as follows: Figure 2 As shown. This embodiment of the blind super-resolution reconstruction method based on a kernel-booting network includes the following steps:
[0046] Step 1: Input image patch x from image A into the downscaling generator to obtain the downsampled image x′ and kernel K. s .
[0047] Downscaling generator (G DNIt tends to learn a super-resolution kernel specific to the underlying image, which best preserves the distribution of image patches at the low-resolution image scale. A downsampling generator can obtain a downsampled version of the image at a given resolution. The downsampling process for image patch x is as follows:
[0048] x′,K s =G DN (x) (1)
[0049] Where x is the high-resolution image, x′ is the downsampled image, and K s 's' is the kernel, and 's' is the scaling factor. Downsampling is a linear transformation, so a linear generator is used.
[0050] The downscaling generator consists of several non-activated linear layers, comprising six hidden convolutional layers, each with 64 channels. First, three filters (i.e., 7×7, 5×5, and 3×3) are used to represent the convolution process in equation (1). Using the first three filters, the network's receptive field is 13×13, corresponding to a 13×13 super-resolution kernel. Then, a pooling operation represents subsampling, using three 1×1 filters to obtain the downsampled image. Once an accurate downscaling generator is trained, the image-specific kernel K... s The weights are implicitly learned through the training of the downscaling generator, and also depend on the desired scaling factor. During iterations during training, the downscaling generator performs a downscaling operation on the currently estimated specific low-resolution input image.
[0051] Step 2: Input image patch y of image A and downsampled image x′ into the discriminator. The discriminator determines the authenticity of the image patch to make the downsampled image x′ approximate the original image. Image patch y of image A is as follows: Figure 3 As shown.
[0052] Discriminator (D) DN This invention learns the unique internal distribution of image patches from the input image. By learning this distribution, the discriminator can distinguish between real and fake image patches. Real image patches are cropped from the input image and belong to the distribution learned by the discriminator, while fake image patches are cropped from images generated by a downscaling generator. This invention uses a fully convolutional image patch discriminator to learn the distribution of image patches for a single input. To distinguish small image patches, pooling is not used throughout the network. However, the degenerate kernel is not always a Gaussian-like kernel but includes kernels with arbitrary orientations. To focus on different features of the output, this invention extracts three directional features: horizontal, vertical, and diagonal. In other words, the discriminator in this invention is more powerful, capturing directional information and improving the accuracy of the generated images.
[0053] The discriminator is composed of convolutions, spectral normalization, batch normalization, ReLU, and sigmoid activation. The first layer consists of a 7×7 convolution and spectral normalization operation. The middle five layers consist of five 1×1 convolutions, each followed by a batch normalization operation and ReLU activation. The last layer uses three parallel convolutions with sigmoid activation. The kernel sizes of the parallel convolutions are 1×3 horizontally, 3×1 vertically, and 3×3 diagonally. The discriminator's output is the average mapping of the outputs of each parallel convolution, which belongs to the interval [0, 1]. The output size is the same as the input size. Furthermore, this invention designs a mapping of the same size as the discriminator's input as the discriminator's label; this mapping is a true / false matrix, representing 1 / 0 labels respectively. After obtaining the heatmap (D-map), the probability of it drawing surrounding image patches from the learned image patch distribution represented by each pixel in the D-map can be estimated.
[0054] Step 3: Downsample image x′ and kernel K s Input the upscaling generator to obtain the image x″.
[0055] The downscaling generator learns a degenerate super-resolution kernel, K. s This represents the true degradation process, therefore using the learned kernel for reconstruction will yield better high-resolution results. Based on this motivation, this invention designs an upscaling generator (UP) for reconstructing high-quality images. This invention uses a learned kernel K... s The reconstruction process is guided step-by-step, with the upscaling generator outputting an image x″ approximately equal to the initial input image patch x, as follows:
[0056] x″=G UP (G DN (x))≈x (2)
[0057] In the formula, x is an image patch of the input image A, x″ is the super-resolution reconstructed image, DN is the downscaling generator, and UP is the upscaling generator.
[0058] The architecture of the upscaling generator consists of an image branch and a kernel branch. The image branch has nine hidden 3×3 convolutional layers and three Fourier transform (FT) modules. The final layer is a 3×3 convolutional layer used to generate the final image. Furthermore, due to the degenerate kernel K... s Typically, it contains far less information than the input and can capture features well with simpler networks. Therefore, only a fully connected network (FCN) is needed in the kernel branch. The kernel branch takes a flattened kernel as input, has two hidden layers, and an output layer with 64 nodes. The output of the kernel branch is fed into the FT module. Finally, a high-resolution image is obtained through global residual connections between the input and output.
[0059] The Feature Transform (FT) module is based on the feature F of the kernel. K For the features F of the image I Refinement is then performed. Within each FT module, two kernel-aware FC layers are used to adjust the features. The FT module refines the kernel features using scaling and shifting operations. K Feature map F under condition I Provides affine transformations:
[0060] FT(F I F K ) = F I +γ⊙F K +β (3)
[0061] In the formula, γ and β represent the scaling and translation parameters, and ⊙ represents the Hadamard product. The transformation parameters γ and β are derived from F with kernel characteristics. K A small FC layer is obtained.
[0062] γ=FC2(FC1(F K (4)
[0063] β=FC4(FC3(F K (5)
[0064] In the formula FC i (·) is a fully connected layer, assuming F I The size is C×H×W, where C is the number of feature maps, and H and W represent F respectively. I The height and width. Both γ and β are C×1×1 in size. Kernel K s It is an accurate version of the downscaling generator estimate, therefore kernel K is used directly. s To calculate γ and β to refine F I .
[0065] Step 4: Implement the reverse process, and compare image block y of image A with kernel K. s The image y″ is obtained by inputting an upscaling generator and then a downscaling generator, as shown below:
[0066] y″=G DN (G UP (y))≈y (6)
[0067] Step 5: Train the downscaling generator, discriminator, and upscaling generator using the following loss function.
[0068] This invention uses L cycle To constrain the forward and backward circulating flow. L interp It is a novel mask interpolation loss used to remove G UPUnsatisfactory artifacts in the results. This invention uses L... GAN This is to improve the accuracy of the downscaling generator for the learning degradation process. Generally, the complete loss function is:
[0069] L total =L GAN +λ cycle L cycle +λ interp L interp (7)
[0070] Since the performance of the upscaling generator depends on the accuracy of the kernel, more attention needs to be paid to the downscaling generator and discriminator. To estimate the super-resolution kernel, this invention introduces Kernel-GAN, which learns an image-specific degradation kernel from an image through a generative adversarial network (GAN).
[0071] L GAN =E x [D DN (G DN (x)) 2 ]+E y [(D DN (y)-1) 2 ]+R (8)
[0072] Where R is generated by the generator G DN The regularization term on the resulting degraded super-resolution kernel.
[0073] In the forward loop, given an image patch x, if accurate downscaling and upscaling generators are obtained, the same image patch, G, will be obtained. UP (G DN (x))=x. Similarly, in the reverse loop, the image patch input after the upscaling generator and downscaling generator is also equal to itself, i.e., G DN (G UP (x))=x. Therefore, the final cycle consistency loss can be written as:
[0074] L cycle =E x [G UP (G DN (x))-x]+E y [G DN (G UP (y))-y] (9)
[0075] Where k is based on G, which was randomly initialized in the first step. DN The parameters were calculated.
[0076] Mask interpolation loss is an emerging technique that ensures the reconstruction results are free of artifacts and ringing artifacts in unsupervised super-resolution networks. Specifically, this loss aims to apply interpolation costs only to the low-frequency components of the image. To achieve this, it first computes the frequency mask f by applying the Sobel operator to the bicubic upsampled image Bicubic(y). mask :
[0077] f mask =1-Sobel(Bicubic(y)) (10)
[0078] The mask has higher pixel values in the low-frequency region of the image and lower pixel values in the high-frequency region. Therefore, the mask interpolation loss can be defined as:
[0079] L interp =E y ||[G UP [(y)-Bicubic(y)]×f mask ||1 (11)
[0080] Since the upsampling network also lacks supervised information, this loss is introduced to avoid artifact and ringing issues.
Claims
1. A blind super-resolution reconstruction method based on a kernel-booting network, characterized in that, Includes the following steps: Step 1: Input image patch x of image A into the downscaling generator G DN The downsampled image x′ and kernel K are obtained. s ; A downsampled version of the image with a given resolution is obtained through a downscaling generator. The downscaling process for image patch x is as follows: x′,K s =G DN (x) (1) Where x is the high-resolution image, x′ is the downsampled image, and K s It is the kernel, and s is the scaling factor; The downscaling generator includes six hidden convolutional layers, each with 64 channels. First, the image passes through three convolutional layers, and then through a pooling operation to represent secondary sampling. The pooling operation includes three additional 1×1 filters to obtain the downsampled image. Step 2: Input the image patch y of image A and the downsampled image x′ into the discriminator D simultaneously. DN The discriminator makes the downsampled image x′ approach the original image by judging the authenticity of image patches; The discriminator consists of convolution, spectral normalization, batch normalization, ReLU, and sigmoid activation. The first layer is a 7×7 convolution and spectral normalization operation. The middle five layers are five 1×1 convolutions, each followed by a batch normalization operation and ReLU activation. The last layer uses three parallel convolutions with sigmoid activation. The kernel sizes of the parallel convolutions are 1×3 horizontally, 3×1 vertically, and 3×3 diagonally. The output of the discriminator is the average mapping of the outputs of the three parallel convolutions, which belongs to the interval [0, 1]. The output size is the same as the input size. Design a mapping with the same size as the discriminator input as the discriminator's label. This mapping is a true / false matrix, representing 1 / 0 labels respectively. Step 3: Combine the downsampled image x′ and kernel K s Simultaneously input the upscaling generator G UP This yields the image x″; The image x″ output by the upscaling generator is approximately equal to the initial input image patch x, as follows: x″=G UP (G DN (x))≈x (2) In the formula, x″ is the super-resolution reconstructed image; The upscaling generator includes an image branch and a kernel branch. The image branch includes nine hidden 3×3 convolutional layers and three feature transform (FT) modules. The last layer is a 3×3 convolutional layer used to generate the final image. The kernel branch includes two hidden layers and a 64-node output layer. The output of the kernel branch is fed into the FT module. Finally, a high-resolution image is obtained through a global residual connection between the input and output. The feature transformation FT module is based on the kernel feature F K For the features F of the image I To refine this, within each FT module, two kernel-aware FC layers are used to adjust the features. The FT module uses scaling and shifting operations to adjust the kernel features. K Feature map F under condition I Provides affine transformations: FT(F I ,F K )=F I +γ⊙F K +β (3) In the formula, γ and β represent the scaling and translation parameters, respectively, and ⊙ represents the Hadamard product; Transformation parameters γ and β are derived from F with kernel characteristics K The FC layer obtains: γ=FC2(FC1(F K )) (4) β=FC4(FC3(F K )) (5) In the formula FC i (·), i = 1, 2, 3, 4 are fully connected layers; Step 4: Implement the reverse process, and compare image block y of image A with kernel K. s The image y″ is obtained by inputting an upscaling generator and then a downscaling generator, as shown below: y″=G DN (G UP (y))≈y (6) Step 5: Train the downscaling generator, discriminator, and upscaling generator; Using cycle consistency loss L cycle To constrain the forward and backward cyclic flow; mask interpolation loss L interp Used to remove G UP Unsatisfactory artifacts in the results; using L GAN To improve the accuracy of the downscaling generator for the learning degradation process; The loss function used for training is: L total =L GAN +λ cycle L cycle +λ interp L interp (7) L GAN =E x [D DN (G DN (x)) 2 ]+E y [(D DN (y)-1) 2 ]+R (8) Where R is generated by the generator G DN The resulting regularization term on the degraded super-resolution kernel; E x and E y Expressing expectations; The cycle consistency loss can be written as: L cycle =E x [G UP (G DN (x))-x]+E y [G DN (G UP (y))-y] (9) For the mask interpolation loss, the frequency mask f is first calculated by applying the Sobel operator to the bicubic upsampled image Bicubic(y). mask : f mask =1-Sobel(Bicubic(y)) (10) The mask interpolation loss is defined as: L interp =E y ||[G UP (y)-Bicubic(y)]×f mask ||1 (11)。 2. The blind super-resolution reconstruction method based on a kernel-booting network according to claim 1, characterized in that, In step 1, three filters are used to represent the three filters in the convolution process of equation (1), with sizes of 7×7, 5×5 and 3×3, respectively.
