A self-supervised learning system for super-resolution based on real-world dual-focal length images
By using the self-supervised learning method of real-world bifocal images in the image super-resolution self-supervised learning system, the problem of poor application of existing technology in real scenes is solved, and the visual effects of the generated super-resolution images are more realistic and applicable for imaging equipment.
Patent Information
- Application Number
- CN202111602313.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-24
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2041-12-24
AI Technical Summary
Existing reference-based image super-resolution methods have poor application results in real scenes, and models trained with simulation data are difficult to adapt to the complex and changeable degradation types of real scenes.
A super-resolution self-supervised learning system based on real-world dual-focus images is used. Through the image super-resolution network and loss function calculation module, the telephoto image is used as the high-resolution target image, and the short-focus image is used as the low-resolution image. Combined with the image Degradation module, low-resolution image alignment module, and reference image alignment module perform self-supervised learning to generate high-resolution images.
It realizes self-supervised learning using real data directly in real scenes, and the visual effects of the generated super-resolution images are more realistic, which alleviates the problem of many artifacts and unreality in the results of mainstream methods, and can be directly deployed on imaging equipment to obtain Higher resolution images.
Smart Images

Figure CN114283064B
Abstract
Description
Technical Field
[0001] The invention relates to a super-resolution self-supervised learning system based on real-world dual-focal-length images, and belongs to the technical field of image restoration. Background Art
[0002] Image super-resolution aims to restore a high-resolution image from a low-resolution image, which is an ill-posed problem. In order to relax the ill-posedness of the super-resolution problem, reference-based image super-resolution uses a reference image with similar texture or content to the low-resolution image to restore the low-resolution image, aiming to generate a result with more accurate details.
[0003] In recent years, with the development of deep learning technology, reference-based image super-resolution has gradually attracted people's attention. However, most of them are performed by simulating low-resolution images, that is, low-resolution images are used as input for training networks after bicubic interpolation and downsampling of high-resolution images. However, since the data in real scenes often have complex and changeable degradation types, models trained with simulated data are difficult to apply in real scenes. Summary of the invention
[0004] In view of the problem that the reference-based image super-resolution method trained with simulation data is not applicable in real scenes, the present invention provides a super-resolution self-supervised learning system based on real-world dual-focal length images.
[0005] A super-resolution self-supervised learning system based on real-world dual-focal-length images of the present invention comprises an image super-resolution network and a loss function calculation module;
[0006] The image super-resolution network includes:
[0007] Image degradation module, used to transform the low-resolution image s c Degrade the high-resolution target image t to obtain a pseudo low-resolution image And pseudo low-resolution images Align with high-resolution target image t;
[0008] The low-resolution image alignment module estimates the low-resolution image s through the offset estimator c With pseudo low-resolution images The offset between the low-resolution image s and the low-resolution image s according to the offset c Deform the low-resolution image s c Pseudo low resolution image Alignment, obtaining the deformed low-resolution image;
[0009] Reference image alignment module, calculates the reference image t c With pseudo low-resolution images The similarity between them is calculated based on the reference image t c Deform the reference image t c Pseudo low resolution image Alignment, obtain the deformed reference image;
[0010] The restoration module is used to restore the image according to the reference image t c Processing the deformed low-resolution image and the deformed reference image to obtain a final super-resolution image; the final super-resolution image is used as an output of the image super-resolution network;
[0011] A loss function calculation module is used to calculate the loss function according to the final super-resolution image and the high-resolution target image t; the parameters of the image degradation module in the image super-resolution network are learned through the loss function;
[0012] The acquired telephoto image is used as the high-resolution target image t, the short-focus image corresponding to the center of the telephoto image is acquired, and the central area of the short-focus image is cropped as the low-resolution image s c , the central area of the corresponding cropped telephoto image is used as the reference image t c .
[0013] According to the super-resolution self-supervised learning system based on real-world dual-focal length images of the present invention, the image degradation module includes a guidance vector generator and a degradation backbone network, wherein the guidance vector generator includes M convolutional layers and corresponding activation functions; the degradation backbone network includes N convolutional layers and corresponding activation functions; M and N are both positive integers.
[0014] According to the super-resolution self-supervised learning system based on real-world dual-focal length images of the present invention, the M convolutional layers include convolutional layers M1 to M5;
[0015] The convolutional layer M1 is used to concatenate the low-resolution image s c The high-resolution features obtained from the high-resolution target image t are sequentially subjected to a first convolution operation and a first activation operation;
[0016] The convolution layer M2 is used to perform a second convolution operation and a second activation operation on the output of the convolution layer M1 in sequence;
[0017] The convolution layer M3 is used to perform a third convolution operation on the output of the convolution layer M2;
[0018] Convolutional layer M4 is used to perform global average pooling operation on the output of convolutional layer M3;
[0019] The convolution layer M5 is used to perform a fourth convolution operation on the output of the convolution layer M4 to obtain a guided feature vector;
[0020] The first convolution operation is 32 7×7 convolution operations with a stride of 2;
[0021] The second and third convolution operations are both 32 3×3 convolution operations with a stride of 1;
[0022] The fourth convolution operation is 64 1×1 convolution operations with a stride of 1;
[0023] The first activation operation and the second activation operation both use the ReLU function;
[0024] The N convolutional layers include convolutional layer N1 to convolutional layer N7;
[0025] The convolution layer N1 is used to perform inverse pixel reconstruction on the high-resolution target image t to obtain high-resolution features as output;
[0026] The convolution layer N2 is used to perform the first convolution operation and the first activation operation on the output of the convolution layer N1 in sequence, and then multiply the output with the guided feature vector;
[0027] The convolution layer N3 is used to perform a second convolution operation and a second activation operation on the output of the convolution layer N2 in sequence;
[0028] The convolution layer N4 is used to perform a third convolution operation and a third activation operation on the output of the convolution layer N3 in sequence;
[0029] The convolution layer N5 is used to perform a fourth convolution operation and a fourth activation operation on the output of the convolution layer N4 in sequence;
[0030] The convolution layer N6 is used to perform the fifth convolution operation and the fifth activation operation on the output of the convolution layer N5 in sequence;
[0031] Convolutional layer N7 is used to perform the sixth convolution operation on the output of convolutional layer N6 to obtain a pseudo low-resolution image.
[0032] The first convolution operation is 64 1×1 convolution operations with a stride of 1;
[0033] The second convolution operation is 64 7×7 convolution operations with a stride of 1 and a padding of 3;
[0034] The third convolution operation is 64 5×5 convolution operations with a stride of 1 and a padding of 2;
[0035] The fourth convolution operation is 64 3×3 convolution operations with a stride of 1 and a padding of 1;
[0036] The fifth convolution operation is 64 1×1 convolution operations with a stride of 1;
[0037] The sixth convolution operation is three 1×1 convolution operations with a stride of 1;
[0038] The first to fifth activation operations all use the ReLU function.
[0039] According to the super-resolution self-supervised learning system based on real-world dual-focal length images of the present invention, the low-resolution image alignment module includes two convolution units and three adaptive spatial transformation networks;
[0040] Low resolution images c Transformed from 3 channels to 64 channels through a convolution unit; pseudo low-resolution image After another convolution unit, it is transformed from 3 channels to 64 channels;
[0041] The outputs of the two convolutional units are processed by a first adaptive spatial transformation network to obtain a first deformed low-resolution image;
[0042] The first deformed low-resolution image and another convolution output are processed by a second adaptive spatial transformation network to obtain a second deformed low-resolution image;
[0043] The second deformed low-resolution image and the output of another convolution are processed by a third adaptive spatial transformation network to obtain a final deformed low-resolution image.
[0044] According to the super-resolution self-supervised learning system based on real-world dual-focal-length images of the present invention, the three adaptive spatial transformation networks process input data in the same way;
[0045] For the first adaptive spatial transformer network:
[0046] The outputs of the two convolution units are connected together and passed through the convolution layer groups G1 and G2, and then through the convolution layer G3 to obtain the first reflection transformation parameter A, and at the same time through the convolution layer G4 to obtain the second reflection transformation parameter b;
[0047] The low-resolution image s c With pseudo low-resolution images The offset P between them is:
[0048] P=AG+b,
[0049]
[0050] Where G is the coordinate network;
[0051] The offset P is convolved with the deformable group to obtain the first deformed low-resolution image y(q):
[0052]
[0053] Where k is the number of columns in the coordinate network G; p k represents the kth column of P, w k represents the kth column of convolution kernel weights, and x represents the low-resolution image s c The features output after a convolution unit; q represents the low-resolution image s c The pixel position coordinates.
[0054] According to the super-resolution self-supervised learning system based on real-world dual-focal length images of the present invention, the operations of convolutional layers G1 to G5 include:
[0055] The convolution layer G1 is used to perform the first convolution operation and the first activation operation on the outputs of the two convolution units connected together in sequence;
[0056] The convolution layer G2 is used to perform a second convolution operation and a second activation operation on the output of the convolution layer G1 in sequence;
[0057] The convolution layer G3 is used to perform a third convolution operation on the output of the convolution layer G2;
[0058] The convolution layer G4 is used to perform a fourth convolution operation on the output of the convolution layer G2;
[0059] Convolutional layer G5 performs the fifth convolution operation on the offset P as a deformable group convolution;
[0060] The first convolution operation and the second convolution operation are 64 3×3 convolution operations with a stride of 1, a padding of 1, and a group number of 64;
[0061] The first activation operation and the second activation operation are LeakyReLU functions;
[0062] The third convolution operation is 4 5×5 convolution operations with a stride of 1 and a padding of 2;
[0063] The fourth convolution operation is 2 convolution operations of 5×5 with a stride of 1 and a padding of 2;
[0064] The fifth convolution operation is 64 3×3 convolution operations with a stride of 1, a padding of 1, and a group number of 64.
[0065] Beneficial effects of the present invention: The present invention uses the central area of the short-focus image as a low-resolution image, the center of the long-focus image as a reference, and the long-focus image as a target image to train the network.
[0066] In the test phase, the present invention can directly use the telephoto image as a reference to perform super-resolution on the short-focus image. Compared with the mainstream reference-based super-resolution method, the results of the present invention directly use the data of the real scene for self-supervised learning. And the results of the present invention are more realistic in the visual effect of the actual scene image, effectively alleviating the problem of more artifacts and unreality of the results of the mainstream method. The present invention can be directly deployed on imaging devices such as mobile phones to obtain higher resolution images. BRIEF DESCRIPTION OF THE DRAWINGS
[0067] Figure 1 It is an overall flow chart of the super-resolution self-supervised learning system based on real-world dual-focal length images in the training phase of the present invention;
[0068] Figure 2 It is an overall flow chart of the super-resolution self-supervised learning system based on real-world dual-focal length images in the testing phase of the present invention;
[0069] Figure 3 This is a flowchart of the image super-resolution network during the training phase;
[0070] Figure 4 It is a data processing flow chart of the adaptive spatial transformation network;
[0071] Figure 5 is a schematic diagram of aligning a long-focus image to a short-focus image;
[0072] Figure 6 It is a structural diagram of the image degradation module;
[0073] Figure 7 is a schematic diagram of the structure of the recovery module;
[0074] Figures 8 to 19 To compare the test results of using the system of the present invention and other methods on Nikon camera images;
[0075] in Figure 8 For the short-focus full picture, Fig. 9 is a low-resolution image block in the short-focus full image, Fig.10 is the image processing result of BSRGAN method, Fig.11 is the image processing result of the Real-ESRGAN method, Fig.12 is the image processing result of SRNTT method, Fig.13 is the image processing result of TTSR method;
[0076] Fig.14 For the full telephoto image, Fig.15 C 2 -Image processing results of the Matching method, Fig.16 is the image processing result of MASA method, Fig.17 is the image processing result of the DCSR method, Fig.18 Generate results for super-resolution obtained using this system; Fig.19 is the target image;
[0077] Figures 20 to 31 To compare the test results of the system of the present invention and other methods on Apple mobile phone images;
[0078] in Fig. 20 For the short-focus full picture, Fig.21 is a low-resolution image block in the short-focus full image, Fig. 22 is the image processing result of BSRGAN method, Fig.23 is the image processing result of the Real-ESRGAN method, Fig.24 is the image processing result of SRNTT method, Fig.25 is the image processing result of TTSR method;
[0079] Fig.26 For the full telephoto image, Fig. 27 C 2 -Image processing results of the Matching method, Fig.28 is the image processing result of MASA method, Fig.29 is the image processing result of the DCSR method, Fig.30 Generate results for super-resolution obtained using this system; Fig.31 is the target image. DETAILED DESCRIPTION
[0080] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0081] It should be noted that, in the absence of conflict, the embodiments of the present invention and the features in the embodiments may be combined with each other.
[0082] The present invention will be further described below in conjunction with the accompanying drawings and specific embodiments, but they are not intended to limit the present invention.
[0083] Specific implementation method 1. Combination Figures 1 to 4 As shown, the present invention provides a super-resolution self-supervised learning system based on real-world dual-focal length images, including an image super-resolution network and a loss function calculation module;
[0084] The image super-resolution network includes:
[0085] The image degradation module 100 is used to c Degrade the high-resolution target image t to obtain a pseudo low-resolution image And pseudo low-resolution images Align with high-resolution target image t;
[0086] The low-resolution image alignment module 200 estimates the low-resolution image s by an offset estimator. c With pseudo low-resolution images The offset between the low-resolution image s and the low-resolution image s according to the offset c Deform the low-resolution image s c Pseudo low resolution image Alignment, obtaining the deformed low-resolution image;
[0087] The reference image alignment module 300 calculates the reference image t c With pseudo low-resolution images The similarity between them is calculated based on the reference image t c Deform the reference image t c Pseudo low resolution image Alignment, obtain the deformed reference image;
[0088] The restoration module 400 is used to restore the image according to the reference image t c The deformed low-resolution image and the deformed reference image are processed to obtain a final super-resolution image; the final super-resolution image As the output of the image super-resolution network;
[0089] A loss function calculation module is used to calculate the loss function according to the final super-resolution image and the high-resolution target image t; the parameters of the image degradation module 100 in the image super-resolution network are learned through the loss function, the network weights are constrained, and the optimization is achieved;
[0090] The captured telephoto image is used as the high-resolution target image t. t can be used as the target image and used to generate pseudo low-resolution images for fine alignment during the training process. The short-focus image s corresponding to the center of the telephoto image is captured, and the central area of the short-focus image is cropped as the low-resolution image s. c , the central area of the corresponding cropped telephoto image is used as the reference image t c . Reference image t c With low resolution images c Cropped to the same size. After cropping, the optical flow network PWC-Net can be used to s c and t are roughly aligned. In the training phase, s cand t c As input, t is used as the label image, and the system parameters are learned by calculating the loss function of the output image and t.
[0091] Since the model trained with simulation data has poor applicability in real scenes and target labels of real scenes are difficult to obtain, the present invention uses a self-supervised approach in the model training phase, and can directly use the telephoto image as a reference in the testing phase to perform super-resolution on the short-focus image.
[0092] In this embodiment, first, the high-resolution image t and the low-resolution image s c Input into the image degradation module to generate a pseudo low-resolution image And constrain the pseudo low-resolution image and t are aligned. Since s c There is still a slight misalignment between and after using the optical flow method to align, resulting in a pseudo low-resolution image That is, it is used to convert s c Specifically, the low-resolution image s c Features and pseudo low-resolution images The features of are input into the adaptive spatial transformer network, the offset between the two is calculated by convolution, and then the low-resolution image is deformed according to the offset to obtain the deformed low-resolution image features aligned with t.
[0093] Secondly, pseudo low-resolution images and reference figure t c After passing through their respective feature extractors, the feature representations of the two are obtained. By calculating the inner product similarity of the two features, the index map is obtained. The index map is used to translate the reference image to Align and deform the reference image after five layers of convolution. Since the reference image is the same as the central scene of the low-resolution image, the center point can be considered to be at the same point. The present invention directly pastes the reference image features after inverse pixel reorganization to the center of the deformed reference image. Then the pasted features and the pseudo low-resolution features are further input into the adaptive spatial transformation network, the offset between the two is calculated, and the pasted features are finely aligned to the pseudo low-resolution features, so as to finally obtain the deformed reference image features aligned with the low-resolution image. The aligned low-resolution image features and the reference image features are connected together and input into the restoration module to generate the final super-resolution result.
[0094] Further, combined with Figure 3 and Figure 6As shown, the image degradation module 100 includes a guidance vector generator and a degradation backbone network. The image degradation module 100 inputs a low-resolution image and a target high-resolution image, and outputs a guidance feature vector to globally modulate the feature map of the backbone network, wherein the guidance vector generator includes M convolutional layers and corresponding activation functions; the degradation backbone network includes N convolutional layers and corresponding activation functions; M and N are both positive integers.
[0095] The image degradation module needs to ensure that the input target high-resolution image and the output pseudo low-resolution image are spatially aligned. This implementation achieves spatial alignment of the input target high-resolution image and the output pseudo low-resolution image by constraining the center of mass of the backbone network convolution kernel weights to be at the center of space.
[0096] like Figure 6 As shown in Figure 1, in addition to the backbone network and the guidance vector generator, the image degradation module also needs to add noise n, which includes Gaussian noise, camera link noise, and JPEG compression noise.
[0097] Going a step further, combined Figure 6 As shown, the M convolutional layers include convolutional layers M1 to M5;
[0098] The convolutional layer M1 is used to concatenate the low-resolution image s c The high-resolution features obtained from the high-resolution target image t are sequentially subjected to a first convolution operation and a first activation operation;
[0099] The convolution layer M2 is used to perform a second convolution operation and a second activation operation on the output of the convolution layer M1 in sequence;
[0100] The convolution layer M3 is used to perform a third convolution operation on the output of the convolution layer M2;
[0101] Convolutional layer M4 is used to perform global average pooling operation on the output of convolutional layer M3;
[0102] The convolution layer M5 is used to perform a fourth convolution operation on the output of the convolution layer M4 to obtain a guided feature vector;
[0103] The first convolution operation is 32 7×7 convolution operations with a stride of 2;
[0104] The second and third convolution operations are both 32 3×3 convolution operations with a stride of 1;
[0105] The fourth convolution operation is 64 1×1 convolution operations with a stride of 1;
[0106] The first activation operation and the second activation operation both use the ReLU function;
[0107] The N convolutional layers include convolutional layer N1 to convolutional layer N7;
[0108] The convolution layer N1 is used to perform inverse pixel reconstruction on the high-resolution target image t to obtain high-resolution features as output;
[0109] The convolution layer N2 is used to perform the first convolution operation and the first activation operation on the output of the convolution layer N1 in sequence, and then multiply the output with the guided feature vector;
[0110] The convolution layer N3 is used to perform a second convolution operation and a second activation operation on the output of the convolution layer N2 in sequence;
[0111] The convolution layer N4 is used to perform a third convolution operation and a third activation operation on the output of the convolution layer N3 in sequence;
[0112] The convolution layer N5 is used to perform a fourth convolution operation and a fourth activation operation on the output of the convolution layer N4 in sequence;
[0113] The convolution layer N6 is used to perform the fifth convolution operation and the fifth activation operation on the output of the convolution layer N5 in sequence;
[0114] Convolutional layer N7 is used to perform the sixth convolution operation on the output of convolutional layer N6 to obtain a pseudo low-resolution image.
[0115] The first convolution operation is 64 1×1 convolution operations with a stride of 1;
[0116] The second convolution operation is 64 7×7 convolution operations with a stride of 1 and a padding of 3;
[0117] The third convolution operation is 64 5×5 convolution operations with a stride of 1 and a padding of 2;
[0118] The fourth convolution operation is 64 3×3 convolution operations with a stride of 1 and a padding of 1;
[0119] The fifth convolution operation is 64 1×1 convolution operations with a stride of 1;
[0120] The sixth convolution operation is three 1×1 convolution operations with a stride of 1;
[0121] The first to fifth activation operations all use the ReLU function.
[0122] Going a step further, combined Figures 3 to 5 As shown, the low-resolution image alignment module 200 includes two convolution units and three adaptive spatial transformation networks;
[0123] Low resolution images c Transformed from 3 channels to 64 channels through a convolution unit; pseudo low-resolution image After another convolution unit, it is transformed from 3 channels to 64 channels;
[0124] The outputs of the two convolutional units are processed by a first adaptive spatial transformation network to obtain a first deformed low-resolution image;
[0125] The first deformed low-resolution image and another convolution output are processed by a second adaptive spatial transformation network to obtain a second deformed low-resolution image;
[0126] The second deformed low-resolution image and the output of another convolution are processed by a third adaptive spatial transformation network to obtain a final deformed low-resolution image.
[0127] The low-resolution image alignment module converts the low-resolution image s c Pseudo low resolution image Alignment, which deforms the input low-resolution image by estimating the offset between the two, alleviates the problem of blurred results caused by training models on misaligned data.
[0128] Going a step further, combined Figure 4 As shown, the three adaptive spatial transformation networks process the input data in the same way;
[0129] For the first adaptive spatial transformer network:
[0130] The outputs of the two convolution units are connected together and passed through the convolution layer group G1 and G2, and then through the convolution layer G3 to obtain the first reflection transformation parameter A. G1 and G2 are simultaneously passed through the convolution layer G4 to obtain the second reflection transformation parameter b;
[0131] The low-resolution image s c With pseudo low-resolution images The offset P between them is:
[0132] P=AG+b,
[0133]
[0134] Where G is a conventional coordinate network;
[0135] The offset P is convolved with the deformable group to obtain the first deformed low-resolution image y(q):
[0136]
[0137] Where k is the number of columns in the coordinate network G; p k represents the kth column of P, w k represents the kth column of convolution kernel weights, and x represents the low-resolution image s c The features output after a convolution unit; q represents the low-resolution image sc The pixel position coordinates.
[0138] During the testing phase, there is no need to align the input image to the target image, and the offset P of the offset estimator can be set to 0. Therefore, the offset estimator of the spatial transformer network can be removed, leaving only the deformable group convolution G5 convolution layer.
[0139] Going a step further, combined Figure 4 As shown, the operations of convolutional layers G1 to G5 include:
[0140] The convolution layer G1 is used to perform the first convolution operation and the first activation operation on the outputs of the two convolution units connected together in sequence;
[0141] The convolution layer G2 is used to perform a second convolution operation and a second activation operation on the output of the convolution layer G1 in sequence;
[0142] The convolution layer G3 is used to perform a third convolution operation on the output of the convolution layer G2;
[0143] The convolution layer G4 is used to perform a fourth convolution operation on the output of the convolution layer G2;
[0144] Convolutional layer G5 performs the fifth convolution operation on the offset P as a deformable group convolution;
[0145] The first convolution operation and the second convolution operation are 64 3×3 convolution operations with a stride of 1, a padding of 1, and a group number of 64;
[0146] The first activation operation and the second activation operation are LeakyReLU functions;
[0147] The third convolution operation is 4 5×5 convolution operations with a stride of 1 and a padding of 2;
[0148] The fourth convolution operation is 2 convolution operations of 5×5 with a stride of 1 and a padding of 2;
[0149] The fifth convolution operation is 64 3×3 convolution operations with a stride of 1, a padding of 1, and a group number of 64.
[0150] Going a step further, combined Figure 3 and Figure 5 As shown, the reference image alignment module 300 extracts the reference image t by a feature extractor having 5 layers of convolution. c With pseudo low-resolution images The extracted features are used to calculate the reference image t c With pseudo low-resolution images The similarity between them is obtained to obtain a similarity index map, and the reference image t is c To transform;
[0151] The reference image alignment module 300 converts the reference image t c To low resolution image Alignment, deforming the reference image by calculating the similarity between the two. The reference image alignment module first extracts the features of the reference image and the pseudo low-resolution image through a feature extractor with D-layer convolution, then calculates the similarity between the features of the two, and deforms the features of the reference image according to the similarity index map. At the same time, since the central scene of the reference image is the same as the low-resolution image, the present invention directly pastes the reference image features that have passed the inverse pixel recombination layer to the central area corresponding to the low-resolution image. Finally, the reference image features after the preliminary deformation are aligned to the pseudo low-resolution image through an adaptive spatial transformation network, so that it is approximately aligned with the target image.
[0152] The 5 convolutional layers of the feature extractor include convolutional layers D1 to D5.
[0153] The convolutional layer D1 is used to transform the reference image t c or pseudo low-resolution images Perform the first convolution operation and the first activation operation in sequence;
[0154] The convolution layer D2 is used to perform a second convolution operation and a second activation operation on the output of the convolution layer D1 in sequence;
[0155] The convolution layer D3 is used to perform a third convolution operation and a third activation operation on the output of the convolution layer D2 in sequence;
[0156] The convolution layer D4 is used to perform a fourth convolution operation and a fourth activation operation on the output of the convolution layer D3 in sequence;
[0157] The convolution layer D5 is used to perform the fifth convolution operation on the output of the convolution layer D4 to obtain the reference image t c or pseudo low-resolution images Features;
[0158] The first convolution operation is 64 3×3 convolution operations with a stride of 1 and a padding of 1;
[0159] The second convolution operation is 64 3×3 convolution operations with a stride of 1 and a padding of 1;
[0160] The third convolution operation is 128 3×3 convolution operations with a stride of 1 and a padding of 1;
[0161] The fourth convolution operation is 128 3×3 convolution operations with a stride of 1 and a padding of 1;
[0162] The fifth convolution operation is 256 3×3 convolution operations with a stride of 1 and a padding of 1.
[0163] The first to fourth activation operations all use the ReLU function.
[0164] Going a step further, combined Figure 3 and Figure 7 As shown, the restoration module 400 combines the deformed low-resolution image and the reference image features, and inputs them into the restoration network to obtain the final super-resolution result. It includes a restoration backbone network and an encoder;
[0165] Restoration backbone network for low-resolution image s c The features obtained after center cropping and bilinear interpolation upsampling are similar to the reference image t c After the connection, convolution is performed to obtain the features after convolution; the corresponding low-resolution image s c The cropped and upsampled features and the reference image t c After the central features are connected in series, the convolution operation includes convolution operation and activation operation;
[0166] The deformed low-resolution image is connected with the deformed reference image and then convolved to obtain the convolved secondary features; the convolution here includes convolution operation and activation operation;
[0167] The deformed low-resolution image is concatenated with the deformed reference image and then concatenated with the convolution feature as the input feature of the encoder.
[0168] The output of the encoder and the secondary features after convolution are then processed by the residual block of the restoration backbone network to obtain the final super-resolution image;
[0169] The encoder network includes convolutional layers E1 to E7;
[0170] The convolution layer E1 performs the first convolution operation and the first activation operation on the input features;
[0171] The convolution layer E2 is used to perform a second convolution operation and a second activation operation on the output of the convolution layer E1 in sequence;
[0172] The convolution layer E3 is used to perform a third convolution operation and a third activation operation on the output of the convolution layer E2 in sequence;
[0173] The convolution layer E4 is used to perform a fourth convolution operation and a fourth activation operation on the output of the convolution layer E3 in sequence;
[0174] The convolution layer E5 is used to perform a fifth convolution operation and a fifth activation operation on the output of the convolution layer E4 in sequence;
[0175] Convolutional layer E6 is used to perform global average pooling operation on the output of convolutional layer E5;
[0176] The convolution layer E7 is used to perform the sixth convolution operation on the output of the convolution layer E6, output a conditional vector, and modulate the features of each residual block of the backbone network;
[0177] The first to fourth convolution operations are all 64 3×3 convolution operations with a stride of 2 and a padding of 1;
[0178] The fifth and seventh convolution operations are both 64 1×1 convolution operations with a stride of 1 and a padding of 1;
[0179] The first to fifth activation operations all use the ReLU function;
[0180] The number of residual blocks is 16, and the 16 residual blocks are connected in a stacked form. The residual block inputs the deformed low-resolution image and reference image features and conditional vectors, and outputs the final super-resolution image.
[0181] like Figure 7 As shown in Figure 1, the restoration module connects the aligned low-resolution image features and the reference image features and inputs them into 16 stacked residual blocks. The reference image has the same central part as the low-resolution image. The restoration module crops the central part of the low-resolution image with the same scene as the reference image, and bilinearly interpolates the cropped image to the same size as the reference image, and then adds it to the reference image. Figure 1 The 16 residual blocks are connected together and input into the encoder. The encoder outputs 16 vectors, which are multiplied by the features of the 16 residual blocks to modulate the residual features. The features of the 16 residual blocks are further passed through the convolution layer, pixel reorganization layer and convolution layer to obtain the final super-resolution result.
[0182] Furthermore, the loss function for:
[0183]
[0184] Where n represents noise, λ c is a constant, λ c =100, L is the number of convolutional layers, represents the centroid constraint loss function, W l Represents the weight of the lth layer of convolution in the degenerate backbone network.
[0185] Going further, the centroid constraint loss function for:
[0186]
[0187] Where k1 is an odd number, indicating the size of the convolution kernel, and i represents W l The horizontal coordinate of the corresponding position, j represents W l The corresponding position ordinate, Represents W l The value corresponding to the position (i, j). The centroid constraint loss constrains the centroid of the convolution kernel to be in the center of space, thus ensuring that the pseudo low-resolution image and the high-resolution image are aligned.
[0188] The system of the present invention also includes other modules such as introducing slice Wasserstein distance training.
[0189] Loss functions of other modules Defined as:
[0190]
[0191] in represents the final output of the restoration module, t represents the target telephoto image, φ represents the pre-trained VGG-19 network, represents the slice Wasserstein distance, λ SW =0.08.
[0192] In the system of the present invention, the training network adopts the Adam optimization algorithm to perform end-to-end training on the image degradation module and other modules.
[0193] For the super-resolution of low-resolution images, compared with the existing reference-based image super-resolution methods, this embodiment can directly use the long-focus image in the real scene as a reference to perform super-resolution on the short-focus image, achieving good super-resolution performance and significantly improving the visual effect of the results.
[0194] Combination Figures 8 to 31 As shown, the present invention can obtain better super-resolution results. The system described in this embodiment can be deployed on different imaging devices, which is helpful to obtain images with higher resolution.
[0195] Although the present invention is described herein with reference to specific embodiments, it should be understood that these embodiments are merely examples of the principles and applications of the present invention. It should therefore be understood that many modifications may be made to the exemplary embodiments and that other arrangements may be devised without departing from the spirit and scope of the present invention as defined by the appended claims. It should be understood that the various dependent claims and features described herein may be combined in a manner different from that described in the original claims. It should also be understood that the features described in conjunction with a single embodiment may be used in other described embodiments.
Claims
1. A super-resolution self-supervised learning system based on real-world dual-focal length images, characterized by Includes image super-resolution network and loss function calculation module; The image super-resolution network includes: The image degradation module (100) is used to c Degrade the high-resolution target image t to obtain a pseudo low-resolution image And pseudo low-resolution images Align with high-resolution target image t; The low-resolution image alignment module (200) estimates the low-resolution image s through an offset estimator c With pseudo low-resolution images The offset between the low-resolution image s and the low-resolution image s according to the offset c Deform the low-resolution image s c Pseudo low resolution image Alignment, obtaining the deformed low-resolution image; The reference image alignment module (300) calculates the reference image t c With pseudo low-resolution images The similarity between them is calculated based on the reference image t c Deform the reference image t c Pseudo low resolution image Alignment, obtain the deformed reference image; The restoration module (400) is used to restore the image according to the reference image t c Processing the deformed low-resolution image and the deformed reference image to obtain a final super-resolution image; The final super-resolution image is used as the output of the image super-resolution network; A loss function calculation module is used to calculate the loss function according to the final super-resolution image and the high-resolution target image t; and learn the parameters of the image degradation module (100) in the image super-resolution network through the loss function; The acquired telephoto image is used as the high-resolution target image t, the short-focus image corresponding to the center of the telephoto image is acquired, and the central area of the short-focus image is cropped as the low-resolution image s c , the central area of the corresponding cropped telephoto image is used as the reference image t c .
2. The super-resolution self-supervised learning system based on real-world dual-focal length images according to claim 1, characterized in that: The image degradation module (100) comprises a guide vector generator and a degradation backbone network, wherein the guide vector generator comprises M convolutional layers and corresponding activation functions; the degradation backbone network comprises N convolutional layers and corresponding activation functions; and M and N are both positive integers.
3. The super-resolution self-supervised learning system based on real-world dual-focal length images according to claim 2, characterized in that: The M convolutional layers include convolutional layer M1 to convolutional layer M5; The convolutional layer M1 is used to concatenate the low-resolution image s c The high-resolution features obtained from the high-resolution target image t are sequentially subjected to a first convolution operation and a first activation operation; The convolution layer M2 is used to perform a second convolution operation and a second activation operation on the output of the convolution layer M1 in sequence; The convolution layer M3 is used to perform a third convolution operation on the output of the convolution layer M2; Convolutional layer M4 is used to perform global average pooling operation on the output of convolutional layer M3; The convolution layer M5 is used to perform a fourth convolution operation on the output of the convolution layer M4 to obtain a guided feature vector; The first convolution operation is 32 7×7 convolution operations with a stride of 2; The second and third convolution operations are both 32 3×3 convolution operations with a stride of 1; The fourth convolution operation is 64 1×1 convolution operations with a stride of 1; The first activation operation and the second activation operation both use the ReLU function; The N convolutional layers include convolutional layer N1 to convolutional layer N7; The convolution layer N1 is used to perform inverse pixel reconstruction on the high-resolution target image t to obtain high-resolution features as output; The convolution layer N2 is used to perform the first convolution operation and the first activation operation on the output of the convolution layer N1 in sequence, and then multiply the output with the guided feature vector; The convolution layer N3 is used to perform a second convolution operation and a second activation operation on the output of the convolution layer N2 in sequence; The convolution layer N4 is used to perform a third convolution operation and a third activation operation on the output of the convolution layer N3 in sequence; The convolution layer N5 is used to perform a fourth convolution operation and a fourth activation operation on the output of the convolution layer N4 in sequence; The convolution layer N6 is used to perform the fifth convolution operation and the fifth activation operation on the output of the convolution layer N5 in sequence; Convolutional layer N7 is used to perform the sixth convolution operation on the output of convolutional layer N6 to obtain a pseudo low-resolution image. The first convolution operation is 64 1×1 convolution operations with a stride of 1; The second convolution operation is 64 7×7 convolution operations with a stride of 1 and a padding of 3; The third convolution operation is 64 5×5 convolution operations with a stride of 1 and a padding of 2; The fourth convolution operation is 64 3×3 convolution operations with a stride of 1 and a padding of 1; The fifth convolution operation is 64 1×1 convolution operations with a stride of 1; The sixth convolution operation is three 1×1 convolution operations with a stride of 1; The first to fifth activation operations all use the ReLU function.
4. The super-resolution self-supervised learning system based on real-world dual-focal length images according to claim 3, characterized in that: The low-resolution image alignment module (200) comprises two convolution units and three adaptive spatial transformation networks; Low resolution images c Transformed from 3 channels to 64 channels through a convolution unit; pseudo low-resolution image After another convolution unit, it is transformed from 3 channels to 64 channels; The outputs of the two convolutional units are processed by a first adaptive spatial transformation network to obtain a first deformed low-resolution image; The first deformed low-resolution image and another convolution output are processed by a second adaptive spatial transformation network to obtain a second deformed low-resolution image; The second deformed low-resolution image and the output of another convolution are processed by a third adaptive spatial transformation network to obtain a final deformed low-resolution image.
5. The super-resolution self-supervised learning system based on real-world dual-focal length images according to claim 4, characterized in that: The three adaptive spatial transformation networks process input data in the same way; For the first adaptive spatial transformer network: The outputs of the two convolution units are connected together and passed through the convolution layer groups G1 and G2, and then through the convolution layer G3 to obtain the first reflection transformation parameter A, and at the same time through the convolution layer G4 to obtain the second reflection transformation parameter b; The low-resolution image s c With pseudo low-resolution images The offset P between them is: P=AG+b, Where G is the coordinate network; The offset P is convolved with the deformable group to obtain the first deformed low-resolution image y(q): Where k is the number of columns in the coordinate network G; p k represents the kth column of P, w k represents the kth column of convolution kernel weights, and x represents the low-resolution image s c Features output after a convolution unit; q represents the low-resolution image s c The pixel position coordinates.
6. The super-resolution self-supervised learning system based on real-world dual-focal length images according to claim 5, characterized in that: The operations of convolutional layers G1 to G5 include: The convolution layer G1 is used to perform the first convolution operation and the first activation operation on the outputs of the two convolution units connected together in sequence; The convolution layer G2 is used to perform a second convolution operation and a second activation operation on the output of the convolution layer G1 in sequence; The convolution layer G3 is used to perform a third convolution operation on the output of the convolution layer G2; The convolution layer G4 is used to perform a fourth convolution operation on the output of the convolution layer G2; Convolutional layer G5 performs the fifth convolution operation on the offset P as a deformable group convolution; The first convolution operation and the second convolution operation are 64 3×3 convolution operations with a stride of 1, a padding of 1, and a group number of 64; The first activation operation and the second activation operation are LeakyReLU functions; The third convolution operation is 4 5×5 convolution operations with a stride of 1 and a padding of 2; The fourth convolution operation is 2 convolution operations of 5×5 with a stride of 1 and a padding of 2; The fifth convolution operation is 64 3×3 convolution operations with a stride of 1, a padding of 1, and a group number of 64.
7. The super-resolution self-supervised learning system based on real-world dual-focal length images according to claim 6, characterized in that: The reference image alignment module (300) extracts the reference image t through a feature extractor having 5 layers of convolution. c With pseudo low-resolution images The extracted features are used to calculate the reference image t c With pseudo low-resolution images The similarity between them is obtained to obtain a similarity index map, and the reference image t is c To transform; The 5 convolutional layers of the feature extractor include convolutional layers D1 to D5. The convolutional layer D1 is used to transform the reference image t c or pseudo low-resolution images Perform the first convolution operation and the first activation operation in sequence; The convolution layer D2 is used to perform a second convolution operation and a second activation operation on the output of the convolution layer D1 in sequence; The convolution layer D3 is used to perform a third convolution operation and a third activation operation on the output of the convolution layer D2 in sequence; The convolution layer D4 is used to perform a fourth convolution operation and a fourth activation operation on the output of the convolution layer D3 in sequence; The convolution layer D5 is used to perform the fifth convolution operation on the output of the convolution layer D4 to obtain the reference image t c or pseudo low-resolution images Features; The first convolution operation is 64 3×3 convolution operations with a stride of 1 and a padding of 1; The second convolution operation is 64 3×3 convolution operations with a stride of 1 and a padding of 1; The third convolution operation is 128 3×3 convolution operations with a stride of 1 and a padding of 1; The fourth convolution operation is 128 3×3 convolution operations with a stride of 1 and a padding of 1; The fifth convolution operation is 256 3×3 convolution operations with a stride of 1 and a padding of 1. The first to fourth activation operations all use the ReLU function.
8. The super-resolution self-supervised learning system based on real-world dual-focal length images according to claim 7, characterized in that: The restoration module (400) includes a restoration backbone network and an encoder; Restoration backbone network for low-resolution image s c The features obtained after center cropping and bilinear interpolation upsampling are similar to the reference image t c After the connection, convolution is performed to obtain the features after convolution; The deformed low-resolution image is connected with the deformed reference image and then convolved to obtain the convolved secondary features; The deformed low-resolution image is concatenated with the deformed reference image and then concatenated with the convolution feature as the input feature of the encoder. The output of the encoder and the secondary features after convolution are then processed by the residual block of the restoration backbone network to obtain the final super-resolution image; The encoder network includes convolutional layers E1 to E7; The convolution layer E1 performs the first convolution operation and the first activation operation on the input features; The convolution layer E2 is used to perform a second convolution operation and a second activation operation on the output of the convolution layer E1 in sequence; The convolution layer E3 is used to perform a third convolution operation and a third activation operation on the output of the convolution layer E2 in sequence; The convolution layer E4 is used to perform a fourth convolution operation and a fourth activation operation on the output of the convolution layer E3 in sequence; The convolution layer E5 is used to perform a fifth convolution operation and a fifth activation operation on the output of the convolution layer E4 in sequence; Convolutional layer E6 is used to perform global average pooling operation on the output of convolutional layer E5; The convolution layer E7 is used to perform a sixth convolution operation on the output of the convolution layer E6; The first to fourth convolution operations are all 64 3×3 convolution operations with a stride of 2 and a padding of 1; The fifth and seventh convolution operations are both 64 1×1 convolution operations with a stride of 1 and a padding of 1; The first to fifth activation operations all use the ReLU function; The number of residual blocks is 16, and the 16 residual blocks are connected in a stacked form.
9. The super-resolution self-supervised learning system based on real-world dual-focal length images according to claim 8, characterized in that: The loss function for: Where n represents noise, λ c is a constant, λ c =100, L is the number of convolutional layers, represents the centroid constraint loss function, W l Represents the weight of the lth layer of convolution in the degenerate backbone network.
10. The super-resolution self-supervised learning system based on real-world dual-focal length images according to claim 9, characterized in that: Centroid Constrained Loss Function for: Where k1 is an odd number, indicating the size of the convolution kernel, and i represents W l The horizontal coordinate of the corresponding position, j represents W l The corresponding position ordinate, W l The value corresponding to position (i, j).
