A multi-correspondence matching model and reconstruction method based on image super-resolution

By using multi-correspondence matching technology in the image super-resolution model to extract and fuse multi-scale similarity index features of the reference image, the problem of existing models ignoring texture details is solved, and high-quality high-resolution image reconstruction and performance improvement are achieved. .

CN117557451BActive Publication Date: 2024-10-25GUILIN UNIV OF ELECTRONIC TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311504166.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-11-13
Publication Date
2024-10-25
Estimated Expiration
2043-11-13

AI Technical Summary

Technical Problem

When matching low-resolution images and reference images, existing image super-resolution models neglect to fully utilize the texture detail information of the reference image, resulting in insufficient texture feature transfer and limiting the potential for performance improvement.

Method used

Using a model based on multi-correspondence matching, through the feature extraction module, multi-correspondence matching feature extraction module and multi-correspondence matching feature fusion module, the multi-scale similar index features of the reference image are extracted and fused, and the high-resolution image is reconstructed, using the VGG network and multi-correspondence matching feature fusion module. The scale feature extraction mechanism combines adversarial loss and perceptual loss for multiple rounds of training to optimize network parameters.

Benefits of technology

Effectively utilize the texture detail information of the reference image to restore high-quality high-resolution images, improve the performance and adaptability of image super-resolution, and obtain better reconstruction results.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117557451B_ABST
    Figure CN117557451B_ABST
Patent Text Reader

Abstract

The present invention discloses a multi-correspondence matching model and reconstruction method based on reference image super-resolution, which belongs to the field of deep learning image processing technology, including a feature extraction module, a multi-correspondence matching feature extraction module and a multi-correspondence matching feature fusion module; and also discloses a multi-correspondence matching model reconstruction method based on reference image super-resolution. The present invention adopts the above-mentioned multi-correspondence matching model based on image super-resolution and its reconstruction method, inputs a low-resolution image into a multi-correspondence matching model with super-resolution of a reference image, finds multiple similar correspondences in the reference image for blocks / pixels in the low-resolution image, makes full use of the texture detail information of the reference image, restores the details of the image, and obtains a high-quality high-resolution image.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of deep learning image processing, and in particular to a multi-correspondence matching model based on image super-resolution and a reconstruction method thereof. Background Art

[0002] Image super-resolution (SR) aims to reconstruct a high-resolution image from a degraded low-resolution image and has become one of the research hotspots in the field of computer vision. Currently, image super-resolution mainly includes two research directions: single image super-resolution (SISR) and reference-based image super-resolution (RefSR). The purpose of SISR is to reconstruct a high-resolution image based on a given low-resolution image, while RefSR provides additional high-resolution reference images to transfer the actual texture to the final reconstructed high-resolution image, thereby improving image quality.

[0003] Typical RefSR methods first find the correspondence between the input low-resolution image and the reference image, and transfer the texture information from the reference image to the reconstructed high-resolution image according to the found correspondence. Matching the correspondence between the low-resolution image features and the reference image features is crucial for RefSR methods. The more accurate the correspondence found, the more accurate texture information can be transferred to the high-resolution image, resulting in better performance. Early studies performed spatial matching calibration between low-resolution images and reference images through optical flow estimation. However, optical flow is limited in matching long-distance correspondences. Its performance will drop significantly when there is a large difference between the low-resolution image and the reference image. Recently, researchers have turned to using block / pixel matching in the feature space to search for correspondences between low-resolution images and reference images. For example, Yang et al. searched and transferred texture features through an attention mechanism, focusing on the correspondence of deep features. Lu et al. proposed a spatial adaptation module to handle the potential large distribution difference between low-resolution images and reference images. These block matching-based methods have achieved good high-resolution performance. For pixel matching-based RefSR methods, Jiang et al. added contrast learning and knowledge distillation in the patch matching stage to narrow the transformation gap and resolution gap between the low-resolution image and the reference image. The current mainstream block / pixel matching strategy only searches for the best matching position for texture transfer in the reference image, however, valuable texture information is not limited to one position. Only looking for the best matching position may affect the adequacy of texture feature transfer from the reference image, resulting in insufficient or even irrelevant texture feature transfer. This limitation stems from the insufficient and abuse of the reference, limiting the potential of matching methods to further improve performance. These matching-based methods often ignore the self-similarity of natural images. Image self-similarity refers to the multiple repetitions of an image patch in the same image, including both recurrences within the same scale and recurrences between different scales. Based on self-similarity, non-local priors have been widely explored in SISR, which searches for similar patterns globally and selectively sums relevant features to enhance representation capabilities. In the RefSR scenario, due to the self-similarity of images, for a given low-resolution image patch / pixel, there may be multiple similar correspondences in the reference image. Multiple similar correspondences provide much more information than a single similar correspondence and may be helpful for reconstructing high-resolution images in RefSR.

[0004] Through the above analysis, the problems and defects of the existing technology are as follows: in most of the existing reference image super-resolution models, one-sided emphasis is placed on the matching accuracy between the low-resolution image and the reference image, while ignoring the full use of the texture detail information of the reference image. Summary of the invention

[0005] The purpose of the present invention is to provide a multi-correspondence matching model based on image super-resolution and a reconstruction method thereof, which can make full use of the texture detail information of the reference image, restore the details of the image, and obtain a high-quality high-resolution image.

[0006] To achieve the above object, the present invention provides a multi-correspondence matching model based on image super-resolution and a reconstruction method thereof, comprising a feature extraction module, a multi-correspondence matching feature extraction module and a multi-correspondence matching feature fusion module;

[0007] Feature extraction module: extract features of low-resolution images and reference images;

[0008] Multi-corresponding matching feature extraction module: extracts corresponding index features in the reference image feature map;

[0009] Multi-correspondence matching feature fusion module: Fusion of low-resolution images and multi-correspondence matching feature extraction modules extracts similar image index features of the reference image and reconstructs a high-resolution image.

[0010] Preferably, a multi-correspondence matching model reconstruction method based on reference image super-resolution comprises the following steps:

[0011] S1, input low-resolution image and reference image, feature extraction module extracts features of low-resolution image and reference image at three different scales;

[0012] S2, input low-resolution image features and reference image features to a multi-correspondence matching feature extraction module, which matches and searches for multiple similar blocks / pixels that have a corresponding relationship with the low-resolution image on reference images at three different scales, and extracts corresponding index features in the reference image feature map;

[0013] S3, the multi-corresponding matching feature fusion module fuses the low-resolution image and the multi-scale similar image index features of the reference image extracted by the multi-corresponding matching feature extraction module and reconstructs a high-resolution image;

[0014] S4. Perform multiple rounds of training on the super-resolution multi-correspondence matching model with reference images. After each round of training, save the network model parameters as a .pth file, use a test data set to test the image reconstruction effect, modify the network model parameters according to the test image reconstruction effect, and continue to the next round of training. After multiple rounds of training, obtain the network model parameters with the best super-resolution reconstruction network effect of the multi-correspondence matching model with reference images.

[0015] Preferably, the feature extraction module uses a VGG network as a feature extractor, combined with a multi-scale feature extraction mechanism, to obtain low-resolution sampling features and reference image features of three different scales.

[0016] Preferably, the step S2 specifically includes:

[0017] S21, the multi-corresponding matching feature extraction module expands the low-resolution feature map and the reference image feature map into a plurality of feature blocks of the same size;

[0018] S22, the multi-corresponding matching feature extraction module calculates the cosine similarity of each pair of feature blocks, selects the similar feature blocks with the top K similarity values, and stores them in the index table and the similarity table;

[0019] S23, the multi-corresponding matching feature extraction module extracts the corresponding index features from the reference image feature map through the index table and the similarity table.

[0020] Preferably, when fusing the multi-scale image features of the low-resolution image and the reference image extracted by the multi-corresponding matching feature extraction module in step S3, K reference image feature information is fused in sequence, and a high-resolution image is obtained through a pixel shuffle layer, and the upper factor used in the pixel shuffle layer is equal to 2.

[0021] Preferably, the training in step S4 specifically includes:

[0022] Provide training dataset Where n is the number of images in the training dataset, I LR is a low-resolution image in the training set, I HR is a high-resolution image in the training set, and its loss function is expressed as

[0023]

[0024] in, and Corresponding to reconstruction loss, adversarial loss and perceptual loss respectively, λ adv and λ per They correspond to the adversarial loss and perceptual loss weights respectively. The default value of the reconstruction loss weight is 1. The super-resolution multi-correspondence matching model with reference images is trained. After the training, the super-resolution reconstruction network parameters of the multi-correspondence matching model with reference images are obtained.

[0025] Therefore, the present invention adopts the above-mentioned multi-correspondence matching model based on image super-resolution and the reconstruction method thereof, which has the following beneficial effects:

[0026] (1) The low-resolution image I LR Input to the multi-correspondence matching model with super-resolution of the reference image, make full use of the texture detail information of the reference image, restore the details of the image, and obtain a high-quality high-resolution image I SR ;

[0027] (2) The model of the present invention can be integrated into the existing reference image super-resolution model, thus enhancing the versatility and adaptability of the current model;

[0028] (3) Effectively improve the super-resolution performance of existing reference image super-resolution methods.

[0029] The technical solution of the present invention is further described in detail below through the accompanying drawings and embodiments. BRIEF DESCRIPTION OF THE DRAWINGS

[0030] Figure 1 A schematic diagram of the structure of a multi-correspondence matching model network based on reference image super-resolution according to an embodiment of the present invention;

[0031] Figure 2 It is a structural schematic diagram of a multi-correspondence matching feature extraction module in a multi-correspondence matching model based on reference image super-resolution according to an embodiment of the present invention;

[0032] Figure 3 It is a structural schematic diagram of a multi-correspondence matching feature fusion module in a multi-correspondence matching model based on reference image super-resolution according to an embodiment of the present invention;

[0033] Figure 4 A comparison diagram of reconstruction results based on other three classic reference image super-resolution methods using only reconstruction loss training according to an embodiment of the present invention;

[0034] Figure 5 This is a comparison chart of reconstruction results based on other three classic reference image super-resolution methods using reconstruction loss, adversarial loss, and perceptual loss training according to an embodiment of the present invention. DETAILED DESCRIPTION

[0035] Example

[0036] The present invention provides a multi-correspondence matching model based on image super-resolution and a reconstruction method thereof, wherein the multi-correspondence matching model with a reference image and a super-resolution reconstruction network are used as a super-resolution reconstruction network based on a reference image, such as Figure 1 As shown: it includes a feature extraction module, a multi-correspondence matching feature extraction module and a multi-correspondence matching feature fusion module.

[0037] Feature extraction module: extract features of low-resolution images and reference images;

[0038] Multi-corresponding matching feature extraction module: extracts corresponding index features in the reference image feature map;

[0039] Multi-correspondence matching feature fusion module: Fusion of low-resolution images and multi-correspondence matching feature extraction modules extracts similar image index features of the reference image and reconstructs a high-resolution image.

[0040] A multi-correspondence matching model reconstruction method based on reference image super-resolution, comprising the following steps:

[0041] S1. Input low-resolution images and reference images. The feature extraction module uses the VGG network as a feature extractor and combines it with a multi-scale feature extraction mechanism to obtain low-resolution sampling features and reference image features at three different scales (1x, 2x, and 4x).

[0042] S2, input low-resolution image features and reference image features to the multi-correspondence matching feature extraction module, the multi-correspondence matching feature extraction module is as follows Figure 2 As shown, the multi-corresponding matching feature extraction module matches and searches for multiple similar blocks / pixels corresponding to the low-resolution image on the reference images at three different scales, and extracts the corresponding index features in the reference image feature map. The specific steps include:

[0043] S21, multi-corresponding matching feature extraction module, divides the low-resolution features into n sub-blocks {q1, q2, ..., q n}, divide the reference image features into m sub-blocks {p1,p2,…,p m}, sub-block can refer to block features or pixel features;

[0044] S22, the multi-corresponding matching feature extraction module calculates each pair (q i ,p j )(1≤i≤n,1≤j≤m) Cosine similarity of feature blocks The first K values ​​with the highest similarity values ​​are sorted in descending order and stored in the i-th similarity table Among them The element blocks in the reference image features corresponding to the similarity table constitute the i-th index table in Use the TopK(·) function to record the similarity scores and indexes of the top K highest values. The formula is as follows:

[0045]

[0046] For each q in the low-resolution feature i , similarity table Need to be normalized:

[0047]

[0048] Finally, the similarity table and index table are obtained.

[0049] S23, the multi-corresponding matching feature extraction module extracts the corresponding index features from the reference image feature map through the index table and the similarity table, such as Figure 2 As shown, specifically including:

[0050] The multi-correspondence matching feature extraction module extracts multiple similar features from the reference image features at three different scales. The multi-correspondence features at each scale are based on the index image. Provide the position information of the aligned reference features to obtain the aligned feature map

[0051]

[0052] Among them, e = 1, 2, 3; Ref_Aligned function is an index function, according to the index value Extract the corresponding position features from the reference image feature map, Represents the reference image features at different scales, is the matched index table, k represents the kth similar position.

[0053] S3, multi-corresponding matching feature fusion module Figure 3 As shown in Figure 1, the multi-corresponding matching feature fusion module fuses low-resolution images and similar image index features (aligned reference image features) at different scales to obtain high-resolution features:

[0054]

[0055] Among them, the SCMFA function implements the feature fusion operation, fusing the single corresponding matching features. represents the similarity table obtained by the multi-correspondence matching feature extraction module after normalization. represents the reference image feature map aligned by the multi-correspondence matching feature extraction module, Represents the low-resolution image features extracted by the feature extraction module. and It is the image fusion feature obtained by the previous multi-correspondence matching feature module through a 2-fold pixel shuffle layer; since the multi-correspondence matching feature fusion module focuses on multi-correspondence matching, the function result needs to be linearly weighted averaged at the end. In the multi-correspondence matching feature fusion stage, it is necessary to sequentially fuse K reference image features, obtain a high-resolution image through a pixel shuffle layer (with a factor of 2), and share the parameters of the RefSR network in the SCMFA function.

[0056] S4. Perform multiple rounds of training on the super-resolution multi-correspondence matching model with reference images. After each round of training, save the network model parameters as a .pth file, use a test data set to test the image reconstruction effect, modify the network model parameters according to the test image reconstruction effect, and continue to the next round of training. After multiple rounds of training, obtain the network model parameters with the best super-resolution reconstruction network effect of the multi-correspondence matching model with reference images.

[0057] The training steps specifically include:

[0058] Provide training dataset Where n is the number of images in the training dataset, I LR is a low-resolution image in the training set, I HR is a high-resolution image in the training set, and its loss function is expressed as

[0059]

[0060] in, and Corresponding to reconstruction loss, adversarial loss and perceptual loss respectively, λ adv and λ per They correspond to the adversarial loss and perceptual loss weights respectively. The default value of the reconstruction loss weight is 1. The super-resolution multi-correspondence matching model with reference images is trained. After the training, the super-resolution reconstruction network parameters of the multi-correspondence matching model with reference images are obtained.

[0061] A multi-correspondence matching model system based on reference image super-resolution includes a memory, a processor, and computer program instructions stored in the memory and capable of being executed by the processor. When the processor executes the computer program instructions, the multi-correspondence matching model reconstruction method based on reference image super-resolution of the present invention can be implemented.

[0062] Example 1

[0063] The MCMSR-rec model is developed for the RefSR network using reconstruction loss as the loss function, and the MCMSR model is developed for the RefSR network using reconstruction loss, adversarial loss, and perceptual loss as the loss function. Two versions of the model are trained and tested on the CUFED5 dataset. Data augmentation is achieved by random rotation of 90 degrees, 180 degrees, 270 degrees and horizontal flipping. The training low-resolution images and reference images are 40×40 and 160×160, respectively. For testing, five standard datasets are used: CUFED5, Sun80, Urban100, Manga109, and WR-SR. All low-resolution images are obtained by downsampling high-resolution images by bicubic interpolation with a downsampling factor of 4. The quality of high-resolution images is measured by adopting peak signal-to-noise ratio (PSNR) and structural similarity (SSIM). MCMSR-rec and MCMSR of the proposed method are trained by Adam optimizer with β1=0.9 and β2=0.999. The learning rate is initialized to 1e -4 .

[0064] In order to demonstrate the effectiveness of the method described in the present invention, the MCMSR-rec method is compared with 11 existing representative deep learning-based SISR and RefSR reconstruction methods, namely SRCNN, EDSR, RCAN, SwinIR, CrossNet, SRNTT-rec, SSEN-rec, E2ENT 2 -rec, TTSR-rec, MASA-rec, and C 2 -matching-rec. The (super-resolution reconstruction network) MCMSR method is compared horizontally with the existing 10 representative deep learning-based SISR and RefSR reconstruction methods, which are EnhanceNet, SRGAN, ESRGAN, RankSRGAN, SRNTT, SSEN, and E2ENT. 2 , TTSR, MASA and C 2 The quantitative effect comparison between the method of the present invention and the above 11 methods using reconstruction loss as the loss function is shown in Table 1, and the quantitative effect comparison between the method of the present invention and the above 10 methods using reconstruction loss, adversarial loss and perceptual loss as the loss function is shown in Table 2. The evaluation indicators are peak signal-to-noise ratio (PSNR) and structural similarity (SSIM), where the unit of PSNR is dB.

[0065] Table 1

[0066]

[0067] Table 2

[0068]

[0069]

[0070] Experimental data show that the proposed method performs better than other reference image super-resolution reconstruction methods, and its PSNR and SSIM are optimal on four datasets CUFED5, Sun80, Manga109 and WR-SR.

[0071] In terms of reconstructed visual effects, the reference image super-resolution reconstruction effects of three classic RefSR-rec comparison methods and the proposed method are compared. Figure 4 As shown in Figure 2, the super-resolution reconstruction effects of three classic RefSR comparison methods and the method of the present invention are compared. Figure 5 As shown. Figure 4 and Figure 5 It can be seen that the general multi-correspondence matching framework and method based on reference image super-resolution of the present invention can better reconstruct more accurate detail information. It can be seen that the MCMSR framework and method of the present invention fully utilize the texture information of the reference image by finding multiple similar correspondences in the reference image for blocks / pixels in the low-resolution image. This strategy can better restore the details of the image and obtain a high-quality high-resolution image.

[0072] 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.

[0073] 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.

[0074] 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.

[0075] 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 The steps for the functions specified in one or more boxes.

[0076] Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that they can still modify or replace the technical solution of the present invention with equivalents, and these modifications or equivalent replacements cannot cause the modified technical solution to deviate from the spirit and scope of the technical solution of the present invention.

Claims

1. A multi-correspondence matching model based on reference image super-resolution, characterized by: It includes a feature extraction module, a multi-correspondence matching feature extraction module and a multi-correspondence matching feature fusion module; Feature extraction module, extracting features of low-resolution images and reference images; A multi-corresponding matching feature extraction module extracts corresponding index features in the reference image feature map; A multi-corresponding matching feature fusion module, which fuses the low-resolution image and the multi-corresponding matching feature extraction module to extract similar image index features of the reference image and reconstruct a high-resolution image; The feature extraction module uses the VGG network as a feature extractor and combines a multi-scale feature extraction mechanism to obtain low-resolution sampling features and reference image features of three different scales; The implementation steps include: S1, input low-resolution image and reference image, feature extraction module extracts features of low-resolution image and reference image at three different scales; S2, input low-resolution image features and reference image features to a multi-correspondence matching feature extraction module, which matches and searches for multiple similar blocks / pixels that have a corresponding relationship with the low-resolution image on reference images at three different scales, and extracts corresponding index features in the reference image feature map; S21, the multi-corresponding matching feature extraction module expands the low-resolution feature map and the reference image feature map into a plurality of feature blocks of the same size; S22, the multi-corresponding matching feature extraction module calculates the cosine similarity of each pair of feature blocks, selects the similar feature blocks with the top K similarity values, and stores them in the index table and the similarity table; S23, the multi-corresponding matching feature extraction module extracts the corresponding index features in the reference image feature map through the index table and the similarity table; S3, the multi-corresponding matching feature fusion module fuses the low-resolution image and the multi-scale similar image index features of the reference image extracted by the multi-corresponding matching feature extraction module and reconstructs a high-resolution image; When fusing the multi-scale image features of the low-resolution image and the reference image extracted by the multi-corresponding matching feature extraction module, the feature information of K reference images is sequentially fused, and a high-resolution image is obtained through a pixel shuffle layer, in which the upsampling factor is equal to 2; S4. Perform multiple rounds of training on the super-resolution multi-correspondence matching model with reference images. After each round of training, save the network model parameters as a .pth file, use a test data set to test the image reconstruction effect, modify the network model parameters according to the test image reconstruction effect, and continue to the next round of training. After multiple rounds of training, obtain the network model parameters with the best super-resolution reconstruction network effect of the multi-correspondence matching model with reference images.

2. The multi-correspondence matching model based on reference image super-resolution according to claim 1, characterized in that: The training in step S4 specifically includes: Provide training dataset Where n is the number of images in the training dataset, I LR is a low-resolution image in the training set, I HR is a high-resolution image in the training set, and its loss function is expressed as in, and Corresponding to reconstruction loss, adversarial loss and perceptual loss respectively, λ adv and λ per Corresponding to the adversarial loss and the perceptual loss weights respectively, the super-resolution multi-correspondence matching model with the reference image is trained. After the training, the super-resolution reconstruction network parameters of the multi-correspondence matching model with the reference image are obtained.