Video frame interpolation method and system based on bidirectional coding structure

Through the video frame interpolation method based on the bidirectional coding structure, using the U-Net structure and the multi-scale frame synthesis module, the problem that the existing technology is difficult to handle complex scenes and high-speed motion is solved, the interpolation of high-quality video frames is achieved, and the video quality is improved. Smoothness and clarity.

CN117896526BActive Publication Date: 2024-09-03SHANDONG XIANYUN INFORMATION TECH CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202410059485.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-01-15
Publication Date
2024-09-03
Estimated Expiration
2044-01-15

AI Technical Summary

Technical Problem

Existing video frame interpolation methods are difficult to handle complex scenes and high-speed motion, resulting in image blur and distortion, and cannot meet users' needs for high-quality videos.

Method used

A video frame interpolation method based on a bidirectional coding structure is adopted, bidirectional coding is performed through two identical U-Net structures, a depth over-parameterized cyclic residual convolution unit and a depth-separable residual convolution unit are used, combined with multi-scale frame synthesis module, extracts and fuses bidirectional motion features to generate more realistic and high-quality interpolated frames.

Benefits of technology

It improves the video frame rate and quality, enhances the model's ability to handle complex scenes, reduces computational complexity, and improves video fluency and clarity.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117896526B
    Figure CN117896526B
Patent Text Reader

Abstract

The invention discloses a video frame interpolation method and system based on a bidirectional coding structure. The method comprises the following steps: preprocessing an input frame image of a first scale to obtain input frame images of a second scale and a third scale; inputting the input frame image of the first scale into a trained interpolation frame generation model to obtain an interpolation frame; processing the input frame image of the first scale by the model to obtain original features of the first scale; preprocessing the original features of the first scale to obtain original features of the second scale and the third scale; inputting the original features of the first, second and third scales into corresponding sub-networks respectively to obtain pixel-level parameters of each target pixel on the original features of the first, second and third scales respectively; performing a distortion operation on the input image of the corresponding scale based on the pixel-level parameters of each target pixel on the original features of each scale and AdaCoF to obtain a distorted frame image of the corresponding scale; and synthesizing distorted frame images of multiple scales to obtain an interpolated frame.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer vision technology, and in particular to a video frame interpolation method and system based on a bidirectional coding structure. Background Art

[0002] The statements in this section merely mention background art related to the present invention and do not necessarily constitute prior art.

[0003] In today's era where digital media permeates people's lives, video has become one of the main media for communication, entertainment and information transmission. Despite having high-definition cameras and powerful video processing software, in some situations, you may still feel that the picture is insufficient when watching videos, mainly reflected in the smoothness and naturalness of the video playback process. With the popularization of the Internet, video production and sharing have become easier, and anyone can capture high-quality videos through a mobile phone or camera. However, at the same time, this also brings new challenges. High-resolution and high-frame-rate videos require larger storage space and higher bandwidth, which may be a limiting factor in some cases. At the same time, users' requirements for video quality are constantly increasing, and they expect to watch clearer, smoother and more realistic video content. In addition, due to the complexity of video data, an important task in computer vision tasks is to design and extract more robust image features. The existence of many problems in video data, such as illumination changes, perspective changes, and complex background changes caused by camera movement, undoubtedly brings great difficulties to this work.

[0004] In this context, video frame rate becomes a key factor that directly affects the smoothness and realism of video playback. However, even with a higher frame rate, processing videos generated by high-speed motion or low frame rate sources may still result in an unsmooth viewing experience. This discomfort manifests itself as freezes, frame skipping, or uneven transitions, which reduces the user's viewing experience. In order to address the shortcomings in video playback, video interpolation technology came into being. The basic idea of ​​this technology is to insert new frames between adjacent original frames to increase the frame rate of the video. By increasing the number of frames, video interpolation technology aims to create smoother and more realistic visual effects, fill the gaps in the video stream, and make animation transitions smoother.

[0005] However, traditional interpolation methods mainly use mathematical methods such as linear interpolation, which can improve video smoothness to a certain extent, but have difficulty in handling complex scenes and motions. Especially in scenes with fast motion or frequent changes, these methods are prone to blurring and distortion of images, and cannot meet users' demand for high-quality videos. With the rise of deep learning technology, video interpolation technology has been revolutionized. The successful application of deep learning models, especially convolutional neural networks (CNNs), enables computers to better understand and generate video frames. This has injected new vitality into video interpolation technology, enabling it to better adapt to different scenes and motions and improve the quality of videos. These methods are generally divided into three categories: flow-based methods, kernel-based methods, and methods that combine the two.

[0006] Flow-based methods use off-the-shelf flow models or design specific networks to estimate optical flow to guide pixel-level tasks. However, this method often has the disadvantages of large errors or high network complexity. Kernel-based methods regard pixel interpolation as the convolution of corresponding local blocks in two input frames. However, it cannot handle motion beyond the kernel size and has a high computational cost. The combined method combines the advantages of the above two methods, but the model is too heavy and the computational cost is too high to be applied. Summary of the invention

[0007] In order to solve the deficiencies of the prior art, the present invention provides a video frame interpolation method and system based on a bidirectional coding structure; the present invention can effectively improve the video frame rate and quality.

[0008] On the one hand, a video frame interpolation method based on a bidirectional coding structure is provided;

[0009] The video frame interpolation method based on the bidirectional coding structure includes:

[0010] Get two first-scale continuous frame images of the video to be interpolated and images

[0011] For images and images At the same time, upsampling is performed to obtain an image of the second scale and images For images and images At the same time, downsampling operation is performed to obtain the image of the third scale and images

[0012] Two consecutive frame images and images Input to the trained interpolation frame generation model; at the same time, the two consecutive frame images after reversing the order and images It is also input into the trained interpolation frame generation model; the model outputs the interpolation frame;

[0013] Among them, the trained interpolation frame generation model is used to and images And images and images Perform feature extraction, feature enhancement and feature fusion processing to obtain the original features of the first scale;

[0014] The original features of the first scale are upsampled to obtain the original features of the second scale; the original features of the first scale are downsampled to obtain the original features of the third scale;

[0015] The original features of the first, second and third scales are input into the corresponding sub-networks respectively, and the pixel-level parameters of each target pixel on the original features of the first, second and third scales are obtained respectively;

[0016] Based on the pixel-level parameters of each target pixel on the original features of each scale and the adaptive collaborative flow AdaCoF, the input image of the corresponding scale is distorted to obtain a distorted frame image of the corresponding scale;

[0017] The warped frame images of multiple scales are synthesized to obtain interpolated frames.

[0018] On the other hand, a video frame interpolation system based on a bidirectional coding structure is provided, including:

[0019] An acquisition module is configured to: acquire two first-scale continuous frame images of the video to be interpolated and images

[0020] The preprocessing module is configured to: and images At the same time, upsampling is performed to obtain an image of the second scale and images For images and images At the same time, downsampling operation is performed to obtain the image of the third scale and images

[0021] The interpolation frame generation module is configured to: interpolate two consecutive frame images and images Input to the trained interpolation frame generation model; at the same time, the two consecutive frame images after reversing the order and images It is also input into the trained interpolation frame generation model; the model outputs the interpolation frame;

[0022] Among them, the trained interpolation frame generation model is used to and images And images and images Perform feature extraction, feature enhancement and feature fusion processing to obtain the original features of the first scale;

[0023] The original features of the first scale are upsampled to obtain the original features of the second scale; the original features of the first scale are downsampled to obtain the original features of the third scale;

[0024] The original features of the first, second and third scales are input into the corresponding sub-networks respectively, and the pixel-level parameters of each target pixel on the original features of the first, second and third scales are obtained respectively;

[0025] Based on the pixel-level parameters of each target pixel on the original features of each scale and the adaptive collaborative flow AdaCoF, the input image of the corresponding scale is distorted to obtain a distorted frame image of the corresponding scale;

[0026] The warped frame images of multiple scales are synthesized to obtain interpolated frames.

[0027] On the other hand, there is also provided an electronic device, comprising:

[0028] a memory for non-transitory storage of computer-readable instructions; and

[0029] a processor for executing the computer readable instructions,

[0030] When the computer-readable instructions are executed by the processor, the method described in the first aspect is executed.

[0031] On the other hand, a storage medium is provided, which non-temporarily stores computer-readable instructions, wherein when the non-temporary computer-readable instructions are executed by a computer, the instructions of the method described in the first aspect are executed.

[0032] On the other hand, a computer program product is provided, comprising a computer program, wherein the computer program is used to implement the method described in the first aspect when running on one or more processors.

[0033] The above technical solution has the following advantages or beneficial effects:

[0034] First, the present invention uses two identical U-Net structures to perform bidirectional encoding on the original scale input frames to improve the model's perception of the input frames. Then, in the U-Net architecture, the present invention uses a deep over-parameterized cyclic residual convolution unit to replace the traditional convolution unit in the low-dimensional part. With this structure, the model can better capture global information and handle the complex relationship between video frames. In addition, the present invention introduces a deep separable residual convolution unit in the high-dimensional part for lightweight processing, so that the model maintains performance while reducing the number of parameters. Finally, the present invention introduces a multi-scale frame synthesis module. This module borrows existing texture information from adjacent input frames to synthesize more realistic and high-frequency details, thereby improving the quality of the interpolated frames. BRIEF DESCRIPTION OF THE DRAWINGS

[0035] The accompanying drawings in the specification, which constitute a part of the present invention, are used to provide a further understanding of the present invention. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute improper limitations on the present invention.

[0036] Figure 1 This is the overall system framework of the first embodiment of the present invention;

[0037] Figure 2 This is a structural diagram of a deep over-parameterized cyclic residual convolution unit according to the first embodiment of the present invention;

[0038] Figure 3 This is a structural diagram of a depth-separable residual convolution unit according to the first embodiment of the present invention;

[0039] Figure 4 This is a diagram of the internal cascade structure of the convolution block attention block CBAM of the first embodiment of the present invention;

[0040] Figure 5 A subnet structure diagram for generating pixel-level parameters of a target pixel according to the first embodiment of the present invention;

[0041] Figure 6 This is a diagram of a multi-scale frame synthesis network structure according to the first embodiment of the present invention;

[0042] Figure 7 This is a diagram of the structure of the lateral residual blocks within the GridNet network of the first embodiment of the present invention. DETAILED DESCRIPTION

[0043] It should be noted that the following detailed descriptions are exemplary and are intended to provide further explanation of the present invention. Unless otherwise specified, all technical and scientific terms used herein have the same meanings as those commonly understood by those skilled in the art to which the present invention belongs.

[0044] Embodiment 1

[0045] This embodiment provides a video frame interpolation method based on a bidirectional coding structure;

[0046] The video frame interpolation method based on the bidirectional coding structure includes:

[0047] S101: Obtain two first-scale continuous frame images of the video to be interpolated and images

[0048] S102: Image and images At the same time, upsampling is performed to obtain an image of the second scale and images For images and images At the same time, downsampling operation is performed to obtain the image of the third scale and images

[0049] S103: Two consecutive frame images and images Input to the trained interpolation frame generation model; at the same time, the two consecutive frame images after reversing the order and images It is also input into the trained interpolation frame generation model; the model outputs the interpolation frame;

[0050] Among them, the trained interpolation frame generation model is used to and images And images and images Perform feature extraction, feature enhancement and feature fusion processing to obtain the original features of the first scale;

[0051] The original features of the first scale are upsampled to obtain the original features of the second scale; the original features of the first scale are downsampled to obtain the original features of the third scale;

[0052] The original features of the first, second and third scales are input into the corresponding sub-networks respectively, and the pixel-level parameters of each target pixel on the original features of the first, second and third scales are obtained respectively;

[0053] Based on the pixel-level parameters of each target pixel on the original features of the first scale and the adaptive collaborative flow AdaCoF, the image of the first scale is and images Perform a distortion operation to obtain a distorted frame image of the first scale and images

[0054] Based on the pixel-level parameters of each target pixel on the original features of the second scale and the adaptive collaborative flow AdaCoF, the image of the second scale is and images Perform a distortion operation to obtain a distorted frame image of the second scale and images

[0055] Based on the pixel-level parameters of each target pixel on the original features of the third scale and the adaptive collaborative flow AdaCoF, the image of the third scale is and images Perform a distortion operation to obtain a distorted frame image of the third scale and images

[0056] Distorted frame images image image image image and images A synthesis operation is performed to obtain an interpolated frame.

[0057] Furthermore, the training process of the trained interpolation frame generation model includes:

[0058] Constructing a training set, wherein the training set is two consecutive frames of images of known interpolation frames;

[0059] The training set is input into the interpolation frame generation model to train the model. When the total loss function value of the model no longer decreases, or the number of iterations exceeds the set number, the training is stopped to obtain the trained interpolation frame generation model.

[0060] It should be understood that the present invention uses the Vimeo-90k dataset consisting of 51,312 triplets as a training set to train the model proposed in the present invention. Each triplet contains three consecutive frames with a resolution of 256×448. In order to generate high-quality interpolated frames, the present invention uses the first frame and the third frame as training inputs and the second frame as a training target to fine-tune the training results. During the training process, the present invention increases the number of samples by horizontal and vertical flipping. To verify the effectiveness of the model proposed in the present invention, the present invention was tested on multiple datasets, including UCF101, DAVIS and Middlebury. Among them, UCF101 contains a variety of complex actions and backgrounds. DAVIS contains 29 high-resolution triplets with blurred and occluded scenes. It is worth noting that in Middlebury, which contains two sub-datasets, the present invention uses a dataset containing 12 sequences as a test set, each of which contains high-resolution video frames.

[0061] Furthermore, if Figure 1As shown, the trained interpolation frame generation model includes:

[0062] A feature extraction module, a multi-scale frame warping network, and a multi-scale frame synthesis network connected in sequence;

[0063] The feature extraction module is used to extract the image and images And images and images Perform feature extraction, feature enhancement and feature fusion processing to obtain the original features of the first scale;

[0064] The multi-scale frame warping network is used to perform up-sampling processing on the original features of the first scale to obtain the original features of the second scale; and to perform down-sampling processing on the original features of the first scale to obtain the original features of the third scale;

[0065] The original features of the first, second and third scales are input into the corresponding sub-networks respectively, and the pixel-level parameters of each target pixel on the original features of the first, second and third scales are obtained respectively;

[0066] Based on the pixel-level parameters of each target pixel on the original features of the first scale and the adaptive collaborative flow AdaCoF, the image of the first scale is and images Perform a distortion operation to obtain a distorted frame image of the first scale and images

[0067] Based on the pixel-level parameters of each target pixel on the original features of the second scale and the adaptive collaborative flow AdaCoF, the image of the second scale is and images Perform a distortion operation to obtain a distorted frame image of the second scale and images

[0068] Based on the pixel-level parameters of each target pixel on the original features of the third scale and the adaptive collaborative flow AdaCoF, the image of the third scale is and images Perform a distortion operation to obtain a distorted frame image of the third scale and images

[0069] The multi-scale frame synthesis network is used to distort the frame image image image image image and images A synthesis operation is performed to obtain an interpolated frame.

[0070] It should be understood that given two consecutive frame images and an image as inputs, the system is used to generate an intermediate frame I that does not exist t , to improve the smoothness and clarity of the video, where 0 < t < 1. To improve the performance of the system, the present invention introduces a bidirectional encoding structure, which consists of two identical U-Nets, used for forward and backward encoding of the input frames to extract bidirectional motion features. In the decoding stage, the decoders of the two branches are connected to better capture and integrate the bidirectional motion features. Through the information exchange between the forward and backward branches, the ability of the model to model scene changes is improved. Then, the present invention replaces the traditional convolutional units in the low-dimensional part of the U-Net architecture with deep over-parameterized recurrent residual convolutional units, and introduces deep separable residual convolutional units in the high-dimensional part to construct a lightweight U-Net architecture, so as to enhance the learning ability of the model without increasing the computational complexity. Finally, the present invention proposes a multi-scale frame synthesis module, consisting of GridNet, for synthesizing interpolation frames.

[0071] Furthermore, as Figure 1 shown, the feature extraction module includes:

[0072] a backward encoding U-Net branch and a forward encoding U-Net branch;

[0073] The backward encoding U-Net branch includes: a backward encoder and a backward decoder connected in sequence;

[0074] The backward encoder includes: a first deep over-parameterized recurrent residual convolutional unit, a first average pooling layer, a second deep over-parameterized recurrent residual convolutional unit, a second average pooling layer, a third deep over-parameterized recurrent residual convolutional unit, a third average pooling layer, a first deep separable residual convolutional unit, a fourth average pooling layer, a second deep separable residual convolutional unit, and a fifth average pooling layer connected in sequence.

[0075] The backward decoder includes: a third deep separable residual convolutional unit, a first upsampling layer, a first adder, a fourth deep separable residual convolutional unit, a second upsampling layer, a second adder, a fourth deep over-parameterized recurrent residual convolutional unit, a third upsampling layer, a third adder, a fifth deep over-parameterized recurrent residual convolutional unit, a fourth upsampling layer, and a fourth adder connected in sequence.

[0076] Furthermore, the output end of the second deep over-parameterized recurrent residual convolutional unit is connected to the input end of the first attention mechanism module, and the output end of the first attention mechanism module is connected to the input end of the fourth adder;

[0077] The output end of the third deep over-parameterized cyclic residual convolution unit is connected to the input end of the second attention mechanism module, and the output end of the second attention mechanism module is connected to the input end of the third adder;

[0078] An output end of the first depth-wise separable residual convolution unit is connected to an input end of a third attention mechanism module, and an output end of the third attention mechanism module is connected to an input end of the second adder;

[0079] The output end of the second depth-wise separable residual convolution unit is connected to the input end of the fourth attention mechanism module, and the output end of the fourth attention mechanism module is connected to the input end of the first adder.

[0080] Further, the forward encoding U-Net branch includes: a forward encoder and a forward decoder connected in sequence;

[0081] The forward encoder includes: a sixth deep over-parameterized circular residual convolution unit, a sixth average pooling layer, a seventh deep over-parameterized circular residual convolution unit, a seventh average pooling layer, an eighth deep over-parameterized circular residual convolution unit, an eighth average pooling layer, a fifth deep separable residual convolution unit, a ninth average pooling layer, a sixth deep separable residual convolution unit and a tenth average pooling layer connected in sequence.

[0082] The forward decoder comprises: a seventh depth-wise separable residual convolution unit, a fifth upsampling layer, a fifth adder, an eighth depth-wise separable residual convolution unit, a sixth upsampling layer, a sixth adder, a ninth depth-wise over-parameterized circular residual convolution unit, a seventh upsampling layer, a seventh adder, a tenth depth-wise over-parameterized circular residual convolution unit, an eighth upsampling layer and an eighth adder, which are connected in sequence.

[0083] Further, the output end of the seventh deep over-parameterized cyclic residual convolution unit is connected to the input end of the fifth attention mechanism module, and the output end of the fifth attention mechanism module is connected to the input end of the eighth adder;

[0084] The output end of the eighth deep over-parameterized cyclic residual convolution unit is connected to the input end of the sixth attention mechanism module, and the output end of the sixth attention mechanism module is connected to the input end of the seventh adder;

[0085] An output end of the fifth depth-wise separable residual convolution unit is connected to an input end of a seventh attention mechanism module, and an output end of the seventh attention mechanism module is connected to an input end of a sixth adder;

[0086] The output end of the sixth depth-wise separable residual convolution unit is connected to the input end of the eighth attention mechanism module, and the output end of the eighth attention mechanism module is connected to the input end of the fifth adder.

[0087] Further, an output end of the third depth-wise separable residual convolution unit is connected to an input end of the fifth adder; an output end of the seventh depth-wise separable residual convolution unit is connected to an input end of the first adder;

[0088] An output end of the fourth depth-wise separable residual convolution unit is connected to an input end of the sixth adder; an output end of the eighth depth-wise separable residual convolution unit is connected to an input end of the second adder;

[0089] The output end of the fourth depth over-parameterized circular residual convolution unit is connected to the input end of the seventh adder; the output end of the ninth depth over-parameterized circular residual convolution unit is connected to the input end of the third adder;

[0090] An output end of the fifth depth over-parameterized circular residual convolution unit is connected to an input end of the eighth adder; an output end of the tenth depth over-parameterized circular residual convolution unit is connected to an input end of the fourth adder.

[0091] Furthermore, the reverse encoder is used to realize two consecutive frames and images The reverse coding features of the reverse coding are obtained by encoding; the reverse decoder is used to implement decoding processing on the reverse coding features to obtain reverse decoding features of the reverse coding features of the reverse coding features;

[0092] The first, second, third and fourth attention mechanism modules are used to realize the cascade of reverse encoding features of different scales and reverse decoding features of corresponding scales;

[0093] The forward encoder is used to implement two consecutive frames and images The forward coding features of the forward coding are obtained by encoding the forward coding features of the forward coding features to obtain the forward decoding features of the forward coding features of the forward coding features; the forward decoder is used to implement the decoding process of the forward coding features to obtain the forward decoding features of the forward coding features of the forward coding features;

[0094] The fifth, sixth, seventh and eighth attention mechanism modules are used to realize the cascade of forward encoding features of different scales and forward decoding features of corresponding scales;

[0095] The reverse decoding features of different scales are fused with the forward decoding features of the corresponding scales;

[0096] The forward decoding features of different scales are fused with the reverse decoding features of the corresponding scales;

[0097] Finally, the ninth adder sums the output of the fourth adder and the output of the eighth adder to obtain the original feature.

[0098] Furthermore, if Figure 1As shown, the original scale input frame is upsampled and downsampled respectively to obtain input images of twice the scale and one-half the scale, and the obtained images will be used for subsequent frame warping operations.

[0099] Furthermore, the original scale input frame is used as the input of the feature extraction module, and two optimized U-Nets are used to perform bidirectional feature extraction. The input of the forward encoding U-Net branch is the image and images The input of the U-Net branch performing reverse encoding is an image and images The traditional convolutional units in the low-dimensional part of the U-Net architecture are replaced with deep over-parameterized recurrent residual convolutional units, and deep separable residual convolutional units are introduced in the high-dimensional part to build a lightweight U-Net architecture. The cascaded channel attention mechanism and spatial attention mechanism are used between the encoder and decoder to replace the traditional skip connection, which is used to cascade the encoding features and decoding features of the same dimension for feature enhancement.

[0100] Two identical U-Net branches are used to extract bidirectional motion features from the input frame. In the process of extracting features, skip connections are used to connect the two decoders. The decoded features of the set layer of the forward branch decoder are added to the feature map of the corresponding layer of the reverse branch decoder, and spliced ​​in the channel dimension, and vice versa. After connection, the two decoders continue to perform upsampling and convolution operations on their respective branches to gradually generate bidirectional motion features. Finally, the bidirectional motion features are fused to obtain the original features for the input of subsequent sub-networks.

[0101] The two original images are upsampled and downsampled respectively to obtain images of double scale and half scale, which are used for subsequent frame distortion operations; the original scale input images are input into two U-Net architectures to extract bidirectional motion features, where the input of the U-Net branch used to perform forward encoding is two consecutive frame images and images The input of the U-Net branch for performing reverse encoding is two consecutive frame images and images The traditional convolution units in the low-dimensional part of the U-Net architecture are replaced by deep over-parameterized recurrent residual convolution units, and deep separable residual convolution units are introduced in the high-dimensional part to construct a lightweight U-Net architecture. Within the U-Net architecture, the cascaded channel attention and spatial attention mechanisms are used to extract the weight map of the encoded features between the encoded features and the decoded features of the same dimension, and feature enhancement is performed through pixel-level multiplication.

[0102] Use two identical U-Net architectures to extract bidirectional motion features, and connect the two decoders through jump connections; add the decoded features of a layer of the forward branch decoder to the feature map of the corresponding layer of the reverse branch decoder, and splice them in the channel dimension, and vice versa. After the splicing is completed, the two decoders continue to perform upsampling and convolution operations on their respective branches, gradually generating bidirectional motion features; the bidirectional motion features are fused to obtain the original features.

[0103] In the traditional U-Net architecture, the present invention introduces a deep over-parameterized recurrent residual convolution unit to replace the traditional convolution unit in the low-dimensional part, so that the model can enhance its learning ability without increasing the computational complexity. In addition, a deep separable residual convolution unit is introduced in the high-dimensional part to construct a lightweight U-Net architecture, which helps the model maintain its original performance while reducing the number of parameters.

[0104] In order to improve the performance of the model and minimize information loss, the present invention utilizes an attention mechanism module (CBAM) to replace the traditional skip connection in the U-Net architecture to establish a relationship between the encoder and the decoder. Figure 4 The detailed architecture of CBAM is shown, which contains two sub-modules: Channel Attention Module (CAM) and Spatial Attention Module (SAM).

[0105] The channel attention module (CAM) includes: a parallel average pooling module and a maximum pooling module and a sigmoid activation function; the channel information in the encoding feature F is aggregated in parallel by the average pooling module and the maximum pooling module, and then the aggregated channel information is passed through the sigmoid activation function to obtain a channel attention feature map; the channel attention feature map F c The intermediate feature map F′ obtained by pixel-by-pixel multiplication with the encoded feature F is used as the input of the spatial attention module (SAM);

[0106] The spatial attention module (SAM) includes: parallel average pooling layer and maximum pooling layer, channel splicing layer, convolution layer and sigmoid function; the average pooling layer and the maximum pooling layer aggregate the statistical information of a channel respectively, and then two feature maps are obtained based on the channel splicing layer. Finally, the convolution layer reduces the channel to one channel, and the sigmoid function is used to generate the spatial attention feature map F. s , spatial attention feature map F s The enhanced encoding features are obtained by pixel-by-pixel multiplication with the output F′ of the channel attention module (CAM).

[0107] Among them, the two stages of the Convolutional Block Attention Module (CBAM) can be expressed as:

[0108]

[0109]

[0110]

[0111] Among them, M c and M s They represent the channel attention module (CAM) and spatial attention module (SAM), respectively, and CBAM is the attention module of the entire convolutional block. W0 and W1 represent the weights of the two 1×1 convolutions in the first row of the first stage, and the convolution layers in the two rows share weights. 7×7 represents the weights of the 7×7 convolutional layer in the spatial attention module, F and F ′ represents the input of CAM and SAM, σ(·) and × represent the sigmoid function and convolution operation. and denote element-wise addition and multiplication, respectively. AvgPool(·) and MaxPool(·) denote average pooling and maximum pooling, respectively.

[0112] Given two consecutive input frames, upsampling and downsampling operations are first performed to obtain input frames of twice the scale and one-half the scale, which will be used for subsequent frame warping. At the same time, the input frames of the original scale are retained as the input of the model. In the unidirectional encoding process, information is propagated in only one direction, which may result in information loss or incomplete feature representation. Therefore, a bidirectional encoding structure is designed for feature extraction to more comprehensively capture the relevant information in the input frames. Specifically, two identical U-Net architectures are used to bidirectionally encode the input frames and extract bidirectional motion features. The input of the branch performing forward encoding is two consecutive frame images. and images The input of the branch that performs reverse encoding is two consecutive frame images and images This process can be expressed in mathematical form as (2).

[0113]

[0114]

[0115] In (2), F forward represents the positive feature, F backward represents the reverse feature, and U represents the U-Net architecture.

[0116] In the process of extracting features, the present invention uses a jump connection to connect the two decoders. Specifically, the present invention adds the decoded features of a certain layer of the forward branch decoder to the feature map of the corresponding layer of the reverse branch decoder, and splices them in the channel dimension, and vice versa. After the connection, the two decoders continue to perform upsampling and convolution operations on their respective branches, gradually generating bidirectional motion features. Finally, the present invention fuses the bidirectional motion features to obtain the original features for the input of the subsequent sub-network.

[0117] Furthermore, if Figure 2 As shown, the internal structures of the first, second, third, fourth, fifth, sixth, seventh, eighth, ninth and tenth deep over-parameterized circular residual convolution units are the same, and the first deep over-parameterized circular residual convolution unit includes:

[0118] A first deep hyperparameterized convolution layer DO-Conv, a second deep hyperparameterized convolution layer DO-Conv, a first linear rectification function layer, a third deep hyperparameterized convolution layer DO-Conv, a second linear rectification function layer and a tenth adder connected in sequence;

[0119] The input end of the first deep hyper-parameterized convolutional layer DO-Conv is also connected to the tenth adder through the fourth deep hyper-parameterized convolutional layer DO-Conv;

[0120] The input of the first deep hyperparameterized convolutional layer DO-Conv serves as the input of the first deep overparameterized cyclic residual convolutional unit;

[0121] The output end of the tenth adder is used as the output end of the first depth over-parameterized circular residual convolution unit.

[0122] Furthermore, if Figure 3 As shown, the internal structures of the first, second, third, fourth, fifth, sixth, seventh and eighth depth-separable residual convolution units are the same, and the first depth-separable residual convolution unit includes:

[0123] A first depthwise separable convolutional layer, a third linear rectification function layer, a second depthwise separable convolutional layer, a fourth linear rectification function layer, a fifth depthwise hyperparameterized convolutional layer DO-Conv, a fifth linear rectification function layer and an eleventh adder connected in sequence;

[0124] The input end of the first depthwise separable convolutional layer is also connected to the eleventh adder through the sixth depthwise hyperparameterized convolutional layer DO-Conv;

[0125] The input end of the first depth-wise separable convolution layer is the input end of the first depth-wise separable residual convolution unit; the output end of the eleventh adder is the output end of the first depth-wise separable residual convolution unit.

[0126] Furthermore, if Figure 4 As shown, the internal structures of the first, second, third, fourth, fifth, sixth, seventh and eighth attention mechanism modules are the same. The first attention mechanism module includes:

[0127] The first attention mechanism module input end, the first multiplier, the second multiplier and the first attention mechanism module output end are connected in sequence;

[0128] The input end of the first attention mechanism module is connected to the input end of the first branch and the input end of the second branch respectively;

[0129] The first branch includes: a first average pooling layer, a first convolutional layer, a sixth linear rectification function layer, and a second convolutional layer connected in sequence; an input end of the first average pooling layer is an input end of the first branch;

[0130] The second branch includes: a first maximum pooling layer, a third convolutional layer, a seventh linear rectification function layer, and a fourth convolutional layer connected in sequence; the input end of the first maximum pooling layer is the input end of the second branch;

[0131] The output end of the second convolutional layer and the output end of the fourth convolutional layer are both connected to the input end of the twelfth adder, the output end of the twelfth adder is connected to the input end of the first sigmoid activation function layer, and the output end of the first sigmoid activation function layer is connected to the input end of the first multiplier;

[0132] The output end of the first multiplier is connected to the input end of the second average pooling layer and the input end of the second maximum pooling layer respectively;

[0133] The output of the second average pooling layer and the output of the second maximum pooling layer are connected to the input of the channel splicing unit, the output of the channel splicing unit is connected to the input of the fifth convolutional layer, the output of the fifth convolutional layer is connected to the input of the second sigmoid activation function layer, and the output of the second sigmoid activation function layer is connected to the input of the second multiplier. The channel splicing unit is used to splice the two input feature maps on the corresponding channels.

[0134] Furthermore, if Figure 1 As shown, the multi-scale frame warping network includes three parallel sub-networks: a first sub-network, a second sub-network and a third sub-network.

[0135] Furthermore, if Figure 5 As shown, the internal structures of the first sub-network, the second sub-network and the third sub-network are consistent, and the first sub-network includes:

[0136] The third branch, the fourth branch, the fifth branch, the sixth branch, the seventh branch, and the eighth branch;

[0137] The internal structure of the third branch is the same as that of the sixth branch. The third branch includes: the seventh deep hyper-parameterized convolution layer DO-Conv, the eighth linear rectification function layer, the eighth deep hyper-parameterized convolution layer DO-Conv, the ninth linear rectification function layer, the ninth deep hyper-parameterized convolution layer DO-Conv, the tenth linear rectification function layer, the ninth upsampling layer, the tenth deep hyper-parameterized convolution layer DO-Conv and the first softmax activation function layer, which are connected in sequence.

[0138] The internal structures of the fourth, fifth, seventh and eighth branches are the same. The fourth branch includes: the eleventh deep hyperparameterized convolution layer DO-Conv, the eleventh linear rectification function layer, the twelfth deep hyperparameterized convolution layer DO-Conv, the twelfth linear rectification function layer, the thirteenth deep hyperparameterized convolution layer DO-Conv, the thirteenth linear rectification function layer, the tenth upsampling layer and the fourteenth deep hyperparameterized convolution layer DO-Conv connected in sequence.

[0139] Furthermore, the multi-scale frame warping network upsamples and downsamples the original features, and extracts pixel-level parameters of the original features of three scales through three groups of sub-networks; then, with the help of adaptive collaborative flow AdaCoF, frame warping operations are performed on the input frames of three scales according to the extracted pixel-level parameters, and finally warped frames of three scales are obtained.

[0140] Furthermore, the multi-scale frame warping network upsamples and downsamples the original features to obtain original features of double scale and half scale respectively; using the original features of the three scales obtained, the offset vectors of each target pixel in the horizontal and vertical directions on each scale output image and the weight of the convolution kernel of each target pixel are estimated through three groups of sub-networks; an adaptive collaborative flow is adopted to expand the motion sampling range by using the offset vector, and each pixel does not share weights, so as to warp the input images of the three scales into output images, perform pixel-level operations, and obtain warped frames of the three scales.

[0141] The obtained enhanced features are passed through three groups of sub-networks to estimate the pixel-level parameters of each target pixel on the input frames of different scales, and the adaptive collaborative flow is used to perform the distortion operation on the input frame, and finally the distorted frames of three scales are obtained. Among them, the estimated offset vector of each target pixel is used to expand the sampling position of the information, and the weight of each pixel is no longer shared. The operation is mathematically expressed by the following equation:

[0142]

[0143] Among them, (i, j) is the target pixel, K is the size of the convolution kernel, and W m,n (i,j) is the weight of the (p,q)th convolution kernel at the target pixel (i,j), (α m,n ,β m,n ) is an offset vector that can point to any position outside the grid point, and d is the dilation value.

[0144] Furthermore, if Figure 6 As shown, the multi-scale frame synthesis network includes GridNet; GridNet includes: three parallel branches: a ninth branch, a tenth branch, and an eleventh branch;

[0145] The ninth branch includes: a first residual block, a second residual block, a third residual block, a fourth residual block, a fifth residual block and a sixth residual block connected in sequence;

[0146] The tenth branch includes: a seventh residual block, an eighth residual block, a ninth residual block, a tenth residual block, an eleventh residual block and a twelfth residual block connected in sequence;

[0147] The eleventh branch includes: a thirteenth residual block, a fourteenth residual block, a fifteenth residual block, a sixteenth residual block, a seventeenth residual block and an eighteenth residual block connected in sequence;

[0148] The output end of the first residual block is connected to the input end of the first downsampling layer, and the output end of the first downsampling layer is connected to the input end of the seventh residual block; the output end of the seventh residual block is connected to the input end of the second downsampling layer, and the output end of the second downsampling layer is connected to the input end of the thirteenth residual block;

[0149] The output end of the second residual block is connected to the input end of the third downsampling layer, the output end of the third downsampling layer is connected to the input end of the eighth residual block; the output end of the eighth residual block is connected to the input end of the fourth downsampling layer, the output end of the fourth downsampling layer is connected to the input end of the fourteenth residual block;

[0150] The output end of the third residual block is connected to the input end of the fifth downsampling layer, the output end of the fifth downsampling layer is connected to the input end of the ninth residual block; the output end of the ninth residual block is connected to the input end of the sixth downsampling layer, the output end of the sixth downsampling layer is connected to the input end of the fifteenth residual block;

[0151] The input end of the fourth residual block is also connected to the output end of the eleventh upsampling layer, the input end of the eleventh upsampling layer is also connected to the output end of the tenth residual block, the input end of the tenth residual block is also connected to the output end of the twelfth upsampling layer, and the input end of the twelfth upsampling layer is also connected to the input end of the sixteenth residual block;

[0152] The input end of the fifth residual block is also connected to the output end of the thirteenth upsampling layer, the input end of the thirteenth upsampling layer is also connected to the output end of the eleventh residual block, the input end of the eleventh residual block is also connected to the output end of the fourteenth upsampling layer, and the input end of the fourteenth upsampling layer is also connected to the input end of the seventeenth residual block;

[0153] The input end of the sixth residual block is also connected to the output end of the fifteenth upsampling layer, the input end of the fifteenth upsampling layer is also connected to the output end of the twelfth residual block, the input end of the twelfth residual block is also connected to the output end of the sixteenth upsampling layer, and the input end of the sixteenth upsampling layer is also connected to the input end of the eighteenth residual block;

[0154] The output end of the sixth residual block is connected to the input end of the seventh down-sampling layer, and the output end of the seventh down-sampling layer is connected to the input end of the thirteenth adder;

[0155] An output end of the eighteenth residual block is connected to an input end of the seventeenth upsampling layer, and an output end of the seventeenth upsampling layer is connected to an input end of the thirteenth adder;

[0156] The output end of the twelfth residual block is connected to the input end of the thirteenth adder, and the output end of the thirteenth adder is the output end of the multi-scale frame synthesis network;

[0157] The input end of the first residual block, the input end of the seventh residual block and the input end of the thirteenth residual block are used as the input end of the multi-scale frame synthesis network;

[0158] The input end of the first residual block is used to input the distorted frame image of the second scale and images The input end of the seventh residual block is used to input the distorted frame image of the first scale and images The input end of the thirteenth residual block is used to input the distorted frame image of the third scale and images

[0159] Furthermore, if Figure 6 As shown, the internal structures of the first, second, third, fourth ... eighteenth residual blocks are the same, and the first residual block includes:

[0160] The first PRelu activation function layer, the sixth convolution layer, the seventh convolution layer, the third average pooling layer, the eighth convolution layer, the second PRelu activation function layer, the ninth convolution layer, the third multiplier, and the fourteenth adder are connected in sequence;

[0161] The input end of the first PRelu activation function layer is also connected to the input end of the fourteenth adder, and the input end of the third average pooling layer is also connected to the input end of the third multiplier.

[0162] Furthermore, the warped frames of the three scales are used as inputs of different rows of GridNet to generate intermediate frames. From top to bottom, the input and feature maps of each row have gradually decreasing resolutions.

[0163] The three-scale warped frames are input into different rows of the multi-scale frame synthesis network for synthesizing intermediate frames; the output of each row is obtained, the output of the ninth branch is downsampled, the output of the eleventh branch is upsampled, and then they are combined to generate the final interpolation result.

[0164] A multi-scale frame synthesis module includes a multi-scale frame synthesis network. The present invention uses a GridNet containing three rows and six columns as a synthesis network, and its input consists of distorted frames of different scales. From top to bottom, the input and feature map of each row have a gradually decreasing resolution. In the synthesis network, the present invention adds PReLU activation and residual structure to improve the result. In addition, the present invention introduces a channel attention mechanism to enable the synthesis network to focus on important channel information. In the upsampling process, the present invention adopts bilinear upsampling to avoid chessboard artifacts. Figure 6 The overall framework of the multi-scale frame synthesis network is shown. Figure 7 This is the structure diagram of the lateral residual block inside the GridNet network.

[0165] Embodiment 2

[0166] This embodiment provides a video frame interpolation system based on a bidirectional coding structure;

[0167] The video frame interpolation system based on the bidirectional coding structure includes:

[0168] An acquisition module is configured to: acquire two first-scale continuous frame images of the video to be interpolated and images

[0169] The preprocessing module is configured to: and images At the same time, upsampling is performed to obtain an image of the second scale and images For images and images At the same time, downsampling operation is performed to obtain the image of the third scale and images

[0170] The interpolation frame generation module is configured to: interpolate two consecutive frame images and images Input to the trained interpolation frame generation model; at the same time, the two consecutive frame images after reversing the order and images It is also input into the trained interpolation frame generation model; the model outputs the interpolation frame;

[0171] Among them, the trained interpolation frame generation model is used to and images And images and images Perform feature extraction, feature enhancement and feature fusion processing to obtain the original features of the first scale;

[0172] The original features of the first scale are upsampled to obtain the original features of the second scale; the original features of the first scale are downsampled to obtain the original features of the third scale;

[0173] The original features of the first, second and third scales are input into the corresponding sub-networks respectively, and the pixel-level parameters of each target pixel on the original features of the first, second and third scales are obtained respectively;

[0174] Based on the pixel-level parameters of each target pixel on the original features of each scale and the adaptive collaborative flow AdaCoF, the input image of the corresponding scale is distorted to obtain a distorted frame image of the corresponding scale;

[0175] The warped frame images of multiple scales are synthesized to obtain interpolated frames.

[0176] It should be noted that the acquisition module, preprocessing module and interpolation frame generation module correspond to steps S101 to S103 in Embodiment 1, and the examples and application scenarios implemented by the modules and the corresponding steps are the same, but are not limited to the contents disclosed in Embodiment 1. It should be noted that the modules as part of the system can be executed in a computer system such as a set of computer executable instructions.

[0177] The description of each embodiment in the above embodiments has different emphases. For parts not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0178] The proposed system can be implemented in other ways. For example, the system embodiment described above is only illustrative, and the division of the modules is only a logical function division. In actual implementation, there may be other division methods, such as multiple modules can be combined or integrated into another system, or some features can be ignored or not executed.

[0179] Embodiment 3

[0180] This embodiment also provides an electronic device, including: one or more processors, one or more memories, and one or more computer programs; wherein the processor is connected to the memory, and the one or more computer programs are stored in the memory. When the electronic device is running, the processor executes the one or more computer programs stored in the memory so that the electronic device executes the method described in the above embodiment one.

[0181] It should be understood that in this embodiment, the processor may be a central processing unit CPU, and the processor may also be other general-purpose processors, digital signal processors DSP, application-specific integrated circuits ASIC, off-the-shelf programmable gate arrays FPGA or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.

[0182] The memory may include a read-only memory and a random access memory, and provide instructions and data to the processor. A portion of the memory may also include a non-volatile random access memory. For example, the memory may also store information about the device type.

[0183] In the implementation process, each step of the above method can be completed by an integrated logic circuit of hardware in a processor or an instruction in the form of software.

[0184] The method in the first embodiment can be directly embodied as a hardware processor, or a combination of hardware and software modules in the processor. The software module can be located in a mature storage medium in the field such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory, or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory, and the processor reads the information in the memory and completes the steps of the above method in combination with its hardware. To avoid repetition, it will not be described in detail here.

[0185] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with this embodiment can be implemented in electronic hardware or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.

[0186] Embodiment 4

[0187] This embodiment further provides a computer-readable storage medium for storing computer instructions. When the computer instructions are executed by a processor, the method described in the first embodiment is completed.

[0188] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. A video frame interpolation method based on a bidirectional coding structure, characterized in that: include: Get two first-scale continuous frame images of the video to be interpolated and images ; For images and images At the same time, upsampling is performed to obtain an image of the second scale and images ; for images and images At the same time, downsampling operation is performed to obtain the image of the third scale and images ; Two consecutive frame images and images , input to the trained interpolation frame generation model; at the same time, the two consecutive frame images after reversing the order and images , is also input into the trained interpolation frame generation model; the model outputs the interpolation frame; Among them, the trained interpolation frame generation model is used to and images and images and images , perform feature extraction, feature enhancement and feature fusion processing to obtain the original features of the first scale; The original features of the first scale are upsampled to obtain the original features of the second scale; the original features of the first scale are downsampled to obtain the original features of the third scale; The original features of the first, second and third scales are input into the corresponding sub-networks respectively, and the pixel-level parameters of each target pixel on the original features of the first, second and third scales are obtained respectively; Based on the pixel-level parameters of each target pixel on the original features of each scale and the adaptive collaborative flow AdaCoF, the input image of the corresponding scale is distorted to obtain a distorted frame image of the corresponding scale; the distorted frame images of multiple scales are synthesized to obtain an interpolated frame; The trained interpolation frame generation model comprises: A feature extraction module, a multi-scale frame warping network, and a multi-scale frame synthesis network connected in sequence; The feature extraction module is used to extract the image and images and images and images , perform feature extraction, feature enhancement and feature fusion processing to obtain the original features of the first scale, including: Backward encoding U-Net branch and forward encoding U-Net branch; The reverse encoding U-Net branch includes: a reverse encoder and a reverse decoder connected in sequence; The reverse encoder comprises: a first depth over-parameterized cyclic residual convolution unit, a first average pooling layer, a second depth over-parameterized cyclic residual convolution unit, a second average pooling layer, a third depth over-parameterized cyclic residual convolution unit, a third average pooling layer, a first depth separable residual convolution unit, a fourth average pooling layer, a second depth separable residual convolution unit and a fifth average pooling layer connected in sequence; The reverse decoder further includes: a third depth-wise separable residual convolution unit, a first upsampling layer, a first adder, a fourth depth-wise separable residual convolution unit, a second upsampling layer, a second adder, a fourth depth-wise over-parameterized cyclic residual convolution unit, a third upsampling layer, a third adder, a fifth depth-wise over-parameterized cyclic residual convolution unit, a fourth upsampling layer, and a fourth adder, which are connected in sequence; The output end of the second deep over-parameterized cyclic residual convolution unit is connected to the input end of the first attention mechanism module, and the output end of the first attention mechanism module is connected to the input end of the fourth adder; The output end of the third deep over-parameterized cyclic residual convolution unit is connected to the input end of the second attention mechanism module, and the output end of the second attention mechanism module is connected to the input end of the third adder; An output end of the first depth-wise separable residual convolution unit is connected to an input end of a third attention mechanism module, and an output end of the third attention mechanism module is connected to an input end of the second adder; An output end of the second depthwise separable residual convolution unit is connected to an input end of a fourth attention mechanism module, and an output end of the fourth attention mechanism module is connected to an input end of the first adder; The forward encoding U-Net branch includes: a forward encoder and a forward decoder connected in sequence; The forward encoder comprises: a sixth deep over-parameterized cyclic residual convolution unit, a sixth average pooling layer, a seventh deep over-parameterized cyclic residual convolution unit, a seventh average pooling layer, an eighth deep over-parameterized cyclic residual convolution unit, an eighth average pooling layer, a fifth deep separable residual convolution unit, a ninth average pooling layer, a sixth deep separable residual convolution unit and a tenth average pooling layer connected in sequence; The forward decoder further includes: a seventh depth-wise separable residual convolution unit, a fifth upsampling layer, a fifth adder, an eighth depth-wise separable residual convolution unit, a sixth upsampling layer, a sixth adder, a ninth depth-wise over-parameterized circular residual convolution unit, a seventh upsampling layer, a seventh adder, a tenth depth-wise over-parameterized circular residual convolution unit, an eighth upsampling layer, and an eighth adder, which are connected in sequence; The output end of the seventh deep over-parameterized cyclic residual convolution unit is connected to the input end of the fifth attention mechanism module, and the output end of the fifth attention mechanism module is connected to the input end of the eighth adder; The output end of the eighth deep over-parameterized cyclic residual convolution unit is connected to the input end of the sixth attention mechanism module, and the output end of the sixth attention mechanism module is connected to the input end of the seventh adder; An output end of the fifth depth-wise separable residual convolution unit is connected to an input end of a seventh attention mechanism module, and an output end of the seventh attention mechanism module is connected to an input end of a sixth adder; An output end of the sixth depthwise separable residual convolution unit is connected to an input end of the eighth attention mechanism module, and an output end of the eighth attention mechanism module is connected to an input end of the fifth adder; The reverse decoding features of different scales are fused with the forward decoding features of the corresponding scales; The forward decoding features of different scales are fused with the reverse decoding features of the corresponding scales; An output end of the third depth-wise separable residual convolution unit is connected to an input end of the fifth adder; an output end of the seventh depth-wise separable residual convolution unit is connected to an input end of the first adder; An output end of the fourth depth-wise separable residual convolution unit is connected to an input end of the sixth adder; an output end of the eighth depth-wise separable residual convolution unit is connected to an input end of the second adder; The output end of the fourth depth over-parameterized circular residual convolution unit is connected to the input end of the seventh adder; the output end of the ninth depth over-parameterized circular residual convolution unit is connected to the input end of the third adder; An output end of the fifth depth over-parameterized circular residual convolution unit is connected to an input end of the eighth adder; an output end of the tenth depth over-parameterized circular residual convolution unit is connected to an input end of the fourth adder; The multi-scale frame warping network is used to perform up-sampling processing on the original features of the first scale to obtain the original features of the second scale; and to perform down-sampling processing on the original features of the first scale to obtain the original features of the third scale; The original features of the first, second and third scales are input into the corresponding sub-networks respectively, and the pixel-level parameters of each target pixel on the original features of the first, second and third scales are obtained respectively; Based on the pixel-level parameters of each target pixel on the original features of the first scale and the adaptive collaborative flow AdaCoF, the image of the first scale is and images Perform a distortion operation to obtain a distorted frame image of the first scale and images ; Based on the pixel-level parameters of each target pixel on the original features of the second scale and the adaptive collaborative flow AdaCoF, the image of the second scale is and images Perform a distortion operation to obtain a distorted frame image of the second scale and images ; Based on the pixel-level parameters of each target pixel on the original features of the third scale and the adaptive collaborative flow AdaCoF, the image of the third scale is and images Perform a distortion operation to obtain a distorted frame image of the third scale and images ; The multi-scale frame synthesis network is used to distort the frame image ,image ,image ,image ,image and images , perform synthesis operation to obtain interpolated frames; The multi-scale frame synthesis network includes GridNet; GridNet includes: three parallel branches: a ninth branch, a tenth branch and an eleventh branch; The ninth branch includes: a first residual block, a second residual block, a third residual block, a fourth residual block, a fifth residual block and a sixth residual block connected in sequence; The first residual block includes: a first PReLU activation function layer, a sixth convolution layer, a seventh convolution layer, a third average pooling layer, an eighth convolution layer, a second PReLU activation function layer, a ninth convolution layer, a third multiplier, and a fourteenth adder connected in sequence; the input end of the first PReLU activation function layer is also connected to the input end of the fourteenth adder, and the input end of the third average pooling layer is also connected to the input end of the third multiplier; further, the distorted frames of the three scales are respectively used as inputs of different rows of GridNet to generate intermediate frames; from top to bottom, the input and feature maps of each row have a gradually decreasing resolution; a channel attention mechanism is introduced; and in the upsampling process, bilinear upsampling is used.

2. The video frame interpolation method based on the bidirectional coding structure as claimed in claim 1, characterized in that: The first deep over-parameterized cyclic residual convolution unit comprises: A first deep hyperparameterized convolution layer DO-Conv, a second deep hyperparameterized convolution layer DO-Conv, a first linear rectification function layer, a third deep hyperparameterized convolution layer DO-Conv, a second linear rectification function layer and a tenth adder connected in sequence; The input end of the first deep hyper-parameterized convolutional layer DO-Conv is also connected to the tenth adder through the fourth deep hyper-parameterized convolutional layer DO-Conv; The input of the first deep hyperparameterized convolutional layer DO-Conv serves as the input of the first deep overparameterized cyclic residual convolutional unit; The output end of the tenth adder is used as the output end of the first depth over-parameterized circular residual convolution unit; The first depth-separable residual convolution unit comprises: A first depthwise separable convolutional layer, a third linear rectification function layer, a second depthwise separable convolutional layer, a fourth linear rectification function layer, a fifth depthwise hyperparameterized convolutional layer DO-Conv, a fifth linear rectification function layer and an eleventh adder connected in sequence; The input end of the first depthwise separable convolutional layer is also connected to the eleventh adder through the sixth depthwise hyperparameterized convolutional layer DO-Conv; The input end of the first depth-wise separable convolution layer is the input end of the first depth-wise separable residual convolution unit; the output end of the eleventh adder is the output end of the first depth-wise separable residual convolution unit.

3. The video frame interpolation method based on the bidirectional coding structure as claimed in claim 2, characterized in that: The reverse encoder is used to realize two consecutive frames and images The encoding of obtains several reverse encoding features of different scales; The reverse decoder is used to implement decoding processing of the reverse coding features to obtain reverse decoding features of several different scales; The forward encoder is used to implement two consecutive frames and images The forward coding features of the forward coding are obtained by encoding the forward coding features of the forward coding features to obtain the forward decoding features of the forward coding features of the forward coding features; the forward decoder is used to implement the decoding process of the forward coding features to obtain the forward decoding features of the forward coding features of the forward coding features; Finally, the ninth adder sums the output of the fourth adder and the output of the eighth adder to obtain the original feature.

4. A video frame interpolation system based on a bidirectional coding structure, characterized in that: include: An acquisition module is configured to: acquire two first-scale continuous frame images of the video to be interpolated and images ; The preprocessing module is configured to: and images At the same time, upsampling is performed to obtain an image of the second scale and images ; for images and images At the same time, downsampling operation is performed to obtain the image of the third scale and images ; The interpolation frame generation module is configured to: interpolate two consecutive frame images and images , input to the trained interpolation frame generation model; at the same time, the two consecutive frame images after reversing the order and images , is also input into the trained interpolation frame generation model; the model outputs the interpolation frame; Among them, the trained interpolation frame generation model is used to and images and images and images , perform feature extraction, feature enhancement and feature fusion processing to obtain the original features of the first scale; The original features of the first scale are upsampled to obtain the original features of the second scale; the original features of the first scale are downsampled to obtain the original features of the third scale; The original features of the first, second and third scales are input into the corresponding sub-networks respectively, and the pixel-level parameters of each target pixel on the original features of the first, second and third scales are obtained respectively; Based on the pixel-level parameters of each target pixel on the original features of each scale and the adaptive collaborative flow AdaCoF, the input image of the corresponding scale is distorted to obtain a distorted frame image of the corresponding scale; the distorted frame images of multiple scales are synthesized to obtain an interpolated frame; The trained interpolation frame generation model comprises: A feature extraction module, a multi-scale frame warping network, and a multi-scale frame synthesis network connected in sequence; The feature extraction module is used to extract the image and images and images and images , perform feature extraction, feature enhancement and feature fusion processing to obtain the original features of the first scale, including: Backward encoding U-Net branch and forward encoding U-Net branch; The reverse encoding U-Net branch includes: a reverse encoder and a reverse decoder connected in sequence; The reverse encoder comprises: a first depth over-parameterized cyclic residual convolution unit, a first average pooling layer, a second depth over-parameterized cyclic residual convolution unit, a second average pooling layer, a third depth over-parameterized cyclic residual convolution unit, a third average pooling layer, a first depth separable residual convolution unit, a fourth average pooling layer, a second depth separable residual convolution unit and a fifth average pooling layer connected in sequence; The reverse decoder further includes: a third depth-wise separable residual convolution unit, a first upsampling layer, a first adder, a fourth depth-wise separable residual convolution unit, a second upsampling layer, a second adder, a fourth depth-wise over-parameterized cyclic residual convolution unit, a third upsampling layer, a third adder, a fifth depth-wise over-parameterized cyclic residual convolution unit, a fourth upsampling layer, and a fourth adder, which are connected in sequence; The output end of the second deep over-parameterized cyclic residual convolution unit is connected to the input end of the first attention mechanism module, and the output end of the first attention mechanism module is connected to the input end of the fourth adder; The output end of the third deep over-parameterized cyclic residual convolution unit is connected to the input end of the second attention mechanism module, and the output end of the second attention mechanism module is connected to the input end of the third adder; An output end of the first depth-wise separable residual convolution unit is connected to an input end of a third attention mechanism module, and an output end of the third attention mechanism module is connected to an input end of the second adder; An output end of the second depthwise separable residual convolution unit is connected to an input end of a fourth attention mechanism module, and an output end of the fourth attention mechanism module is connected to an input end of the first adder; The forward encoding U-Net branch includes: a forward encoder and a forward decoder connected in sequence; The forward encoder comprises: a sixth deep over-parameterized cyclic residual convolution unit, a sixth average pooling layer, a seventh deep over-parameterized cyclic residual convolution unit, a seventh average pooling layer, an eighth deep over-parameterized cyclic residual convolution unit, an eighth average pooling layer, a fifth deep separable residual convolution unit, a ninth average pooling layer, a sixth deep separable residual convolution unit and a tenth average pooling layer connected in sequence; The forward decoder further includes: a seventh depth-wise separable residual convolution unit, a fifth upsampling layer, a fifth adder, an eighth depth-wise separable residual convolution unit, a sixth upsampling layer, a sixth adder, a ninth depth-wise over-parameterized circular residual convolution unit, a seventh upsampling layer, a seventh adder, a tenth depth-wise over-parameterized circular residual convolution unit, an eighth upsampling layer, and an eighth adder, which are connected in sequence; The output end of the seventh deep over-parameterized cyclic residual convolution unit is connected to the input end of the fifth attention mechanism module, and the output end of the fifth attention mechanism module is connected to the input end of the eighth adder; The output end of the eighth deep over-parameterized cyclic residual convolution unit is connected to the input end of the sixth attention mechanism module, and the output end of the sixth attention mechanism module is connected to the input end of the seventh adder; An output end of the fifth depth-wise separable residual convolution unit is connected to an input end of a seventh attention mechanism module, and an output end of the seventh attention mechanism module is connected to an input end of a sixth adder; An output end of the sixth depthwise separable residual convolution unit is connected to an input end of the eighth attention mechanism module, and an output end of the eighth attention mechanism module is connected to an input end of the fifth adder; The reverse decoding features of different scales are fused with the forward decoding features of the corresponding scales; The forward decoding features of different scales are fused with the reverse decoding features of the corresponding scales; An output end of the third depth-wise separable residual convolution unit is connected to an input end of the fifth adder; an output end of the seventh depth-wise separable residual convolution unit is connected to an input end of the first adder; An output end of the fourth depth-wise separable residual convolution unit is connected to an input end of the sixth adder; an output end of the eighth depth-wise separable residual convolution unit is connected to an input end of the second adder; The output end of the fourth depth over-parameterized circular residual convolution unit is connected to the input end of the seventh adder; the output end of the ninth depth over-parameterized circular residual convolution unit is connected to the input end of the third adder; An output end of the fifth depth over-parameterized circular residual convolution unit is connected to an input end of the eighth adder; an output end of the tenth depth over-parameterized circular residual convolution unit is connected to an input end of the fourth adder; The multi-scale frame warping network is used to perform up-sampling processing on the original features of the first scale to obtain the original features of the second scale; and to perform down-sampling processing on the original features of the first scale to obtain the original features of the third scale; The original features of the first, second and third scales are input into the corresponding sub-networks respectively, and the pixel-level parameters of each target pixel on the original features of the first, second and third scales are obtained respectively; Based on the pixel-level parameters of each target pixel on the original features of the first scale and the adaptive collaborative flow AdaCoF, the image of the first scale is and images Perform a distortion operation to obtain a distorted frame image of the first scale and images ; Based on the pixel-level parameters of each target pixel on the original features of the second scale and the adaptive collaborative flow AdaCoF, the image of the second scale is and images Perform a distortion operation to obtain a distorted frame image of the second scale and images ; Based on the pixel-level parameters of each target pixel on the original features of the third scale and the adaptive collaborative flow AdaCoF, the image of the third scale is and images Perform a distortion operation to obtain a distorted frame image of the third scale and images ; The multi-scale frame synthesis network is used to distort the frame image ,image ,image ,image ,image and images , perform synthesis operation to obtain interpolated frames; The multi-scale frame synthesis network includes GridNet; GridNet includes: three parallel branches: a ninth branch, a tenth branch and an eleventh branch; The ninth branch includes: a first residual block, a second residual block, a third residual block, a fourth residual block, a fifth residual block and a sixth residual block connected in sequence; The first residual block includes: a first PReLU activation function layer, a sixth convolution layer, a seventh convolution layer, a third average pooling layer, an eighth convolution layer, a second PReLU activation function layer, a ninth convolution layer, a third multiplier, and a fourteenth adder connected in sequence; the input end of the first PReLU activation function layer is also connected to the input end of the fourteenth adder, and the input end of the third average pooling layer is also connected to the input end of the third multiplier; further, the distorted frames of the three scales are respectively used as inputs of different rows of GridNet to generate intermediate frames; from top to bottom, the input and feature maps of each row have a gradually decreasing resolution; a channel attention mechanism is introduced; and in the upsampling process, bilinear upsampling is used.

5. An electronic device, comprising: a memory for non-transitory storage of computer readable instructions; as well as a processor for executing the computer readable instructions, Wherein, when the computer-readable instructions are executed by the processor, the method according to any one of claims 1 to 3 is executed.

6. A storage medium characterized by being non-transitory The computer-readable instructions are stored, wherein when the non-transitory computer-readable instructions are executed by a computer, the instructions of the method according to any one of claims 1 to 3 are executed.

Citation Information

Patent Citations

  • Bidirectional coding video frame insertion method, system and equipment based on deep learning

    CN114125455A

  • Video frame generation method and system based on residual block and feature pyramid

    CN114842400A

  • Frame insertion method and system based on cyclic residual convolution and over-parameterized convolution

    CN115170402A

  • Video frame interpolation method and system based on lightweight driving and three-scale coding

    CN115880149A

  • Frame insertion method and system based on edge information and multi-scale cross convergence network

    CN116895037A