End-to-end multi-frame super-resolution method and system based on correlation dynamic filtering
The end-to-end multi-frame super-resolution method through correlation dynamic filtering solves the problems of computational complexity and poor performance caused by the dependence on optical flow field information in the existing technology, and achieves efficient multi-frame image alignment and super-resolution generation. .
Patent Information
- Application Number
- CN202210699194.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-06-20
- Publication Date
- 2024-09-03
- Estimated Expiration
- 2042-06-20
AI Technical Summary
Existing multi-frame super-resolution algorithms rely on optical flow field information for spatial alignment, resulting in high computational complexity and poor super-resolution effects, and the pre-trained optical flow estimation network cannot cooperate well with other network modules.
An end-to-end multi-frame super-resolution method based on correlation dynamic filtering is used to construct a feature extractor, filter and decoder through a convolutional neural network, calculate the feature correlation between each pixel point and neighboring points, and generate a filter kernel. Dynamically filter and adjust network weights during end-to-end training.
It reduces the amount of calculation, reduces resource consumption, improves the accuracy and precision of super-resolution images, and achieves stronger real-time performance and network module coordination.
Smart Images

Figure CN114972038B
Abstract
Description
Background Art
[0002] Multi-frame image super-resolution aims to recover the high-resolution image corresponding to the target frame from a low-resolution image containing one target frame and multiple supporting frames. Typical applications include video super-resolution and burst super-resolution. Support frames and target frames are mostly images taken continuously in a short period of time, so their contents are basically the same, but there are slight differences. These inconsistent contents make it possible for the supporting frames to provide additional information for the recovery of the target frame, achieving better super-resolution effects. In order to better utilize the additional information in the supporting frames, the multi-frame image super-resolution algorithm needs to spatially align the supporting frames with the target frames and then fuse them.
[0003] Most of the existing multi-frame super-resolution algorithms use an optical flow-based spatial alignment method, that is, first use an independent pre-trained optical flow estimation network to calculate the optical flow field from the support frame to the target frame, and then align the support frame with the target frame based on the obtained optical flow field. This method has two main problems: 1) The independent optical flow estimation network cannot share intermediate features with other parts of the algorithm, which may introduce redundant calculations and increase the complexity of the algorithm; 2) The pre-trained optical flow estimation network cannot adjust the network weights during the training process of the multi-frame super-resolution algorithm, and its estimation results may not work well with other modules in the network, affecting the final effect. Summary of the invention
[0004] In order to solve the above-mentioned problems in the prior art, namely, the existing multi-frame super-resolution relies on optical flow field information to perform spatial alignment of multi-frame images, the calculation is complex, and the super-resolution effect does not meet the expected problem, the present invention provides an end-to-end multi-frame super-resolution method based on correlation dynamic filtering, the multi-frame super-resolution method includes:
[0005] Step S10, constructing a feature extractor and a decoder based on a convolutional neural network, respectively, and constructing a filter based on a neural network with multiple convolutional layers, wherein the feature extractor, the filter and the decoder constitute a super-resolution generation model;
[0006] Step S20, extracting features of the target frame and each supporting frame in the training multi-frame sequence image by the feature extractor, and calculating the correlation between the features of each pixel point in the target frame and the p×p neighboring pixels of the corresponding pixel point in each supporting frame, to obtain a correlation matrix between the features of the target frame and each supporting frame;
[0007] Step S30, based on the correlation rectangle, calculating the filter kernel corresponding to the feature of each supporting frame through the filter, and dynamically filtering the feature of the corresponding supporting frame through the filter kernel to obtain the feature of the supporting frame after dynamic filtering;
[0008] Step S40, fusing the features of the target frame with the features of each of the dynamically filtered supporting frames through the decoder, and calculating the loss value between the super-resolution image obtained by fusion and the true label;
[0009] Step S50: if the loss value is greater than the set threshold, the model weight is adjusted by the back propagation algorithm, and the process jumps to step S20 to perform iterative training of the super-resolution generation model until the set training end condition is reached, thereby obtaining a trained super-resolution generation model;
[0010] Step S60, generating a corresponding super-resolution image based on the acquired multi-frame sequence image to be processed by using the trained super-resolution generation model.
[0011] In some preferred embodiments, the super-resolution model is trained by synchronously adjusting the network weights of the feature extractor, the filter, and the decoder through end-to-end supervised training.
[0012] In some preferred embodiments, the loss function of the super-resolution generation model in training is:
[0013] L=|yy l |
[0014] Among them, y represents the super-resolution image generated by the super-resolution generation model, y l Represents the true label corresponding to the super-resolution image y.
[0015] In some preferred embodiments, in step S20, the feature extractor is used to extract the features of the target frame and each supporting frame in the training multi-frame sequence image respectively, and the method is:
[0016] f i =φ(x i ) i=0,1,2,...,N
[0017] When i=0, x 0 is the target frame in the multi-frame sequence image, f 0 For x 0 When i = 1, 2, ..., N, x i is the supporting frame in the multi-frame sequence image, f i For x i features; N is the number of supporting frames in the multi-frame sequence image, and φ is the mapping function of the feature extractor.
[0018] In some preferred embodiments, in step S20, the correlation between the features of each pixel in the target frame and the p×p pixels in the neighborhood of the corresponding pixel in each supporting frame is calculated by:
[0019] ci (m,n)=[f 0 (m,n)f i T (mp / 2, np / 2), f 0 (m,n)f i T (mp / 2, np / 2+1), f 0 (m,n)f i T (mp / 2+1, np / 2+1), ..., f 0 (m,n)f i T (m+p / 2, n+p / 2)]
[0020] Among them, c i (m, n) represents the target frame x 0 The pixel x in row m and column n 0 The characteristic f of (m, n) 0 (m, n) and the supporting frame x i The corresponding pixel x i The characteristic f of (m, n) i The correlation between (m, n), T represents the matrix transpose.
[0021] In some preferred embodiments, in step S30, the filter kernel corresponding to the feature of each supporting frame is calculated by the filter, and the method is:
[0022] k m,n =ψ(c i (m, n)
[0023] Among them, k m,n f i (m, n) corresponds to the filter kernel, and ψ is the mapping function of the filter.
[0024] In some preferred embodiments, the feature of the supporting frame after dynamic filtering is expressed as:
[0025]
[0026] in, f i The filtering result of (m, n) is Support frame x i The characteristic f i The filtering result.
[0027] In some preferred embodiments, the super-resolution image obtained by fusion is expressed as:
[0028]
[0029] Among them, f 0 is the target frame x in the original multi-frame sequence image 0 Features, is to transform the support frame x in the i-th original multi-frame sequence image i The characteristic f i The feature of the supporting frame after dynamic filtering, ∈ is the mapping function of the decoder.
[0030] Another aspect of the present invention provides an end-to-end multi-frame super-resolution system based on correlation dynamic filtering, the multi-frame super-resolution system comprising:
[0031] A model construction module is configured to construct a feature extractor and a decoder based on a convolutional neural network, and to construct a filter based on a neural network with multiple convolutional layers, wherein the feature extractor, the filter and the decoder constitute a super-resolution generation model;
[0032] A feature extraction and correlation calculation module is configured to extract the features of the target frame and each supporting frame in the training multi-frame sequence image respectively through the feature extractor, and respectively calculate the correlation between the features of each pixel point in the target frame and the p×p neighboring pixels of the corresponding pixel point in each supporting frame, to obtain a correlation matrix between the features of the target frame and each supporting frame;
[0033] a dynamic filtering module, configured to calculate a filter kernel corresponding to the feature of each supporting frame through the filter based on the correlation rectangle, and dynamically filter the feature of the corresponding supporting frame through the filter kernel to obtain the feature of the supporting frame after dynamic filtering;
[0034] A fusion and loss calculation module, configured to fuse the features of the target frame with the features of each of the dynamically filtered supporting frames through the decoder, and calculate the loss value between the super-resolution image obtained by fusion and the true label;
[0035] The convergence judgment and iterative training module is configured to adjust the model weight through the back propagation algorithm if the loss value is greater than the set threshold, and jump to the feature extraction module to perform iterative training of the super-resolution generation model until the set training end condition is reached to obtain a trained super-resolution generation model;
[0036] The super-resolution image generation module is configured to generate a corresponding super-resolution image based on the acquired multi-frame sequence images to be processed through a trained super-resolution generation model.
[0037] Beneficial effects of the present invention:
[0038] (1) The end-to-end multi-frame super-resolution method based on correlation dynamic filtering of the present invention can spatially align multiple frame images without relying on optical flow field information. Instead, the filter learns to generate a suitable filter kernel for each pixel of the supporting frame during training. During the dynamic filtering process, the supporting frame is dynamically filtered by the corresponding filter kernel to align the supporting frame with the target frame. The number of parameters is small, which greatly reduces the amount of calculation, reduces resource consumption, and has stronger real-time performance.
[0039] (2) The present invention provides an end-to-end multi-frame super-resolution method based on correlation dynamic filtering. The network weights of the feature extractor, filter and decoder in the model are synchronously adjusted in end-to-end supervised training. The networks have a high degree of coordination, and the super-resolution image finally generated has high accuracy and precision. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] Other features, objects and advantages of the present application will become more apparent by reading the detailed description of non-limiting embodiments made with reference to the following drawings:
[0041] Figure 1 It is a flow chart of an end-to-end multi-frame super-resolution method based on correlation dynamic filtering of the present invention;
[0042] Figure 2 It is a schematic diagram of a spatial alignment process based on dynamic filtering in an embodiment of an end-to-end multi-frame super-resolution method based on correlation dynamic filtering of the present invention. DETAILED DESCRIPTION
[0043] The present application will be further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are only used to explain the relevant invention, rather than to limit the invention. It is also necessary to explain that, for ease of description, only the parts related to the relevant invention are shown in the accompanying drawings.
[0044] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.
[0045] The present invention provides an end-to-end multi-frame super-resolution method based on correlation dynamic filtering. In order to overcome the two problems that most existing multi-frame super-resolution algorithms use methods based on optical flow spatial alignment, the end-to-end multi-frame super-resolution method based on correlation dynamic filtering of the present invention adopts an adaptive spatial alignment method based on dynamic filtering, which can adjust network weights end-to-end without relying on optical flow field information, and adaptively align support frames with target frames. Compared with previous methods, the present invention gets rid of the optical flow estimation network and can achieve better results with fewer parameters and calculations.
[0046] The present invention provides an end-to-end multi-frame super-resolution method based on correlation dynamic filtering, the multi-frame super-resolution method comprising:
[0047] Step S10, constructing a feature extractor and a decoder based on a convolutional neural network, respectively, and constructing a filter based on a neural network with multiple convolutional layers, wherein the feature extractor, the filter and the decoder constitute a super-resolution generation model;
[0048] Step S20, extracting features of the target frame and each supporting frame in the training multi-frame sequence image by the feature extractor, and calculating the correlation between the features of each pixel point in the target frame and the p×p neighboring pixels of the corresponding pixel point in each supporting frame, to obtain a correlation matrix between the features of the target frame and each supporting frame;
[0049] Step S30, based on the correlation rectangle, calculating the filter kernel corresponding to the feature of each supporting frame through the filter, and dynamically filtering the feature of the corresponding supporting frame through the filter kernel to obtain the feature of the supporting frame after dynamic filtering;
[0050] Step S40, fusing the features of the target frame with the features of each of the dynamically filtered supporting frames through the decoder, and calculating the loss value between the super-resolution image obtained by fusion and the true label;
[0051] Step S50: if the loss value is greater than the set threshold, the model weight is adjusted by the back propagation algorithm, and the process jumps to step S20 to perform iterative training of the super-resolution generation model until the set training end condition is reached, thereby obtaining a trained super-resolution generation model;
[0052] Step S60, generating a corresponding super-resolution image based on the acquired multi-frame sequence image to be processed by using the trained super-resolution generation model.
[0053] In order to more clearly illustrate the end-to-end multi-frame super-resolution method based on correlation dynamic filtering of the present invention, Figure 1 Each step in the embodiment of the present invention is described in detail.
[0054] The end-to-end multi-frame super-resolution method based on correlation dynamic filtering of the first embodiment of the present invention includes steps S10 to S60, and each step is described in detail as follows:
[0055] Step S10, constructing a feature extractor and a decoder based on a convolutional neural network, and constructing a filter based on a neural network with multiple convolutional layers. The feature extractor, the filter and the decoder constitute a super-resolution generation model.
[0056] The feature extractor, also known as the feature encoder, contains multiple convolutional layers, which are used to extract features for different low-resolution image frames.
[0057] The decoder also contains multiple convolutional layers, which are used to fuse the features of multiple frames of images after dynamic filtering, amplification and alignment to obtain the final super-resolution image.
[0058] Step S20, the feature extractor is used to extract the features of the target frame and each supporting frame in the training multi-frame sequence image, and the correlation between the features of each pixel point in the target frame and the p×p neighboring pixels of the corresponding pixel point in each supporting frame is calculated to obtain a correlation matrix between the features of the target frame and each supporting frame.
[0059] The p×p neighborhood pixels of the corresponding pixel point in each supporting frame described here are a total of p×p pixels including the corresponding pixel point in the supporting frame, that is, the p×p neighborhood pixels centered on the pixel point in the supporting frame corresponding to the pixel point in the target frame.
[0060] The calculation of the correlation may be performed by selecting an existing calculation method as required. In one embodiment of the present invention, the correlation is characterized by the inner product between the feature vectors.
[0061] The feature extractor is used to extract the features of the target frame and each supporting frame in the training multi-frame sequence image, respectively, and the method is shown in formula (1):
[0062] f i =φ(x i ) i=0,1,2,...,N (1)
[0063] When i=0, x 0 is the target frame in the multi-frame sequence image, f 0 For x 0 When i = 1, 2, ..., N, x i is the supporting frame in the multi-frame sequence image, f i For x i features; N is the number of supporting frames in the multi-frame sequence image, and φ is the mapping function of the feature extractor.
[0064] The present invention adopts multiple residual convolution modules as feature extractors, and accordingly, also uses mapping functions of the multiple residual convolution modules as mapping functions of the feature extractors.
[0065] like Figure 2 FIG. 1 is a schematic diagram of a spatial alignment process based on dynamic filtering in an embodiment of an end-to-end multi-frame super-resolution method based on correlation dynamic filtering of the present invention. The x value of each pixel point on the target frame is calculated based on the extracted features of the target frame and at least one supporting frame.0 The characteristic f of (m, n) 0 (m, n) and the supporting frame x i The corresponding point x i Feature correlation of p×p pixels around (m, n) (m+Δm, n+Δn), and define -p / 2≤Δm, Δn≤p / 2, calculate the correlation between the features of each pixel in the target frame and the p×p neighboring pixels of the corresponding pixel in each supporting frame, and the method is shown in formula (2):
[0066] c i (m,n)=[f 0 (m,n)f i T (mp / 2, np / 2), f 0 (m,n)f i T (mp / 2, np / 2+1), f 0 (m,n)f i T (mp / 2+1, np / 2+1), ..., f 0 (m,n)f i T (m+p / 2, n+p / 2)] (2)
[0067] Among them, c i (m, n) represents the target frame x 0 The pixel x in row m and column n 0 The characteristic f of (m, n) 0 (m, n) and the supporting frame x i The corresponding pixel x i The characteristic f of (m, n) i The correlation between (m, n), T represents the matrix transpose.
[0068] In this way, the target frame x can be calculated 0 The characteristic f 0 and support frame x i The characteristic f i The correlation matrix c i .
[0069] Step S30: Based on the correlation rectangle, a filter kernel corresponding to the feature of each supporting frame is calculated by the filter, and the feature of the corresponding supporting frame is dynamically filtered by the filter kernel to obtain the feature of the supporting frame after dynamic filtering.
[0070] The obtained correlation matrix c i Input a neural network module containing multiple convolutional layers, that is, ci Input filter, supporting frame x i The characteristic f i The filter kernel required for dynamic filtering is calculated for each pixel point on , as shown in formula (3):
[0071] k m,n =ψ(c i (m,n)) (3)
[0072] Among them, k m,n f i (m, n) corresponds to the filter kernel, and ψ is the mapping function of the filter.
[0073] The present invention adopts a convolutional neural network as a filter, and accordingly, also uses a mapping function of the convolutional neural network as a mapping function of the filter.
[0074] According to the obtained filter kernel, the support frame x i The characteristic f i Perform dynamic filtering. Define the support frame x after filtering i The characteristics are Its expression is shown in formula (4):
[0075]
[0076] in, f i The filtering result of (m, n) is Support frame x i The characteristic f i The filtering result.
[0077] Step S40, fusing the features of the target frame with the features of each supporting frame after the dynamic filtering through the decoder, and calculating the loss value between the super-resolution image obtained by fusion and the true label.
[0078] The decoder fuses the features of the target frame with the features of each supporting frame after dynamic filtering to obtain a super-resolution image, which is expressed as shown in formula (5):
[0079]
[0080] Among them, f 0 is the target frame x in the original multi-frame sequence image 0 Features, is to transform the support frame x in the i-th original multi-frame sequence image i The characteristic f i The feature of the supporting frame after dynamic filtering, ∈ is the mapping function of the decoder.
[0081] The present invention adopts a convolutional neural network as a decoder, and accordingly, also uses a mapping function of the convolutional neural network as a mapping function of the decoder.
[0082] Step S50, if the loss value is greater than the set threshold, the model weight is adjusted through the back propagation algorithm, and the process jumps to step S20 to perform iterative training of the super-resolution generation model until the set training end condition is reached to obtain a trained super-resolution generation model.
[0083] The super-resolution model, in which the network weights of the feature extractor, the filter and the decoder are adjusted synchronously through end-to-end supervised training, and the loss function in the supervised training of the model is shown in formula (6):
[0084] L=|yy l | (6)
[0085] Among them, y represents the super-resolution image generated by the super-resolution generation model, y l Represents the true label corresponding to the super-resolved image y.
[0086] Step S60, generating a corresponding super-resolution image based on the acquired multi-frame sequence image to be processed by using the trained super-resolution generation model.
[0087] After the weights of each network in the model are fully adjusted, the test image frame is input into the model (that is, in actual application, there is no labeled data), and the model will output the final super-resolution image.
[0088] In a practical application of the present invention, an existing image data set is used as an example. The data set contains 5300 image sequences, which are divided into 5000 training sequences and 300 test sequences. Each training sequence includes 14 images with a resolution of 256×256 and their corresponding 1024×1024 high-resolution image annotations, and each test sequence only contains 14 256×256 low-resolution images.
[0089] First, a feature encoder (i.e., feature extractor) is constructed using 8 residual convolution modules, where the convolution kernel size of the residual convolution module is 3×3 and the number of channels is 64; a filter for filter kernel prediction is constructed using 4 residual convolution modules, where the convolution kernel size of the residual convolution module is 3×3 and the number of channels is 64; a decoder is constructed using 48 residual convolution modules and a transposed convolution layer, where the convolution kernel size of the residual convolution module is 3×3 and the number of channels is 64, and the convolution kernel size of the transposed convolution layer is 8×8 and the step size is 4.
[0090] Then, the feature encoder is used to extract the features of 14 frames of images in a training sequence (including a target frame and 13 supporting frames). According to the features of the target frame and the supporting frame, the correlation (correlation value) between the features of each pixel of the target frame and the features of the 11×11 pixels around the corresponding pixel on the supporting frame is calculated, thereby obtaining the correlation matrix between the features of the target frame and the features of each supporting frame.
[0091] Then, the obtained correlation matrix is input into the filter to generate an 11×11 filter kernel for the features of each pixel on the supporting frame, and the features of the corresponding supporting frame are dynamically filtered based on the generated 11×11 filter kernel. The supporting frame is aligned with the target frame to obtain the features of the supporting frame after dynamic filtering.
[0092] Finally, the features of the dynamically filtered supporting frame and the features of the original target frame are fused through the decoder to generate a super-resolution image with a resolution of 1024×1024.
[0093] At this point, the model has not been trained to convergence, and the generated resolution is 1024×1024 super-resolution images, which are quite different from the 1024×1024 high-resolution image annotations of the original training sequence.
[0094] The loss between the two is calculated, and the back-propagation algorithm is used to train the feature extractor, filter, and decoder of the entire super-resolution generation model end-to-end until the model converges.
[0095] By inputting multiple frames of images from the test set into the trained network, a super-resolution image of the target frame can be obtained, that is, the model can recover a 1024×1024 high-resolution image of the target frame from a given test sequence.
[0096] Although the various steps in the above embodiment are described in the above-mentioned order, those skilled in the art can understand that in order to achieve the effect of this embodiment, different steps do not have to be executed in such an order. They can be executed simultaneously (in parallel) or in a reverse order. These simple changes are within the scope of protection of the present invention.
[0097] The end-to-end multi-frame super-resolution system based on correlation dynamic filtering according to the second embodiment of the present invention comprises:
[0098] A model construction module is configured to construct a feature extractor and a decoder based on a convolutional neural network, and to construct a filter based on a neural network with multiple convolutional layers, wherein the feature extractor, the filter and the decoder constitute a super-resolution generation model;
[0099] A feature extraction and correlation calculation module is configured to extract the features of the target frame and each supporting frame in the training multi-frame sequence image respectively through the feature extractor, and respectively calculate the correlation between the features of each pixel point in the target frame and the p×p neighboring pixels of the corresponding pixel point in each supporting frame, to obtain a correlation matrix between the features of the target frame and each supporting frame;
[0100] a dynamic filtering module, configured to calculate a filter kernel corresponding to the feature of each supporting frame through the filter based on the correlation rectangle, and dynamically filter the feature of the corresponding supporting frame through the filter kernel to obtain the feature of the supporting frame after dynamic filtering;
[0101] A fusion and loss calculation module, configured to fuse the features of the target frame with the features of each of the dynamically filtered supporting frames through the decoder, and calculate the loss value between the super-resolution image obtained by fusion and the true label;
[0102] The convergence judgment and iterative training module is configured to adjust the model weight through the back propagation algorithm if the loss value is greater than the set threshold, and jump to the feature extraction module to perform iterative training of the super-resolution generation model until the set training end condition is reached to obtain a trained super-resolution generation model;
[0103] The super-resolution image generation module is configured to generate a corresponding super-resolution image based on the acquired multi-frame sequence images to be processed through a trained super-resolution generation model.
[0104] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process and related instructions of the system described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.
[0105] It should be noted that the end-to-end multi-frame super-resolution system based on correlation dynamic filtering provided in the above embodiment is only illustrated by the division of the above functional modules. In practical applications, the above functions can be assigned to different functional modules as needed, that is, the modules or steps in the embodiments of the present invention can be decomposed or combined. For example, the modules in the above embodiments can be combined into one module, or further divided into multiple sub-modules to complete all or part of the functions described above. The names of the modules and steps involved in the embodiments of the present invention are only for distinguishing the modules or steps, and are not regarded as improper limitations of the present invention.
[0106] An electronic device according to a third embodiment of the present invention includes:
[0107] at least one processor; and
[0108] a memory communicatively connected to at least one of the processors; wherein,
[0109] The memory stores instructions that can be executed by the processor, and the instructions are used to be executed by the processor to implement the above-mentioned end-to-end multi-frame super-resolution method based on correlation dynamic filtering.
[0110] A computer-readable storage medium according to a fourth embodiment of the present invention stores computer instructions, and the computer instructions are used to be executed by the computer to implement the above-mentioned end-to-end multi-frame super-resolution method based on correlation dynamic filtering.
[0111] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process and related instructions of the storage device and processing device described above can refer to the corresponding process in the aforementioned method embodiment and will not be repeated here.
[0112] Those skilled in the art should be able to appreciate that the modules and method steps of each example described in conjunction with the embodiments disclosed herein can be implemented with electronic hardware, computer software or a combination of the two, and the programs corresponding to the software modules and method steps can be placed in random access memory (RAM), internal memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disks, removable disks, CD-ROMs, or any other form of storage medium known in the technical field. In order to clearly illustrate the interchangeability of electronic hardware and software, the composition and steps of each example have been generally described in the above description according to the function. Whether these functions are performed in electronic hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the present invention.
[0113] The terms "first", "second", etc. are used to distinguish similar objects rather than to describe or indicate a particular order or sequence.
[0114] The term "comprise" or any other similar term is intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus / device that includes a list of elements includes not only those elements but also other elements not expressly listed, or also includes elements inherent to such process, method, article, or apparatus / device.
[0115] So far, the technical solutions of the present invention have been described in conjunction with the preferred embodiments shown in the accompanying drawings. However, it is easy for those skilled in the art to understand that the protection scope of the present invention is obviously not limited to these specific embodiments. Without departing from the principle of the present invention, those skilled in the art can make equivalent changes or substitutions to the relevant technical features, and the technical solutions after these changes or substitutions will fall within the protection scope of the present invention.
Claims
1. An end-to-end multi-frame super-resolution method based on correlation dynamic filtering, It is characterized in that The multi-frame super-resolution method comprises: Step S10, constructing a feature extractor and a decoder based on a convolutional neural network, respectively, and constructing a filter based on a neural network with multiple convolutional layers, wherein the feature extractor, the filter and the decoder constitute a super-resolution generation model; Step S20, extracting features of the target frame and each supporting frame in the training multi-frame sequence image by the feature extractor, and calculating the correlation between the features of each pixel point in the target frame and the p×p neighboring pixels of the corresponding pixel point in each supporting frame, to obtain a correlation matrix between the features of the target frame and each supporting frame; Step S30, based on the correlation rectangle, calculating the filter kernel corresponding to the feature of each supporting frame through the filter, and dynamically filtering the feature of the corresponding supporting frame through the filter kernel to obtain the feature of the supporting frame after dynamic filtering; Step S40, fusing the features of the target frame with the features of each of the dynamically filtered supporting frames through the decoder, and calculating the loss value between the super-resolution image obtained by fusion and the true label; Step S50: if the loss value is greater than the set threshold, the model weight is adjusted by the back propagation algorithm, and the process jumps to step S20 to perform iterative training of the super-resolution generation model until the set training end condition is reached, thereby obtaining a trained super-resolution generation model; Step S60, generating a corresponding super-resolution image based on the acquired multi-frame sequence image to be processed by using the trained super-resolution generation model.
2. The end-to-end multi-frame super-resolution method based on correlation dynamic filtering according to claim 1, It is characterized in that The super-resolution model synchronously adjusts the network weights of the feature extractor, the filter, and the decoder through end-to-end supervised training during its training.
3. The end-to-end multi-frame super-resolution method based on correlation dynamic filtering according to claim 2, It is characterized in that The loss function of the super-resolution generation model in training is: L=|yy l | Among them, y represents the super-resolution image generated by the super-resolution generation model, y l Represents the true label corresponding to the super-resolution image y.
4. The end-to-end multi-frame super-resolution method based on correlation dynamic filtering according to claim 1, It is characterized in that In step S20, the feature extractor is used to extract the features of the target frame and each supporting frame in the training multi-frame sequence image, and the method is as follows: f i =φ(x i )i=0,1,2,...,N When i=0, x 0 is the target frame in the multi-frame sequence image, f 0 For x 0 When i = 1, 2, ..., N, x i is the supporting frame in the multi-frame sequence image, f i For x i features; N is the number of supporting frames in the multi-frame sequence image, and φ is the mapping function of the feature extractor.
5. The end-to-end multi-frame super-resolution method based on correlation dynamic filtering according to claim 1, It is characterized in that In step S20, the correlation between the features of each pixel in the target frame and the p×p pixels in the neighborhood of the corresponding pixel in each supporting frame is calculated by: c i (m,n)=[f 0 (m,n)f i T (m-p / 2,n-p / 2),f 0 (m,n)f i T (m-p / 2,n-p / 2+1),f 0 (m,n)f i T (m-p / 2+1,n-p / 2+1),...,f 0 (m,n)f i T (m+p / 2,n+p / 2)] Among them, c i (m, n) represents the target frame x 0 The pixel x in row m and column n 0 The characteristic f of (m, n) 0 (m, n) and the supporting frame x i The corresponding pixel x i The characteristic f of (m, n) i The correlation between (m, n), T represents the matrix transpose.
6. The end-to-end multi-frame super-resolution method based on correlation dynamic filtering according to claim 5, It is characterized in that In step S30, the filter kernel corresponding to the feature of each supporting frame is calculated by the filter, and the method is: k m,n =ψ(c i (m, n)) Among them, k m,n f i (m, n) corresponds to the filter kernel, and ψ is the mapping function of the filter.
7. The end-to-end multi-frame super-resolution method based on correlation dynamic filtering according to claim 6, It is characterized in that The characteristics of the supporting frame after dynamic filtering are expressed as: in, f i The filtering result of (m, n) is Support frame x i The characteristic f i The filtering result.
8. The end-to-end multi-frame super-resolution method based on correlation dynamic filtering according to claim 7, It is characterized in that The super-resolution image obtained by fusion is expressed as: Among them, f 0 is the target frame x in the original multi-frame sequence image 0 Features, is to transform the support frame x in the i-th original multi-frame sequence image i The characteristic f i The feature of the supporting frame after dynamic filtering, ∈ is the mapping function of the decoder.
9. An end-to-end multi-frame super-resolution system based on correlation dynamic filtering, It is characterized in that The multi-frame super-resolution system comprises: A model construction module is configured to construct a feature extractor and a decoder based on a convolutional neural network, and to construct a filter based on a neural network with multiple convolutional layers, wherein the feature extractor, the filter and the decoder constitute a super-resolution generation model; A feature extraction and correlation calculation module is configured to extract the features of the target frame and each supporting frame in the training multi-frame sequence image respectively through the feature extractor, and respectively calculate the correlation between the features of each pixel point in the target frame and the p×p neighboring pixels of the corresponding pixel point in each supporting frame, to obtain a correlation matrix between the features of the target frame and each supporting frame; a dynamic filtering module, configured to calculate a filter kernel corresponding to the feature of each supporting frame through the filter based on the correlation rectangle, and dynamically filter the feature of the corresponding supporting frame through the filter kernel to obtain the feature of the supporting frame after dynamic filtering; A fusion and loss calculation module, configured to fuse the features of the target frame with the features of each of the dynamically filtered supporting frames through the decoder, and calculate the loss value between the super-resolution image obtained by fusion and the true label; The convergence judgment and iterative training module is configured to adjust the model weight through the back propagation algorithm if the loss value is greater than the set threshold, and jump to the feature extraction module to perform iterative training of the super-resolution generation model until the set training end condition is reached to obtain a trained super-resolution generation model; The super-resolution image generation module is configured to generate a corresponding super-resolution image based on the acquired multi-frame sequence images to be processed through a trained super-resolution generation model.
