Encoding method, decoding method, code stream, encoder, decoder, and storage medium

By utilizing the enhanced processing of reconstructed motion parameters and reference images in video coding to generate target prediction image features, the problem of motion vector representation distortion in traditional video coding is solved, and the quality of image reconstruction and encoding and decoding efficiency are improved.

WO2024192563A1PCT designated stage expired Publication Date: 2024-09-26GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP LTD

Patent Information

Application Number
PCT/CN2023/082173
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Filing Date
2023-03-17
Publication Date
2024-09-26

AI Technical Summary

Technical Problem

In video coding based on deep learning, the traditional compression process of motion vector representation is a lossy process, resulting in distortion of the reconstructed motion vector representation, and it is difficult to generate high-quality predicted images from a single reference image, which reduces the efficiency of video encoding and decoding.

Method used

By determining the reconstructed motion parameters of the current image at the encoding end and the decoding end respectively, and using the reconstructed motion parameters to generate initial predicted image features, combined with at least one reference image for enhancement processing, the target predicted image features are generated to improve the predicted image quality and encoding and decoding. efficiency.

Benefits of technology

It effectively reduces the distortion of predicted images, improves image reconstruction quality, improves encoding and decoding efficiency, and achieves more efficient video encoding and decoding performance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2023082173_26092024_PF_FP
    Figure CN2023082173_26092024_PF_FP
Patent Text Reader

Abstract

Disclosed in embodiments of the present application are an encoding method, a decoding method, a code stream, an encoder, a decoder, and a storage medium. The decoding method is applied to the decoder, and comprises: decoding a code stream, and determining a reconstruction motion parameter of a current image; determining an initial prediction image feature of the current image according to the reconstruction motion parameter; and performing enhancement processing on the initial prediction image feature according to at least one reference image, and determining a target prediction image feature of the current image, wherein the target prediction image feature is used for determining a reconstructed image of the current image. In this way, prediction image quality can be improved according to the target prediction image feature, thereby improving the encoding / decoding efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Coding and decoding method, code stream, encoder, decoder and storage medium Technical Field

[0001] The embodiments of the present application relate to the field of video coding and decoding technology, and in particular to a coding and decoding method, a bit stream, an encoder, a decoder, and a storage medium. Background Art

[0002] In deep learning-based video coding, there are currently two main technical solutions, namely the feature-space video coding network (FVC) solution and the deep contextual video compression (DCVC) solution.

[0003] Taking the FVC scheme as an example, during motion estimation, deformable convolution can be used to generate a motion vector representation—an offset. However, since compression of the offset is a lossy process, the reconstructed motion vector representation (offset) is distorted. Furthermore, motion estimation based on a single reference image cannot effectively predict the current image, thus reducing video encoding and decoding efficiency.

[0004] Summary of the Invention

[0005] The embodiments of the present application provide a coding and decoding method, a code stream, an encoder, a decoder, and a storage medium, which can improve the quality of predicted images, thereby improving coding and decoding efficiency.

[0006] The technical solution of the embodiment of the present application can be implemented as follows:

[0007] In a first aspect, an embodiment of the present application provides a decoding method, applied to a decoder, the method comprising:

[0008] Decode the code stream and determine the reconstructed motion parameters of the current image;

[0009] Determining initial predicted image features of the current image based on the reconstructed motion parameters;

[0010] The initial predicted image features are enhanced according to at least one reference image to determine target predicted image features of the current image; wherein the target predicted image features are used to determine a reconstructed image of the current image.

[0011] In a second aspect, an embodiment of the present application provides an encoding method, applied to an encoder, the method comprising:

[0012] Determine the reconstructed motion parameters of the current image;

[0013] Determining initial predicted image features of the current image based on the reconstructed motion parameters;

[0014] The initial predicted image features are enhanced according to at least one reference image to determine target predicted image features of the current image; wherein the target predicted image features are used to determine residual image features of the current image.

[0015] In a third aspect, an embodiment of the present application provides a code stream, which is generated by bit encoding based on information to be encoded; wherein the information to be encoded includes at least one of the following:

[0016] The values ​​of the first motion parameter, residual image feature and first identification information of the current image; wherein the first identification information is used to indicate whether the current image uses the predicted image feature enhancement mode.

[0017] In a fourth aspect, an embodiment of the present application provides an encoder, comprising a first determining unit and a first enhancing unit; wherein,

[0018] A first determining unit is configured to determine a reconstructed motion parameter of the current image; and determine an initial predicted image feature of the current image based on the reconstructed motion parameter;

[0019] The first enhancement unit is configured to enhance the initial predicted image features according to at least one reference image to determine the target predicted image features of the current image; wherein the target predicted image features are used to determine the residual image features of the current image.

[0020] In a fifth aspect, an embodiment of the present application provides an encoder, comprising a first memory and a first processor; wherein,

[0021] a first memory for storing a computer program capable of running on the first processor;

[0022] The first processor is configured to execute the method according to the second aspect when running a computer program.

[0023] In a sixth aspect, an embodiment of the present application provides a decoder, comprising a decoding unit, a second determining unit, and a second enhancing unit; wherein,

[0024] a decoding unit configured to decode the code stream and determine reconstructed motion parameters of the current image;

[0025] a second determining unit configured to determine an initial predicted image feature of the current image based on the reconstructed motion parameter;

[0026] The second enhancement unit is configured to enhance the initial predicted image features according to at least one reference image to determine the target predicted image features of the current image; wherein the target predicted image features are used to determine the reconstructed image of the current image.

[0027] In a seventh aspect, an embodiment of the present application provides a decoder, the decoder comprising a second memory and a second processor; wherein,

[0028] a second memory for storing a computer program capable of running on the second processor;

[0029] The second processor is configured to execute the method according to the first aspect when running a computer program.

[0030] In an eighth aspect, an embodiment of the present application provides a computer-readable storage medium storing a computer program, which, when executed, implements the method described in the first aspect or the method described in the second aspect.

[0031] The embodiments of the present application provide a coding and decoding method, a code stream, an encoder, a decoder, and a storage medium. At either the encoding or decoding end, after determining the reconstructed motion parameters of the current image, the initial predicted image features of the current image are determined based on the reconstructed motion parameters. The initial predicted image features are then enhanced based on at least one reference image to determine the target predicted image features of the current image. At the encoding end, the target predicted image features are used to determine the residual image features of the current image. The target predicted image features are then transmitted to the decoding end via the code stream, so that the decoding end can determine the reconstructed image of the current image based on the residual image features and the target predicted image features. Thus, after determining the initial predicted image features of the current image based on the reconstructed motion parameters, the initial predicted image features can be enhanced using the reconstructed reference image, thereby improving the quality of the predicted image and reducing distortion of the predicted image. Furthermore, due to factors such as occlusion caused by motion, a single reference image cannot generate a good predicted image. In this case, enhancing the initial predicted image features using at least one reconstructed reference image can further improve the quality of the predicted image, thereby improving the quality of the reconstructed image of the current image and improving coding and decoding efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0032] FIG1 is a schematic diagram of the composition structure of an FVC coding framework;

[0033] FIG2 is a schematic diagram of the composition structure of an FVC decoding framework;

[0034] FIG3 is a schematic diagram of a flow chart of a decoding method provided in an embodiment of the present application;

[0035] FIG4 is a schematic diagram of the composition structure of a prediction enhancement module provided in an embodiment of the present application;

[0036] FIG5 is a schematic diagram of a specific structure of a prediction enhancement module provided in an embodiment of the present application;

[0037] FIG6 is a schematic diagram of the composition structure of a feature extraction module provided in an embodiment of the present application;

[0038] FIG7 is a schematic diagram of the composition structure of a residual module provided in an embodiment of the present application;

[0039] FIG8 is a schematic diagram of the composition structure of a prediction feature generation module provided in an embodiment of the present application;

[0040] FIG9 is a schematic diagram of the detailed structure of a prediction feature generation module provided in an embodiment of the present application;

[0041] FIG10 is a schematic diagram of a flow chart of another decoding method provided in an embodiment of the present application;

[0042] FIG11 is a schematic diagram of the structure of a reconstruction enhancement module provided in an embodiment of the present application;

[0043] FIG12 is a schematic diagram of a flow chart of an encoding method provided in an embodiment of the present application;

[0044] FIG13 is a schematic diagram of the composition structure of a motion parameter generation module provided in an embodiment of the present application;

[0045] FIG14 is a detailed structural diagram of a motion parameter generation module provided in an embodiment of the present application;

[0046] FIG15 is a schematic diagram of the composition structure of an encoding module of an autoencoder provided in an embodiment of the present application;

[0047] FIG16 is a schematic diagram of the composition structure of a decoding module of an autoencoder provided in an embodiment of the present application;

[0048] FIG17 is a schematic diagram of a network architecture of a video codec provided in an embodiment of the present application;

[0049] FIG18 is a detailed schematic diagram of the framework of an encoder provided in an embodiment of the present application;

[0050] FIG19 is a schematic diagram of the specific structure of another prediction enhancement module provided in an embodiment of the present application;

[0051] FIG20 is a detailed schematic diagram of a decoder provided in an embodiment of the present application;

[0052] FIG21 is a schematic diagram of the structure of an encoder provided in an embodiment of the present application;

[0053] FIG22 is a schematic diagram of a specific hardware structure of an encoder provided in an embodiment of the present application;

[0054] FIG23 is a schematic diagram of the structure of a decoder provided in an embodiment of the present application;

[0055] FIG24 is a schematic diagram of a specific hardware structure of a decoder provided in an embodiment of the present application;

[0056] FIG25 is a schematic diagram of the composition structure of a coding and decoding system provided in an embodiment of the present application. DETAILED DESCRIPTION

[0057] In order to enable a more detailed understanding of the features and technical contents of the embodiments of the present application, the implementation of the embodiments of the present application is described in detail below with reference to the accompanying drawings. The attached drawings are for reference only and are not used to limit the embodiments of the present application.

[0058] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by those skilled in the art to which this application pertains. The terms used herein are for the purpose of describing the embodiments of this application only and are not intended to limit this application.

[0059] In the following description, reference is made to "some embodiments," which describe a subset of all possible embodiments. However, it is understood that "some embodiments" may be the same subset or different subsets of all possible embodiments, and may be combined with each other without conflict. It should also be noted that the terms "first, second, and third" in the embodiments of the present application are only used to distinguish similar objects and do not represent a specific ordering of the objects. It is understood that "first, second, and third" may be interchanged in a specific order or sequential order where permitted, so that the embodiments of the present application described herein can be implemented in an order other than that illustrated or described herein.

[0060] In video coding based on deep learning, there are currently two main technical solutions, namely the feature-space video coding network (FVC) solution and the context-based video coding compression (DCVC) solution. Among them, the motion estimation method of the FVC solution is different from that of the DCVC solution. The former is a motion estimation method based on deformable convolution, and the latter is a motion estimation method based on optical flow. However, their overall encoding methods are basically the same. In the embodiment of the present application, a coding and decoding method based on the FVC solution is mainly provided.

[0061] Figure 1 is a schematic diagram of the structure of an FVC coding framework. As shown in Figure 1, the FVC coding framework mainly includes: feature extraction module 101, motion estimation module 102, motion compression module 103, motion compensation module 104, residual compression module 105, entropy coding module 106, feature enhancement and reconstruction module 107, subtractor 108 and adder 109. First, the feature extraction module 101 extracts features from the current image (the image to be encoded) and the reconstructed image (the encoded image, used as a reference) to obtain F t and Then both enter the motion estimation module 102 to obtain the motion parameter θ t In the motion compression module 103, the motion parameter θ is obtained by using the encoding module of the self-encoder and the entropy encoding module 106. t Encode and generate bit stream M t Sent to the decoding end, and the decoding module of the autoencoder is used to decode M t Decode and reconstruct Used in motion compensation module 104. Here, the motion compensation process is to use motion parameters The reconstructed image (reference image) features are deformed to generate predicted image features; then the current image features and the predicted image features are subtracted by the subtractor 108 to obtain the residual image features R t In the residual compression module 105, the residual image feature R t The bit stream Y is further generated by the encoding module of the autoencoder and the entropy encoding module 106. t Sent to the decoding end, and Y is decoded by the decoding module of the autoencoder t Perform decoding and reconstruction to obtain the reconstruction residual Then, the reconstructed residual and the predicted image feature are added together by adder 109 to generate The final reconstructed image is generated by the feature enhancement and reconstruction module 107 Among them, the reconstructed image It can be stored in the decoded image buffer for subsequent image reference.

[0062] Specifically, for the motion estimation module of the FVC scheme shown in Figure 1, deformable convolution can be used to generate a motion vector representation - an offset. The offset is then encoded based on the encoding module and entropy encoding module of the autoencoder to generate a bitstream (also called a "bitstream"). The bitstream is entropy decoded and the decoding module of the autoencoder generates a reconstructed offset. The reconstructed offset uses deformable convolution and reference image features to generate predicted image features (i.e., motion compensation), which are then subtracted from the current image features to generate residual image features, and then the next step of quantization and encoding is performed.

[0063] Figure 2 is a schematic diagram of the composition structure of an FVC decoding framework. As shown in Figure 2, the FVC encoding framework mainly includes: feature extraction module 201, motion compression module 202, motion compensation module 203, residual compression module 204, entropy decoding module 205, feature enhancement and reconstruction module 206 and adder 207. First, the feature extraction module 201 extracts features from the reconstructed image (decoded image, used as a reference) to obtain And in the motion compression module 202, the entropy decoding module 205 and the decoding module of the self-encoder are used to decode M t Decode and reconstruct motion parameters Here, the motion parameters It can be used in the motion compensation module 203. The motion compensation process is to use The reconstructed image (reference image) features are deformed to generate predicted image features; in the residual compression module 204, the Y t Perform decoding and reconstruction to obtain the reconstruction residual Finally, the reconstructed residual and the predicted image features are added together by adder 207 to generate The final reconstructed image is generated by the feature enhancement and reconstruction module 206 Among them, the reconstructed image It can be stored in the decoded image buffer for subsequent image reference.

[0064] Simply put, in the above-mentioned process of motion estimation and motion compensation to generate reference images, the compression of the motion vector representation (offset) is a lossy process, so the reconstructed motion vector representation (offset) is distorted; secondly, motion estimation based on a single reference image cannot generate a high-quality reference image, that is, compared with multi-reference image prediction, only one reference image cannot effectively predict the current image; thereby reducing the video encoding and decoding efficiency.

[0065] Based on this, an embodiment of the present application provides an encoding method, which first determines the reconstructed motion parameters of the current image; then, based on the reconstructed motion parameters, determines the initial predicted image features of the current image; then, based on at least one reference image, enhances the initial predicted image features to determine the target predicted image features of the current image; wherein, the target predicted image features are used to determine the residual image features of the current image.

[0066] An embodiment of the present application also provides a decoding method, which first decodes the code stream to determine the reconstructed motion parameters of the current image; then, based on the reconstructed motion parameters, determines the initial predicted image features of the current image; then, based on at least one reference image, enhances the initial predicted image features to determine the target predicted image features of the current image; wherein, the target predicted image features are used to determine the reconstructed image of the current image.

[0067] In this way, after determining the initial predicted image features of the current image based on the reconstructed motion parameters, the initial predicted image features can be enhanced using the reconstructed reference image, thereby improving the predicted image quality and reducing the predicted image distortion; in addition, due to reasons such as the occlusion area caused by motion, a single reference image cannot generate a predicted image well. At this time, using at least one reconstructed reference image to enhance the initial predicted image features can further improve the predicted image quality, and thus improve the reconstructed image quality of the current image, and improve the encoding and decoding efficiency.

[0068] The embodiments of the present application will be described in detail below with reference to the accompanying drawings.

[0069] In one embodiment of the present application, referring to FIG3 , a schematic flow chart of a decoding method provided by an embodiment of the present application is shown. As shown in FIG3 , the method may include:

[0070] S301: Decode the code stream and determine the reconstructed motion parameters of the current image.

[0071] It should be noted that the decoding method of the embodiments of the present application is applied to a decoder. Furthermore, the decoding method may specifically refer to a method for generating predicted images based on multi-image enhancement, and this method is embedded within the video coding loop. Both the encoding and decoding ends can enhance the predicted image features generated by traditional motion compensation methods by combining them with multiple reconstructed reference images, thereby improving the quality of the predicted image.

[0072] It should also be noted that, in the embodiment of the present application, the reconstructed motion parameters of the current image can be used Represents. Due to the reconstruction of motion parameters The code stream has been written; then at the decoding end, the reconstructed motion parameters of the current image can be obtained by decoding the code stream

[0073] It is understood that the decoder includes at least an entropy decoder and a decoding module of an autoencoder. In some embodiments, decoding the bitstream and determining the reconstructed motion parameters of the current image may include:

[0074] Decoding the bitstream using an entropy decoder to determine a first decoding feature;

[0075] The first decoding feature is decoded by a decoding module of the autoencoder to determine a reconstructed motion parameter of the current image.

[0076] In the embodiment of the present application, the first decoding feature can be represented by M t First, entropy decoding is performed on the motion reference bit stream to obtain its corresponding first decoding feature M t ; Then the reconstructed motion parameters can be obtained through the decoding part of the autoencoder Exemplarily, the decoding process is as follows:

[0077] Among them, f decoder (*) represents the decoding module of the motion parameter self-encoder to realize the first decoding feature M t Decoding process.

[0078] S302: Determine initial predicted image features of the current image based on the reconstructed motion parameters.

[0079] S303: Enhance the initial predicted image features according to at least one reference image to determine target predicted image features of the current image; wherein the target predicted image features are used to determine a reconstructed image of the current image.

[0080] It should be noted that in an embodiment of the present application, after obtaining the reconstructed motion parameters, they can be used to determine the initial predicted image features of the current image; then the initial predicted image features are enhanced based on at least one reference image, so as to obtain a high-quality reconstructed image.

[0081] In some embodiments, enhancing the initial predicted image features based on at least one reference image to determine the target predicted image features of the current image may include:

[0082] performing feature extraction on at least one reference image to determine at least one reference image feature;

[0083] The initial predicted image feature is enhanced according to at least one reference image feature to determine the target predicted image feature.

[0084] It should also be noted that in the embodiment of the present application, at least one reference image is a reconstructed image, and these reference images can be reconstructed images of the current image at the previous m moments, where m is an integer greater than or equal to 1.

[0085] It should also be noted that in the embodiments of the present application, a reference image feature may be extracted from each reference image, and then the initial predicted image features may be enhanced using these reference image features. The enhancement process may be implemented by a prediction enhancement module. In some embodiments, enhancing the initial predicted image features based on at least one reference image feature to determine the target predicted image features may include: performing an enhancement operation on the at least one reference image feature and the initial predicted image features using the prediction enhancement module to determine the target predicted image features.

[0086] It is understood that in the embodiments of the present application, the prediction enhancement module can be a network structure for generating target predicted image features for multi-reference image enhancement. The prediction enhancement module includes a first convolution module, a first splicing module, a second convolution module, and a first addition module. Accordingly, in some embodiments, the prediction enhancement module performs an enhancement operation on at least one reference image feature and an initial predicted image feature to determine the target predicted image feature, which may include:

[0087] Performing convolution operations on at least one reference image feature and an initial predicted image feature respectively through a first convolution module to obtain at least one correction feature;

[0088] Performing a splicing operation on the at least one correction feature and the initial predicted image feature by a first splicing module to obtain a spliced ​​feature;

[0089] The convolution fusion process is performed on the spliced ​​features through the second convolution module to obtain the fused correction features;

[0090] The first addition module performs an addition operation on the fused correction feature and the initial predicted image feature to obtain the target predicted image feature.

[0091] It should be noted that, in an embodiment of the present application, the first convolution module may include at least one convolution sub-module, and the number of convolution sub-modules corresponds to the number of reference images in at least one reference image.

[0092] That is to say, in an embodiment of the present application, each convolution sub-module can perform a convolution operation on the reference image features and the initial predicted image features to obtain corresponding correction features; then the first splicing module performs a splicing operation on these correction features and the initial predicted image features, and then the second convolution module performs a convolution fusion operation on the spliced ​​features to obtain fused correction features; finally, the first addition module performs a sum calculation on the fused correction features and the initial predicted image features to obtain the target predicted image features.

[0093] For example, Figure 4 is a schematic diagram of the structure of a prediction enhancement module provided in an embodiment of the present application. As shown in Figure 4, the prediction enhancement module may include a first convolution module 401, a first concatenation module 402, a second convolution module 403, and a first addition module 404. First convolution module 401 includes convolution submodule 1, convolution submodule 2, ..., and convolution submodule n, where n is an integer greater than or equal to 1.

[0094] In Figure 4, the initial predicted image features can be expressed as P t Indicates that the first reference image feature can be used Indicates that the second reference image feature can be used Indicates that the nth reference image feature can be used Specifically, the convolution submodule 1 is used to and P t Perform convolution operation to generate the first correction feature, and use P t-1 Represents; convolution submodule 2 is used to and P t Perform convolution operation to generate the second correction feature, and use P t-2 Represents; the convolution submodule n is used to and P t Perform convolution operation to generate the nth correction feature, and use P t-n Then the first splicing module 402 pairs P t 、P t-1 、P t-2 ,…,P t-n The concatenation operation is performed, and then the second convolution module 403 performs convolution fusion to generate fusion correction features. Finally, the residual structure is used, and the first addition module 404 is used to add P t and By performing addition operation, we can get the final target prediction image features, and use express.

[0095] In a specific implementation, the convolution submodule may include a first convolution layer and a first deformable convolution layer; the first splicing module may include a first splicing layer; and the second convolution module may include a second convolution layer.

[0096] For example, FIG5 is a schematic diagram of the specific structure of a prediction enhancement module provided in an embodiment of the present application. As shown in FIG5 , in the first convolution module 401, each convolution submodule is composed of a first convolution layer and a first deformable convolution layer; the first splicing module 402 can be composed of a first splicing layer, and the second convolution module 403 is composed of a second convolution layer. Among them, the first deformable convolution layer can be represented by Deformable Conv; the first splicing layer can be represented by Cat; the convolution parameters of the first convolution layer and the second convolution layer can be the same or different. For example, the number of channels of the first convolution layer is set to 64, the convolution kernel size is 3×3, and the step size is set to 1, that is, the first convolution layer can be represented by Conv(64,3,1); the number of channels of the second convolution layer is set to 64, the convolution kernel size is 1×1, and the step size is set to 1, that is, the second convolution layer can be represented by Conv(64,1,1).

[0097] In the embodiment of the present application, for the convolution submodule, the initial predicted image features and the reference image features may be concatenated, and then the offset between the reference image features and the initial predicted image features may be generated through the first convolution layer and the corresponding activation function. The specific process is as follows:

[0098] After obtaining the offset, a deformable convolution operation can be performed through the first deformable convolution layer to generate corresponding correction features for the reconstructed image at the past moment. The specific process is as follows:

[0099] The generated at least one correction feature is concatenated with the initial predicted image feature and fused through the second convolutional layer to generate a fused correction feature. The specific process is as follows:

[0100] Finally, the residual structure is used to add the fused correction features to the initial predicted image features to generate the final target predicted image features. The specific process is as follows:

[0101] In another specific implementation, the convolution submodule may include a first convolution layer; the first splicing module may include a first splicing layer; and the second convolution module may include a second convolution layer.

[0102] That is, in this embodiment of the present application, for each convolution submodule, the process of correcting the reference image features to the current predicted image using the deformable convolution layer can be directly generated by convolution, that is, the first deformable convolution layer can be omitted. In this case, the initial predicted image features are directly fused with the reference image features at the past time, and then convolution is used to generate the final target predicted image features.

[0103] It should be noted that in the embodiments of the present application, the specific internal structures of the first convolution module, the first splicing module, and the second convolution module are not limited. For example, the number of first convolution layers can be at least one, the number of second convolution layers can also be at least one, and the convolution parameters of these convolution layers (such as convolution kernel size, number of channels, etc.) can be the same or different; no limitations are imposed on this.

[0104] It should also be noted that in the embodiments of the present application, the target prediction image features can be generated directly without using a residual structure. Specifically, when generating the target prediction image features, a residual structure can be used to add the initial prediction image features and the fused correction features enhanced using at least one reference image. However, the addition operation can also be omitted, and the two can be directly concatenated to generate the final target prediction image features. In other words, the first addition module can be omitted, and this is not a limitation.

[0105] It is also understandable that in the embodiments of the present application, enhancement processing is performed based on at least one reference image feature, so it is first necessary to extract reference image features corresponding to each reference image. In some embodiments, performing feature extraction on at least one reference image to determine at least one reference image feature may include: performing feature extraction on at least one reference image to determine at least one reference image feature using a feature extraction module.

[0106] That is, feature extraction can be implemented by a feature extraction module. The at least one reference image can use the same feature extraction module. For example, taking three reference images as an example, such as a first reference image, a second reference image, and a third reference image, in some embodiments, feature extraction is performed on at least one reference image by the feature extraction module to determine at least one reference image feature, which may include:

[0107] Extracting features from the first reference image using a feature extraction module to obtain first reference image features;

[0108] Extracting features from the second reference image using a feature extraction module to obtain features of the second reference image;

[0109] Extracting features from the third reference image using a feature extraction module to obtain features of the third reference image;

[0110] A first reference image feature, a second reference image feature, and a third reference image feature are determined as at least one reference image feature.

[0111] It should be noted that in an embodiment of the present application, if three reference images are used to enhance the initial predicted image features, then specifically the first reference image features, the second reference image features and the third reference image features can be used to enhance the initial predicted image features to generate the target predicted image features.

[0112] In a specific embodiment, the first reference image is a reconstructed image of the current image at the previous moment; the second reference image is a reconstructed image of the current image at the previous two moments; and the third reference image is a reconstructed image of the current image at the previous three moments.

[0113] In the embodiment of the present application, the first reference image can be used Indicates that the first reference image feature can be used The second reference image can be represented by Indicates that the second reference image feature can be used Indicates that the third reference image can be used Indicates that the third reference image feature can be used Specifically, the feature extraction process is as follows:

[0114] Among them, f feat (*) represents a feature extraction module, which is used to extract features from at least one reference image.

[0115] It should also be noted that in the embodiments of the present application, the number of reference image features can be 1, 2, 3, or even more; here, three reference images are used to extract corresponding reference image features as an example, but there is no limitation on the specific number of reference images and reference image features.

[0116] It is understood that in the embodiments of the present application, the feature extraction module is a network structure for implementing image feature extraction, which can also be referred to as a "feature extraction network." The feature extraction module includes a third convolution module, at least one residual module, and a second addition module. Taking the feature extraction of the first reference image as an example, in some embodiments, the feature extraction module performs feature extraction on the first reference image to obtain first reference image features, which may include:

[0117] Performing feature extraction on the first reference image through a third convolution module to obtain a first intermediate feature;

[0118] Performing feature extraction on the first intermediate feature through at least one residual module to obtain a second intermediate feature;

[0119] The first intermediate feature and the second intermediate feature are added by the second adding module to obtain a first reference image feature.

[0120] It should be noted that in the embodiment of the present application, the third convolution module may include a third convolution layer. The internal structure of the third convolution module and the specific number of third convolution layers are not limited herein. Furthermore, for the feature extraction module, the number of residual modules may be three, but may also be another number. The specific number of residual modules is also not limited herein.

[0121] For example, FIG6 is a schematic diagram of the composition structure of a feature extraction module provided in an embodiment of the present application. As shown in FIG6 , the feature extraction module may include a third convolution module 601, three residual modules 602, and a second addition module 603. Among them, the third convolution module 601 may include a third convolution layer, represented by Conv(64,5,2); the residual module may be represented by Resblock(64,3). In this way, taking the first reference image as an example, the first reference image is first input into the third convolution module 601 to obtain the first intermediate feature; then, the three residual modules 602 are used to extract the first intermediate feature in sequence to obtain the second intermediate feature; and then, the second addition module 603 performs an addition operation on the first intermediate feature and the second intermediate feature to obtain the first reference image feature.

[0122] Furthermore, the residual module can be a convolution block based on the residual structure, which belongs to the basic component module. In some embodiments, the residual module can be composed of at least one residual convolution layer and at least one activation layer. Among them, the activation layer can be a nonlinear activation function, and the activation function is used to add nonlinear factors to solve problems that cannot be solved by linear models. This plays a very important role in learning and understanding very complex and nonlinear functions for artificial neural network models. Exemplarily, the activation function can be a Sigmoid function, a Tanh function, and a rectified linear unit (ReLU) function, etc. In the embodiment of the present application, the ReLU function can be used as the activation layer, but this is not limited to any reason.

[0123] In addition, the residual module may include only one residual convolution layer, or may include two or more residual convolution layers. For example, FIG7 is a schematic diagram of the composition structure of a residual module provided in an embodiment of the present application. As shown in FIG7, the residual module may include a first residual convolution layer 701, a first activation layer 702, and a second residual convolution layer 703. Among them, the first residual convolution layer and the second residual convolution layer can both be represented by Conv(N,K,1), and the first activation layer can be represented by ReLU.

[0124] Here, the convolution parameters (such as convolution kernel size, number of channels, etc.) of the first residual convolution layer 701 and the second residual convolution layer 703 can be the same or different. Specifically, for the first residual convolution layer 701 and the second residual convolution layer 703, the number of channels can be set to N, and the convolution kernel size can be K×K, where N and K are both positive integers. However, it should be noted that the convolution kernel size and number of channels of the first residual convolution layer and the second residual convolution layer are not fixed designs and can be adjusted here, and the specific values ​​are not limited.

[0125] It can also be understood that, with respect to the initial predicted image features of the current image, in some embodiments, determining the initial predicted image features of the current image based on the reconstructed motion parameters may include:

[0126] determining a first reference image;

[0127] Performing feature extraction on the first reference image to determine features of the first reference image;

[0128] Motion compensation is performed according to the first reference image feature and the reconstructed motion parameter to determine the initial predicted image feature.

[0129] In the embodiment of the present application, the first reference image may be adjacent to the current image, and the first reference image is a reconstructed image of the current image at the previous moment. That is, if the current image is X t , then the first reference image can be t is a positive integer.

[0130] In embodiments of the present application, feature extraction of the first reference image may be implemented via a feature extraction module. In some embodiments, extracting features from the first reference image and determining features of the first reference image may include: extracting features from the first reference image via the feature extraction module and determining features of the first reference image. The feature extraction module may include a third convolution module, at least one residual module, and a second addition module. The specific component structure can be seen in FIG6 .

[0131] In some embodiments, after extracting the first reference image features, performing motion compensation based on the first reference image features and the reconstructed motion parameters to determine the initial predicted image features may include: performing motion compensation on the first reference image features and the reconstructed motion parameters through a predicted feature generation module to determine the initial predicted image features.

[0132] It is understood that in the embodiments of the present application, the prediction feature generation module is a network structure for generating initial prediction image features, and may also be referred to as a "prediction image feature generation network." The prediction feature generation module includes a fourth convolution module, a second splicing module, a fifth convolution module, and a third addition module. Accordingly, in some embodiments, the prediction feature generation module performs motion compensation on the first reference image features and the reconstructed motion parameters to determine the initial prediction image features, which may include:

[0133] performing a deformable convolution operation on the reconstructed motion parameter and the first reference image feature through a fourth convolution module to obtain a third intermediate feature;

[0134] Performing a splicing operation on the third intermediate feature and the first reference image feature through a second splicing module to obtain a fourth intermediate feature;

[0135] Performing a convolution operation on the fourth intermediate feature through a fifth convolution module to obtain a fifth intermediate feature;

[0136] The third intermediate feature and the fifth intermediate feature are added by the third addition module to obtain an initial predicted image feature.

[0137] It should be noted that, in the embodiment of the present application, the fourth convolution module may include a second deformable convolution layer; the second splicing module may include a second splicing layer; and the fifth convolution module may include a fifth convolution layer.

[0138] It should also be noted that in the embodiments of the present application, the specific internal structures of the fourth convolution module, the second splicing module, and the fifth convolution module are not limited. For example, the number of second deformable convolution layers can be at least one, the number of fifth convolution layers can also be at least one, and the convolution parameters of these convolution layers (such as convolution kernel size, number of channels, etc.) can be the same or different; no limitation is imposed on this.

[0139] For example, FIG8 is a schematic diagram of the structure of a prediction feature generation module provided by an embodiment of the present application. As shown in FIG8, the prediction feature generation module may include a fourth convolution module 801, a second splicing module 802, a fifth convolution module 803 and a third addition module 804. With the first reference image feature The input is sent to the fourth convolution module 801 for deformable convolution operation to obtain the third intermediate feature; then the second splicing module 802 performs a splicing operation on the third intermediate feature and the first reference image feature, and then continues to pass through the fifth convolution module 803 for convolution operation to obtain the fifth intermediate feature; finally, the third addition module 804 performs an addition operation on the third intermediate feature and the fifth intermediate feature to obtain the initial predicted image feature P of the current image. t .

[0140] For example, FIG9 is a detailed structural diagram of a prediction feature generation module provided in an embodiment of the present application. As shown in FIG9 , the fourth convolution module 801 may be composed of a second deformable convolution layer, the second splicing module 802 may be composed of a second splicing layer, and the fifth convolution module 803 may be composed of two fifth convolution layers. Among them, the second deformable convolution layer can be represented by Deformable Conv; the second splicing layer can be represented by Cat; the fifth convolution layer can be represented by Conv(64,3,1), specifically: the number of channels is set to 64, the convolution kernel size can be 3×3, and the step size is set to 1. However, it should be noted that the convolution parameters of the fifth convolution layer (such as the convolution kernel size, the number of channels, etc.) are not fixed designs, they can be adjusted here, and the specific values ​​are not limited.

[0141] Here, the second deformable convolution layer is used to reconstruct the motion parameters With the first reference image feature Perform convolution operation to finally generate the initial predicted image feature P t (i.e. motion compensation), the body process is as follows:

[0142] Wherein, Dconv(*) is the second deformable convolution layer of the fourth convolution module 801, The two-layer convolutional network enhancement feature of the fifth convolution module 803 can finally generate the initial predicted image feature P t .

[0143] It should be noted that in the embodiments of the present application, whether it is a feature extraction module, a prediction enhancement module, or a prediction feature generation module, etc., the composition structure given here is only an example; those skilled in the art will know that the internal structure of these modules is not limited to this.

[0144] Thus, in the embodiment of the present application, at least one reference image feature is extracted according to the correspondence of at least one reference image, the initial predicted image feature generated by motion compensation is spliced ​​with the at least one reference image feature and an offset of a deformable convolution is generated, and then the reference image feature is processed by deformable convolution to generate a correction feature (also referred to as a "compensation feature") corresponding to the reference image feature. After these compensation features are spliced ​​and convoluted with the initial predicted image features, a fused correction feature can be obtained; the obtained fused correction feature is added to the initial predicted image feature to generate the final target predicted image feature. That is, the current initial predicted image features are corrected using the compensation features.

[0145] Furthermore, after obtaining the target predicted image features, a reconstructed image of the current image can be determined based on the target predicted image features. In some embodiments, referring to FIG10 , the method may include:

[0146] S1001: Decode the code stream and determine the reconstructed residual features of the current image.

[0147] It should be noted that, in the embodiments of the present application, the decoder includes at least an entropy decoder and a decoding module of an autoencoder. Accordingly, in some embodiments, decoding the bitstream and determining the reconstructed residual features of the current image may include:

[0148] Decoding the bitstream using an entropy decoder to determine a second decoding feature;

[0149] The second decoding feature is decoded by the decoding module of the autoencoder to determine the reconstructed residual feature of the current image.

[0150] In this embodiment of the present application, the second decoding feature can be represented by Y t First, entropy decoding is performed on the residual reference bit stream to obtain its corresponding second decoding feature Y t ; Then, the reconstructed residual features can be obtained through the decoding part of the autoencoder Exemplarily, the decoding process is as follows:

[0151] Among them, f decoder_R (*) represents the decoding module of the residual self-encoder to realize the second decoding feature Y t Decoding process.

[0152] S1002: Determine reconstructed image features according to reconstructed residual features and target predicted image features.

[0153] S1003: Perform feature enhancement and reconstruction processing on the reconstructed image features to determine a reconstructed image of the current image.

[0154] It should be noted that in the embodiments of the present application, the reconstructed image features can be determined based on the obtained reconstruction residual features and the target predicted image features. In some embodiments, determining the reconstructed image features may include: adding the reconstruction residual features and the target predicted image features to obtain the reconstructed image features.

[0155] In a specific embodiment, determining the reconstructed image features based on the reconstructed residual features and the target predicted image features may include: performing an addition operation on the reconstructed residual features and the target predicted image features by a fourth addition module to obtain the reconstructed image features. Here, the reconstructed image features are generated by adding the reconstructed residual features and the target predicted image features by the fourth addition module. For the decoding end, the fourth addition module in the embodiment of the present application may be the adder 207 in Figure 2.

[0156] Furthermore, a reconstructed image of the current image can be reconstructed based on the reconstructed image features. In some embodiments, performing feature enhancement and reconstruction processing on the reconstructed image features to determine the reconstructed image of the current image may include: performing feature enhancement and reconstruction processing on the reconstructed image features by a reconstruction enhancement module to determine the reconstructed image of the current image.

[0157] It should also be noted that in the embodiments of the present application, the reconstruction enhancement module is a network structure for implementing feature enhancement and reconstruction, which may also be referred to as an "enhanced reconstruction network." The reconstruction enhancement module includes at least one residual module, a fifth addition module, and a deconvolution module. Accordingly, in some embodiments, the reconstruction enhancement module performs feature enhancement and reconstruction processing on the reconstructed image features to determine the reconstructed image of the current image, which may include:

[0158] Extracting features of the reconstructed image using at least one residual module to obtain a sixth intermediate feature;

[0159] Performing an addition operation on the sixth intermediate feature and the reconstructed image feature through a fifth addition module to obtain a seventh intermediate feature;

[0160] The deconvolution module performs a deconvolution operation on the seventh intermediate feature to obtain a reconstructed image of the current image.

[0161] It should also be noted that in the embodiments of the present application, the deconvolution module may include a deconvolution layer. The internal structure of the deconvolution module and the specific number of deconvolution layers are not limited herein. Furthermore, for the reconstruction enhancement module, the number of residual modules may be three, but may also be any other number. The specific number of residual modules is also not limited herein.

[0162] For example, FIG11 is a schematic diagram of the composition structure of a reconstruction enhancement module provided in an embodiment of the present application. As shown in FIG11 , the reconstruction enhancement module may include three residual modules 1101, a fifth addition module 1102, and a deconvolution module 1103. Among them, the deconvolution module 1103 may include a deconvolution layer, represented by DeConv(3,5,2); the residual module may be represented by Resblock(64,3). In this way, first, the three residual modules 1101 are used to extract features of the reconstructed image in sequence to obtain the sixth intermediate feature; then, the fifth addition module 1102 performs an addition operation on the sixth intermediate feature and the reconstructed image feature to obtain the seventh intermediate feature; finally, the deconvolution module 1103 performs a deconvolution operation on the seventh intermediate feature to obtain a reconstructed image of the current image.

[0163] It should be noted that, in the embodiment of the present application, the internal structure of the residual module can be seen in FIG7 . In addition, for the deconvolution layer, the number of channels can be set to 3, the convolution kernel size can be 5×5, and the step size can be set to 2. However, it should be noted that for the deconvolution layer in the deconvolution module 1103, its convolution parameters (such as convolution kernel size, number of channels, etc.) are not fixed designs and can be adjusted here, and the specific values ​​are not limited.

[0164] Furthermore, in an embodiment of the present application, a bit (specifically, first identification information) may be encoded in the bitstream to indicate whether the current image uses the predicted image feature enhancement mode. Therefore, in some embodiments, the method may further include:

[0165] Decoding the code stream to determine the value of the first identification information;

[0166] If the first identification information indicates that the current image uses the predicted image feature enhancement mode, the step of enhancing the initial predicted image features according to at least one reference image to determine the target predicted image features of the current image is performed.

[0167] It should be noted that in the embodiment of the present application, the first identification information can be a predefined single-bit indicator written into the bitstream to indicate whether the current image uses the predicted image feature enhancement mode. In this way, the decoder can obtain the value of the first identification information through decoding, so that the decoder can quickly determine whether to use the predicted image feature enhancement mode.

[0168] It should also be noted that, in an embodiment of the present application, if the first identification information indicates that the current image uses a predicted image feature enhancement mode, then the enhancement processing steps shown in FIG3 are executed, that is, the initial predicted image features are enhanced according to at least one reference image to determine the target predicted image features of the current image; if the first identification information indicates that the current image does not use a predicted image feature enhancement mode, then the enhancement processing steps shown in FIG3 are no longer executed, and the obtained initial predicted image features are directly used as the target predicted image features of the current image.

[0169] In some embodiments, for the value of the first identification information, the method may further include:

[0170] If the value of the first identification information is the first value, determining that the first identification information indicates that the current image uses the predicted image feature enhancement mode;

[0171] If the value of the first identification information is the second value, it is determined that the first identification information indicates that the current image does not use the predicted image feature enhancement mode.

[0172] In the embodiment of the present application, the first value and the second value are different, and the first value and the second value can be in parameter form or in digital form. Specifically, the first identification information can be a parameter written in the profile or the value of a flag, which is not specifically limited here.

[0173] Exemplarily, for the first value and the second value, the first value can be set to 1 and the second value can be set to 0; or, the first value can be set to 0 and the second value can be set to 1; or, the first value can be set to true and the second value can be set to false; or, the first value can be set to false and the second value can be set to true; but this is not specifically limited here.

[0174] In an embodiment of the present application, taking the first identification information as a flag written into the code stream as an example, if the first value is set to 1 and the second value is set to 0, then when the value of the first identification information is 1, it can be determined that the current image uses the predicted image feature enhancement mode. At this time, it is necessary to enhance the initial predicted image features based on at least one reference image to determine the target predicted image features of the current image; when the value of the first identification information is 0, it can be determined that the current image does not use the predicted image feature enhancement mode. At this time, the obtained initial predicted image features are directly used as the target predicted image features of the current image.

[0175] Furthermore, in the embodiments of the present application, the training of the preset network model may be performed using the same training method as in the related art, that is, end-to-end training of all modules of the entire video compression network. Therefore, in some embodiments, the method may further include:

[0176] Determine the preset network model;

[0177] Perform end-to-end training on the preset network model to determine the target network model, which is used to encode and decode the current image;

[0178] Among them, the preset network model includes an initial network model and a prediction enhancement module, and the initial network model at least includes: a feature extraction module, a motion parameter generation module, an autoencoder, a prediction feature generation module and a reconstruction enhancement module.

[0179] That is to say, the embodiment of the present application can embed the prediction enhancement module into the existing initial network model, and further enhance the predicted image features after the motion compensation generates the initial predicted image to generate the enhanced target predicted image features. Specifically, the embodiment of the present application can be trained end-to-end together with the initial network model without changing the training method of the initial network model, thereby greatly simplifying the training process of the video compression network. The autoencoder here can include a motion parameter autoencoder and a residual autoencoder.

[0180] In summary, in the embodiments of the present application, the following technical problems are mainly solved here: on the one hand, in the process of generating traditional predicted image features, the motion vector representation (offset) of motion estimation is required, and the motion vector representation (offset) needs to be compressed and transmitted to the decoding end. This process is a lossy process, so the reconstructed motion vector representation (offset) is distorted, and the corresponding generated predicted image features are distorted. The embodiments of the present application can enhance the predicted image features by using the reconstructed image at the past moment, thereby improving the predicted image quality and reducing the distortion. On the other hand, a single reference image cannot well generate a predicted image of the current image, such as an occlusion area caused by motion, but the occlusion area may be included in the past image, so the embodiments of the present application propose to use the reconstructed image at the past moment to enhance the predicted image. In summary, the embodiments of the present application can effectively improve the quality of the predicted image features.

[0181] For example, the prediction enhancement technology of the embodiment of the present application can effectively improve the encoding and decoding efficiency after being embedded in the FVC scheme. The test results are shown in Table 1. Table 1 shows the improvement effect of the prediction enhancement technology of the embodiment of the present application compared with the FVC scheme, specifically the bit rate saving ( Delta Bit Rate (BDBR).

[0182] Table 1

[0183] According to Table 1, compared with the FVC solution, the average bit rate saving (BDBR) of the embodiment of the present application is about 3.73%.

[0184] It should also be noted that in the embodiments of the present application, the prediction enhancement technology here can be applied not only to the FVC scheme, but also to the DCVC scheme, and even to other video coding network schemes, and there is no limitation on this here.

[0185] This embodiment provides a decoding method, which first decodes the bitstream to determine the reconstructed motion parameters of the current image; then, based on the reconstructed motion parameters, determines the initial predicted image features of the current image; then, based on at least one reference image, enhances the initial predicted image features to determine the target predicted image features of the current image; wherein the target predicted image features are used to determine the reconstructed image of the current image. In this way, the predicted image at the current moment is enhanced using the reconstructed image at the past moment to improve the quality of the predicted image; the process includes correcting the reconstructed images at the past moment to the predicted image at the current moment, and then fusing the multi-image corrected predicted image with the predicted image at the current moment to generate a higher-quality predicted image; thereby, based on the high-quality predicted image, not only can the reconstructed image quality of the current image be improved, but also the encoding and decoding efficiency can be improved, while also improving the video encoding and decoding performance.

[0186] In another embodiment of the present application, referring to FIG12 , a schematic flow chart of an encoding method provided by an embodiment of the present application is shown. As shown in FIG12 , the method may include:

[0187] S1201: Determine the reconstructed motion parameters of the current image.

[0188] It should be noted that the encoding method of the embodiments of the present application is applied to an encoder. Furthermore, the encoding method may specifically refer to a method for generating a predicted image based on multi-image enhancement, and this method is embedded within the video encoding loop. Both the encoding and decoding ends can enhance the predicted image features generated by traditional motion compensation methods by combining them with multiple reconstructed reference images, thereby improving the quality of the predicted image.

[0189] It should also be noted that, in the embodiment of the present application, the reconstructed motion parameters of the current image can be used At the encoding end, the first motion parameter of the current image needs to be determined first, and then the reconstructed motion parameter of the current image can be obtained by encoding and decoding the first motion parameter. In some embodiments, determining the reconstructed motion parameter of the current image may include:

[0190] determining a first reference image;

[0191] determining a first motion parameter based on the first reference image and the current image;

[0192] The first motion parameter is encoded and decoded to determine a reconstructed motion parameter of the current image.

[0193] That is, in the embodiment of the present application, the encoding end first needs to determine the first motion parameter, and then write the first motion parameter into the bitstream. The subsequent decoding end can directly obtain the reconstructed motion parameter of the current image by decoding the bitstream. The first motion parameter can also be called "motion vector representation-offset", which can be expressed as θ t express.

[0194] It should also be noted that, in the embodiment of the present application, the first reference image may be adjacent to the current image, and the first reference image is a reconstructed image of the current image at the previous moment. t , then the first reference image can be t is a positive integer.

[0195] In some embodiments, determining the first motion parameter based on the first reference image and the current image may include: performing feature extraction on the current image and the first reference image respectively to determine the current image features and the first reference image features; performing motion estimation based on the first reference image features and the current image features to determine the first motion parameter.

[0196] Furthermore, feature extraction of the first reference image and the current layer can be achieved through a feature extraction module. In some embodiments, feature extraction of the current image and the first reference image is performed separately to determine the features of the current image and the first reference image, which may include:

[0197] Perform feature extraction on the current image through the feature extraction module to obtain the current image features;

[0198] The feature extraction module extracts features from the first reference image to obtain first reference image features.

[0199] That is to say, in the embodiment of the present application, for the first reference image and the current image X t , both use the same feature extraction module, that is, the shared feature extraction module. The extraction process is as follows:

[0200] Among them, f feat(*) is a feature extraction module, which can be shared by both the current image and the previously reconstructed reference image. The feature extraction module may include a third convolution module, at least one residual module, and a second addition module. The specific structure can be seen in FIG6 .

[0201] In a specific implementation, performing feature extraction on the current image through a feature extraction module to obtain the current image feature can include: performing feature extraction on the current image through a third convolution module to obtain a first intermediate feature; performing feature extraction on the first intermediate feature through at least one residual module to obtain a second intermediate feature; and performing addition operation on the first intermediate feature and the second intermediate feature through a second addition module to obtain the current image feature.

[0202] In another specific implementation, performing feature extraction on the first reference image through a feature extraction module to obtain a first reference image feature may include: performing feature extraction on the first reference image through a third convolution module to obtain a first intermediate feature; performing feature extraction on the first intermediate feature through at least one residual module to obtain a second intermediate feature; and performing addition operation on the first intermediate feature and the second intermediate feature through a second addition module to obtain the first reference image feature.

[0203] It should be noted that in the embodiment of the present application, the third convolution module may include a third convolution layer. The internal structure of the third convolution module and the specific number of third convolution layers are not limited herein. Furthermore, for the feature extraction module, the number of residual modules may be three, but may also be another number. The specific number of residual modules is also not limited herein.

[0204] It should also be noted that, in an embodiment of the present application, the residual module can be a convolution block based on the residual, which belongs to the basic component module. In some embodiments, the residual module can be composed of at least one residual convolution layer and at least one activation layer. Among them, the activation layer can be a nonlinear activation function, and the activation function is used to add nonlinear factors to solve problems that cannot be solved by linear models. This plays a very important role in learning and understanding very complex and nonlinear functions for artificial neural network models. Exemplarily, the activation function can be a Sigmoid function, a Tanh function, and a rectified linear unit (ReLU) function, etc. In an embodiment of the present application, the ReLU function can be used as an activation layer, but this is not limited to any particular case. In addition, the residual module can include only one residual convolution layer, or two or more residual convolution layers, and this is not limited to any particular case.

[0205] It should also be noted that in the embodiment of the present application, the feature extraction module shown in FIG6 and the residual module shown in FIG7 are only exemplary network structures. However, those skilled in the art will appreciate that the network structures of the feature extraction module and the residual module are not limited thereto.

[0206] In some embodiments, after extracting the first reference image features and the current image features, performing motion estimation based on the first reference image features and the current image features to determine the first motion parameter may include: performing motion estimation on the first reference image features and the current image features through a motion parameter generation module to determine the first motion parameter.

[0207] It is understood that in the embodiments of the present application, the motion parameter generation module is a network structure for generating a motion vector representation—an offset, and may also be referred to as a "motion vector representation generation network." The motion parameter generation module includes a third splicing module and a sixth convolution module. Accordingly, in some embodiments, the motion parameter generation module performs motion estimation on the first reference image features and the current image features to obtain the first motion parameter, which may include:

[0208] Performing a splicing operation on the first reference image feature and the current image feature through a third splicing module to obtain an eighth intermediate feature;

[0209] The eighth intermediate feature is convolved with the sixth convolution module to obtain the first motion parameter.

[0210] It should be noted that, in the embodiment of the present application, the third splicing module may include a third splicing layer; and the sixth convolution module may include a sixth convolution layer.

[0211] It should also be noted that in the embodiments of the present application, the specific internal structures of both the third concatenation module and the sixth convolution module are not limited. For example, the number of sixth convolutional layers can be one, two, or even more; and the convolution parameters of these convolutional layers (such as convolution kernel size, number of channels, etc.) can be the same or different; no limitations are imposed on this.

[0212] For example, FIG13 is a schematic diagram of the structure of a motion parameter generation module provided by an embodiment of the present application. As shown in FIG13 , the motion parameter generation module may include a third splicing module 1301 and a sixth convolution module 1302. First, the current image feature F t and the first reference image features The input is sent to the third splicing module 1301, and then the sixth convolution module 1302 performs a convolution operation on the eighth intermediate feature obtained after splicing to obtain the first motion parameter θ of the current image. t .

[0213] Exemplarily, FIG14 is a detailed structural diagram of a motion parameter generation module provided in an embodiment of the present application. As shown in FIG14 , the third splicing module 1301 may be composed of a third splicing layer, and the sixth convolution module 1302 may be composed of two sixth convolution layers. Among them, the third splicing layer can be represented by Cat; the sixth convolution layer can be represented by Conv(64,3,1), specifically: the number of channels is set to 64, the convolution kernel size can be 3×3, and the step size is set to 1. However, it should be noted that the convolution parameters of the sixth convolution layer (such as the convolution kernel size, the number of channels, etc.) are not fixed designs, but can be adjusted here, and the specific values ​​are not limited.

[0214] Here, by the current image feature F t and the first reference image features The concatenated features are convolved to generate a motion vector representation - offset (i.e. the first motion parameter θ t ), the specific process is as follows:

[0215] Wherein, cat(*) is the splicing operation of the third splicing module 1301, f offset (*) is the offset generation network, which is the two-layer convolution network of the sixth convolution module 1302.

[0216] Furthermore, the embodiment of the present application requires the first motion parameter θ t Performing encoding and decoding based on the autoencoder to generate reconstructed motion parameters. In some embodiments, encoding and decoding the first motion parameters to determine the reconstructed motion parameters of the current image may include: encoding and decoding the first motion parameters using the autoencoder to determine the reconstructed motion parameters of the current image.

[0217] It is also understandable that in embodiments of the present application, the autoencoder may include an encoding module and a decoding module. Accordingly, in some embodiments, encoding and decoding the first motion parameter by the autoencoder to determine the reconstructed motion parameter of the current image may include: encoding the first motion parameter by the encoding module of the autoencoder and writing the obtained encoded bits into the bitstream; and decoding the bitstream by the decoding module of the autoencoder to obtain the reconstructed motion parameter of the current image.

[0218] It should be noted that in the embodiment of the present application, the composition structure of the encoding module is similar to that of the decoding module, and the decoding module is the inverse process of the encoding module. In addition, in the encoding process based on the autoencoder, not only the encoding module of the autoencoder is required, but also the encoding of the entropy encoding module is required to generate the bit stream; then the bit stream needs to be decoded by the entropy decoding module and the decoding module of the autoencoder to generate the reconstructed motion parameters. The specific process is as follows:

[0219] Among them, f encoder (*),f decoder (*) denotes the encoding module and decoding module of the motion parameter autoencoder, as shown in FIG15 and FIG16 respectively; Q(*) denotes the quantization process.

[0220] Exemplarily, for an autoencoder, FIG15 is a schematic diagram of the composition structure of an encoding module of an autoencoder provided in an embodiment of the present application. As shown in FIG15 , the encoding module of the autoencoder may include a seventh convolution module 1501, at least one residual module 1502, and a sixth addition module 1503. Among them, the seventh convolution module 1501 may be composed of a seventh convolution layer, and at least one residual module 1502 may be composed of three residual modules. Exemplarily, the residual module can be represented by Resblock(128,3); the seventh convolution layer can be represented by Conv(128,5,2), specifically: the number of channels is set to 128, the convolution kernel size can be 5×5, and the step size is set to 2. However, it should be noted that the convolution parameters of the seventh convolution layer (such as the convolution kernel size, the number of channels, etc.) are not fixed designs, but can be adjusted here, and the specific values ​​are not limited.

[0221] Exemplarily, for an autoencoder, FIG16 is a schematic diagram of the composition structure of a decoding module of an autoencoder provided in an embodiment of the present application. As shown in FIG16 , the decoding module of the autoencoder may include at least one residual module 1601, a seventh addition module 1602, and an eighth convolution module 1603. Among them, at least one residual module 1601 may be composed of three residual modules, the eighth convolution module 1603 may be composed of an eighth convolution layer, and the eighth convolution layer is a transposed convolution layer of the seventh convolution layer (or called a "deconvolution layer"). Exemplarily, the residual module can be represented by Resblock(128,3); the eighth convolution layer can be represented by DeConv(128,5,2), specifically: the number of channels is set to 128, the convolution kernel size can be 5×5, and the step size is set to 2. However, it should be noted that the convolution parameters of the eighth convolution layer (such as the convolution kernel size, the number of channels, etc.) are not fixed designs and can be adjusted here. The specific values ​​are not limited.

[0222] In the embodiment of the present application, for the autoencoder, the encoding module shown in Figure 15 and the decoding module shown in Figure 16 are both exemplary network structures. However, those skilled in the art will appreciate that the network structures of the encoding module and decoding module of the autoencoder are not limited thereto.

[0223] S1202: Determine initial predicted image features of the current image based on the reconstructed motion parameters.

[0224] It should be noted that after determining the reconstruction motion parameters Afterwards, the initial predicted image features of the current image may be further determined. In some embodiments, determining the initial predicted image features of the current image based on the reconstructed motion parameters may include:

[0225] determining a first reference image;

[0226] Performing feature extraction on the first reference image to determine features of the first reference image;

[0227] Motion compensation is performed according to the first reference image feature and the reconstructed motion parameter to determine the initial predicted image feature.

[0228] In the embodiment of the present application, the first reference image may be adjacent to the current image, and the first reference image is a reconstructed image of the current image at the previous moment. That is, if the current image is X t , then the first reference image can be t is a positive integer.

[0229] In embodiments of the present application, feature extraction of the first reference image may be implemented via a feature extraction module. In some embodiments, extracting features from the first reference image and determining features of the first reference image may include: extracting features from the first reference image via the feature extraction module and determining features of the first reference image. The feature extraction module may include a third convolution module, at least one residual module, and a second addition module. The specific component structure can be seen in FIG6 .

[0230] In some embodiments, after extracting the first reference image features, performing motion compensation based on the first reference image features and the reconstructed motion parameters to determine the initial predicted image features may include: performing motion compensation on the first reference image features and the reconstructed motion parameters through a predicted feature generation module to determine the initial predicted image features.

[0231] It is understood that in the embodiments of the present application, the prediction feature generation module is a network structure for generating initial prediction image features, and may also be referred to as a "prediction image feature generation network." The prediction feature generation module includes a fourth convolution module, a second splicing module, a fifth convolution module, and a third addition module. Accordingly, in some embodiments, the prediction feature generation module performs motion compensation on the first reference image features and the reconstructed motion parameters to determine the initial prediction image features, which may include:

[0232] performing a deformable convolution operation on the reconstructed motion parameter and the first reference image feature through a fourth convolution module to obtain a third intermediate feature;

[0233] Performing a splicing operation on the third intermediate feature and the first reference image feature through a second splicing module to obtain a fourth intermediate feature;

[0234] Performing a convolution operation on the fourth intermediate feature through a fifth convolution module to obtain a fifth intermediate feature;

[0235] The third intermediate feature and the fifth intermediate feature are added by the third addition module to obtain an initial predicted image feature.

[0236] It should be noted that, in the embodiment of the present application, the fourth convolution module may include a second deformable convolution layer; the second splicing module may include a second splicing layer; and the fifth convolution module may include a fifth convolution layer.

[0237] It should also be noted that in the embodiments of the present application, the specific internal structures of the fourth convolution module, the second splicing module, and the fifth convolution module are not limited. For example, the number of second deformable convolution layers can be at least one, the number of fifth convolution layers can also be at least one, and the convolution parameters of these convolution layers (such as convolution kernel size, number of channels, etc.) can be the same or different; no limitation is imposed on this.

[0238] For example, Figures 8 and 9 show structural examples of the prediction feature generation module provided in the embodiments of the present application, but no limitation is imposed on this. Among them, the second deformable convolution layer can be represented by Deformable Conv; the second splicing layer can be represented by Cat; the fifth convolution layer can be represented by Conv(64,3,1), specifically: the number of channels is set to 64, the convolution kernel size can be 3×3, and the step size is set to 1. However, it should be noted that the convolution parameters of the fifth convolution layer (such as the convolution kernel size, the number of channels, etc.) are not fixed designs, they can be adjusted here, and the specific values ​​are not limited.

[0239] Here, the second deformable convolution layer is used to reconstruct the motion parameters With the first reference image feature Perform convolution operation to finally generate the initial predicted image feature P t (i.e. motion compensation), the specific process is as follows:

[0240] Wherein, Dconv(*) is the second deformable convolution layer of the fourth convolution module 801, The two-layer convolutional network enhancement feature of the fifth convolution module 803 can finally generate the initial predicted image feature P t .

[0241] S1203: Enhance the initial predicted image features according to at least one reference image to determine target predicted image features of the current image; wherein the target predicted image features are used to determine residual image features of the current image.

[0242] It should be noted that in an embodiment of the present application, after obtaining the reconstructed motion parameters, they can be used to determine the initial predicted image features of the current image; then the initial predicted image features are enhanced based on at least one reference image, so as to obtain a high-quality reconstructed image.

[0243] In some embodiments, enhancing the initial predicted image features based on at least one reference image to determine the target predicted image features of the current image may include:

[0244] performing feature extraction on at least one reference image to determine at least one reference image feature;

[0245] The initial predicted image feature is enhanced according to at least one reference image feature to determine the target predicted image feature.

[0246] It should also be noted that in the embodiment of the present application, at least one reference image is a reconstructed image, and these reference images can be reconstructed images of the current image at the previous m moments, where m is an integer greater than or equal to 1.

[0247] It should also be noted that in the embodiments of the present application, a reference image feature may be extracted from each reference image, and then the initial predicted image features may be enhanced using these reference image features. The enhancement process may be implemented by a prediction enhancement module. In some embodiments, enhancing the initial predicted image features based on at least one reference image feature to determine the target predicted image features may include: performing an enhancement operation on the at least one reference image feature and the initial predicted image features using the prediction enhancement module to determine the target predicted image features.

[0248] It is understood that in the embodiments of the present application, the prediction enhancement module can be a network structure for generating target predicted image features for multi-reference image enhancement. The prediction enhancement module includes a first convolution module, a first splicing module, a second convolution module, and a first addition module. Accordingly, in some embodiments, the prediction enhancement module performs an enhancement operation on at least one reference image feature and an initial predicted image feature to determine the target predicted image feature, which may include:

[0249] Performing convolution operations on at least one reference image feature and an initial predicted image feature respectively through a first convolution module to obtain at least one correction feature;

[0250] Performing a splicing operation on the at least one correction feature and the initial predicted image feature by a first splicing module to obtain a spliced ​​feature;

[0251] The convolution fusion process is performed on the spliced ​​features through the second convolution module to obtain the fused correction features;

[0252] The first addition module performs an addition operation on the fused correction feature and the initial predicted image feature to obtain the target predicted image feature.

[0253] It should be noted that, in an embodiment of the present application, the first convolution module may include at least one convolution sub-module, and the number of convolution sub-modules corresponds to the number of reference images in at least one reference image.

[0254] That is to say, in an embodiment of the present application, each convolution sub-module can perform a convolution operation on the reference image features and the initial predicted image features to obtain corresponding correction features; then the first splicing module performs a splicing operation on these correction features and the initial predicted image features, and then the second convolution module performs a convolution fusion operation on the spliced ​​features to obtain fused correction features; finally, the first addition module performs a sum calculation on the fused correction features and the initial predicted image features to obtain the target predicted image features.

[0255] For example, FIG4 shows a structural example of a prediction enhancement module provided by an embodiment of the present application, but does not limit this. t Indicates that the first reference image feature can be used Indicates that the second reference image feature can be used Indicates that the nth reference image feature can be used Specifically, the convolution submodule 1 is used to and P t Perform convolution operation to generate the first correction feature, and use P t-1 Represents; convolution submodule 2 is used to and P tPerform convolution operation to generate the second correction feature, and use P t-2 Represents; the convolution submodule n is used to Perform convolution operation with Pt to generate nth correction feature, and use P t-n Then the first splicing module 402 pairs P t 、P t-1 、P t-2 ,…,P t-n The concatenation operation is performed, and then the second convolution module 403 performs convolution fusion to generate fusion correction features. Finally, the residual structure is used, and the first addition module 404 is used to add P t and By performing addition operation, we can get the final target prediction image features, and use express.

[0256] In one specific implementation, the convolution submodule may include a first convolutional layer and a first deformable convolutional layer; the first splicing module may include a first splicing layer; and the second convolution module may include a second convolutional layer. See Figure 5 for details. The first deformable convolutional layer can be represented by DeformableConv; the first splicing layer can be represented by Cat; and the convolution parameters of the first and second convolutional layers can be the same or different. For example, if the number of channels of the first convolutional layer is set to 64, the convolution kernel size is 3×3, and the stride is set to 1, the first convolutional layer can be represented by Conv(64,3,1); if the number of channels of the second convolutional layer is set to 64, the convolution kernel size is 1×1, and the stride is set to 1, the second convolutional layer can be represented by Conv(64,1,1). However, it should be noted that the convolution parameters of the first and second convolutional layers (such as the convolution kernel size and number of channels) are not fixed and can be adjusted, and the specific values ​​are not limited.

[0257] In the embodiment of the present application, for the convolution submodule, the initial predicted image features and the reference image features may be concatenated, and then the offset between the reference image features and the initial predicted image features may be generated through the first convolution layer and the corresponding activation function. The specific process is as follows:

[0258] After obtaining the offset, a deformable convolution operation can be performed through the first deformable convolution layer to generate corresponding correction features for the reconstructed image at the past moment. The specific process is as follows:

[0259] The generated at least one correction feature is concatenated with the initial predicted image feature and fused through the second convolutional layer to generate a fused correction feature. The specific process is as follows:

[0260] Finally, the residual structure is used to add the fused correction features to the initial predicted image features to generate the final target predicted image features. The specific process is as follows:

[0261] In another specific implementation, the convolution submodule may include a first convolution layer; the first splicing module may include a first splicing layer; and the second convolution module may include a second convolution layer.

[0262] That is, in this embodiment of the present application, for each convolution submodule, the process of correcting the reference image features to the current predicted image using the deformable convolution layer can be directly generated by convolution, that is, the first deformable convolution layer can be omitted. In this case, the initial predicted image features are directly fused with the reference image features at the past time, and then convolution is used to generate the final target predicted image features.

[0263] It should be noted that in the embodiments of the present application, the specific internal structures of the first convolution module, the first splicing module, and the second convolution module are not limited. For example, the number of first convolution layers can be at least one, the number of second convolution layers can also be at least one, and the convolution parameters of these convolution layers (such as convolution kernel size, number of channels, etc.) can be the same or different; no limitations are imposed on this.

[0264] It should also be noted that in the embodiments of the present application, the target prediction image features can be generated directly without using a residual structure. Specifically, when generating the target prediction image features, a residual structure can be used to add the initial prediction image features and the fused correction features enhanced using at least one reference image. However, the addition operation can also be omitted, and the two can be directly concatenated to generate the final target prediction image features. In other words, the first addition module can be omitted, and this is not a limitation.

[0265] It is also understandable that in the embodiments of the present application, enhancement processing is performed based on at least one reference image feature, so it is first necessary to extract reference image features corresponding to each reference image. In some embodiments, performing feature extraction on at least one reference image to determine at least one reference image feature may include: performing feature extraction on at least one reference image to determine at least one reference image feature using a feature extraction module.

[0266] That is, feature extraction can be implemented by a feature extraction module. The at least one reference image can use the same feature extraction module. For example, taking three reference images as an example, such as a first reference image, a second reference image, and a third reference image, in some embodiments, feature extraction is performed on at least one reference image by the feature extraction module to determine at least one reference image feature, which may include:

[0267] Extracting features from the first reference image using a feature extraction module to obtain first reference image features;

[0268] Extracting features from the second reference image using a feature extraction module to obtain features of the second reference image;

[0269] Extracting features from the third reference image using a feature extraction module to obtain features of the third reference image;

[0270] A first reference image feature, a second reference image feature, and a third reference image feature are determined as at least one reference image feature.

[0271] It should be noted that in an embodiment of the present application, if three reference images are used to enhance the initial predicted image features, then specifically the first reference image features, the second reference image features and the third reference image features can be used to enhance the initial predicted image features to generate the target predicted image features.

[0272] In a specific embodiment, the first reference image is a reconstructed image of the current image at the previous moment; the second reference image is a reconstructed image of the current image at the previous two moments; and the third reference image is a reconstructed image of the current image at the previous three moments.

[0273] In the embodiment of the present application, the first reference image can be used Indicates that the first reference image feature can be used The second reference image can be represented by Indicates that the second reference image feature can be used Indicates that the third reference image can be used Indicates that the third reference image feature can be used Specifically, the feature extraction process is as follows:

[0274] Among them, f feat (*) represents a feature extraction module, which is used to extract features from at least one reference image.

[0275] It should be noted that in the embodiments of the present application, the number of reference image features can be 1, 2, 3, or even more; here, three reference images are used to extract corresponding reference image features as an example, but there is no limitation on the specific number of reference images and reference image features.

[0276] It should also be noted that in the embodiment of the present application, the at least one reference image and the current image use the same feature extraction module, i.e., a shared feature extraction module. The feature extraction module may include a third convolution module, at least one residual module, and a second addition module. The specific composition structure can be seen in FIG6 .

[0277] In a specific implementation, the first reference image Taking the feature extraction of as an example, performing feature extraction on the first reference image through the feature extraction module to obtain the first reference image feature can include: performing feature extraction on the first reference image through the third convolution module to obtain the first intermediate feature; performing feature extraction on the first intermediate feature through at least one residual module to obtain the second intermediate feature; performing addition operation on the first intermediate feature and the second intermediate feature through the second addition module to obtain the first reference image feature

[0278] In another specific implementation, the second reference image Taking the feature extraction of as an example, extracting features from the second reference image through the feature extraction module to obtain the second reference image features may include: extracting features from the second reference image through the third convolution module to obtain the first intermediate features; extracting features from the first intermediate features through at least one residual module to obtain the second intermediate features; and performing addition operation on the first intermediate features and the second intermediate features through the second addition module to obtain the second reference image features.

[0279] In another specific implementation, the third reference image Taking the feature extraction of as an example, performing feature extraction on the third reference image through the feature extraction module to obtain the third reference image feature may include: performing feature extraction on the third reference image through a third convolution module to obtain a first intermediate feature; performing feature extraction on the first intermediate feature through at least one residual module to obtain a second intermediate feature; performing addition operation on the first intermediate feature and the second intermediate feature through a second addition module to obtain the third reference image feature

[0280] Thus, in the embodiment of the present application, at least one reference image feature (eg, etc.), the initial predicted image features generated by motion compensation are spliced ​​with the at least one reference image feature and the offset of the deformable convolution is generated. The reference image features are then processed by deformable convolution to generate the correction features (also called "compensation features") corresponding to the reference image features. After these compensation features are spliced ​​and convoluted with the initial predicted image features, fused correction features can be obtained; the obtained fused correction features are added to the initial predicted image features to generate the final target predicted image features. That is, the current initial predicted image features are corrected using the compensation features.

[0281] Furthermore, after obtaining the target predicted image features, a reconstructed image of the current image can be determined based on the target predicted image features. In some embodiments, the method may further include:

[0282] Determine the reconstruction residual features of the current image;

[0283] Determine the reconstructed image features according to the reconstructed residual features and the target predicted image features;

[0284] The reconstructed image features are enhanced and reconstructed to determine the reconstructed image of the current image.

[0285] It should be noted that, in an embodiment of the present application, determining the reconstructed residual features of the current image may include: determining the current image features corresponding to the current image; determining the residual image features based on the current image features and the target predicted image features; encoding and decoding the residual image features to determine the reconstructed residual features of the current image.

[0286] In some embodiments, determining the residual image feature based on the current image feature and the target predicted image feature may include: performing a subtraction operation on the current image feature and the target predicted image feature through a first subtraction module to obtain the residual image feature.

[0287] It should also be noted that in the embodiment of the present application, the residual image feature can be represented by R t Represents that the reconstructed residual features are used Here, the first subtraction module is used to generate the residual image feature by subtracting the current image feature from the target predicted image feature, that is, For the encoding end, the first subtraction module in the embodiment of the present application may be the subtractor 108 in FIG. 1 .

[0288] Furthermore, the embodiment of the present application also requires the residual image feature R tPerforming encoding and decoding based on an autoencoder. In some embodiments, encoding and decoding the residual image features to determine the reconstructed residual features of the current image may include: encoding and decoding the residual image features using an autoencoder to determine the reconstructed residual features of the current image.

[0289] It is also understandable that in embodiments of the present application, the autoencoder may include an encoding module and a decoding module. Accordingly, in some embodiments, encoding and decoding the residual image features by the autoencoder to determine the reconstructed residual features of the current image may include: encoding the residual image features by the encoding module of the autoencoder and writing the obtained encoded bits into the bitstream; and decoding the bitstream by the decoding module of the autoencoder to obtain the reconstructed residual features of the current image.

[0290] It should be noted that in the embodiment of the present application, for the residual autoencoder, the composition structure of the encoding module is similar to that of the decoding module, and the decoding module is the inverse process of the encoding module. In addition, in the encoding process based on the residual autoencoder, not only the encoding module of the residual autoencoder is required, but also the encoding of the entropy encoding module is required to generate a bit stream; then the bit stream needs to be decoded by the entropy decoding module and the decoding module of the residual autoencoder to generate the reconstructed residual features. The specific process is as follows:

[0291] Among them, f encoder_R (*),f decoder_R (*) is the encoding module and decoding module of the residual autoencoder, and Q(*) is the quantization process. It should be noted that the structure of the residual autoencoder is consistent with that of the motion parameter autoencoder, so f encoder_R (*),f decoder_R The composition structure of (*) is also shown in Figures 15 and 16 respectively. However, those skilled in the art will appreciate that the network structures of the encoding module and decoding module of the residual autoencoder are not limited thereto.

[0292] Furthermore, after obtaining the reconstructed residual feature, in some embodiments, determining the reconstructed image feature based on the reconstructed residual feature and the target predicted image feature may include: performing an addition operation on the reconstructed residual feature and the target predicted image feature to obtain the reconstructed image feature.

[0293] In a specific embodiment, determining the reconstructed image features based on the reconstructed residual features and the target predicted image features may include: performing an addition operation on the reconstructed residual features and the target predicted image features by a fourth addition module to obtain the reconstructed image features. Here, the reconstructed image features are generated by adding the reconstructed residual features and the target predicted image features by the fourth addition module. For the encoding end, the fourth addition module in the embodiment of the present application may be the adder 109 in Figure 1.

[0294] Furthermore, a reconstructed image of the current image can be reconstructed based on the reconstructed image features. In some embodiments, performing feature enhancement and reconstruction processing on the reconstructed image features to determine the reconstructed image of the current image may include: performing feature enhancement and reconstruction processing on the reconstructed image features by a reconstruction enhancement module to determine the reconstructed image of the current image.

[0295] It should also be noted that in the embodiments of the present application, the reconstruction enhancement module is a network structure for implementing feature enhancement and reconstruction, which may also be referred to as an "enhanced reconstruction network." The reconstruction enhancement module includes at least one residual module, a fifth addition module, and a deconvolution module. Accordingly, in some embodiments, the reconstruction enhancement module performs feature enhancement and reconstruction processing on the reconstructed image features to determine the reconstructed image of the current image, which may include:

[0296] Extracting features of the reconstructed image using at least one residual module to obtain a sixth intermediate feature;

[0297] Performing an addition operation on the sixth intermediate feature and the reconstructed image feature through a fifth addition module to obtain a seventh intermediate feature;

[0298] The deconvolution module performs a deconvolution operation on the seventh intermediate feature to obtain a reconstructed image of the current image.

[0299] It should also be noted that in the embodiments of the present application, the deconvolution module may include a deconvolution layer. The internal structure of the deconvolution module and the specific number of deconvolution layers are not limited herein. Furthermore, for the reconstruction enhancement module, the number of residual modules may be three, but may also be any other number. The specific number of residual modules is also not limited herein.

[0300] For example, Figure 11 illustrates a structural example of a reconstruction enhancement module provided in an embodiment of the present application, but this is not intended to be limiting. Here, three residual modules are first used to sequentially extract features from the reconstructed image to obtain a sixth intermediate feature. A fifth addition module then adds the sixth intermediate feature to the reconstructed image feature to obtain a seventh intermediate feature. Finally, a deconvolution module performs a deconvolution operation on the seventh intermediate feature to obtain a reconstructed image of the current image.

[0301] In addition, in the embodiment of the present application, for the deconvolution layer in the deconvolution module, the number of channels can be set to 3, the convolution kernel size can be 5×5, and the step size can be set to 2. However, it should be noted that the convolution parameters of the deconvolution layer (such as the convolution kernel size, the number of channels, etc.) are not fixed designs and can be adjusted, and the specific values ​​are not limited.

[0302] Furthermore, in an embodiment of the present application, a bit (specifically, first identification information) may be encoded in the bitstream to indicate whether the current image uses the predicted image feature enhancement mode. Therefore, in some embodiments, the method may further include:

[0303] Determining a value of the first identification information;

[0304] The value of the first identification information is encoded by the encoding module of the autoencoder, and the obtained encoding bits are written into the code stream.

[0305] It should be noted that in this embodiment of the present application, the first identification information can be a predefined single-bit indicator written into the bitstream to indicate whether the current image uses the predicted image feature enhancement mode. In this way, the encoder can write the value of the first identification information into the bitstream; the decoder can then obtain the value of the first identification information through decoding, allowing the decoder to quickly determine whether to use the predicted image feature enhancement mode.

[0306] In some embodiments, the method may further include: if the first identification information indicates that the current image uses a predicted image feature enhancement mode, performing a step of enhancing the initial predicted image features according to at least one reference image to determine the target predicted image features of the current image.

[0307] It should also be noted that, in an embodiment of the present application, if the first identification information indicates that the current image uses a predicted image feature enhancement mode, then the enhancement processing steps shown in FIG12 are executed, that is, the initial predicted image features are enhanced according to at least one reference image to determine the target predicted image features of the current image; if the first identification information indicates that the current image does not use a predicted image feature enhancement mode, then the enhancement processing steps shown in FIG12 are no longer executed, and the obtained initial predicted image features are directly used as the target predicted image features of the current image.

[0308] In some embodiments, determining the value of the first identification information may include:

[0309] If the first identification information indicates that the current image uses the predicted image feature enhancement mode, determining that the value of the first identification information is the first value;

[0310] If the first identification information indicates that the current image does not use the predicted image feature enhancement mode, the value of the first identification information is determined to be the second value.

[0311] In the embodiment of the present application, the first value and the second value are different, and the first value and the second value can be in parameter form or in digital form. Specifically, the first identification information can be a parameter written in the profile or the value of a flag, which is not specifically limited here.

[0312] Exemplarily, for the first value and the second value, the first value can be set to 1 and the second value can be set to 0; or, the first value can be set to 0 and the second value can be set to 1; or, the first value can be set to true and the second value can be set to false; or, the first value can be set to false and the second value can be set to true; but this is not specifically limited here.

[0313] In an embodiment of the present application, taking the first identification information as a flag written into the code stream as an example, if the first value is set to 1 and the second value is set to 0, then when the value of the first identification information is 1, it can be determined that the current image uses the predicted image feature enhancement mode. At this time, it is necessary to enhance the initial predicted image features based on at least one reference image to determine the target predicted image features of the current image; when the value of the first identification information is 0, it can be determined that the current image does not use the predicted image feature enhancement mode. At this time, the obtained initial predicted image features are directly used as the target predicted image features of the current image.

[0314] Furthermore, in the embodiments of the present application, the training of the preset network model may be performed using the same training method as in the related art, that is, end-to-end training of all modules of the entire video compression network. Therefore, in some embodiments, the method may further include:

[0315] Determine the preset network model;

[0316] Perform end-to-end training on the preset network model to determine the target network model, which is used to encode and decode the current image;

[0317] Among them, the preset network model includes an initial network model and a prediction enhancement module, and the initial network model at least includes: a feature extraction module, a motion parameter generation module, an autoencoder, a prediction feature generation module and a reconstruction enhancement module.

[0318] That is to say, the embodiment of the present application can embed the prediction enhancement module into the existing initial network model, and further enhance the predicted image features after the motion compensation generates the initial predicted image to generate the enhanced target predicted image features. Specifically, the embodiment of the present application provides a video encoding method based on end-to-end deep learning, that is, it can be trained end-to-end together with the initial network model without changing the training method of the initial network model, thereby greatly simplifying the training process of the video compression network. In addition, the autoencoder here can include a motion parameter autoencoder and a residual autoencoder.

[0319] In summary, in the embodiments of the present application, the following technical problems are mainly solved here: on the one hand, in the process of generating traditional predicted image features, the motion vector representation (offset) of motion estimation is required, and the motion vector representation (offset) needs to be compressed and transmitted to the decoding end. This process is a lossy process, so the reconstructed motion vector representation (offset) is distorted, and the corresponding generated predicted image features are distorted. The embodiments of the present application can enhance the predicted image features by using the reconstructed image at the past moment, thereby improving the predicted image quality and reducing the distortion. On the other hand, a single reference image cannot well generate a predicted image of the current image, such as an occlusion area caused by motion, but the occlusion area may be included in the past image, so the embodiments of the present application propose to use the reconstructed image at the past moment to enhance the predicted image. In summary, the embodiments of the present application can effectively improve the quality of the predicted image features.

[0320] For example, the prediction enhancement technology of the embodiment of the present application can effectively improve the encoding and decoding efficiency after being embedded in the FVC scheme. The test results are shown in the aforementioned Table 1. According to Table 1, compared with the FVC scheme, the average bit rate saving (BDBR) of the embodiment of the present application is about 3.73%.

[0321] It should also be noted that in the embodiments of the present application, the prediction enhancement technology here can be applied not only to the FVC scheme, but also to the DCVC scheme, and even to other video coding network schemes, and there is no limitation on this here.

[0322] Furthermore, an embodiment of the present application also provides a code stream, which is generated by bit encoding based on the information to be encoded; wherein, the information to be encoded includes at least one of the following: the first motion parameter of the current image, the residual image feature and the value of the first identification information; wherein, the first identification information is used to indicate whether the current image uses the predicted image feature enhancement mode.

[0323] In the embodiment of the present application, the first identification information may also include a predicted image feature enhancement mode in the FVC scheme or other codec network scheme, i.e., encoding a bit to indicate whether the predicted image feature enhancement mode is used. When this mode is used, the encoding / decoding method of the embodiment of the present application may be used.

[0324] In this way, after the encoding end writes these to-be-encoded information into the bitstream, the encoding end transmits these to-be-encoded information to the decoding end through the bitstream; so that at the decoding end, whether the current image uses the predicted image feature enhancement mode can be determined by decoding the bitstream, and the first motion parameter and residual image feature of the current image can be determined by decoding the bitstream, so that the reconstructed image of the current image can be restored.

[0325] This embodiment provides an encoding method, which first determines the reconstructed motion parameters of the current image; then, based on the reconstructed motion parameters, determines the initial predicted image features of the current image; then, based on at least one reference image, enhances the initial predicted image features to determine the target predicted image features of the current image; wherein the target predicted image features are used to determine the residual image features of the current image. In this way, at the encoding end, the reconstructed image at the past moment can also be used to enhance the predicted image at the current moment to improve the quality of the predicted image; the process includes correcting the reconstructed image at the past moment to the predicted image at the current moment, and then fusing the multi-image corrected predicted image and the predicted image at the current moment to generate a higher quality predicted image; thereby, based on the high-quality predicted image, not only can the reconstructed image quality of the current image be improved, but also the encoding and decoding efficiency can be improved, while also improving the video encoding and decoding performance.

[0326] In another embodiment of the present application, based on the decoding method and encoding method described in the aforementioned embodiment, the embodiment of the present application provides a network architecture of a video codec system including a decoding method and an encoding method. Figure 17 is a schematic diagram of a network architecture of a video codec provided by the embodiment of the present application. As shown in Figure 17, the network architecture includes one or more electronic devices 13 to 1N and a communication network 01, wherein the electronic devices 13 to 1N can perform video interaction through the communication network 01. During the implementation process, the electronic device can be various types of devices with video codec functions. For example, the electronic device can include a mobile phone, a tablet computer, a personal computer, a personal digital assistant, a navigator, a digital phone, a video phone, a television, a sensor device, a server, etc., which is not limited by the embodiment of the present application. Among them, the decoder or encoder in the embodiment of the present application can be the above-mentioned electronic device.

[0327] Among them, the electronic device in the embodiment of the present application has a video encoding and decoding function, generally including a video encoder (ie, encoder) and a video decoder (ie, decoder).

[0328] Understandably, based on the decoding and encoding methods described in the aforementioned embodiments, the present application proposes a method for generating predicted image features based on multi-image enhancement. This method is embedded within the video coding loop and is involved in both the encoding and decoding ends. Specifically, the predicted image generated by traditional motion compensation is enhanced by combining it with reconstructed images from multiple past moments, thereby improving the quality of the predicted image and, in turn, the coding efficiency.

[0329] In a specific embodiment, at the encoding end, FIG18 is a detailed schematic diagram of the framework of an encoder provided by an embodiment of the present application. As shown in FIG18 , the framework mainly includes: a feature extraction module 1801, a motion estimation module 1802, a motion compression module 1803, a motion compensation module 1804, a prediction enhancement module 1805, a residual compression module 1806, an entropy coding module 1807, a feature enhancement and reconstruction module 1808, a subtractor 1809, and an adder 1810. Among them, taking three frames of reference images as an example, the prediction enhancement module 1805 here can be based on the reference image features of each of the three frames of reference images. The initial predicted image features output by the motion compensation module 1804 are enhanced.

[0330] In Figure 18, after traditional motion compensation generates the initial predicted image features, the reference image features are used to perform multi-image enhancement on the initial predicted image features to improve their quality. This enhancement is manifested in the following ways: on the one hand, due to the lossy compression represented by the motion vector, the generated predicted image contains distortion, and its quality can be enhanced by using the reconstructed image; on the other hand, a single reference image cannot well generate the predicted image of the current image, such as due to occlusion caused by motion. However, this occlusion may be contained in the past image, and after motion compensation, the predicted image contains information about the current image; therefore, the reconstructed reference image can be used to enhance the predicted image features and improve its quality.

[0331] In the embodiments of the present application, each of the above modules is described in detail:

[0332] (1) Feature extraction module: Feature extraction of the current image and the reconstructed reference image (taking three frames of reference images as an example, the reference image features are The current image feature is F t ); The extraction process is as follows:

[0333] Among them, f feat(*) denotes a feature extraction module, which is the same module for both the current image and the reconstructed reference image. This module is known as a shared feature extraction module. The feature extraction module can consist of one convolutional layer and three convolutional blocks based on a residual structure. The specific structure is shown in Figure 6.

[0334] (2) Motion estimation module and motion compensation module: generate initial predicted image features.

[0335] a) Use deformable convolution to transform the current image feature F t and reference image features The concatenated features generate a motion vector representation - offset (i.e., the first motion parameter) θ t The generation process is as follows:

[0336] Among them, cat(*) is the splicing operation, f offset (*) is the offset generation network, which is a two-layer convolutional network. The specific structure is shown in Figure 14.

[0337] b) Then the first motion parameter θt is encoded based on the encoding part of the autoencoder and entropy coding to generate a bit stream; then the bit stream is entropy decoded and the decoding part of the autoencoder is used to generate the reconstructed motion parameter As shown below:

[0338] where f encoder (*),f decoder (*) represents the encoding part and decoding part of the motion parameter autoencoder, and the specific structures are shown in Figures 15 and 16 respectively, and Q(*) represents the quantization process.

[0339] c) Reuse deformable convolution and reference image features Generate initial predicted image features P t (i.e. motion compensation), as shown below:

[0340] Among them, Dconv(*) is a deformable convolution, The features are enhanced for the two-layer convolutional network, and the predicted image features are finally generated. The specific structure is shown in Figure 9.

[0341] (3) Prediction enhancement module: The method for generating features of the prediction image based on multiple reconstructed reference images is the key part of the embodiment of the present application. Taking three frames of reference images as an example, the specific process is shown in Figure 19. The features of the previously reconstructed reference images (taking three images as an example, respectively) are extracted. ), the initial predicted image feature P generated by motion compensation tThe offset of deformable convolution is generated by splicing the reference image features and deformable convolution respectively. The reference image features are processed by deformable convolution to generate compensation features. Then, the compensation features are fused by convolution and combined with the initial predicted image features P t Add together to generate the final target prediction image features That is, the compensation features can be used to correct the current predicted image features.

[0342] The specific steps are as follows (three images are used as an example, but this can be expanded to multiple images):

[0343] a) Reconstruct the reference image from the past Using the feature extraction module, the reference image features can be extracted, which are

[0344] b) The initial predicted image features (generated by motion compensation, i.e., the predicted image features generated using the FVC scheme) and the three reference image features are concatenated separately. Then, two convolutional layers and corresponding activation functions are used to generate the offset between the reconstructed image and the predicted image, similar to the motion vector in traditional video codecs. For example, the number of channels is set to 64, the convolution kernel size is 3×3, and the stride is 1, but this is not limited to this. The specific process is as follows:

[0345] c) After obtaining the offset, deformable convolution is used to generate correction features (i.e., compensation features) from the previously reconstructed reference image features. The specific process is as follows:

[0346] d) The generated multiple correction features are spliced ​​with the initial predicted image features and fused through a convolution layer to finally generate the fused correction features of the current predicted image The specific process is as follows:

[0347] e) Using the residual structure, the fused correction features and the predicted image features are added to generate the final target predicted image features The specific process is as follows:

[0348] (4) Feature enhancement and reconstruction module: First, subtract the current image features from the target prediction image features to obtain the residual image features. The residual image features are further sent to the decoder through the self-encoder to generate a bit stream, and the reconstructed residual features are output. Then add it to the target predicted image features to generate Finally, the final reconstructed image is generated after feature enhancement and reconstruction

[0349] The specific steps are as follows:

[0350] a) After the residual image features pass through the autoencoder, the specific process is as follows:

[0351] Among them, f encoder_R (*),f decoder_R (*) represents the encoding and decoding parts of the residual autoencoder, and the structure is consistent with that of the motion parameter autoencoder, as shown in Figures 15 and 16; Q(*) represents the quantization process.

[0352] b) Feature enhancement and reconstruction generate the final reconstructed image. The specific process is as follows:

[0353] Among them, f enh_x (*) To enhance the reconstruction network, a multi-layer convolutional block based on a residual structure is used. The specific structure can be shown in Figure 11.

[0354] In another specific embodiment, at the decoding end, FIG20 is a detailed schematic diagram of a decoder provided by an embodiment of the present application. As shown in FIG20 , the framework mainly includes: a feature extraction module 2001, a motion compression module 2002, a motion compensation module 2003, a prediction enhancement module 2004, a residual compression module 2005, an entropy decoding module 2006, a feature enhancement and reconstruction module 2007, and an adder 2008. Among them, still taking three frames of reference images as an example, the prediction enhancement module 2004 here can also be used to implement the functions of the aforementioned prediction enhancement module, according to the reference image features of each of the three reference images. The initial predicted image features output by the motion compensation module 2003 are enhanced.

[0355] In FIG20 , for the decoding end, after obtaining the bit stream of the motion parameter and the bit stream of the residual image feature, entropy decoding can be performed to obtain the corresponding decoding features, namely M t and Y t , and then the reconstructed motion parameters are obtained through the decoding part of the autoencoder and reconstruct the residual features Then, the reconstructed motion parameters and the reference image (decoded image) are used to generate the initial predicted image features P t ; Then use multiple reference image features for enhancement processing to generate target prediction image features Finally, it is combined with the reconstructed residual features Feature enhancement and reconstruction after addition can generate a reconstructed image

[0356] In the embodiments of the present application, each of the above modules is described in detail:

[0357] (1) The bit stream of motion parameters and the bit stream of residual image features are entropy decoded to obtain their corresponding decoding features, namely M t and Y t . Among them, entropy encoding and decoding can be any entropy codec, and the process is lossless.

[0358] (2) The reconstructed motion parameters are obtained through the decoding part of the motion parameter autoencoder The specific process is as follows:

[0359] Among them, f decoder (*) is the decoding part of the motion parameter autoencoder, which is the same network as the decoding part of the motion parameter autoencoder in the encoding end.

[0360] (3) Using reconstructed motion parameters and reference image features The initial predicted image feature P t The specific process is as follows:

[0361] Among them, Dconv(*) is a deformable convolution, The two-layer convolutional network enhances features and finally generates initial predicted image features. The same network is used as the encoding end. The specific structure is shown in Figure 9.

[0362] (4) Use the same method as the encoding end to perform enhancement processing to generate the final target prediction image features

[0363] (5) After the decoding part of the residual self-encoder, Y t Convert to reconstruct residual features The specific process is as follows:

[0364] where f decoder_R (*) is the decoding part of the residual autoencoder, which is the same network as the decoding part of the residual autoencoder in the encoding end.

[0365] (6) Target prediction image features and reconstruct the residual features Addition, feature enhancement and reconstruction can generate a reconstructed image The specific process is as follows:

[0366] Among them, f enh_x(*) To enhance the reconstruction network, a multi-layer convolutional block based on a residual structure is used. The same network is used at the encoding end. The specific structure is shown in Figure 11.

[0367] It should be noted that due to the consistency requirements between the encoder and decoder, the encoder generates a reconstructed image; therefore, the entire decoding process occurs on the encoder, so the network on the decoder has a corresponding network on the encoder, and they are the same.

[0368] Furthermore, in an embodiment of the present application, for the training process, the embodiment of the present application can embed the prediction enhancement module into the full-network video encoding method in the related technology, and further enhance the predicted image features after the motion compensation generates the predicted image, thereby generating enhanced target predicted image features; therefore, the method of the embodiment of the present application can be end-to-end trained together with the related technology without changing the training method of the related technology.

[0369] Furthermore, in an embodiment of the present application, the target prediction image features may be generated without using a residual structure, and the final target prediction image features may be directly generated.

[0370] Furthermore, in an embodiment of the present application, the process of correcting the reference image to the current predicted image using deformable convolution can be directly generated by convolution, that is, the predicted image and the reference image features reconstructed in the past are directly fused, and the final target predicted image features are generated by convolution.

[0371] Furthermore, in the embodiments of the present application, the enhancement portion here can also be described as adding a predicted image feature enhancement mode to the FVC scheme or other codec network scheme, that is, encoding a bit to represent the predicted image feature enhancement mode. When using this mode, the encoding / decoding method of the embodiments of the present application can be used.

[0372] In short, the embodiment of the present application proposes a prediction image generation method based on multi-image enhancement, which uses the reconstructed image of the past moment to enhance the prediction image of the current moment to improve the quality of the prediction image; the process includes correcting the reconstructed image of the past moment to the prediction image of the current moment, and then fusing the multi-image corrected prediction image and the prediction image of the current moment to generate a higher quality prediction image.

[0373] For example, the prediction enhancement technology of the embodiment of the present application can effectively improve the encoding and decoding efficiency after being embedded in the FVC scheme. Table 1 shows the improvement effect of the prediction enhancement technology of the embodiment of the present application relative to the FVC scheme, specifically the improvement in bit rate saving ( Delta Bit Rate (BDBR). According to the test results in Table 1, compared with the FVC solution, the average bit rate savings (BDBR) of the embodiment of the present application is about 3.73%.

[0374] It should also be noted that in the embodiments of the present application, the prediction enhancement technology here can be applied not only to the FVC scheme, but also to the DCVC scheme, and even to other video coding network schemes, and there is no limitation on this here.

[0375] In the embodiment of the present application, the specific implementation of the aforementioned embodiment is described in detail through the above embodiment. It can be seen that according to the technical solution of the aforementioned embodiment, the following technical problems are mainly solved here: on the one hand, in the process of generating traditional predicted image features, the motion vector representation (offset) of motion estimation is required, and the motion vector representation (offset) needs to be compressed and transmitted to the decoding end. This process is a lossy process, so the reconstructed motion vector representation (offset) is distorted, and the corresponding generated predicted image features are distorted. The embodiment of the present application can enhance the predicted image features by using the reconstructed image at the past moment, thereby improving the predicted image quality and reducing the distortion. On the other hand, a single reference image cannot well generate the predicted image of the current image, such as the occlusion area caused by motion, but the occlusion area may be included in the past image, so the embodiment of the present application proposes that the use of the reconstructed image at the past moment can effectively improve the predicted image quality. In this way, based on the high-quality predicted image, not only can the reconstructed image quality of the current image be improved, but also the encoding and decoding efficiency can be improved, while also improving the video encoding and decoding performance.

[0376] In another embodiment of the present application, based on the same inventive concept as the above embodiment, see Figure 21, which shows a schematic diagram of the composition structure of an encoder provided by an embodiment of the present application. As shown in Figure 21, the encoder 210 may include: a first determining unit 2101 and a first enhancing unit 2102; wherein,

[0377] The first determining unit 2101 is configured to determine a reconstructed motion parameter of the current image; and determine an initial predicted image feature of the current image based on the reconstructed motion parameter;

[0378] The first enhancement unit 2102 is configured to enhance the initial predicted image features according to at least one reference image to determine the target predicted image features of the current image; wherein the target predicted image features are used to determine the residual image features of the current image.

[0379] In some embodiments, the first determination unit 2101 is further configured to determine a first reference image; determine a first motion parameter based on the first reference image and the current image; and encode and decode the first motion parameter to determine a reconstructed motion parameter of the current image.

[0380] In some embodiments, referring to FIG. 21 , the encoder 210 may further include a first extraction unit 2103 and a motion estimation unit 2104 ; wherein:

[0381] A first extraction unit 2103 is configured to perform feature extraction on the current image and the first reference image respectively to determine current image features and first reference image features;

[0382] The motion estimation unit 2104 is configured to perform motion estimation based on the first reference image feature and the current image feature to determine a first motion parameter.

[0383] In some embodiments, the first extraction unit 2103 is further configured to perform feature extraction on the current image through a feature extraction module to obtain current image features; and perform feature extraction on the first reference image through a feature extraction module to obtain first reference image features.

[0384] In some embodiments, the motion estimation unit 2104 is further configured to perform motion estimation on the first reference image feature and the current image feature through a motion parameter generation module to determine a first motion parameter.

[0385] In some embodiments, the motion parameter generation module includes a third splicing module and a sixth convolution module; accordingly, the motion estimation unit 2104 is also configured to perform a splicing operation on the first reference image feature and the current image feature through the third splicing module to obtain an eighth intermediate feature; and perform a convolution operation on the eighth intermediate feature through the sixth convolution module to obtain the first motion parameter.

[0386] In some embodiments, referring to FIG. 21 , the encoder 210 may further include an encoding unit 2105 configured to encode and decode the first motion parameter through an autoencoder to determine a reconstructed motion parameter of the current image.

[0387] In some embodiments, the autoencoder includes an encoding module and a decoding module; accordingly, the encoding unit 2105 is further configured to encode the first motion parameter through the encoding module of the autoencoder and write the obtained encoding bits into the bit stream; and decode the bit stream through the decoding module of the autoencoder to obtain the reconstructed motion parameter of the current image.

[0388] In some embodiments, referring to FIG. 21 , the encoder 210 may further include a first compensation unit 2106 ; wherein:

[0389] The first determining unit 2101 is further configured to determine a first reference image;

[0390] The first extraction unit 2103 is further configured to perform feature extraction on the first reference image to determine features of the first reference image;

[0391] The first compensation unit 2106 is configured to perform motion compensation according to the first reference image feature and the reconstructed motion parameter to determine the initial predicted image feature.

[0392] In some embodiments, the first reference image is adjacent to the current image, and the first reference image is a reconstructed image of the current image at a previous moment.

[0393] In some embodiments, the first compensation unit 2106 is further configured to perform motion compensation on the first reference image features and the reconstructed motion parameters through a prediction feature generation module to determine an initial prediction image feature.

[0394] In some embodiments, the prediction feature generation module includes a fourth convolution module, a second splicing module, a fifth convolution module and a third addition module; accordingly, the first compensation unit 2106 is further configured to perform a deformable convolution operation on the reconstructed motion parameter and the first reference image feature through the fourth convolution module to obtain a third intermediate feature; perform a splicing operation on the third intermediate feature and the first reference image feature through the second splicing module to obtain a fourth intermediate feature; perform a convolution operation on the fourth intermediate feature through the fifth convolution module to obtain a fifth intermediate feature; and perform an addition operation on the third intermediate feature and the fifth intermediate feature through the third addition module to obtain an initial predicted image feature.

[0395] In some embodiments, the fourth convolution module includes a second deformable convolution layer; the second splicing module includes a second splicing layer; and the fifth convolution module includes a fifth convolution layer.

[0396] In some embodiments, the first extraction unit 2103 is further configured to perform feature extraction on at least one reference image to determine at least one reference image feature;

[0397] The first enhancement unit 2102 is further configured to perform enhancement processing on the initial predicted image feature according to at least one reference image feature to determine a target predicted image feature.

[0398] In some embodiments, the first extraction unit 2103 is further configured to perform feature extraction on at least one reference image through a feature extraction module to determine at least one reference image feature.

[0399] In some embodiments, at least one reference image includes a first reference image, a second reference image, and a third reference image; accordingly, the first extraction unit 2103 is further configured to perform feature extraction on the first reference image through a feature extraction module to obtain first reference image features; perform feature extraction on the second reference image through a feature extraction module to obtain second reference image features; perform feature extraction on the third reference image through a feature extraction module to obtain third reference image features; and determine the first reference image features, the second reference image features, and the third reference image features as at least one reference image feature.

[0400] In some embodiments, the first reference image is a reconstructed image of the current image at the previous moment; the second reference image is a reconstructed image of the current image at the previous two moments; and the third reference image is a reconstructed image of the current image at the previous three moments.

[0401] In some embodiments, the first enhancement unit 2102 is further configured to perform an enhancement operation on at least one reference image feature and an initial predicted image feature through a prediction enhancement module to determine a target predicted image feature.

[0402] In some embodiments, the prediction enhancement module includes a first convolution module, a first splicing module, a second convolution module and a first addition module; accordingly, the first enhancement unit 2102 is further configured to perform convolution operations on at least one reference image feature and an initial prediction image feature respectively through the first convolution module to obtain at least one correction feature; perform splicing operations on at least one correction feature and the initial prediction image feature through the first splicing module to obtain a spliced ​​feature; perform convolution fusion processing on the spliced ​​feature through the second convolution module to obtain a fused correction feature; and perform addition operations on the fused correction feature and the initial prediction image feature through the first addition module to obtain a target prediction image feature.

[0403] In some embodiments, the first convolution module includes at least one convolution submodule, and the number of the convolution submodules corresponds to the number of reference images in the at least one reference image.

[0404] In some embodiments, the convolution submodule includes a first convolution layer and a first deformable convolution layer; the first splicing module includes a first splicing layer; and the second convolution module includes a second convolution layer.

[0405] In some embodiments, the convolution submodule includes a first convolution layer; the first splicing module includes a first splicing layer; and the second convolution module includes a second convolution layer.

[0406] In some embodiments, the feature extraction module includes a third convolution module, at least one residual module and a second addition module; accordingly, the first extraction unit 2103 is also configured to perform feature extraction on the first reference image through the third convolution module to obtain a first intermediate feature; perform feature extraction on the first intermediate feature through at least one residual module to obtain a second intermediate feature; and perform addition operation on the first intermediate feature and the second intermediate feature through the second addition module to obtain a first reference image feature.

[0407] In some embodiments, referring to FIG. 21 , the encoder 210 may further include a first reconstruction unit 2107 ; wherein:

[0408] The first determining unit 2101 is further configured to determine a reconstructed residual feature of the current image; and determine a reconstructed image feature based on the reconstructed residual feature and the target predicted image feature;

[0409] The first reconstruction unit 2107 is configured to perform feature enhancement and reconstruction processing on the reconstructed image features to determine a reconstructed image of the current image.

[0410] In some embodiments, the first determining unit 2101 is further configured to determine a current image feature corresponding to the current image; and determine a residual image feature based on the current image feature and the target predicted image feature;

[0411] The encoding unit 2105 is further configured to encode and decode the residual image features to determine the reconstructed residual features of the current image.

[0412] In some embodiments, the first determining unit 2101 is further configured to perform a subtraction operation on the current image feature and the target predicted image feature through a first subtraction module to obtain a residual image feature.

[0413] In some embodiments, the encoding unit 2105 is further configured to encode the residual image features through the encoding module of the autoencoder and write the obtained encoding bits into the bitstream; and decode the bitstream through the decoding module of the autoencoder to obtain the reconstructed residual features of the current image.

[0414] In some embodiments, the first determining unit 2101 is further configured to perform an addition operation on the reconstructed residual feature and the target predicted image feature through a fourth adding module to obtain the reconstructed image feature.

[0415] In some embodiments, the first reconstruction unit 2107 is further configured to perform feature enhancement and reconstruction processing on the reconstructed image features through the reconstruction enhancement module to determine the reconstructed image of the current image.

[0416] In some embodiments, the reconstruction enhancement module includes at least one residual module, a fifth addition module and a deconvolution module; accordingly, the first reconstruction unit 2107 is also configured to perform feature extraction on the reconstructed image features through at least one residual module to obtain a sixth intermediate feature; perform addition operation on the sixth intermediate feature and the reconstructed image feature through the fifth addition module to obtain a seventh intermediate feature; and perform deconvolution operation on the seventh intermediate feature through the deconvolution module to obtain a reconstructed image of the current image.

[0417] In some embodiments, the first determining unit 2101 is further configured to determine a value of the first identification information;

[0418] The encoding unit 2105 is further configured to encode the value of the first identification information through the encoding module of the autoencoder and write the obtained encoding bits into the bitstream; wherein the first identification information is used to indicate whether the current image uses the predicted image feature enhancement mode.

[0419] In some embodiments, the first determination unit 2101 is further configured to determine that the value of the first identification information is a first value if the first identification information indicates that the current image uses a predicted image feature enhancement mode; if the first identification information indicates that the current image does not use a predicted image feature enhancement mode, determine that the value of the first identification information is a second value.

[0420] In some embodiments, the first determination unit 2101 is further configured to perform a step of enhancing the initial predicted image features according to at least one reference image to determine the target predicted image features of the current image if the first identification information indicates that the current image uses a predicted image feature enhancement mode.

[0421] In some embodiments, the first determination unit 2101 is further configured to determine a preset network model; and perform end-to-end training on the preset network model to determine a target network model, which is used to encode and decode the current image for reconstruction operations; wherein the preset network model includes an initial network model and a prediction enhancement module, and the initial network model includes at least: a feature extraction module, a motion parameter generation module, an autoencoder, a prediction feature generation module and a reconstruction enhancement module.

[0422] It is understandable that in the embodiments of the present application, a "unit" can be a portion of a circuit, a portion of a processor, a portion of a program or software, etc., and of course it can also be a module, or it can be non-modular. Moreover, the various components in this embodiment can be integrated into a processing unit, or each unit can exist physically separately, or two or more units can be integrated into a single unit. The above-mentioned integrated units can be implemented in the form of hardware or in the form of software functional modules.

[0423] If the integrated unit is implemented as a software functional module and is not sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this embodiment, or the portion that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions for causing a computer device (which can be a personal computer, server, or network device, etc.) or a processor to execute all or part of the steps of the method described in this embodiment. The aforementioned storage medium includes various media that can store program code, such as a USB flash drive, a mobile hard drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.

[0424] Therefore, an embodiment of the present application provides a computer-readable storage medium, which is applied to the encoder 210. The computer-readable storage medium stores a computer program, and when the computer program is executed by the first processor, it implements the method described in any one of the aforementioned embodiments.

[0425] Based on the composition of the encoder 210 and the computer-readable storage medium, refer to Figure 22, which shows a specific hardware structure diagram of the encoder 210 provided in an embodiment of the present application. As shown in Figure 22, the encoder 210 may include: a first communication interface 2201, a first memory 2202 and a first processor 2203; each component is coupled together through a first bus system 2204. It can be understood that the first bus system 2204 is used to achieve connection and communication between these components. In addition to the data bus, the first bus system 2204 also includes a power bus, a control bus and a status signal bus. However, for the sake of clarity, various buses are labeled as the first bus system 2204 in Figure 22. Among them,

[0426] The first communication interface 2201 is used to receive and send signals when sending and receiving information with other external network elements;

[0427] A first memory 2202 is used to store computer programs that can be run on the first processor 2203;

[0428] The first processor 2203 is configured to, when running the computer program, execute:

[0429] Determine the reconstructed motion parameters of the current image;

[0430] Determining initial predicted image features of the current image based on the reconstructed motion parameters;

[0431] The initial predicted image features are enhanced according to at least one reference image to determine target predicted image features of the current image; wherein the target predicted image features are used to determine residual image features of the current image.

[0432] It is understood that the first memory 2202 in the embodiment of the present application can be a volatile memory or a non-volatile memory, or can include both volatile and non-volatile memories. Among them, the non-volatile memory can be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory can be a random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of RAM are available, such as static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), and direct RAM bus random access memory (DRRAM). The first memory 2202 of the systems and methods described herein is intended to include, but is not limited to, these and any other suitable types of memory.

[0433] The first processor 2203 may be an integrated circuit chip with signal processing capabilities. During implementation, each step of the above method can be completed by hardware integrated logic circuits or software instructions in the first processor 2203. The above-mentioned first processor 2203 can be a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components. The various methods, steps, and logic block diagrams disclosed in the embodiments of this application can be implemented or executed. The general-purpose processor can be a microprocessor or any conventional processor. The steps of the method disclosed in the embodiments of this application can be directly implemented as a hardware decoding processor, or can be executed by a combination of hardware and software modules in the decoding processor. The software module can be located in a storage medium mature in the art, such as random access memory, flash memory, read-only memory, programmable read-only memory, or electrically erasable programmable memory, registers, etc. The storage medium is located in the first memory 2202 , and the first processor 2203 reads the information in the first memory 2202 and completes the steps of the above method in combination with its hardware.

[0434] It is to be understood that these embodiments described in the present application can be implemented with hardware, software, firmware, middleware, microcode or its combination.For hardware implementation, the processing unit can be implemented in one or more application specific integrated circuits (Application Specific Integrated Circuits, ASIC), digital signal processor (Digital Signal Processing, DSP), digital signal processing equipment (DSP Device, DSPD), programmable logic device (Programmable Logic Device, PLD), field programmable gate array (Field-Programmable Gate Array, FPGA), general-purpose processor, controller, microcontroller, microprocessor, other electronic units for performing functions described in the present application or its combination.For software implementation, the technology described in the present application can be realized by the module (such as process, function etc.) that performs functions described in the present application. The software code can be stored in a memory and executed by a processor. The memory can be implemented in the processor or outside the processor.

[0435] Optionally, as another embodiment, the first processor 2203 is further configured to execute the method described in any one of the aforementioned embodiments when running the computer program.

[0436] This embodiment provides an encoder. For this encoder, after determining the initial predicted image features of the current image based on the reconstructed motion parameters, the initial predicted image features can be enhanced using the reconstructed reference image, thereby improving the quality of the predicted image and reducing the distortion of the predicted image. In addition, due to reasons such as the occlusion area caused by motion, a single reference image cannot generate a predicted image well. At this time, using at least one reconstructed reference image to enhance the initial predicted image features can further improve the quality of the predicted image, and further improve the reconstructed image quality of the current image, and improve the encoding and decoding efficiency.

[0437] In another embodiment of the present application, based on the same inventive concept as the above embodiment, refer to FIG23 , which shows a schematic diagram of the structure of a decoder provided by the embodiment of the present application. As shown in FIG23 , the decoder 230 may include: a decoding unit 2301, a second determining unit 2302, and a second enhancing unit 2303; wherein,

[0438] The decoding unit 2301 is configured to decode the code stream and determine the reconstructed motion parameters of the current image;

[0439] The second determining unit 2302 is configured to determine the initial predicted image features of the current image according to the reconstructed motion parameter;

[0440] The second enhancement unit 2303 is configured to enhance the initial predicted image features according to at least one reference image to determine the target predicted image features of the current image; wherein the target predicted image features are used to determine the reconstructed image of the current image.

[0441] In some embodiments, referring to FIG. 23 , the decoder 230 may further include a second extraction unit 2304 configured to perform feature extraction on at least one reference image to determine at least one reference image feature;

[0442] The second enhancement unit 2303 is further configured to perform enhancement processing on the initial predicted image feature according to at least one reference image feature to determine the target predicted image feature.

[0443] In some embodiments, the second extraction unit 2304 is further configured to perform feature extraction on at least one reference image through a feature extraction module to determine at least one reference image feature.

[0444] In some embodiments, at least one reference image includes a first reference image, a second reference image, and a third reference image; accordingly, the second extraction unit 2304 is further configured to perform feature extraction on the first reference image through a feature extraction module to obtain first reference image features; perform feature extraction on the second reference image through a feature extraction module to obtain second reference image features; perform feature extraction on the third reference image through a feature extraction module to obtain third reference image features; and determine the first reference image features, the second reference image features, and the third reference image features as at least one reference image feature.

[0445] In some embodiments, the first reference image is a reconstructed image of the current image at the previous moment; the second reference image is a reconstructed image of the current image at the previous two moments; and the third reference image is a reconstructed image of the current image at the previous three moments.

[0446] In some embodiments, the second enhancement unit 2303 is further configured to perform an enhancement operation on at least one reference image feature and an initial predicted image feature through a prediction enhancement module to determine a target predicted image feature.

[0447] In some embodiments, the prediction enhancement module includes a first convolution module, a first splicing module, a second convolution module and a first addition module; accordingly, the second enhancement unit 2303 is further configured to perform convolution operations on at least one reference image feature and an initial prediction image feature respectively through the first convolution module to obtain at least one correction feature; perform splicing operations on at least one correction feature and the initial prediction image feature through the first splicing module to obtain a spliced ​​feature; perform convolution fusion processing on the spliced ​​feature through the second convolution module to obtain a fused correction feature; and perform addition operations on the fused correction feature and the initial prediction image feature through the first addition module to obtain a target prediction image feature.

[0448] In some embodiments, the first convolution module includes at least one convolution submodule, and the number of the convolution submodules corresponds to the number of reference images in the at least one reference image.

[0449] In some embodiments, the convolution submodule includes a first convolution layer and a first deformable convolution layer; the first splicing module includes a first splicing layer; and the second convolution module includes a second convolution layer.

[0450] In some embodiments, the convolution submodule includes a first convolution layer; the first splicing module includes a first splicing layer; and the second convolution module includes a second convolution layer.

[0451] In some embodiments, the feature extraction module includes a third convolution module, at least one residual module and a second addition module; accordingly, the second extraction unit 2304 is further configured to perform feature extraction on the first reference image through the third convolution module to obtain a first intermediate feature; perform feature extraction on the first intermediate feature through at least one residual module to obtain a second intermediate feature; and perform addition operation on the first intermediate feature and the second intermediate feature through the second addition module to obtain a first reference image feature.

[0452] In some embodiments, referring to FIG. 23 , the decoder may further include a second compensation unit 2305 ; wherein:

[0453] The second determining unit 2302 is further configured to determine a first reference image;

[0454] The second extraction unit 2304 is further configured to perform feature extraction on the first reference image to determine features of the first reference image;

[0455] The second compensation unit 2305 is configured to perform motion compensation according to the first reference image feature and the reconstructed motion parameter to determine the initial predicted image feature.

[0456] In some embodiments, the first reference image is adjacent to the current image, and the first reference image is a reconstructed image of the current image at a previous moment.

[0457] In some embodiments, the second compensation unit 2305 is further configured to perform motion compensation on the first reference image features and the reconstructed motion parameters through the prediction feature generation module to determine the initial prediction image features.

[0458] In some embodiments, the prediction feature generation module includes a fourth convolution module, a second splicing module, a fifth convolution module and a third addition module; accordingly, the second compensation unit 2305 is further configured to perform a deformable convolution operation on the reconstructed motion parameter and the first reference image feature through the fourth convolution module to obtain a third intermediate feature; perform a splicing operation on the third intermediate feature and the first reference image feature through the second splicing module to obtain a fourth intermediate feature; perform a convolution operation on the fourth intermediate feature through the fifth convolution module to obtain a fifth intermediate feature; and perform an addition operation on the third intermediate feature and the fifth intermediate feature through the third addition module to obtain an initial predicted image feature.

[0459] In some embodiments, the fourth convolution module includes a second deformable convolution layer; the second splicing module includes a second splicing layer; and the fifth convolution module includes a fifth convolution layer.

[0460] In some embodiments, referring to FIG. 23 , the decoder may further include a second reconstruction unit 2306 ; wherein:

[0461] The decoding unit 2301 is further configured to decode the code stream and determine the reconstructed residual features of the current image;

[0462] The second determining unit 2302 is further configured to determine the reconstructed image feature according to the reconstructed residual feature and the target predicted image feature;

[0463] The second reconstruction unit 2306 is configured to perform feature enhancement and reconstruction processing on the reconstructed image features to determine a reconstructed image of the current image.

[0464] In some embodiments, the second determining unit 2302 is further configured to perform an addition operation on the reconstructed residual feature and the target predicted image feature through a fourth adding module to obtain the reconstructed image feature.

[0465] In some embodiments, the second reconstruction unit 2306 is further configured to perform feature enhancement and reconstruction processing on the reconstructed image features through the reconstruction enhancement module to determine the reconstructed image of the current image.

[0466] In some embodiments, the reconstruction enhancement module includes at least one residual module, a fifth addition module and a deconvolution module; accordingly, the second reconstruction unit 2306 is further configured to perform feature extraction on the reconstructed image features through at least one residual module to obtain a sixth intermediate feature; perform addition operation on the sixth intermediate feature and the reconstructed image feature through the fifth addition module to obtain a seventh intermediate feature; and perform deconvolution operation on the seventh intermediate feature through the deconvolution module to obtain a reconstructed image of the current image.

[0467] In some embodiments, the decoding unit 2301 is configured to decode the code stream and determine the value of the first identification information;

[0468] The second determining unit 2302 is further configured to, if the first identification information indicates that the current image uses a predicted image feature enhancement mode, perform a step of enhancing the initial predicted image features according to at least one reference image to determine a target predicted image feature of the current image.

[0469] In some embodiments, the second determination unit 2302 is further configured to determine that the first identification information indicates that the current image uses a predicted image feature enhancement mode if the value of the first identification information is a first value; and to determine that the first identification information indicates that the current image does not use a predicted image feature enhancement mode if the value of the first identification information is a second value.

[0470] In some embodiments, the second determination unit 2302 is further configured to determine a preset network model; and perform end-to-end training on the preset network model to determine a target network model, which is used to encode and decode the current image for reconstruction operations; wherein the preset network model includes an initial network model and a prediction enhancement module, and the initial network model includes at least: a feature extraction module, a motion parameter generation module, an autoencoder, a prediction feature generation module and a reconstruction enhancement module.

[0471] It is understood that in this embodiment, a "unit" can be a portion of a circuit, a portion of a processor, a portion of a program or software, etc., and can also be a module or a non-modular system. Furthermore, the various components in this embodiment can be integrated into a single processing unit, or each unit can exist physically separately, or two or more units can be integrated into a single unit. The aforementioned integrated units can be implemented in the form of hardware or software functional modules.

[0472] If the integrated unit is implemented as a software functional module and is not sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, this embodiment provides a computer-readable storage medium for use in decoder 230. The computer-readable storage medium stores a computer program that, when executed by the second processor, implements any of the methods described in the aforementioned embodiments.

[0473] Based on the composition of the decoder 230 and the computer-readable storage medium, refer to Figure 24, which shows a specific hardware structure diagram of the decoder 230 provided in an embodiment of the present application. As shown in Figure 24, the decoder 230 may include: a second communication interface 2401, a second memory 2402 and a second processor 2403; each component is coupled together through a second bus system 2404. It can be understood that the second bus system 2404 is used to achieve connection and communication between these components. In addition to the data bus, the second bus system 2404 also includes a power bus, a control bus and a status signal bus. However, for the sake of clarity, various buses are labeled as the second bus system 2404 in Figure 24. Among them,

[0474] The second communication interface 2401 is used to receive and send signals during the process of sending and receiving information between other external network elements;

[0475] The second memory 2402 is used to store computer programs that can be run on the second processor 2403;

[0476] The second processor 2403 is configured to, when running the computer program, execute:

[0477] Decode the code stream and determine the reconstructed motion parameters of the current image;

[0478] Determining initial predicted image features of the current image based on the reconstructed motion parameters;

[0479] The initial predicted image features are enhanced according to at least one reference image to determine target predicted image features of the current image; wherein the target predicted image features are used to determine a reconstructed image of the current image.

[0480] Optionally, as another embodiment, the second processor 2403 is further configured to execute any one of the methods described in the foregoing embodiments when running the computer program.

[0481] It can be understood that the hardware functions of the second memory 2402 are similar to those of the first memory 2202, and the hardware functions of the second processor 2403 are similar to those of the first processor 2203; they will not be described in detail here.

[0482] This embodiment provides a decoder. For this decoder, after determining the initial predicted image features of the current image based on the reconstructed motion parameters, the initial predicted image features can be enhanced using the reconstructed reference image, thereby improving the quality of the predicted image and reducing the distortion of the predicted image. In addition, due to reasons such as the occlusion area caused by motion, a single reference image cannot generate a predicted image well. At this time, using at least one reconstructed reference image to enhance the initial predicted image features can further improve the quality of the predicted image, and further improve the reconstructed image quality of the current image, and improve the encoding and decoding efficiency.

[0483] In yet another embodiment of the present application, referring to Figure 25 , a schematic diagram illustrating the structure of a coding and decoding system provided in an embodiment of the present application is shown. As shown in Figure 25 , the coding and decoding system 250 may include an encoder 2501 and a decoder 2502. The encoder 2501 may be any of the encoders described in the aforementioned embodiments, and the decoder 2502 may be any of the decoders described in the aforementioned embodiments.

[0484] It should be noted that, in this application, the terms "comprises," "includes," or any other variations thereof are intended to encompass non-exclusive inclusion, such that a process, method, article, or apparatus comprising a series of elements includes not only those elements but also other elements not explicitly listed, or elements inherent to such process, method, article, or apparatus. In the absence of further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of other identical elements in the process, method, article, or apparatus comprising the element.

[0485] The serial numbers of the above embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.

[0486] The methods disclosed in the several method embodiments provided in this application can be arbitrarily combined without conflict to obtain new method embodiments.

[0487] The features disclosed in the several product embodiments provided in this application can be arbitrarily combined without conflict to obtain new product embodiments.

[0488] The features disclosed in the several method or device embodiments provided in this application can be arbitrarily combined without conflict to obtain new method embodiments or device embodiments.

[0489] The above description is merely a specific embodiment of the present application, but the scope of protection of the present application is not limited thereto. Any changes or substitutions that can be easily conceived by a person skilled in the art within the technical scope disclosed in this application should be included in the scope of protection of this application. Therefore, the scope of protection of this application should be based on the scope of protection of the claims. Industrial Applicability

[0490] In an embodiment of the present application, both the encoding end and the decoding end, after determining the reconstructed motion parameters of the current image, determine the initial predicted image features of the current image based on the reconstructed motion parameters; then enhance the initial predicted image features based on at least one reference image to determine the target predicted image features of the current image; wherein, at the encoding end, the target predicted image features are used to determine the residual image features of the current image; and then transmit the target predicted image features to the decoding end via the code stream, so that the decoding end can determine the reconstructed image of the current image based on the residual image features and the target predicted image features. In this way, after determining the initial predicted image features of the current image based on the reconstructed motion parameters, the initial predicted image features can be enhanced using the reconstructed reference image, thereby improving the quality of the predicted image and reducing the distortion of the predicted image; in addition, due to reasons such as the occlusion area caused by motion, a single reference image cannot generate a good predicted image. At this time, enhancing the initial predicted image features using at least one reconstructed reference image can further improve the quality of the predicted image, thereby improving the quality of the reconstructed image of the current image, and improving the encoding and decoding efficiency.

Claims

1. A decoding method, applied to a decoder, the method include: Decode the bitstream and determine the reconstructed motion parameters of the current image; Determining initial predicted image features of the current image according to the reconstructed motion parameters; The initial predicted image features are enhanced according to at least one reference image to determine target predicted image features of the current image; wherein the target predicted image features are used to determine a reconstructed image of the current image.

2. The method according to claim 1, in, The step of enhancing the initial predicted image features according to at least one reference image to determine the target predicted image features of the current image includes: Performing feature extraction on the at least one reference image to determine at least one reference image feature; The initial predicted image feature is enhanced according to the at least one reference image feature to determine the target predicted image feature.

3. The method according to claim 2, in, The extracting features of the at least one reference image respectively to determine at least one reference image feature comprises: The feature extraction module performs feature extraction on the at least one reference image to determine the feature of the at least one reference image.

4. The method according to claim 3, in, The at least one reference image includes a first reference image, a second reference image, and a third reference image; The extracting features of the at least one reference image by a feature extraction module to determine the feature of the at least one reference image comprises: Extracting features from the first reference image by the feature extraction module to obtain first reference image features; Extracting features from the second reference image by the feature extraction module to obtain features of the second reference image; Extracting features from the third reference image by the feature extraction module to obtain features of the third reference image; The first reference image feature, the second reference image feature, and the third reference image feature are determined as the at least one reference image feature.

5. The method according to claim 4, in, The first reference image is a reconstructed image of the current image at a previous moment; The second reference image is a reconstructed image of the current image at two previous moments; The third reference image is a reconstructed image of the current image at three previous moments.

6. The method according to claim 2, in, The step of enhancing the initial predicted image feature according to the at least one reference image feature to determine the target predicted image feature comprises: The at least one reference image feature and the initial predicted image feature are enhanced by a prediction enhancement module to determine the target predicted image feature.

7. The method according to claim 6, in, The prediction enhancement module includes a first convolution module, a first splicing module, a second convolution module and a first addition module; The step of performing an enhancement operation on the at least one reference image feature and the initial predicted image feature by a prediction enhancement module to determine the target predicted image feature includes: Performing convolution operations on the at least one reference image feature and the initial predicted image feature respectively through the first convolution module to obtain at least one correction feature; Performing a splicing operation on the at least one correction feature and the initial predicted image feature through the first splicing module to obtain a splicing feature; Performing convolution fusion processing on the splicing features through the second convolution module to obtain fused correction features; The first addition module performs an addition operation on the fused correction feature and the initial predicted image feature to obtain the target predicted image feature.

8. The method according to claim 7, in, The first convolution module includes at least one convolution submodule, and the number of the convolution submodules corresponds to the number of reference images in the at least one reference image.

9. The method according to claim 8, in, The convolution submodule includes a first convolution layer and a first deformable convolution layer; The first splicing module includes a first splicing layer; The second convolution module includes a second convolution layer.

10. The method according to claim 8, in, The convolution submodule includes a first convolution layer; The first splicing module includes a first splicing layer; The second convolution module includes a second convolution layer.

11. The method according to claim 4, in, The feature extraction module includes a third convolution module, at least one residual module and a second addition module; The extracting features of the first reference image by the feature extraction module to obtain first reference image features includes: Performing feature extraction on the first reference image through the third convolution module to obtain a first intermediate feature; Performing feature extraction on the first intermediate feature by using the at least one residual module to obtain a second intermediate feature; The first intermediate feature and the second intermediate feature are added by the second adding module to obtain the first reference image feature.

12. The method according to claim 1, in, Determining the initial predicted image features of the current image according to the reconstructed motion parameter includes: determining a first reference image; Performing feature extraction on the first reference image to determine first reference image features; Motion compensation is performed according to the first reference image feature and the reconstructed motion parameter to determine the initial predicted image feature.

13. The method according to claim 12, in, The first reference image is adjacent to the current image, and the first reference image is a reconstructed image of the current image at a previous moment.

14. The method according to claim 12, in, The performing motion compensation according to the first reference image feature and the reconstructed motion parameter to determine the initial predicted image feature includes: The first reference image feature and the reconstructed motion parameter are subjected to motion compensation by a prediction feature generation module to determine the initial prediction image feature.

15. The method according to claim 14, in, The prediction feature generation module includes a fourth convolution module, a second splicing module, a fifth convolution module and a third addition module; The step of performing motion compensation on the first reference image feature and the reconstructed motion parameter by a prediction feature generation module to determine the initial prediction image feature includes: Performing a deformable convolution operation on the reconstructed motion parameter and the first reference image feature through the fourth convolution module to obtain a third intermediate feature; Performing a splicing operation on the third intermediate feature and the first reference image feature through the second splicing module to obtain a fourth intermediate feature; Performing a convolution operation on the fourth intermediate feature through the fifth convolution module to obtain a fifth intermediate feature; The third intermediate feature and the fifth intermediate feature are added by the third adding module to obtain the initial predicted image feature.

16. The method according to claim 15, in, The fourth convolution module includes a second deformable convolution layer; The second splicing module includes a second splicing layer; The fifth convolution module includes a fifth convolution layer.

17. The method according to any one of claims 1 to 16, in, The method further comprises: Decoding the bitstream to determine the reconstructed residual features of the current image; Determining a reconstructed image feature according to the reconstructed residual feature and the target predicted image feature; The reconstructed image features are enhanced and reconstructed to determine a reconstructed image of the current image.

18. The method according to claim 17, in, The step of determining the reconstructed image feature according to the reconstructed residual feature and the target predicted image feature comprises: The reconstructed residual feature and the target predicted image feature are added by a fourth adding module to obtain the reconstructed image feature.

19. The method according to claim 17, in, The step of performing feature enhancement and reconstruction processing on the features of the reconstructed image to determine the reconstructed image of the current image includes: The reconstruction enhancement module performs feature enhancement and reconstruction processing on the reconstructed image features to determine a reconstructed image of the current image.

20. The method according to claim 19, in, The reconstruction enhancement module includes at least one residual module, a fifth addition module and a deconvolution module; The step of performing feature enhancement and reconstruction processing on the reconstructed image features by a reconstruction enhancement module to determine a reconstructed image of the current image includes: Extracting features of the reconstructed image by using the at least one residual module to obtain a sixth intermediate feature; Performing an addition operation on the sixth intermediate feature and the reconstructed image feature by the fifth adding module to obtain a seventh intermediate feature; The deconvolution module performs a deconvolution operation on the seventh intermediate feature to obtain a reconstructed image of the current image.

21. The method according to any one of claims 1 to 20, in, The method further comprises: Decoding the code stream to determine the value of the first identification information; If the first identification information indicates that the current image uses a predicted image feature enhancement mode, the step of enhancing the initial predicted image features according to at least one reference image to determine a target predicted image feature of the current image is performed.

22. The method according to claim 21, in, The decoding of the code stream to determine the value of the first identification information includes: If the value of the first identification information is the first value, determining that the first identification information indicates that the current image uses a predicted image feature enhancement mode; If the value of the first identification information is the second value, it is determined that the first identification information indicates that the current image does not use the predicted image feature enhancement mode.

23. The method according to any one of claims 1 to 22, in, The method further comprises: Determine the preset network model; Performing end-to-end training on the preset network model to determine a target network model, wherein the target network model is used to perform encoding and decoding reconstruction operations on the current image; The preset network model includes an initial network model and a prediction enhancement module, and the initial network model at least includes: a feature extraction module, a motion parameter generation module, an autoencoder, a prediction feature generation module and a reconstruction enhancement module.

24. A coding method, applied to an encoder, the method include: Determine the reconstructed motion parameters of the current image; Determining initial predicted image features of the current image according to the reconstructed motion parameters; The initial predicted image features are enhanced according to at least one reference image to determine target predicted image features of the current image; wherein the target predicted image features are used to determine residual image features of the current image.

25. The method according to claim 24, in, The step of determining the reconstructed motion parameter of the current image comprises: determining a first reference image; Determining a first motion parameter according to the first reference image and the current image; The first motion parameter is encoded and decoded to determine the reconstructed motion parameter of the current image.

26. The method according to claim 25, in, The step of determining a first motion parameter according to the first reference image and the current image includes: Extracting features from the current image and the first reference image respectively to determine features of the current image and features of the first reference image; Motion estimation is performed according to the first reference image feature and the current image feature to determine the first motion parameter.

27. The method according to claim 26, in, The extracting features of the current image and the first reference image respectively to determine the features of the current image and the features of the first reference image includes: Extracting features from the current image using a feature extraction module to obtain features of the current image; The feature extraction module performs feature extraction on the first reference image to obtain features of the first reference image.

28. The method according to claim 26, in, The performing motion estimation according to the first reference image feature and the current image feature to determine the first motion parameter includes: The motion parameter generation module performs motion estimation on the first reference image feature and the current image feature to determine the first motion parameter.

29. The method according to claim 28, in, The motion parameter generation module includes a third splicing module and a sixth convolution module; The step of performing motion estimation on the first reference image feature and the current image feature through a motion parameter generation module to obtain the first motion parameter includes: Performing a splicing operation on the first reference image feature and the current image feature by the third splicing module to obtain an eighth intermediate feature; The eighth intermediate feature is convolved by the sixth convolution module to obtain the first motion parameter.

30. The method according to claim 25, in, The encoding and decoding of the first motion parameter to determine the reconstructed motion parameter of the current image includes: The first motion parameter is encoded and decoded by an autoencoder to determine the reconstructed motion parameter of the current image.

31. The method according to claim 30, in, The autoencoder comprises an encoding module and a decoding module; The encoding and decoding of the first motion parameter by the autoencoder to determine the reconstructed motion parameter of the current image includes: Performing encoding processing on the first motion parameter by using the encoding module of the autoencoder, and writing the obtained encoding bits into a bit stream; The code stream is decoded by the decoding module of the autoencoder to obtain the reconstructed motion parameters of the current image.

32. The method according to claim 24, in, Determining the initial predicted image features of the current image according to the reconstructed motion parameter includes: determining a first reference image; Performing feature extraction on the first reference image to determine first reference image features; Motion compensation is performed according to the first reference image feature and the reconstructed motion parameter to determine the initial predicted image feature.

33. The method according to claim 25 or 32, in, The first reference image is adjacent to the current image, and the first reference image is a reconstructed image of the current image at a previous moment.

34. The method according to claim 32, in, The performing motion compensation according to the first reference image feature and the reconstructed motion parameter to determine the initial predicted image feature includes: The first reference image feature and the reconstructed motion parameter are subjected to motion compensation by a prediction feature generation module to determine the initial prediction image feature.

35. The method according to claim 34, in, The prediction feature generation module includes a fourth convolution module, a second splicing module, a fifth convolution module and a third addition module; The step of performing motion compensation on the first reference image feature and the reconstructed motion parameter by a prediction feature generation module to determine the initial prediction image feature includes: Performing a deformable convolution operation on the reconstructed motion parameter and the first reference image feature through the fourth convolution module to obtain a third intermediate feature; Performing a splicing operation on the third intermediate feature and the first reference image feature through the second splicing module to obtain a fourth intermediate feature; Performing a convolution operation on the fourth intermediate feature through the fifth convolution module to obtain a fifth intermediate feature; The third intermediate feature and the fifth intermediate feature are added by the third adding module to obtain the initial predicted image feature.

36. The method according to claim 35, in, The fourth convolution module includes a second deformable convolution layer; The second splicing module includes a second splicing layer; The fifth convolution module includes a fifth convolution layer.

37. The method according to claim 24, in, The step of enhancing the initial predicted image features according to at least one reference image to determine the target predicted image features of the current image includes: Performing feature extraction on the at least one reference image to determine at least one reference image feature; The initial predicted image feature is enhanced according to the at least one reference image feature to determine the target predicted image feature.

38. The method according to claim 37, in, The extracting features of the at least one reference image respectively to determine at least one reference image feature comprises: The feature extraction module performs feature extraction on the at least one reference image to determine the feature of the at least one reference image.

39. The method according to claim 38, in, The at least one reference image includes a first reference image, a second reference image, and a third reference image; The extracting features of the at least one reference image by a feature extraction module to determine the feature of the at least one reference image comprises: Extracting features from the first reference image by the feature extraction module to obtain first reference image features; Extracting features from the second reference image by the feature extraction module to obtain features of the second reference image; Extracting features from the third reference image by the feature extraction module to obtain features of the third reference image; The first reference image feature, the second reference image feature, and the third reference image feature are determined as the at least one reference image feature.

40. The method according to claim 39, in, The first reference image is a reconstructed image of the current image at a previous moment; The second reference image is a reconstructed image of the current image at two previous moments; The third reference image is a reconstructed image of the current image at three previous moments.

41. The method according to claim 37, in, The step of enhancing the initial predicted image feature according to the at least one reference image feature to determine the target predicted image feature comprises: The at least one reference image feature and the initial predicted image feature are enhanced by a prediction enhancement module to determine the target predicted image feature.

42. The method according to claim 41, in, The prediction enhancement module includes a first convolution module, a first splicing module, a second convolution module and a first addition module; The step of performing an enhancement operation on the at least one reference image feature and the initial predicted image feature by a prediction enhancement module to determine the target predicted image feature includes: Performing convolution operations on the at least one reference image feature and the initial predicted image feature respectively through the first convolution module to obtain at least one correction feature; Performing a splicing operation on the at least one correction feature and the initial predicted image feature through the first splicing module to obtain a splicing feature; Performing convolution fusion processing on the splicing features through the second convolution module to obtain fused correction features; The first addition module performs an addition operation on the fused correction feature and the initial predicted image feature to obtain the target predicted image feature.

43. The method according to claim 42, in, The first convolution module includes at least one convolution submodule, and the number of the convolution submodules corresponds to the number of reference images in the at least one reference image.

44. The method according to claim 43, in, The convolution submodule includes a first convolution layer and a first deformable convolution layer; The first splicing module includes a first splicing layer; The second convolution module includes a second convolution layer.

45. The method according to claim 43, in, The convolution submodule includes a first convolution layer; The first splicing module includes a first splicing layer; The second convolution module includes a second convolution layer.

46. ​​The method according to claim 39, in, The feature extraction module includes a third convolution module, at least one residual module and a second addition module; The extracting features of the first reference image by the feature extraction module to obtain first reference image features includes: Performing feature extraction on the first reference image through the third convolution module to obtain a first intermediate feature; Performing feature extraction on the first intermediate feature by using the at least one residual module to obtain a second intermediate feature; The first intermediate feature and the second intermediate feature are added by the second adding module to obtain the first reference image feature.

47. The method according to any one of claims 24 to 46, in, The method further comprises: Determining a reconstruction residual feature of the current image; Determining a reconstructed image feature according to the reconstructed residual feature and the target predicted image feature; The reconstructed image features are enhanced and reconstructed to determine a reconstructed image of the current image.

48. The method according to claim 47, in, The determining of the reconstruction residual feature of the current image comprises: Determining a current image feature corresponding to the current image; Determining residual image features according to the current image features and the target predicted image features; The residual image features are encoded and decoded to determine the reconstructed residual features of the current image.

49. The method according to claim 48, in, The determining of residual image features according to the current image features and the target predicted image features includes: The current image feature and the target predicted image feature are subtracted by a first subtraction module to obtain the residual image feature.

50. The method according to claim 48, in, The encoding and decoding of the residual image features to determine the reconstructed residual features of the current image includes: The residual image features are encoded by an encoding module of the autoencoder, and the obtained encoding bits are written into a bit stream; The code stream is decoded by a decoding module of the autoencoder to obtain a reconstructed residual feature of the current image.

51. The method according to claim 47, in, The step of determining the reconstructed image feature according to the reconstructed residual feature and the target predicted image feature comprises: The reconstructed residual feature and the target predicted image feature are added by a fourth adding module to obtain the reconstructed image feature.

52. The method according to claim 47, in, The step of performing feature enhancement and reconstruction processing on the features of the reconstructed image to determine the reconstructed image of the current image includes: The reconstruction enhancement module performs feature enhancement and reconstruction processing on the reconstructed image features to determine a reconstructed image of the current image.

53. The method according to claim 52, in, The reconstruction enhancement module includes at least one residual module, a fifth addition module and a deconvolution module; The step of performing feature enhancement and reconstruction processing on the reconstructed image features by a reconstruction enhancement module to determine a reconstructed image of the current image includes: Extracting features of the reconstructed image by using the at least one residual module to obtain a sixth intermediate feature; Performing an addition operation on the sixth intermediate feature and the reconstructed image feature by the fifth adding module to obtain a seventh intermediate feature; The deconvolution module performs a deconvolution operation on the seventh intermediate feature to obtain a reconstructed image of the current image.

54. The method according to any one of claims 24 to 53, in, The method further comprises: Determine a value of the first identification information; The value of the first identification information is encoded by an encoding module of the autoencoder, and the obtained encoding bits are written into a bitstream; wherein the first identification information is used to indicate whether the current image uses a predicted image feature enhancement mode.

55. The method according to claim 54, in, The determining a value of the first identification information includes: If the first identification information indicates that the current image uses a predicted image feature enhancement mode, determining that a value of the first identification information is a first value; If the first identification information indicates that the current image does not use the predicted image feature enhancement mode, it is determined that the value of the first identification information is a second value.

56. The method according to claim 54, in, The method further comprises: If the first identification information indicates that the current image uses a predicted image feature enhancement mode, the step of enhancing the initial predicted image features according to at least one reference image to determine a target predicted image feature of the current image is performed.

57. The method according to any one of claims 24 to 56, in, The method further comprises: Determine the preset network model; Performing end-to-end training on the preset network model to determine a target network model, wherein the target network model is used to perform encoding and decoding reconstruction operations on the current image; The preset network model includes an initial network model and a prediction enhancement module, and the initial network model at least includes: a feature extraction module, a motion parameter generation module, an autoencoder, a prediction feature generation module and a reconstruction enhancement module.

58. A code stream, in, The code stream is generated by bit encoding according to the information to be encoded; wherein the information to be encoded includes at least one of the following: The values ​​of the first motion parameter, residual image feature and first identification information of the current image; wherein the first identification information is used to indicate whether the current image uses a predicted image feature enhancement mode.

59. An encoder, comprising a first determining unit and a first enhancing unit; in, The first determining unit is configured to determine a reconstructed motion parameter of the current image; and determine an initial predicted image feature of the current image based on the reconstructed motion parameter; The first enhancement unit is configured to enhance the initial predicted image features according to at least one reference image to determine the target predicted image features of the current image; wherein the target predicted image features are used to determine the residual image features of the current image.

60. An encoder comprising a first memory and a first processor; in, The first memory is used to store a computer program that can be run on the first processor; The first processor is configured to execute the method according to any one of claims 24 to 57 when running the computer program.

61. A decoder, the decoder comprising a decoding unit, a second determining unit and a second enhancing unit; in, The decoding unit is configured to decode the code stream and determine the reconstructed motion parameters of the current image; The second determining unit is configured to determine the initial predicted image feature of the current image according to the reconstructed motion parameter; The second enhancement unit is configured to enhance the initial predicted image features according to at least one reference image to determine the target predicted image features of the current image; wherein the target predicted image features are used to determine a reconstructed image of the current image.

62. A decoder comprising a second memory and a second processor; in, The second memory is used to store a computer program that can be run on the second processor; The second processor is configured to execute the method according to any one of claims 1 to 23 when running the computer program.

63. A computer readable storage medium, in, The computer-readable storage medium stores a computer program, and when the computer program is executed, the method according to any one of claims 1 to 23 is implemented, or the method according to any one of claims 24 to 57 is implemented.

Citation Information

Patent Citations

  • Compressed video processing method, device and equipment and computer readable storage medium

    CN112714321A

  • Coding method, decoding method and coding and decoding system of bidirectional prediction frame

    CN113949883A

  • Image processing method and device

    CN114339260A

  • Video enhancement processing method and device, electronic equipment and storage medium

    CN115511756A

  • Image reconstruction method and device, equipment and storage medium

    CN115526773A

Cited By

  • Video compression system and method based on embedded platform

    CN119835440A