Video super-resolution method, device, equipment, and storage medium
By using the image generation model, upsampler, spatial adaptation module and temporal alignment module in the video super-resolution method, combined with Gaussian noise, the continuity problem between video frames is solved, and the generated high-frequency resolution video has rich details and smoothness Coherence.
Patent Information
- Application Number
- CN202311818992.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-27
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2043-12-27
AI Technical Summary
Existing video super-resolution methods cannot effectively control the continuity between generated video frames, resulting in generated results that are not realistic and coherent enough.
A video super-resolution method including a trained image generation model, an upsampler, a spatial adaptation module, and a temporal alignment module is used to input the video super-resolution model through Gaussian noise to generate a high-frequency resolution video with inter-frame detail coherence.
The generated high-frequency resolution video has rich and fidelity details and smooth coherence, ensuring continuity between video frames.
Smart Images

Figure CN117830099B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of image processing technology, and in particular to a video super-resolution method, apparatus, device, and storage medium. Background Art
[0002] The video super-resolution method can generate a corresponding high-resolution video from a given low-resolution video.
[0003] Existing video super-resolution methods can be divided into three categories: methods based on traditional interpolation models, methods based on deep learning representation models, and methods based on pre-trained generative models. The first method uses interpolation methods of image signals (such as linear interpolation and bicubic interpolation) to spatially upsample each video frame to obtain a higher resolution video. The second method uses representation models in deep learning (such as recurrent neural networks) to predict the high-resolution video corresponding to the input low-resolution video by learning a large amount of low-resolution and corresponding high-resolution video data. The third method is similar to the second method in concept, but uses low-resolution video features to control the pre-trained generative model to generate a high-resolution video that conforms to the low-resolution video content. Compared with the second method, this method can enrich the details of its results.
[0004] Existing video super-resolution methods can only generate high-resolution images with roughly similar content based on low-resolution images, but cannot control the continuity between the generated video frames, making the generated results not realistic and coherent enough. Summary of the invention
[0005] In order to solve one of the above-mentioned technical defects, the present application provides a video super-resolution method, device, equipment, and storage medium.
[0006] In a first aspect of the present application, a video super-resolution method is provided, the method comprising:
[0007] Get video and Gaussian noise;
[0008] Input the video and Gaussian noise into the video super-resolution model to obtain a high-frequency resolution video output by the video super-resolution model;
[0009] The video super-resolution model includes: a trained image generation model, an upsampler, a spatial adaptation module, a temporal alignment module, and a regulator;
[0010] The temporal alignment module is used to ensure the coherence of inter-frame details of high-frequency resolution videos.
[0011] Optionally, the image generation model consists of a variational autoencoder and a denoising network;
[0012] The denoising network is used to denoise the latent variable encoding of the video with Gaussian noise added to obtain the latent variable encoding of the resolution video;
[0013] The variational autoencoder consists of a variational encoder and a variational decoder;
[0014] Variational encoder, used to compress image data into latent variable encoded data in latent space;
[0015] Variational decoder, used to restore latent variable encoded data to image data.
[0016] A spatial adaptation module and a temporal alignment module are inserted after each cascade module of the denoising network and the variational decoder;
[0017] A spatial adaptation module is used to extract features from the video in order to perform feature transformation;
[0018] The time domain alignment module is used to ensure the continuity between frames.
[0019] Optionally, a spatial adaptation module is used to use the feature maps of each frame of the input video Forecasted growth factor and bias coefficient ,in, is the frame identifier of the input video; based on and Perform an affine transformation on the feature map.
[0020] Optionally, by the formula Perform affine transformation;
[0021] in, The first Feature map of the frame, for The mean of for The standard deviation of .
[0022] Optionally, a time domain alignment module is used to divide the video features into three-dimensional sliding windows across multiple frames, and perform processing based on a self-attention mechanism within each sliding window.
[0023] Optionally, when the time domain alignment module performs self-attention mechanism processing, the following formula is used for implementation:
[0024] ;
[0025] in, is the query term extracted in the sliding window, is the key extracted in the sliding window, is the value extracted in the sliding window, is the feature channel dimension of the key, It is the feature processed by the self-attention mechanism.
[0026] Optionally, a regulator is used to perform color deviation processing on the video using the following formula:
[0027] ,
[0028] in, To balance the parameters, The video is obtained by upsampling by the upsampler. The decoded video obtained by the image generation model, This is the high-frequency resolution video after color deviation processing. is a mapping function consisting of two-dimensional convolution.
[0029] In a second aspect of the present application, a video super-resolution device is provided, the device comprising:
[0030] An acquisition module, used to acquire video and Gaussian noise;
[0031] A processing module, used for inputting the video and Gaussian noise acquired by the acquisition module into a video super-resolution model to acquire a high-frequency resolution video output by the video super-resolution model;
[0032] The video super-resolution model includes: a trained image generation model, an upsampler, a spatial adaptation module, and a temporal alignment module;
[0033] The temporal alignment module is used to ensure the coherence of inter-frame details of high-frequency resolution videos.
[0034] In a third aspect of the present application, an electronic device is provided, including:
[0035] Memory;
[0036] Processor; and
[0037] Computer programs;
[0038] The computer program is stored in the memory and is configured to be executed by the processor to implement the method as described in the first aspect above.
[0039] In a fourth aspect of the present application, a computer-readable storage medium is provided, on which a computer program is stored; the computer program is executed by a processor to implement the method described in the first aspect above.
[0040] The present application provides a video super-resolution method, apparatus, device, and storage medium, the method comprising: obtaining a video; inputting the video into a pre-trained generative model, obtaining a high-frequency resolution video output by the generative model, and the inter-frame details of the high-frequency resolution video are coherent. The method provided by the present application generates a high-frequency resolution video with coherent inter-frame details through a pre-trained generative model, and the high-frequency resolution video has rich and fidelity details and smooth coherence. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:
[0042] Figure 1 A schematic diagram of a process flow of a video super-resolution method provided in an embodiment of the present application;
[0043] Figure 2 A schematic diagram of the structure of the generation model provided in the embodiment of the present application;
[0044] Figure 3 A schematic diagram of the structure of a space adaptation module provided in an embodiment of the present application;
[0045] Figure 4 A schematic diagram of the structure of the time domain alignment module provided in an embodiment of the present application;
[0046] Figure 5 A schematic diagram of the structure of a video super-resolution device provided in an embodiment of the present application;
[0047] Figure 6 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0048] In order to make the technical solutions and advantages in the embodiments of the present application more clearly understood, the exemplary embodiments of the present application are further described in detail below in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present application, rather than an exhaustive list of all the embodiments. It should be noted that the embodiments in the present application and the features in the embodiments can be combined with each other without conflict.
[0049] In the process of implementing the present application, the inventors found that existing video super-resolution methods can only generate high-resolution images with roughly similar content based on low-resolution images, but cannot control the continuity between the generated video frames, making the generated results not realistic and coherent enough.
[0050] In view of the above problems, the embodiments of the present application provide a video super-resolution method, apparatus, device, and storage medium, the method comprising: obtaining a video; inputting the video into a pre-trained generative model, obtaining a high-frequency resolution video output by the generative model, and the inter-frame details of the high-frequency resolution video are coherent. The method provided in the present application generates a high-frequency resolution video with coherent inter-frame details through a pre-trained generative model, and the high-frequency resolution video has rich and faithful details and smooth coherence.
[0051] See also Figure 1 This embodiment provides a video super-resolution method, and the implementation process of the method is as follows:
[0052] 101, obtain video and Gaussian noise.
[0053] The video obtained in this step is a low-resolution video.
[0054] 102, input the video and Gaussian noise into a video super-resolution model to obtain a high-frequency resolution video output by the video super-resolution model.
[0055] Among them, the inter-frame details of high-frequency resolution videos are coherent.
[0056] For example, the low-resolution video obtained in step 101 and Gaussian noise signal , as the input of the video super-resolution model, the video super-resolution model is based on the low-resolution video and Gaussian noise signal Generate the corresponding high-resolution video , this high-resolution video It not only needs to restore the details that match the low-resolution video content, but also needs to maintain the coherence of the details between frames. That is, the high-frequency resolution video obtained by the method provided in this embodiment.
[0057] Among them, Figure 2 As shown in FIG. 1 , the video super-resolution model includes: a trained image generation model, an upsampler, a spatial adaptation module, a temporal alignment module, and a regulator. The temporal alignment module is used to ensure the coherence of inter-frame details of high-frequency resolution videos.
[0058] 1. Image Generation Model
[0059] The image generation model consists of a variational autoencoder (VAE) and a denoising network (UNet).
[0060] Among them, the denoising network is used to add Gaussian noise Videos The latent variable encoding of the high-resolution video is denoised by denoising. After the denoising network performs the set multi-step denoising process, the latent variable encoding of the high-resolution video is obtained. This variational autoencoder and denoising network have become a high-quality image generation model after being trained on hundreds of millions of high-quality images. In the subsequent process, the parameters of this network are fixed to retain the high-quality image knowledge it has learned.
[0061] The variational autoencoder consists of a variational encoder and a variational decoder.
[0062] A variational encoder is used to compress image data into latent variable encoded data in a latent space.
[0063] Variational decoder, used to restore latent variable encoded data to image data.
[0064] In order to restore the details that match the low-resolution video content and maintain the coherence of the details between frames, a spatial adaptation module and a temporal alignment module can be inserted after each cascade module of the denoising network and the variational decoder to guide both the denoising process and the reconstruction process of the video (e.g. Figure 2 for finer control.
[0065] In specific implementation, the image generation model can be a diffusion model (Stable Diffusion), which can be trained with hundreds of millions of high-quality images.
[0066] 2. Upsampler
[0067] Traditional image or video upsampling usually uses bicubic or linear interpolation methods, which cause certain damage to the original local structure of the video, and this uncertain damage will be amplified with the randomness of the generation model. Therefore, the upsampler used in this embodiment is implemented by using the temporal mutual attention mechanism and the pixel rearrangement mechanism (such as Figure 2 Upscaler) to obtain more accurate upsampled videos for input into subsequent image generation models.
[0068] 3. Spatial Feature Adaption (SFA)
[0069] The spatial adaptation module is used to extract features from the video for feature transformation.
[0070] Specifically, the spatial adaptation module is used to use the feature maps of each frame of the input video Forecasted growth factor and bias coefficient ,in, is the frame identifier of the input video. and Perform an affine transformation on the feature map.
[0071] As through the formula Perform an affine transformation.
[0072] in, The first Feature map of the frame, for The mean of for The standard deviation of .
[0073] The spatial adaptation module extracts features from the input video to guide the feature transformation generated by the diffusion model. Figure 3 The specific structure of a spatial adaptation module is shown. The spatial adaptation module uses a two-dimensional convolutional layer to extract the frame-by-frame feature map of the upsampled video. Predict an increase factor and a bias coefficient , and then use these two coefficients to perform an affine transformation on the standardized generated feature map. This process is formally defined as .
[0074] The feature map after affine transformation incorporates the information of the original video and realizes the visual content control in the spatial domain; in addition, since the affine transformation coefficients are predicted for each pixel position, it is conducive to precise control at the pixel level.
[0075] 4. Temporal Feature Alignment (TFA)
[0076] The time domain alignment module is used to ensure the coherence between frames. Its structure is as follows: Figure 4 shown.
[0077] The temporal alignment module is used to divide the video features into three-dimensional sliding windows across multiple frames and perform processing based on the self-attention mechanism within each sliding window.
[0078] When the time domain alignment module performs self-attention mechanism processing, the following formula is used:
[0079] .
[0080] in, is the query term extracted in the sliding window, is the key extracted in the sliding window, is the value extracted in the sliding window, is the feature channel dimension of the key, It is the feature processed by the self-attention mechanism.
[0081] In order to ensure the coherence between frames, a temporal alignment module is connected after each spatial adaptation module. Figure 4 The specific structure of a temporal alignment module is shown. Specifically, the temporal alignment module divides the generated video features into three-dimensional sliding windows across multiple frames, and then uses a self-attention mechanism within each sliding window. , among which , , All are features within the sliding window of the generated video The extracted query terms (Query), keys (Key) and values (Value), is the feature channel dimension of the key.
[0082] In the specific implementation, a cross attention operation can also be cascaded after the self-attention operation to process the generated video features and the original video features, such as , where Q is the feature in the sliding window of the generated video The query words are extracted from , while K and V are the sliding window features corresponding to the original video. The temporal alignment module uses the self-attention operation to enable the interactive fusion of information between frames of the generated video features, and uses the cross-attention operation to further correct the generated video features with the original video features. Together, the two achieve the alignment of the generated video features in the temporal domain.
[0083] 5. Regulator
[0084] The regulator is used to process the color deviation of the video using the following formula:
[0085] ,
[0086] in, To balance the parameters, The video is obtained by upsampling by the upsampler. The decoded video obtained by the image generation model, is the high-frequency resolution video after color deviation processing (that is, the high-frequency resolution video finally output by the video super-resolution model). is a mapping function consisting of two-dimensional convolution.
[0087] Since the image generated by the image generation model has color deviation, the regulator can adjust the image output by the image generation model to perform color correction. ,in is a trade-off parameter. The regulator can balance the input original video content and the synthesized video content through feature learning, thereby achieving better results in generated image quality and color fidelity.
[0088] The video super-resolution method provided in this embodiment is a video super-resolution method achieved by over-regulating an image diffusion model. A high-resolution video is generated through a low-resolution video by utilizing a generative model pre-trained on large-scale high-definition image data, and precise control of the output content of the generative model is achieved. The high-resolution video generated in this way has rich and faithful details and smooth continuity.
[0089] The video super-resolution method provided in this embodiment can use a low-resolution video as input to generate a corresponding high-quality high-resolution video. In addition, the spatial adaptation module and the temporal alignment module used in this embodiment can effectively ensure that the image content in the generated high-resolution video frame is rich in details and fidelity, and the image content between frames is consistent and coherent.
[0090] The present embodiment provides a video super-resolution method, which obtains a video and Gaussian noise; inputs the video and Gaussian noise into a video super-resolution model to obtain a high-frequency resolution video output by the video super-resolution model; the video super-resolution model includes: a trained image generation model, an upsampler, a spatial adaptation module, a time domain alignment module and a regulator; the time domain alignment module is used to ensure that the inter-frame details of the high-frequency resolution video have coherence. The method provided in this embodiment generates a high-frequency resolution video with coherence of inter-frame details through a pre-trained video super-resolution model, and the high-frequency resolution video has rich and fidelity details and smooth coherence.
[0091] Based on the same inventive concept of the video super-resolution method, this embodiment provides a video super-resolution method device, see Figure 5 , the device comprises:
[0092] The acquisition module 501 is used to acquire video and Gaussian noise.
[0093] The processing module 502 is used to input the video and Gaussian noise obtained by the obtaining module 501 into the video super-resolution model to obtain the high-frequency resolution video output by the video super-resolution model.
[0094] Among them, the image generation model consists of a variational autoencoder and a denoising network.
[0095] Among them, the denoising network is used to denoise the latent variable coding of the video with Gaussian noise added to obtain the latent variable coding of the high-resolution video.
[0096] The variational autoencoder consists of a variational encoder and a variational decoder.
[0097] A variational encoder is used to compress image data into latent variable encoded data in a latent space.
[0098] Variational decoder, used to restore latent variable encoded data to image data.
[0099] A spatial adaptation module and a temporal alignment module are inserted after each cascade module of the denoising network and the variational decoder.
[0100] The spatial adaptation module is used to extract features from the video for feature transformation.
[0101] The time domain alignment module is used to ensure the continuity between frames.
[0102] Among them, the spatial adaptation module is used to use the feature maps of each frame of the input video Forecasted growth factor and bias coefficient ,in, is the frame identifier of the input video. and Perform an affine transformation on the feature map.
[0103] Among them, through the formula Perform an affine transformation.
[0104] in, The first Feature map of the frame, for The mean of for The standard deviation of .
[0105] Among them, the time domain alignment module is used to divide the video features into three-dimensional sliding windows across multiple frames, and perform processing based on the self-attention mechanism within each sliding window.
[0106] Among them, when the time domain alignment module performs self-attention mechanism processing, the following formula is used:
[0107] .
[0108] in, is the query term extracted in the sliding window, is the key extracted in the sliding window, is the value extracted in the sliding window, is the feature channel dimension of the key, It is the feature processed by the self-attention mechanism.
[0109] The regulator is used to process the color deviation of the video using the following formula:
[0110] ,
[0111] in, To balance the parameters, The video is obtained by upsampling by the upsampler. The decoded video obtained by the image generation model, This is the high-frequency resolution video after color deviation processing. is a mapping function consisting of two-dimensional convolution.
[0112] The device provided in this embodiment generates a high-frequency resolution video with inter-frame detail coherence through a pre-trained generation model, and the high-frequency resolution video has rich and faithful details and smooth coherence.
[0113] Based on the same inventive concept of the video super-resolution method, this embodiment provides an electronic device, the electronic device such as Figure 6 As shown, it includes: a memory 601, a processor 602, and a computer program.
[0114] The computer program is stored in the memory 601 and is configured to be executed by the processor 602 to implement the above-mentioned video super-resolution method.
[0115] Specifically,
[0116] The video super-resolution model includes: a trained image generation model, an upsampler, a spatial adaptation module, and a temporal alignment module.
[0117] The temporal alignment module is used to ensure the coherence of inter-frame details of high-frequency resolution videos.
[0118] Get the video and Gaussian noise.
[0119] The video and Gaussian noise are input into the video super-resolution model to obtain the high-frequency resolution video output by the video super-resolution model.
[0120] The video super-resolution model includes: a trained image generation model, an upsampler, a spatial adaptation module, a temporal alignment module, and a regulator.
[0121] The temporal alignment module is used to ensure the coherence of inter-frame details of high-frequency resolution videos.
[0122] Optionally, the image generation model consists of a variational autoencoder and a denoising network.
[0123] Among them, the denoising network is used to denoise the latent variable coding of the video with Gaussian noise added to obtain the latent variable coding of the high-resolution video.
[0124] The variational autoencoder consists of a variational encoder and a variational decoder.
[0125] A variational encoder is used to compress image data into latent variable encoded data in a latent space.
[0126] Variational decoder, used to restore latent variable encoded data to image data.
[0127] A spatial adaptation module and a temporal alignment module are inserted after each cascade module of the denoising network and the variational decoder.
[0128] The spatial adaptation module is used to extract features from the video for feature transformation.
[0129] The time domain alignment module is used to ensure the continuity between frames.
[0130] Optionally, a spatial adaptation module is used to use the feature maps of each frame of the input video Forecasted growth factor and bias coefficient ,in, is the frame identifier of the input video. and Perform an affine transformation on the feature map.
[0131] Optionally, by the formula Perform an affine transformation.
[0132] in, The first Feature map of the frame, for The mean of for The standard deviation of .
[0133] Optionally, a time domain alignment module is used to divide the video features into three-dimensional sliding windows across multiple frames, and perform processing based on a self-attention mechanism within each sliding window.
[0134] Optionally, when the time domain alignment module performs self-attention mechanism processing, the following formula is used for implementation:
[0135] .
[0136] in, is the query term extracted in the sliding window, is the key extracted in the sliding window, is the value extracted in the sliding window, is the feature channel dimension of the key, It is the feature processed by the self-attention mechanism.
[0137] Optionally, a regulator is used to perform color deviation processing on the video using the following formula:
[0138] ,
[0139] in, To balance the parameters, The video is obtained by upsampling by the upsampler. The decoded video obtained by the image generation model, This is the high-frequency resolution video after color deviation processing. is a mapping function consisting of two-dimensional convolution.
[0140] The electronic device provided by this embodiment has a computer program executed by a processor to generate a high-frequency resolution video with inter-frame detail coherence through a pre-trained generation model, wherein the high-frequency resolution video has rich and faithful details and smooth coherence.
[0141] Based on the same inventive concept of the video super-resolution method, this embodiment provides a computer-readable storage medium, and a computer program is stored thereon. The computer program is executed by a processor to implement the above-mentioned video super-resolution method.
[0142] Specifically,
[0143] The video super-resolution model includes: a trained image generation model, an upsampler, a spatial adaptation module, and a temporal alignment module.
[0144] The temporal alignment module is used to ensure the coherence of inter-frame details of high-frequency resolution videos.
[0145] Get the video and Gaussian noise.
[0146] The video and Gaussian noise are input into the video super-resolution model to obtain the high-frequency resolution video output by the video super-resolution model.
[0147] The video super-resolution model includes: a trained image generation model, an upsampler, a spatial adaptation module, a temporal alignment module, and a regulator.
[0148] The temporal alignment module is used to ensure the coherence of inter-frame details of high-frequency resolution videos.
[0149] Optionally, the image generation model consists of a variational autoencoder and a denoising network.
[0150] Among them, the denoising network is used to denoise the latent variable coding of the video with Gaussian noise added to obtain the latent variable coding of the high-resolution video.
[0151] The variational autoencoder consists of a variational encoder and a variational decoder.
[0152] A variational encoder is used to compress image data into latent variable encoded data in a latent space.
[0153] Variational decoder, used to restore latent variable encoded data to image data.
[0154] A spatial adaptation module and a temporal alignment module are inserted after each cascade module of the denoising network and the variational decoder.
[0155] The spatial adaptation module is used to extract features from the video for feature transformation.
[0156] The time domain alignment module is used to ensure the continuity between frames.
[0157] Optionally, a spatial adaptation module is used to use the feature maps of each frame of the input video Forecasted growth factor and bias coefficient ,in, is the frame identifier of the input video. and Perform an affine transformation on the feature map.
[0158] Optionally, by the formula Perform an affine transformation.
[0159] in, The first Feature map of the frame, for The mean of for The standard deviation of .
[0160] Optionally, a time domain alignment module is used to divide the video features into three-dimensional sliding windows across multiple frames, and perform processing based on a self-attention mechanism within each sliding window.
[0161] Optionally, when the time domain alignment module performs self-attention mechanism processing, the following formula is used for implementation:
[0162] .
[0163] in, is the query term extracted in the sliding window, is the key extracted in the sliding window, is the value extracted in the sliding window, is the feature channel dimension of the key, It is the feature processed by the self-attention mechanism.
[0164] Optionally, a regulator is used to perform color deviation processing on the video using the following formula:
[0165] ,
[0166] in, To balance the parameters, The video is obtained by upsampling by the upsampler. The decoded video obtained by the image generation model, This is the high-frequency resolution video after color deviation processing. is a mapping function consisting of two-dimensional convolution.
[0167] The computer-readable storage medium provided in this embodiment has a computer program executed by a processor to generate a high-frequency resolution video with inter-frame detail coherence through a pre-trained generation model, wherein the high-frequency resolution video has rich and faithful details and smooth coherence.
[0168] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes. The schemes in the embodiments of the present application may be implemented in various computer languages, for example, object-oriented programming language Java and literal scripting language JavaScript, etc.
[0169] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0170] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0171] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0172] Although the preferred embodiments of the present application have been described, those skilled in the art may make other changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications falling within the scope of the present application.
[0173] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.
Claims
1. A video super-resolution method, characterized in that: The method comprises: Get video and Gaussian noise; Inputting the video and Gaussian noise into a video super-resolution model to obtain a high-frequency resolution video output by the video super-resolution model; The video super-resolution model includes: a trained image generation model, an upsampler, a spatial adaptation module, a temporal alignment module and a regulator; The temporal alignment module is used to ensure the coherence of inter-frame details of the high-frequency resolution video; Wherein, the image generation model is composed of a variational autoencoder and a denoising network; The denoising network is used to denoise the latent variable coding of the video with Gaussian noise added to obtain the latent variable coding of the high-resolution video; The variational autoencoder consists of a variational encoder and a variational decoder; The variational encoder is used to compress the image data into latent variable encoded data in a latent space; The variational decoder is used to restore latent variable encoded data into image data; The spatial adaptation module and the time domain alignment module are inserted after each cascade module of the denoising network and the variational decoder; The output of the upsampler is the input of the variational encoder and the regulator, the output of the variational encoder is the input of the denoising network and the variational decoder, the output of the denoising network is the input of the variational decoder, and the output of the variational decoder is the input of the regulator; The spatial adaptation module is used to extract features from the video so as to perform feature transformation; The time domain alignment module is used to ensure the coherence between frames; The spatial adaptation module is used to use the feature maps of each frame of the input video Forecasted growth factor and bias coefficient ,in, is the frame identifier of the input video; based on the and Perform affine transformation on the feature map; Among them, through the formula Perform affine transformation; in, The first The feature map of the frame, for The mean of for The standard deviation of The time domain alignment module is used to divide the video features into three-dimensional sliding windows across multiple frames, and perform processing based on the self-attention mechanism in each sliding window; Among them, the upsampler is implemented by using the temporal mutual attention mechanism and the pixel rearrangement mechanism.
2. The method according to claim 1, characterized in that When the time domain alignment module performs self-attention mechanism processing, the following formula is used: ; in, is the query term extracted in the sliding window, is the key extracted in the sliding window, is the value extracted in the sliding window, is the characteristic channel dimension of the key, It is the feature processed by the self-attention mechanism.
3. The method according to claim 1, characterized in that The regulator is used to perform color deviation processing on the video using the following formula: , in, To balance the parameters, The video is obtained by upsampling by the upsampler. The decoded video obtained by the image generation model, This is the high-frequency resolution video after color deviation processing. is a mapping function consisting of two-dimensional convolution.
4. A video super-resolution device, characterized in that: The device comprises: An acquisition module, used to acquire video and Gaussian noise; A processing module, used for inputting the video and Gaussian noise acquired by the acquisition module into a video super-resolution model to acquire a high-frequency resolution video output by the video super-resolution model; The video super-resolution model includes: a trained image generation model, an upsampler, a spatial adaptation module, a temporal alignment module and a regulator; The temporal alignment module is used to ensure the coherence of inter-frame details of the high-frequency resolution video; Wherein, the image generation model is composed of a variational autoencoder and a denoising network; The denoising network is used to denoise the latent variable coding of the video with Gaussian noise added to obtain the latent variable coding of the high-resolution video; The variational autoencoder consists of a variational encoder and a variational decoder; The variational encoder is used to compress the image data into latent variable encoded data in a latent space; The variational decoder is used to restore latent variable encoded data into image data; The spatial adaptation module and the time domain alignment module are inserted after each cascade module of the denoising network and the variational decoder; The output of the upsampler is the input of the variational encoder and the regulator, the output of the variational encoder is the input of the denoising network and the variational decoder, the output of the denoising network is the input of the variational decoder, and the output of the variational decoder is the input of the regulator; The spatial adaptation module is used to extract features from the video so as to perform feature transformation; The time domain alignment module is used to ensure the coherence between frames; The spatial adaptation module is used to use the feature maps of each frame of the input video Forecasted growth factor and bias coefficient ,in, is the frame identifier of the input video; based on the and Perform affine transformation on the feature map; Among them, through the formula Perform affine transformation; in, The first The feature map of the frame, for The mean of for The standard deviation of The time domain alignment module is used to divide the video features into three-dimensional sliding windows across multiple frames, and perform processing based on the self-attention mechanism in each sliding window; Among them, the upsampler is implemented by using the temporal mutual attention mechanism and the pixel rearrangement mechanism.
5. An electronic device, characterized in that: include: Memory; processor; as well as Computer programs; The computer program is stored in the memory and is configured to be executed by the processor to implement the method according to any one of claims 1 to 3.
6. A computer-readable storage medium, characterized in that: A computer program is stored thereon; the computer program is executed by a processor to implement the method according to any one of claims 1 to 3.
Citation Information
Patent Citations
Video super-resolution method and system based on data simulation, equipment and storage medium
CN113469884A
Video super-resolution reconstruction method based on D3D convolution intra-group fusion network
CN115496663A
Cited By
Video generation based on 3D window attention
US12726685B2
Video generation based on 3D window attention
US20260164094A1
