Method and apparatus for hierarchical audio / video or image compression - Patents.com

The hierarchical neural network-based compression method optimizes audio/video or image encoding and decoding to separately process high and low-frequency signals, improving efficiency and reducing computing power, addressing the limitations of traditional methods at high bitrates and enhancing performance at low bitrates.

JP7574521B2Active Publication Date: 2024-10-29HUAWEI TECH CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
JP2023551271
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Priority Date
2021-02-25
Filing Date
2022-02-23
Publication Date
2024-10-29
Estimated Expiration
2042-02-23

AI Technical Summary

Technical Problem

Existing audio/video or image compression technologies face challenges in achieving high compression ratios with minimal impact on quality, particularly at high bitrates, and require significant computing power, limiting their effectiveness in networks with limited bandwidth and memory resources.

Method used

A hierarchical audio/video or image compression method that utilizes a neural network-based approach, employing multiple encoding and decoding networks with varying receptive fields to process high and low-frequency signals separately, and incorporates entropy encoding/decoding to optimize compression performance.

Benefits of technology

This method improves compression efficiency by reducing computing power and runtime while maintaining quality, breaking the limitations of traditional Variational Autoencoder models at high bitrates and enhancing performance at low bitrates.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007574521000066
    Figure 0007574521000066
  • Figure 0007574521000067
    Figure 0007574521000067
  • Figure 0007574521000068
    Figure 0007574521000068
Patent Text Reader

Abstract

This application provides an audio / video or image compression method and apparatus in the field of artificial intelligence (AI)-based audio / video or image compression technology, particularly in the field of neural network-based audio / video or image compression technology. The method includes transforming raw audio / video or image into a feature space through multi-layer convolution operations, extracting features of different layers in the feature space, outputting rounded feature signals of different layers, predicting the probability distribution of shallow feature signals by using deep feature signals or entropy estimation results, and performing entropy encoding on the rounded feature signals. In this application, the signal correlation between different layers is utilized. In this way, the audio / video or image compression performance can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] This application claims priority to Chinese Patent Application No. 202110212042.1, entitled “Hierarchical Audio / Video or Image Compression Method and Apparatus,” filed with the China State Intellectual Property Office on February 25, 2021, which is incorporated herein by reference in its entirety.

[0002] FIELD OF THE DISCLOSURE

[0002] Embodiments of the present invention relate to the field of artificial intelligence (AI)-based audio / video or image compression technology, and in particular to a hierarchical audio / video or image compression method and apparatus. [Background technology]

[0003] Audio / video or image coding (video encoding and decoding) is widely used in digital audio / video or image applications, such as digital video broadcasting, audio / video or image transmission over the Internet and mobile networks, real-time session applications such as audio / video chat and audio / video conferencing, DVD and Blu-ray discs, audio / video or image content capture and editing systems, and security applications in portable cameras.

[0004] Even when the video is short, a large amount of audio / video data needs to be rendered. This can cause difficulties when the data needs to be transmitted or otherwise sent over a network with limited bandwidth capacity. Therefore, audio / video or image data usually needs to be compressed before being sent over modern telecommunication networks. Memory resources can be limited. Therefore, when the audio / video is stored on a storage device, the size of the audio / video or image can also be an issue. Audio / video or image compression devices usually use software and / or hardware at the source side to encode the video data before transmission or storage. This reduces the amount of data required to represent the digital audio / video or image. The compressed data is then received by a video decompression device on the destination side. Due to limited network resources and increasing requirements for higher video quality, compression and decompression techniques need to be improved. In the improved techniques, the compression ratio can be increased with less impact on the audio and image quality.

[0005] In recent years, the application of deep learning in the field of audio / video or image coding has gradually become popular. For example, Google holds a competition titled CLIC (Challenge on Learned Image Compression) at the CVPR conference every year. CLIC focuses on using deep neural networks to improve image compression efficiency. In 2020, a video or image challenge category was further added to CLIC. Based on the performance evaluation of the competition method, the comprehensive compression efficiency of the current deep learning technology-based image coding method is comparable to the latest generation of video and image coding standard: VVC (Versatile Video Coding). In addition, the solution has its own advantages in improving the quality perceived by users.

[0006] The establishment of the VVC video standard was completed in June 2020. The standard covers almost all technical algorithms that can significantly improve compression efficiency. Therefore, it is difficult to realize a major technical breakthrough in the research of new compression coding algorithms based on traditional signal processing means. Unlike traditional image algorithms in which the modules of image compression are optimized through manual design, end-to-end AI-based image compression is optimized as a whole. Therefore, AI-based image compression methods have better compression effect. The Variational Autoencoder (AE) method is the mainstream technical solution of current AI-based lossy image compression technology. In the current mainstream technical solution, there is an AE limit problem, which is that the model compression quality tends to stabilize at high bit rates of fixed models. The AE limit problem can be alleviated by increasing the computing power, but the problem of high computing power arises. Summary of the Invention

[0007] The present application provides a hierarchical audio / video or image compression method and apparatus for breaking through the AE limit at high bitrates and reducing the computing power and runtime of the model while ensuring compression quality at low bitrates.

[0008] According to a first aspect, there is provided an audio / video or image encoding method, comprising: allowing the audio or image to be encoded to pass through an encoding network to obtain a first output feature map of the audio or image to be encoded and a second output feature map of the audio or image to be encoded; rounding the first output feature map to obtain a first rounded feature map of the audio or image to be encoded; rounding the second output feature map to obtain a second rounded feature map of the audio or image to be encoded; performing entropy encoding of the second rounded feature map based on a probability estimation result of the second entropy estimation to obtain a second encoded bitstream; performing a probability estimation of the first entropy estimation based on the second rounded feature map and / or the probability estimation result of the second entropy estimation; and performing entropy encoding on the first rounded feature map based on the probability estimation result of the first entropy estimation to obtain a first encoded bitstream.

[0009] In the above technical solution, the probability estimation of the first entropy estimation is performed based on the second rounded feature map and / or the probability estimation result of the second entropy estimation, so as to utilize the signal correlation between different networks, thus improving the performance of audio or image compression.

[0010] In the above technical solution, according to the Nyquist sampling theory, high frequency signals require smaller receptive fields, and low frequency signals require larger receptive fields. The first encoding network, which corresponds to a shallower network in the encoding network, has a small receptive field, which facilitates the capture of high frequency information. The signal to be encoded, which corresponds to a deep network in the encoding network, passes through the first encoding network and the second encoding network, which has a large receptive field, which facilitates the capture of low frequency signals. The high frequency information and the low frequency information are transmitted in a hierarchical manner, and the calculation of high frequency information is only performed on the shallow network. This can reduce the computing power.

[0011] In the above technical solutions, the rounding operation may include a round down operation, a round down operation, or a round up operation.

[0012] In the aforementioned technical solution, entropy estimation is performed to estimate the probability of each point in the rounded feature map, thereby estimating the compression bit rate of the model.

[0013] In the above technical solution, the entropy encoding scheme includes, but is not limited to, a variable length encoding scheme and an arithmetic encoding scheme. The variable length encoding scheme may include Exponential Golomb Codes and Context Adaptive Variable Length Encoding (CAVLC). The arithmetic encoding scheme may include Context Adaptive Binary Arithmetic Encoding (CABAC).

[0014] In a possible implementation, the method further includes: allowing the audio or image to be encoded to pass through an encoding network to obtain a third output feature map of the audio or image to be encoded, and rounding the third output feature map to obtain a third rounded feature map of the audio or image to be encoded; and performing entropy encoding on the third rounded feature map based on a probability estimation result of the third entropy estimation to obtain a third encoded bitstream.

[0015] In a possible implementation, the third entropy estimation result and / or the third rounded feature map of the audio or image to be encoded are input information for the second entropy estimation.

[0016] In a possible implementation, the method further comprises: allowing the audio or image to be encoded to pass through an encoding network to obtain a K-th output feature map of the audio or image to be encoded, and rounding the K-th output feature map to obtain a K-th rounded feature map of the audio or image to be encoded, where k is an integer greater than 3; Equipped with.

[0017] In the above technical solutions, the kth rounded feature map and / or the kth entropy estimation result are input information of the nth entropy estimation, where n is an integer less than or equal to k.

[0018] In a possible implementation, the method further comprises using at least one of the rounded feature maps as an input of a decoding network for the encoded audio or image and allowing at least one of the rounded feature maps to pass through the decoding network to obtain a reconstructed audio or image for the encoded audio or image; calculating a difference between corresponding samples of the encoded audio or image and the reconstructed audio or image to obtain a residual image for the encoded audio or image; and obtaining a probability estimate for a lossless entropy estimation of the decoded audio or image based on at least one of three types of information: (1) any one or more of the entropy estimation results; (2) any one or more of the rounded feature maps; or (3) the reconstructed audio or image; and performing entropy encoding on the residual image based on the lossless entropy estimation result to obtain a lossless encoded bitstream for the encoded audio or image.

[0019] In a possible implementation, any one of the encoding networks is one or more convolutional networks.

[0020] In a possible implementation, the probability estimation result of the rth entropy estimation is output as the mean and variance information of the rth rounded feature map.

[0021] In a possible implementation, Prior to the step of rounding the first output feature map to obtain a first rounded feature map of the audio or image to be encoded, the method further comprises the step of subtracting pixel values ​​of samples in the first output feature map and the average output by the first entropy estimation to obtain a first offset feature map; the step of rounding the first output feature map to obtain a first rounded feature map of the audio or image to be encoded comprises the step of rounding the first offset feature map to obtain a first rounded feature map of the audio or image to be encoded.

[0022] It should be understood that the above possible implementations may alternatively be used to obtain any rounded feature map.

[0023] It should be understood that the aforementioned image compression methods can be used in the training stage of a neural network or in the inference stage of a neural network, which is not specifically limited in this application.

[0024] It should be understood that the audio or image to be encoded is transformed into a feature space through the operation on the encoding network, and the features of different layers or layers thereof, such as layers 1, 2, ..., n, are extracted for compression from multiple output feature maps corresponding to multiple encoding networks in the feature space. The characteristic frequencies of layers 1, 2, ..., n decrease sequentially. In addition, the number of feature layers used for compression is variable, and the number of feature channels in each layer is variable, realizing the dynamic compression adjustment function.

[0025] According to a second aspect, there is provided an audio or image decoding method comprising the steps of: obtaining a first decoded bitstream of an audio or image to be decoded; obtaining a second decoded bitstream of the audio or image to be decoded; performing entropy decoding on the second decoded bitstream of the decoded image based on a probability estimation result of a second entropy estimation of the audio or image to be decoded to obtain a second decoded feature map of the audio or image to be decoded; performing a probability estimation of a first entropy estimation based on the second feature map and / or the probability estimation result of the second entropy estimation to obtain a probability estimation result of the first entropy estimation; performing entropy decoding on the first decoded bitstream based on the probability estimation result of the first entropy estimation to obtain a first decoded feature map of the audio or image to be decoded; and outputting a reconstructed audio or image of the audio or image by using the first decoded feature map and / or the second decoded feature map as an input of a decoding network.

[0026] In the above technical solution, the probability estimation of the first entropy estimation is performed based on the second decoded feature map and / or the probability estimation of the second entropy estimation, so as to utilize the signal correlation between different layers in the feature space, thus improving the image compression performance.

[0027] In the aforementioned technical solution, entropy estimation is performed during decoding to estimate the probability of each point in the decoded feature map, thereby estimating the compression bit rate of the model.

[0028] In the above technical solution, the entropy decoding scheme includes, but is not limited to, a variable length decoding scheme and an arithmetic decoding scheme. The variable length decoding scheme may include Exponential Golomb Codes and Context Adaptive Variable Length Decoding (CAVLC). The arithmetic decoding scheme may include Context Adaptive Binary Arithmetic Decoding (CABAC).

[0029] In a possible implementation, the method further comprises: obtaining a third bitstream to be decoded of the audio or image to be decoded; performing entropy decoding on the third bitstream to be decoded based on a probability estimation result of the third entropy estimation of the audio or image to be decoded to obtain a third decoded feature map of the audio or image to be decoded; and performing a probability estimation of a second entropy estimation of the audio or image to be decoded based on the third decoded feature map and / or the probability estimation result of the third entropy estimation. The step of outputting a reconstructed audio or image of the audio or image to be decoded specifically includes a step of a decoding network outputting a reconstructed audio or image of the audio or image to be decoded by using at least one of the first decoded feature map, the second decoded feature map, and the third decoded feature map as an input of the decoding network.

[0030] In a possible implementation, a probability estimation of the second entropy estimation is performed on the audio or image to be decoded based on the third decoded feature map and / or the probability estimation result of the third entropy estimation.

[0031] In a possible implementation, the method further includes a step of obtaining an m-th bitstream to be decoded of the audio or image to be decoded; and performing entropy decoding on the m-th bitstream to be decoded based on a probability estimation result of the m-th entropy estimation of the audio or image to be decoded to obtain an m-th decoded feature map of the audio or image to be decoded, where m is an integer greater than 3.

[0032] In the above possible implementation, the m-th decoded feature map is the input information for the t-th entropy estimation, where t is an integer less than or equal to m.

[0033] In a possible implementation, the method further comprises the steps of obtaining a lossless decoded bitstream of the audio or image to be decoded, and obtaining a probability estimation result of lossless entropy estimation of the audio or image to be decoded based on at least one of three types of information: (1) at least one of the decoded feature maps; (2) at least one of the probability estimation results of the entropy estimation; or (3) a reconstructed audio or image of the audio or image to be decoded; and performing entropy decoding on the lossless decoded bitstream based on the probability estimation result of the lossless entropy estimation of the audio or image to be decoded to obtain a residual image of the audio or image to be decoded, and performing summation on corresponding samples of the reconstructed audio or image of the audio or image to be decoded and the residual image of the audio or image to be decoded to obtain a lossless reconstructed audio or image of the audio or image to be decoded.

[0034] In a possible implementation, the method further comprises, when the first decoded feature map is an input of the decoding network, adding pixel values ​​of samples in the first decoded feature map and the average output by the first entropy estimation to obtain the first decoded feature map.

[0035] It should be understood that the above possible implementations may alternatively be used to obtain any decoded feature map.

[0036] It should be understood that the aforementioned image compression methods can be used in the training stage of a neural network or in the inference stage of a neural network, which is not specifically limited in this application.

[0037] A hierarchical decoding scheme is used. Thus, the feature information of different frequency components is extracted from different layers, so that the entropy decoding in different layers is performed in a more targeted and effective manner. This helps to improve the signal compression and encoding performance. In addition, the correlation between inter-layer feature signals is utilized. This also facilitates the implementation of entropy estimation. Based on these two factors, the compression quality can be ensured at low bit rates, i.e., when the reconstruction and output are performed by using only some hierarchical decoded features, based on these two factors, the compression quality can be further improved to break through the AE limit at high bit rates, i.e., when the reconstruction and output are performed by using more hierarchical decoded features. A hierarchical structure is used so that the hierarchical decoding scheme can be used according to the actual requirements. When the shallow output of the decoding network is used, the number of network layers in the decoding network that are required to obtain the decoded features is smaller, so that the computing power and runtime of the model are reduced.

[0038] According to a third aspect, an audio or image compression processing apparatus is provided, which includes an encoding network module configured to transform an audio or image to be encoded into a feature space through an operation on an encoding network, and extract features from different layers or layers thereof, such as layers 1, 2, ..., and N, in the feature space from a plurality of output feature maps corresponding to a plurality of encoding networks for compression, where the feature frequencies of layers 1, 2, ..., and n are sequentially decreased, the number of feature layers used for compression is variable, and the number of feature channels in each layer is variable, realizing a dynamic compression adjustment function; a rounding module configured to round each point in the output feature map to an integer number for subsequent encoding; and a rounding feature extraction module configured to extract features from the output feature maps so as to estimate a compression bit rate of the model. and an entropy estimation network module configured to estimate a probability of each point in the map; and an entropy encoding / decoding module configured to perform entropy encoding on the plurality of rounded feature maps based on the probability distribution obtained by the entropy estimation model to obtain a plurality of encoded bit streams (thereby reducing encoding redundancy of the output features and further reducing the amount of data transmitted during image compression); and a decoding network module configured to perform an inverse transform on the decoded feature maps to analyze the decoded feature maps into audio or images.

[0039] For further functions implemented by the encoding network module, the rounding module, the entropy estimation network module, the entropy encoding / decoding module, and the decoding network module, please refer to the first aspect, the second aspect, or any one of the implementations of the first aspect or the second aspect, and the details will not be described again here.

[0040] According to a fourth aspect, the present application provides an encoder comprising a processing circuit configured to perform the method according to the first aspect or any one of the implementations of the first aspect.

[0041] According to a fifth aspect, the present application provides a decoder comprising a processing circuit configured to perform the method according to the second aspect or any one of the implementations of the second aspect.

[0042] According to a sixth aspect, the present application provides a computer program product comprising a program code which, when executed on a computer or processor, is used to perform a method according to the first aspect or any one of the implementations of the first aspect, or the second aspect or any one of the implementations of the second aspect.

[0043] According to a seventh aspect, the present application provides an encoder comprising one or more processors; and a non-transitory computer-readable storage medium coupled to the processors and storing a program executed by the processors, the program, when executed by the processor, enabling the decoder to perform a method according to the first aspect or any one of the implementations of the first aspect.

[0044] According to an eighth aspect, the present application provides a decoder comprising one or more processors; and a non-transitory computer-readable storage medium coupled to the processors and storing a program executed by the processors, wherein when the program is executed by the processor the encoder is capable of performing a method according to the second aspect or any one of the implementations of the second aspect.

[0045] According to a ninth aspect, the present application provides a non-transitory computer readable storage medium comprising a program code, which when executed by a computing device is used to perform a method according to the first aspect or any one of the implementations of the first aspect, or the second aspect or any one of the implementations of the second aspect.

[0046] According to a tenth aspect, the present invention relates to an encoding device having the functionality to implement the operations of the method embodiments according to the first aspect or any one of the implementations of the first aspect. This functionality may be implemented by hardware or by hardware executing corresponding software. This hardware or software comprises one or more modules corresponding to this functionality. In a possible design, the encoding device includes an encoding network module configured to transform the raw image into a feature space through multi-layer convolution operations, and extract features of different layers, such as layers 1, 2, ..., and n or multiple layers thereof, for compression in the feature space (wherein the feature frequencies of layers 1, 2, ..., n are sequentially decreased, the number of feature layers used for compression is variable, and the number of feature channels in each layer is variable, realizing a dynamic compression adjustment function); a rounding module configured to round the output features to integers for subsequent encoding so as to estimate a compression bit rate of the model; an entropy estimation network module configured to estimate a probability of each point in the rounded feature map obtained through rounding; and an entropy encoding module configured to perform entropy encoding on the rounded feature map based on the probability distribution obtained by the entropy estimation model, to reduce the encoding redundancy of the output features, and further reduce the amount of data transmitted during image compression. These modules may perform corresponding functions in the example method according to the first aspect or any one of the implementations of the first aspect. For details, please refer to the detailed description of the example method. The details will not be explained again here.

[0047] According to a tenth aspect, the present invention relates to a decoding device having the functionality to implement the behavior of the embodiment of the method according to the second aspect or any one of the implementations of the second aspect. This functionality may be implemented by hardware or by hardware executing corresponding software. The hardware or software includes one or more modules corresponding to this functionality. In a possible design, the decoding device comprises: an entropy estimation network module configured to estimate the probability of each point in the decoded feature map so as to estimate the compression bit rate of the model; an entropy decoding module configured to perform entropy decoding on the bit stream to be decoded based on the probability distribution obtained by the entropy estimation model to obtain the decoded feature map (thereby reducing the encoding redundancy of the output features and further reducing the amount of data transmitted during image compression); and a decoding network module configured to perform an inverse transform on the compressed features and analyze the decoded feature map into audio or image. These modules may perform the corresponding functionality of the example method according to the second aspect or any one of the implementations of the second aspect. For details, please refer to the detailed description of the example method. Details will not be repeated here.

[0048] In the conventional mainstream end-to-end audio or image coding method, there is an AE limit problem, which is that model compression quality tends to stabilize at high bit rates of fixed models. The AE limit problem can be alleviated by increasing computing power, but the problem of high computing power arises. In this application, the transmission of feature signals in different layers (different feature layers) in feature space is added, and the correlation between feature signals in different layers is utilized. This improves encoding quality and breaks through the AE limit. The encoding or decoding network corresponding to the feature layer with high feature frequency has low computing power, and as a result, the complexity is reduced. According to the actual requirements for encoding quality, the number of layers and channels for compressing features can be adjusted to fit the current multi-bit rate model and implement multiple bit rates in a single model.

[0049] One or more embodiments are described in detail in the accompanying drawings and the following specification. Other features, objects, and advantages are apparent from the description, the accompanying drawings, and the claims. [Brief description of the drawings]

[0050] The accompanying drawings used in the embodiments of the present application are described below.

[0051] [Figure 1A] FIG. 1 is an exemplary block diagram of an audio / video or image decoding system for implementing an embodiment of the present invention, the system encoding or decoding video or images by using a neural network.

[0052] [Figure 1B] FIG. 2 is another exemplary block diagram of an audio / video or image decoding system for implementing an embodiment of the present invention, where the video or image encoder and / or the video or image decoder encodes or decodes the video or image by using a neural network.

[0053] [Figure 1C] 1 is a schematic block diagram of an audio / video or image decoding device for implementing an embodiment of the present invention;

[0054] [Figure 1D] 1 is a schematic block diagram of an audio / video or image decoding device for implementing an embodiment of the present invention;

[0055] [Diagram 2] FIG. 1 is an exemplary block diagram of an encoder system for implementing embodiments of the present invention.

[0056] [Figure 3A] 1 illustrates an exemplary framework of an encoding network of an audio or image encoder for implementing embodiments of the present invention;

[0057] [Figure 3B] 1 illustrates an input / output structure of an encoding network of an audio or image encoder for implementing an embodiment of the present invention.

[0058] [Figure 4] FIG. 2 is a diagram of an exemplary structure of an encoding sub-network for implementing an embodiment of the present invention.

[0059] [Diagram 5] FIG. 2 is an exemplary diagram of an encoding network.

[0060] [Figure 6A] 1 is an exemplary block diagram of an entropy estimation unit. [Figure 6B] 1 is an exemplary block diagram of an entropy estimation unit.

[0061] [Figure 7A]FIG. 2 is an example block diagram of an input for entropy estimation. [Figure 7B] FIG. 2 is an example block diagram of an input for entropy estimation. [Figure 7C] FIG. 2 is an example block diagram of an input for entropy estimation. [Figure 7D] FIG. 2 is an example block diagram of an input for entropy estimation. [Figure 7E] FIG. 2 is an example block diagram of an input for entropy estimation. [Figure 7F] FIG. 2 is an example block diagram of an input for entropy estimation. [Figure 7G] FIG. 2 is an example block diagram of an input for entropy estimation. [Figure 7H] FIG. 2 is an example block diagram of an input for entropy estimation. [Figure 7I] FIG. 2 is an example block diagram of an input for entropy estimation. [Figure 7J] FIG. 2 is an example block diagram of an input for entropy estimation. [Figure 7K] FIG. 2 is an example block diagram of an input for entropy estimation. [Figure 7L] FIG. 2 is an example block diagram of an input for entropy estimation. [Figure 7M] FIG. 2 is an example block diagram of an input for entropy estimation.

[0062] [Figure 8] 1 illustrates an exemplary entropy estimation network.

[0063] [Figure 9] FIG. 2 is a schematic block diagram of a decoder system for implementing an embodiment of the present invention;

[0064] [Figure 10A] FIG. 1 is a schematic diagram of the framework of an entropy estimation unit for decoding. [Figure 10B] FIG. 1 is a schematic diagram of the framework of an entropy estimation unit for decoding.

[0065] [Figure 11] FIG. 2 is a schematic block diagram of a decoding network.

[0066] [Figure 12] FIG. 1 is a schematic diagram of the input structure of a decoding network.

[0067] [Figure 13] FIG. 2 is a diagram of an exemplary structure of a decoding network according to an embodiment of the present application.

[0068] [Figure 14A] 1 illustrates an exemplary structure according to an embodiment of the present application. [Figure 14B] 1 illustrates an exemplary structure according to an embodiment of the present application. [Figure 14C] 1 illustrates an exemplary structure according to an embodiment of the present application.

[0069] [Figure 15] 1 illustrates an exemplary system architecture (lossless) according to an embodiment of the present application.

[0070] [Figure 16] 1 illustrates an exemplary system architecture according to an embodiment of the present application.

[0071] [Figure 17] 1 illustrates an exemplary system architecture (cloud application) according to an embodiment of the present application.

[0072] [Figure 18A] 1 illustrates an exemplary system architecture according to an embodiment of the present application. [Figure 18B] 1 illustrates an exemplary system architecture according to an embodiment of the present application.

[0073] [Figure 19]1 illustrates an exemplary system architecture (audio) according to an embodiment of the present application. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0074] Terms such as "first" and "second" in the embodiments of the present application are used only for distinction and explanation, and should not be construed as an indication or suggestion of relative importance or an indication or suggestion of sequence. In addition, the terms "comprises" and "includes" and any variations thereof are intended to cover non-exhaustive inclusions, such as the inclusion of a series of steps or units. A method, system, product, or device is not necessarily limited to the explicitly recited steps or units, but may include other steps or units that are not explicitly recited and are inherent to the process, method, product, or device.

[0075] In this application, it should be understood that "at least one (item)" means one or more, and "multiple" means two or more. The term "and / or" describes a relational relationship between associated objects and indicates that three relationships may exist. For example, "A and / or B" may represent three cases: only A is present, only B is present, and both A and B are present, where A and B may be singular or plural. The character " / " usually indicates an "or" relationship between associated objects. "At least one of the following items" or similar expressions indicates any combination of items, including any combination of one or more of the items. For example, at least one of a, b, or c may indicate a, b, c, "a and b," "a and c," "b and c," or "a, b and c," where a, b, and c may be singular or plural.

[0076] Embodiments of the present application provide an AI-based audio / video or image compression technique, in particular, a neural network-based audio / video or image compression technique, and in particular, an end-to-end audio or image coding system.

[0077] In the image coding field, the terms "picture" and "image" can be used synonymously. Image coding (or usually referred to as coding) includes two parts: image encoding and image decoding, and video includes multiple images and is a representation of a continuous image. Audio coding (or usually referred to as coding) includes two parts: audio encoding and audio decoding. Audio or image encoding is performed on the source side and usually involves processing (e.g., compressing) raw video images to reduce the amount of data needed to represent the audio or video images (for more efficient storage and / or transmission). Audio or image decoding is performed on the destination side and usually involves performing the inverse process to the encoder to reconstruct the audio or image. The "coding" of audio or image (or usually referred to as audio or image) in the embodiments should be understood as "encoding" or "decoding" of audio or image. The encoding and decoding parts are also collectively referred to as codec (encoding and decoding, CODEC).

[0078] In the case of lossless audio or image coding, the raw audio or image can be reconstructed. Specifically, the reconstructed audio or image has the same quality as the raw audio or image (assuming no transmission or other data loss occurs during storage or transmission). In the case of conventional lossy image coding, further compression is performed through quantization or the like to reduce the amount of data required to represent the audio or video image, and the audio or video image cannot be fully reconstructed at the decoder side. Specifically, the quality of the reconstructed audio or video image is lower than the raw audio or video image.

[0079] The embodiments of the present application relate to numerous applications of neural networks, and therefore, for ease of understanding, the following first describes relevant terms and concepts of neural networks that may be used in the embodiments of the present application.

[0080] (1) Neural Networks

[0081] The neural network may include neurons. A neuron may be a computation unit that uses x and intercept 1 as input. The output of the computation unit may be:

number

[0082] s=1, 2, ..., n, where n is a natural number greater than 1, W is the weight of x, and b is the bias of the neuron. f is the activation function of the neuron, which is used to introduce nonlinear features into the neural network to convert the input signal at the neuron into an output signal. The output signal of the activation function can be used as the input of the next convolutional layer, and the activation function can be a sigmoid function. A neural network is a network obtained by connecting multiple individual neurons. Specifically, the output of a neuron can be the input of another neuron. The input of each neuron can be connected to a local receptive field of the previous layer to extract features of the local receptive field. The local receptive field can be a region containing multiple neurons.

[0083] (2) Deep Neural Networks

[0084] A deep neural network (DNN), also called a multi-layer neural network, can be understood as a neural network that includes multiple hidden layers. DNNs are divided based on the location of different layers, and the neural network in DNNs can be divided into three types: input layer, hidden layer, and output layer. Usually, the first layer is the input layer, the last layer is the output layer, and all the intermediate layers are hidden layers. The layers are fully connected. Specifically, any neuron in the i-th layer is definitely connected to any neuron in the (i+1)-th layer.

[0085] Although DNNs appear complex, the calculations in each layer are not complicated and can be simply expressed by the following linear relationship equations.

number

number

number

number

number

number

number

number

number

number

number

number

number

[0086] In summary, the coefficients of the k-th neuron in the (L-1)th layer to the j-th neuron in the Lth layer are

number

[0087] The input layer is

number

number

[0088] (3) Convolutional Neural Networks

[0089] A convolutional neural network (CNN) is a deep neural network with a convolutional structure. A convolutional neural network includes a feature extractor including a convolutional layer and a sampling sublayer, and the feature extractor can be regarded as a filter. A convolutional layer is a layer of neurons in a convolutional neural network where convolution is performed on an input signal. In a convolutional layer of a convolutional neural network, one neuron can only be connected to some neurons in an adjacent layer. A convolutional layer usually includes multiple feature planes, and each feature plane can include some neurons arranged in a rectangular shape. Neurons in one feature plane share weights, where the shared weights are convolution kernels. Weight sharing can be understood as a way of extracting image information that is independent of position. The convolutional kernels can be initialized in the form of a matrix of random size. During training of a convolutional neural network, the convolutional kernels can obtain appropriate weights through learning. In addition, a direct benefit of weight sharing is that it reduces the connections between layers of a convolutional neural network, also reducing the risk of overfitting.

[0090] (4) Recurrent neural networks (RNNs) are used to process sequence data. In traditional neural network models, the layers are fully connected from the input layer to the hidden layer and then to the output layer, but the nodes of each layer are not connected. This common neural network helps to solve many problems, but still cannot solve many other problems. For example, when the next word in a sentence needs to be predicted, the previous word usually needs to be used because adjacent words in a sentence are not independent of each other. The reason why RNNs are called recurrent neural networks is that the current output of a sequence is related to the previous output. The specific representation format is as follows: The network stores previous information and applies the previous information to the calculation of the current output. Specifically, the nodes in the hidden layer are connected to each other, and the input of the hidden layer not only includes the output of the input layer, but also the output of the hidden layer at the previous time point. In theory, RNNs can process sequence data of any length. Training for RNNs is identical to training for traditional CNNs or DNNs. RNNs are intended to enable machines to memorize like humans. Therefore, the output of the RNN must depend on the current input information and on past stored information.

[0091] (5) Loss function

[0092] During training of a deep neural network, the output of the deep neural network is expected to be as close as possible to the actual expected predicted value, so the current predicted value of the network can be compared with the actual expected target value, and then the weight vector of each layer of the neural network is updated based on the difference between the two values ​​(of course, there is usually an initialization process before the first update, specifically, the parameters are pre-configured for each layer of the deep neural network). For example, if the predicted value of the network is large, the weight vector is adjusted to reduce the predicted value until the deep neural network can obtain the actual expected target value or a value very close to the actual expected target value through prediction. Therefore, it is necessary to predefine "how to obtain the difference between the predicted value and the target value through comparison". This is the loss function or objective function. The loss function and objective function are important formulas for measuring the difference between the predicted value and the target value. The loss function is used as an example. A larger output value (loss) of the loss function indicates a larger difference. Therefore, training of a deep neural network is a process of minimizing the loss.

[0093] (6) Backpropagation Algorithm

[0094] During the training of the neural network, a back propagation (BP) algorithm can be used to correct the value of the parameters in the initial neural network model, so that the reconstruction error loss of the neural network model gradually becomes smaller. Specifically, the input signal is propagated forward until an error loss occurs at the output, and the parameters in the initial neural network model are updated based on the back propagation error loss information to make the error loss converge. The back propagation algorithm is a back propagation motion centered on the error loss, which aims to obtain the optimal parameters, for example, the weight matrix of the neural network model.

[0095] (7) Generative Adversarial Networks

[0096] A generative adversarial network (GAN) is a deep learning model. The model includes at least two modules. One module is a generative model, and the other is a discriminative model. Learning is performed through a game between the two modules to generate a better output. Both the generative model and the discriminative model can be neural networks, specifically, deep neural networks or convolutional neural networks. The basic principle of GAN is as follows. A GAN for generating images is used as an example. Assume there are two networks: G (generator) and D (discriminator). G is a network for generating images. G receives random noise z and generates an image based on the noise, where the image is denoted as G(z). D is a discriminative network for judging whether the image is "real". The input parameter of D is x, where x denotes an image. The output D(x) denotes the probability that x is a real image. When the value of D(x) is 1, it indicates that the image is 100% real. When the value of D(x) is 0, it indicates that the image cannot be real. During the training of the generative adversarial network, the goal of the generative network G is to generate an image that is as real as possible to fool the discriminative network D, and the goal of the discriminative network D is to distinguish between the image generated by G and the real image. In this way, G and D constitute a dynamic "game" process, i.e., the "adversarial process" in the "generative adversarial network". The final game result is as follows: In the ideal state, G can generate an image G(z) that "looks real", and it is difficult for D to determine whether the image generated by G is real. That is, D(G(z))=0.5. In this way, a good generative model G can be obtained and used to generate images.

[0097] In the following embodiment of the decoding system 10, the encoder 20 and the decoder 30 are described on the basis of FIGS. 1A to 13. FIG.

[0098] 1A is a schematic block diagram of an example decoding system 10, e.g., an audio / video or image decoding system 10 (or referred to as decoding system 10) capable of using the techniques of the present application. A video encoder 20 (or referred to as encoder 20) and an audio / video or image decoder 30 (or referred to as decoder 30) in the audio / video or image decoding system 10 represent devices or the like capable of performing the techniques according to the examples described in the present application.

[0099] 1A, decoding system 10 includes a source device 12. Source device 12 is configured to provide encoded audio or image data 21, such as encoded audio or image, to a destination device 14 that is configured to decode the encoded audio or image data 21.

[0100] The source device 12 includes an encoder 20 , and may additionally optionally include an audio or image source 16 , a pre-processor (or pre-processing unit) 18 , such as an audio or image pre-processor, and a communications interface (or communications unit) 22 .

[0101] The audio or image source 16 may be or may include any type of audio or image capture device for capturing real-world images or the like, and / or any type of image generation device, such as a computer graphics processing unit for generating computer animated images, or any type of device for obtaining and / or providing real-world images or computer-generated images (e.g., screen content, virtual reality (VR) images, and / or any combination thereof (e.g., augmented reality (AR) images)). The audio or image source may be any type of internal memory or memory for storing any audio or image in said images.

[0102] To distinguish the processing performed by the pre-processor (or pre-processing unit) 18 , the audio or image (or image data) 17 may also be referred to as raw audio or image (or raw image data) 17 .

[0103] The pre-processor 18 is configured to receive (raw) audio or image data 17 and pre-process the audio or image data 17 to obtain a pre-processed image (or pre-processed image data) 19. For example, the pre-processing performed by the pre-processor 18 may include cropping, color format conversion (e.g., RGB to YCbCr conversion), color correction, or noise removal. It can be understood that the pre-processing unit 18 may be an optional component.

[0104] An audio / video or image encoder (or encoder) 20 is configured to receive preprocessed audio or image data 19 and provide encoded audio or image data 21 (this is further described below with reference to FIG. 2 and the like).

[0105] The communications interface 22 of the source device 12 may be configured to receive the encoded audio or image data 21 and transmit the encoded audio or image data 21 (or any other processed version) over the communications channel 13 to another device, such as the destination device 14 or any other device, for storage or direct reconstruction.

[0106] The destination device 14 includes a decoder 30, and may additionally, optionally, include a communications interface (or communications unit) 28, a post-processor (or post-processing unit) 32, and a display device 34.

[0107] The communications interface 28 of the destination device 14 is configured to receive the encoded audio or image data 21 (or any further processed version) directly from the source device 12 or any other source device, such as a storage device (where, for example, the storage device is a storage device for the encoded audio or image data); and to provide the encoded audio or image data 21 to a decoder 30.

[0108] The communication interface 22 and the communication interface 28 may be configured to transmit or receive the encoded audio or image data (or encoded data) 21 over a direct communication link between the source device 12 and the destination device 14, such as a direct wired or wireless connection, or over any type of network, such as a wired network, a wireless network, or any combination thereof, or over any type of private or public network, or any combination thereof.

[0109] For example, the communications interface 22 may be configured to encapsulate the encoded audio or image data 21 into a suitable format, such as packets, and / or process the encoded audio or image data through any type of transmission encoding or processing so that the processed encoded audio or image data may be transmitted over a communications link or network.

[0110] Communications interface 28 corresponds to communications interface 22 and may be configured, for example, to receive transmitted data and process the transmitted data through any type of corresponding transmission decoding or processing and / or decapsulation to obtain encoded audio or image data 21.

[0111] Communication interface 22 and communication interface 28 each correspond to communication channel 13 and may be configured as a unidirectional communication interface, as indicated by the arrows in FIG. 1A , directed from source device 12 to destination device 14, or a bidirectional communication interface, and may be configured to send and receive messages or the like to establish a connection, determine and exchange a communication link, and / or any other information related to data transmission, such as the transmission of encoded image data and the like.

[0112] The audio / video or image decoder (or decoder) 30 is configured to receive the encoded audio or image data 21 and provide decoded audio or image data (or decoded audio or image data) 31 (this is further described below based on Figure 4 and the like).

[0113] The post-processor 32 is configured to post-process the decoded audio or image data (also referred to as reconstructed audio or image data) 31, such as decoded audio or image, to obtain post-processed audio or image data, such as post-processed audio or image 33. For example, the post-processing performed by the post-processing unit 32 may include color format conversion (e.g., YCbCr to RGB conversion), color correction, cropping, resampling, or any other processing for generating the decoded audio or image data 31 for display by a display device 34 or the like.

[0114] The display device 34 is configured to receive the post-processed audio or image data 33 and display the images to a user, viewer, or the like. The display device 34 may be or include any type of player or display for presenting the reconstructed audio or images, such as, for example, an integrated or external display or monitor. For example, the display may include a liquid crystal display (LCD), an organic light emitting diode (OLED) display, a plasma display, a projector, a micro LED display, a liquid crystal on silicon (LCoS) display, a digital light processor (DLP), or any other type of display.

[0115] The decoding system 10 further includes a training engine 25. The training engine 25 is configured to train and process the encoder 20 or the decoder 30 (e.g., process input audio, images, image regions, or image blocks to generate predictions of the input audio, images, image regions, or image blocks). The training data may be stored in a database (not shown), and the training engine 25 obtains a target model (which may be, for example, a network used for audio or image encoding or decoding) through training based on the training data. It should be noted that the source of the training data is not limited in this embodiment of the present application. For example, the training data may be obtained from the cloud or another location for model training.

[0116] 1A illustrates source device 12 and destination device 14 as separate devices, embodiments of the devices may alternatively include both source device 12 and destination device 14, or may include the functionality of both source device 12 and destination device 14, i.e., both source device 12 or corresponding functionality and destination device 14 or corresponding functionality. In these embodiments, source device 12 or corresponding functionality and destination device 14 or corresponding functionality may be implemented using the same hardware and / or software, separate hardware and / or software, or any combination thereof.

[0117] Based on the description, the description, existence, and (exact) division of different units or functions in the source device 12 and / or the destination device 14 shown in Figure 1A may vary based on the actual device and application, as will be apparent to those skilled in the art.

[0118] The encoder 20 (e.g., audio / video or image encoder 20), the decoder 30 (e.g., audio / video or image decoder 30), or both the encoder 20 and the decoder 30 may be implemented by using the processing circuitry shown in FIG. 1B, such as one or more microprocessors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), discrete logic, hardware, dedicated processors for audio / video or image encoding, or any combination thereof. The encoder 20 may be implemented by using a processing circuitry 46 and may include the various modules described with reference to the encoder 20 in FIG. 2 and / or any other encoder system or subsystem described herein. The decoder 30 may be implemented by using a processing circuitry 46 and may include the various modules described with reference to the decoder 30 in FIG. 4 and / or any other decoder system or subsystem described herein. The processing circuitry 46 may be configured to perform various operations described below. When some techniques are implemented in software, as shown in Figure 7, a device may store the software instructions in a suitable non-transitory computer-readable storage medium and execute the instructions in hardware through one or more processors to perform the techniques of the present invention. One of the audio / video or image encoder 20 and the audio / video or image decoder 30 may be integrated into a single device as part of a combined encoder / decoder (CODEC), as shown in Figure 1B.

[0119] The source device 12 and the destination device 14 may include any one of a variety of devices, including any type of handheld or stationary device, such as a notebook computer, a laptop computer, a mobile phone, a smartphone, a tablet or tablet computer, a camera, a desktop computer, a set-top box, a television, a display device, a digital media player, a video game console, a video streaming device (e.g., a content business server or a content distribution server), a broadcast receiver device or a broadcast transmitter device, and may not use an operating system or may use any type of operating system. In some cases, the source device 12 and the destination device 14 may include components for wireless communication. Thus, the source device 12 and the destination device 14 may be wireless communication devices.

[0120] In some cases, the audio / video or image decoding system 10 shown in FIG. 1A is only an example. The techniques provided herein are applicable to audio / video or image encoding settings (e.g., audio / video or image encoding, or video or image decoding). These settings do not necessarily include any data communication between the encoding device and the decoding device. In another example, data is retrieved from a local memory and transmitted over a network. An audio / video or image encoding device may encode data and store the encoded data in a memory, and / or an audio / video or image decoding device may retrieve data from a memory and decode the data. In some examples, encoding and decoding are performed by devices that only encode data to a memory and / or retrieve data from a memory and decode data without communicating with each other.

[0121] Figure 1B is a schematic diagram of an example video or image decoding system 40 including the audio / video or image encoder 20 in Figure 1A and / or the audio / video or image decoder 30 in Figure 1B, according to an example embodiment. The audio / video or image decoding system 40 may include an imaging device 41, the audio / video or image encoder 20, the audio / video or image decoder 30 (and / or an audio / video or image encoder / decoder implemented by using processing circuitry 46), an antenna 42, one or more processors 43, one or more internal memories 44, and / or a display device 45.

[0122] 1B, the imaging device 41, the antenna 42, the processing circuitry 46, the audio / video or image encoder 20, the audio / video or image decoder 30, the processor 43, the internal memory 44, and / or the display device 45 may be in communication with each other. In different examples, the audio / video or image decoding system 40 may include only the audio / video or image encoder 20 or only the audio / video or image decoder 30.

[0123] In some examples, the antenna 42 may be configured to transmit or receive an encoded bitstream of audio / video or image data. In addition, in some examples, the display device 45 may be configured to display the audio / video or image data. The processing circuitry 46 may include application-specific integrated circuit (ASIC) logic, a graphics processing unit, a general-purpose processor, or the like. The audio / video or image decoding system 40 may also include an optional processor 43. Similarly, the optional processor 43 may include application-specific integrated circuit (ASIC) logic, a graphics processing unit, a general-purpose processor, or the like. In addition, the internal memory 44 may be any type of memory, such as a volatile memory (e.g., static random access memory (SRAM) or dynamic random access memory (DRAM)) or a non-volatile memory (e.g., a flash memory). In a non-limiting example, the internal memory 44 may be implemented by using a cache memory. In another example, processing circuitry 46 may include memory (eg, a cache) for implementing an image buffer or the like.

[0124] In some examples, the audio / video or image encoder 20 implemented by using logic circuits may include an audio or image buffer (e.g., implemented by using the processing circuitry 46 or the internal memory 44) and an audio or graphics processing unit (e.g., implemented by using the processing circuitry 46). The audio or graphics processing unit may be communicatively coupled to the image buffer. The audio or graphics processing unit may include the audio / video or image encoder 20 implemented by using the processing circuitry 46, implementing various modules described with reference to FIG. 2 and / or any other encoder system or subsystem described herein. The logic circuits may be configured to perform various operations described herein.

[0125] In some examples, the audio / video or image decoder 30 may be implemented by using the processing circuitry 46 in a similar manner to implement the various modules described with reference to the audio / video or image decoder 30 in FIG. 1B and / or any other decoder system or subsystem described herein. In some examples, the audio / video or image decoder 30 implemented by using logic circuits may include an audio or image buffer (implemented by using the processing circuitry 46 or the internal memory 44) and an audio or graphics processing unit (e.g., implemented by using the processing circuitry 46). The audio or graphics processing unit may be communicatively coupled to the image buffer. The audio or graphics processing unit may include the audio / video or image decoder 30 implemented by using the processing circuitry 46 to implement the various modules described with reference to FIG. 4 and / or any other decoder system or subsystem described herein.

[0126] In some examples, the antenna 42 may be configured to receive an encoded bitstream of audio / video or image data. As described, the encoded bitstream may include data, indicators, index values, mode selection data, or the like, as described herein, related to audio / video frame encoding, such as data related to code partitioning (e.g., transform coefficients or quantized transform coefficients, optional indicators (as described), and / or data defining the code partitioning). The audio / video or image decoding system 40 may further include an audio / video or image decoder 30 coupled to the antenna 42 and configured to decode the encoded bitstream. The display device 45 is configured to display the video frames.

[0127] In this embodiment of the present application, in the examples described with reference to the audio / video or image encoder 20, it should be understood that the audio / video or image decoder 30 may be configured to perform the reverse process. For signaling syntax elements, the audio / video or image decoder 30 may be configured to receive and parse the syntax elements and correspondingly decode the associated video data. In some examples, the audio / video or image encoder 20 may perform entropy encoding on the syntax elements to obtain an encoded bitstream. In these examples, the audio / video or image decoder 30 may parse the syntax elements and correspondingly decode the associated audio / video or image data.

[0128] 1C is a schematic diagram of an audio / video or image decoding device 400 according to an embodiment of the present invention. The audio / video or image decoding device 400 is suitable for implementing the disclosed embodiments described herein. In an embodiment, the audio / video or image decoding device 400 may be a decoder, for example, the audio / video or image decoder 30 in FIG. 1A, or may be an encoder, for example, the audio / video or image encoder 20 in FIG. 1A.

[0129] The audio / video or image decoding device 400 includes an ingress port 410 (or input port 410) and a receiver unit (Rx) 420 for receiving data; a processor, logic unit, or central processing unit (CPU) 430 for processing data (e.g., the processor 430 can be a neural network processing unit 430); a transmitter unit (Tx) 440 and an egress port 450 (or output port 450) for transmitting data; and a memory 460 for storing data. The audio / video or image decoding device 400 may further include optical-to-electrical (OE) and electrical-to-optical (EO) components coupled to the ingress port 410, the receiver unit 420, the transmitter unit 440, and the egress port 450, which function as egress or ingress for optical or electrical signals.

[0130] The processor 430 is implemented by using hardware and software. The processor 430 may be implemented as one or more processor chips, cores (e.g., multi-core processors), FPGAs, ASICs, or DSPs. The processor 430 communicates with the ingress port 410, the receiver unit 420, the transmitter unit 440, the egress port 450, and the memory 460. The processor 430 includes a decoding module 470 (e.g., a neural network NN-based decoding module 470). The decoding module 470 implements the above-disclosed embodiments. For example, the decoding module 470 performs, processes, prepares, or provides various encoding operations. Thus, the decoding module 470 provides significant improvements to the functionality of the audio / video or image decoding device 400 and affects the switching of the audio / video or image decoding device 400 between different states. Alternatively, the decoding module 470 is implemented by using instructions stored in the memory 460 and executed by the processor 430.

[0131] Memory 460 may include one or more magnetic disks, magnetic tapes, or solid state drives and may serve as an overflow data storage device for storing programs when the programs are selected for execution and for storing instructions and data loaded during program execution. Memory 460 may be volatile and / or non-volatile and may be read-only memory (ROM), random access memory (RAM), ternary content-addressable memory (TCAM), and / or static random access memory (SRAM).

[0132] 1D is a simplified block diagram of an apparatus 500 according to an example embodiment, which may function as either or both of the source device 12 and the destination device 14 in FIG.

[0133] The processor 502 in the device 500 may be a central processing unit. Alternatively, the processor 502 may be any other type of device or devices now existing or developed in the future that is capable of manipulating or processing information. Although the disclosed implementations may be implemented by a single processor, such as the processor 502 shown in the figure, speed and efficiency will be greater when more than one processor is used.

[0134] In an implementation, the memory 504 in the apparatus 500 may be a read-only memory (ROM) device or a random access memory (RAM) device. Any other suitable type of storage device may function as the memory 504. The memory 504 may include code and data 506 that is accessed by the processor 502 through a bus 512. The memory 504 may further include an operating system 508 and application programs 510. The application programs 510 include at least one program that enables the processor 502 to perform the methods described herein. For example, the application programs 510 may include applications 1-N and may further include an audio / video or image decoding application for performing the methods described herein.

[0135] The apparatus 500 may further include one or more output devices, such as a display 518. In an example, the display 518 may be a touch-sensitive display obtained by combining a display with a touch-sensitive element capable of detecting touch input. The display 518 may be coupled to the processor 502 via the bus 512.

[0136] Although the bus 512 in the device 500 is described herein as a single bus, the bus 512 may include multiple buses. In addition, secondary memory may be directly coupled to other components of the device 500 or may be accessed over a network, and may include a single integrated unit such as a memory card, or multiple units such as multiple memory cards. Thus, the device 500 may have a variety of configurations.

[0137] Encoder and encoding method

[0138] Fig. 2 is a schematic block diagram of an example of an audio / video or image encoder 20 for implementing the techniques of the present application. In the example of Fig. 2, the audio / video or image encoder 20 includes an input end (or input interface) 202, an encoding network 204, a rounding 206, an entropy encoding 208, an entropy estimation 210, and an output end (or output interface) 212. The audio / video encoder 20 shown in Fig. 2 may also be referred to as an end-to-end audio or image encoder, or an audio or image encoder based on an end-to-end audio or image codec.

[0139] The encoder 20 may be configured to receive, through an input 202 or the like, audio or image (or audio or image data) 17, e.g. audio or image forming an audio / video or video sequence. The received audio or image or audio or image data may alternatively be preprocessed audio or image (or preprocessed audio or image data) 19. For simplicity, audio or image 17 is used in the following description. The audio or image 17 may also be referred to as current audio or image, or audio or image to be encoded (especially when the current audio or image is to be distinguished from another audio in the audio / video encoding, e.g. another audio or image in the same audio or video sequence, including a previously encoded audio or image and / or a decoded audio or image in the audio or video sequence of the current audio or image).

[0140] A (digital) image is or can be considered as a two-dimensional array or matrix containing samples with intensity values. The samples in the array can also be referred to as pixels or pels (short for picture element). The number of samples of an array or image in the horizontal and vertical directions (or axes) defines the size and / or resolution of the image. Usually, three color components are used to represent color. Specifically, an image can be represented as or contain three sample arrays. In an RBG format or color space, an image contains corresponding red, green, and blue sample arrays. However, in video or image encoding, each pixel is usually represented as a luminance / chrominance format or color space, such as YCbCr, which contains a luminance component denoted by Y (sometimes denoted as L), and two chrominance components denoted as Cb and Cr. The luminance (luma) component Y represents luminance or grayscale intensity (e.g., luminance and grayscale intensity are the same in a grayscale image), and the two chrominance (chrominance, for short) components Cb and Cr represent chrominance or color information components. Correspondingly, an image in YCbCr format includes a luminance sample array of luminance sample values ​​(Y) and two chrominance sample arrays of chrominance values ​​(Cb and Cr). An image in RGB format can be converted or transformed into YCbCr format and vice versa. This process is also referred to as color conversion or transformation. If the image is black and white, the image may include only a luminance sample array. Correspondingly, an image may be, for example, a luminance sample array in a monochrome format, or a luminance sample array and two corresponding chrominance sample arrays in color formats 4:2:0, 4:2:2, or 4:4:4.

[0141] In one possibility, an embodiment of the video or image encoder 20 may include an image partitioning unit (not shown in FIG. 1A or FIG. 1B ) configured to partition an image 17 into multiple (usually non-overlapping) image blocks 203. These blocks may also be referred to as root blocks, macroblocks (H.264 / AVC), coding tree blocks (CTB), or coding tree units (CTU) in the H.265 / HEVC and VVC standards. The partitioning unit may be configured to use the same block size, use a corresponding grid that defines the block size for all images in the video sequence, or vary the block size between images, image subsets, or groups of images, and partition each image into corresponding blocks.

[0142] In another possibility, the video or image encoder may be configured to directly receive a block 203 of an image 17, e.g. one or more or all of the blocks that make up the image 17. The image block 203 may also be referred to as a current image block or an image block to be encoded.

[0143] Similar to the image 17, the image block 203 is also a two-dimensional array or matrix containing samples with intensity values ​​(sample values), or may be considered as such. However, the image block 203 is smaller than the image 17. In other words, the block 203 may contain one sample array (e.g., a luminance array in the case of a monochrome image 17, or a luminance array or a chrominance array in the case of a color image), three sample arrays (e.g., one luminance array and two chrominance arrays in the case of a color image 17), or any other number and / or type of arrays based on the color format used. The number of samples of the block 203 in the horizontal and vertical directions (or axes) defines the size of the block 203. Correspondingly, the block may be an M×N (M columns×N rows) sample array, or an M×N transform coefficient array, or the like.

[0144] In another possibility, the audio / video or image encoder 20 shown in FIG. 1A, FIG. 1B or FIG. 2 is configured to encode the image 17 on a block-by-block basis, e.g., to perform encoding, rounding and entropy encoding for each block 203.

[0145] In another possibility, the audio / video or image encoder 20 shown in FIG. 1A, FIG. 1B or FIG. 2 is configured to encode the image 17, e.g. to perform encoding, quantization and entropy encoding on the image 17.

[0146] In another possibility, the audio / video or image encoder 20 shown in FIG. 1A, FIG. 1B or FIG. 2 is configured to encode the audio data 17, e.g. to perform encoding, quantization and entropy encoding on the audio data 17.

[0147] In another possibility, the audio / video or image encoder 20 shown in Figure 1A, 1B or 2 may be further configured to partition the encoded image by slices (also called video slices), where an image may be partitioned or encoded into one or more (usually non-overlapping) slices, each of which may include one or more blocks (e.g. coding tree units CTU) or one or more groups of blocks (e.g. tiles in the H.265 / HEVC / VVC standard and subpictures in the VVC standard).

[0148] In another possibility, the audio / video or image encoder 20 shown in FIG. 1A, FIG. 1B, or FIG. 2 may be further configured for segmenting the audio, where the audio may be segmented or encoded into one or more (usually non-overlapping) segments.

[0149] In another possibility, the audio / video or image encoder 20 shown in Figure 1A, Figure 1B, or Figure 2 may be further configured to partition and / or encode an image per slice / tile group (also referred to as video tile group) and / or per tile (also referred to as video tile), where an image may be partitioned or encoded into one or more (usually non-overlapping) slice / tile groups. Each slice / tile group may include one or more blocks (e.g., CTUs), one or more tiles, or the like. Each tile may be rectangular in shape or the like and may include one or more full or partial blocks (e.g., CTUs).

[0150] Encoding Network Unit 204

[0151] 2, the encoding network unit 204 is configured to obtain output feature maps 205 for each feature layer through an encoding network based on input data 203. The encoding network unit outputs at least two output feature maps 205 corresponding to two or more feature layers.

[0152] In one possibility, the encoding network unit is shown in FIG. 3A. The encoding network unit includes K encoding sub-networks, each of which corresponds to a feature layer and a corresponding output feature map. In this case, K output feature maps are output, where K≧2.

[0153] In one possibility, the input of the encoding network is the audio or image to be encoded or an audio segment or image block to be encoded.

[0154] In one possibility, the input / output structure of the encoding network in the encoding network 204 is shown in FIG. 3B. The encoding network unit includes T network layers, where M, L, T, and K are positive integers. Both the Mth output feature map and the Kth output feature map are outputs of the encoding network. In addition, the Kth output feature map output by the encoding network is output after the network layer L in the encoding network unit, and the Mth output feature map is output after the network layer T. It can be understood that multiple output feature maps can be output after different network layer positions in the encoding network unit. This is not limited in this specification.

[0155] Any of the network layers in FIG. 3B may be convolutional layers, normalization layers, nonlinear activation layers, or the like.

[0156] In one possibility, the structures of the encoding sub-networks corresponding to Fig. 3A in the encoding network 204 may be the same or different from each other, and the structures of the Mth encoding sub-network and the Nth encoding sub-network are shown in Fig. 4. The structure of the network layer 1 in the Mth encoding sub-network may be different from the structure of any network layer in the Nth encoding sub-network, and L and P may be the same or different, and both L and P are positive integers greater than 0.

[0157] In one possibility, an example of the network structure of any encoding sub-network in the encoding network 204 is shown in Figure 5. It can be seen that the Nth encoding sub-network in the example includes five network layers, specifically, one normalization layer, two convolution layers, and two nonlinear activation layers.

[0158] Rounding Unit 206

[0159] The rounding unit 206 is configured to round the output feature map 205 to obtain a rounded feature map 207, for example, through scalar quantization or vector quantization.

[0160] In one possibility, the audio / video or image encoder 20 (correspondingly, the rounding unit 206) may be configured to output a rounding parameter (quantization parameter, QP), e.g., by directly outputting a quantization parameter or by outputting a quantization parameter that has been encoded or compressed by the entropy encoding unit 270, so that, for example, the audio / video decoder 30 may receive and use the quantization parameter for decoding.

[0161] As shown in FIG. 6A, a rounding operation is performed on all output feature maps of the N feature layers to output N rounded feature maps, where N is a positive integer greater than 1.

[0162] In one possibility, the output feature map is pre-processed before rounding, which includes subtracting the pixel values ​​of the samples in the output feature map and the average output by the entropy estimation to obtain an offset feature map, and rounding the obtained offset feature map to obtain a rounded feature map.

[0163] Entropy Encoding Unit 208

[0164] The entropy encoding unit 208 is configured to apply an entropy encoding algorithm or scheme (e.g., a variable-length coding (VLC) scheme, a context-adaptive VLC (CALVC) scheme, an arithmetic encoding scheme, a binarization algorithm, context-adaptive binary arithmetic coding (CABAC), syntax-based context-adaptive binary arithmetic coding (SBAC), probability interval partitioning entropy (PIPE) encoding, or another entropy encoding method or technique) to the rounded feature maps of the at least two feature layers to obtain encoded audio or image data 21, which can be output through an output terminal 212 in the form of an encoded bitstream 21 or the like, so that a video decoder 30 or the like can receive and use the parameters for decoding. The encoded bitstream 21 may be transmitted to the video decoder 30 or may be stored in a memory and then transmitted or retrieved by the video decoder 30 .

[0165] In one possibility, since the actual character probabilities of the rounded feature maps are not known in the entropy encoding, statistics about the information or related information can be collected as needed, the information can be added to the entropy encoding module, and the information can be transmitted to the decoder side.

[0166] Entropy Estimation Unit 210

[0167] As shown in FIG. 6A, the entropy estimation unit 210 is configured to perform probability estimation on the rounded feature map to estimate the compression bit rate of the model. The input indicated by the dashed line is an optional input. The entropy estimation unit 210 corresponds to N entropy estimation modules corresponding to N feature layers.

[0168] As shown in FIG. 6B, the entropy estimation unit 210 is configured to perform probability estimation on the rounded feature map to estimate the compression bit rate of the model. The input indicated by the dashed line is an optional input. The entropy estimation unit 210 corresponds to N entropy estimation modules corresponding to N feature layers and a lossless entropy estimation module corresponding to the residual layer.

[0169] In one possibility, as shown in FIG. 7A, the P-th entropy estimation result in the encoder is the input of the L-th entropy estimation, where L and P are positive integers and L < P.

[0170] In another possibility, a plurality of entropy estimation results in the encoder are the input of the L-th entropy estimation, and the consecutive numbers of the feature layers corresponding to each of the plurality of entropy estimation modules are greater than L, where L is a positive integer. As shown in FIG. 7B, L, I, T, and K are all positive integers, and L < I, L < T, and L < K.

[0171] In one possibility, as shown in FIG. 7C, the P-th rounded feature map in the encoder is the input of the L-th entropy estimation, where L and P are positive integers and L ≤ P.

[0172] In another possibility, a plurality of rounded feature maps in the encoder are the input of the L-th entropy estimation, and the consecutive numbers of the feature layers corresponding to each of the plurality of rounding modules are greater than L, where L is a positive integer. As shown in FIG. 7D, L, I, T, and K are all positive integers, and L ≤ I, L ≤ T, and L < K.

[0173] In one possibility, at least one rounded feature map and at least one entropy estimation result in the encoder are inputs of the Lth entropy estimation, where L is a positive integer. The sequence number of the feature layer corresponding to the rounded feature map used as the input of the Lth entropy estimation is equal to or greater than L, and the sequence number of the feature layer corresponding to the entropy estimation result used as the input of the Lth entropy estimation is greater than L. As shown in FIG. 7E, L, I, T, and K are all positive integers, where L≦I, L≦T, and L <Kである。

[0174] In one possibility, as shown in FIG. 7F, the Pth entropy estimation result at the encoder is the input of the lossless entropy estimation, where P is a positive integer.

[0175] In another possibility, multiple entropy estimation results at the encoder are inputs to the lossless entropy estimation, for example, I, T, and K are all positive integers, as shown in FIG.

[0176] In one possibility, as shown in FIG. 7H, the Pth rounded feature map in the encoder is the input of the lossless entropy estimation, where P is a positive integer.

[0177] In another possibility, multiple rounded feature maps in the encoder are inputs for lossless entropy estimation, for example, as shown in FIG. 7I, where I, T, and K are all positive integers.

[0178] In one possibility, at least one rounded feature map and at least one entropy estimation result in the encoder are inputs of the lossless entropy estimation, for example, as shown in FIG. 7J, I, T, and K are all positive integers.

[0179] In one possibility, at least one rounded feature map and the reconstructed audio or image in the encoder are inputs of the lossless entropy estimation. For example, as shown in FIG. 7K, both I and T are positive integers.

[0180] In one possibility, at least one of the entropy estimation result at the encoder and the reconstructed audio or image are inputs for the lossless entropy estimation, where I and T are both positive integers, for example as shown in FIG.

[0181] In one possibility, at least one entropy estimation result in the encoder, the reconstructed audio or image, and at least one rounded feature map are inputs of the lossless entropy estimation. For example, as shown in FIG. 7M, I, T, and P are all positive integers.

[0182] In one possibility, the entropy estimation network is a convolutional network, which includes a convolutional layer and a nonlinear activation layer. It can be seen that the entropy estimation network in the example of FIG. 8 includes five network layers, specifically, three convolutional layers and two nonlinear activation layers.

[0183] Decoder and decoding method

[0184] 1A and 1B show an exemplary audio / video or image decoder 30 for implementing the techniques of the present application. As shown in FIG. 9, the audio / video or image decoder 30 is configured to receive encoded audio or image data 21 (e.g., encoded bitstream 21) encoded by, for example, the encoder 20 to obtain a decoded audio or image 308. The encoded image data or bitstream includes information for decoding the encoded image data, for example, data representing image blocks (and / or tile groups or tiles) of an encoded video slice and associated syntax elements. In the example of FIG. 9, the decoder 30 includes an entropy estimation unit 304, an entropy decoding unit 306, and a decoding network unit 308.

[0185] Entropy Estimation Unit 304

[0186] As shown in Fig. 10A, the entropy estimation unit 304 is configured to perform probability estimation on the decoded feature maps. The inputs indicated by dashed lines are optional inputs. The entropy estimation unit 304 corresponds to N entropy estimation modules corresponding to the N feature layers.

[0187] As shown in Fig. 10B, the entropy estimation unit 304 is configured to perform probability estimation on the decoded feature maps to estimate the compression bit rate of the model. The inputs indicated by dashed lines are optional inputs. The entropy estimation unit 304 corresponds to N entropy estimation modules corresponding to the N feature layers and a lossless entropy estimation module corresponding to the residual layer.

[0188] In one possibility, as shown in FIG. 7A, the result of the Pth entropy estimation at the decoder is the input of the Lth entropy estimation, where L and P are positive integers, and L <Pである。

[0189] In another possibility, the plurality of entropy estimation results in the decoder are inputs to the L-th entropy estimation, and the consecutive numbers of the feature layers corresponding to each of the plurality of entropy estimation modules are greater than L, where L is a positive integer. As shown in FIG. 7B, L, I, T, and K are all positive integers, and L < I, L < T, and L < K.

[0190] In one possibility, the P-th decoded feature map in the decoder is an input to the L-th entropy estimation, where L and P are positive integers and L ≤ P.

[0191] In another possibility, the plurality of decoded feature maps in the decoder are inputs to the L-th entropy estimation, and the consecutive numbers of the feature layers corresponding to the plurality of entropy decoding modules are all greater than L, where L is a positive integer.

[0192] In one possibility, at least one decoded feature map and at least one entropy estimation result in the decoder are inputs to the L-th entropy estimation, where L is a positive integer. The consecutive number of the feature layer corresponding to the decoded feature map used as the input to the L-th entropy estimation is equal to or greater than L, and the consecutive number of the feature layer corresponding to the entropy estimation result used as the input to the L-th entropy estimation is greater than L.

[0193] In one possibility, as shown in FIG. 7F, the P-th entropy estimation result in the decoder is an input to the lossless entropy estimation, where P is a positive integer.

[0194] In another possibility, the plurality of entropy estimation results in the decoder are inputs to the lossless entropy estimation. For example, as shown in FIG. 7G, I, T, and K are all positive integers.

[0195] In one possibility, the Pth decoded feature map at the decoder is the input of the lossless entropy estimation, where P is a positive integer.

[0196] In another possibility, multiple decoded feature maps at the decoder are inputs for lossless entropy estimation.

[0197] In one possibility, at least one decoded feature map and at least one entropy estimation result in the decoder are inputs of the lossless entropy estimation.

[0198] In one possibility, at least one of the decoded feature maps and the reconstructed audio or image at the decoder are inputs for the lossless entropy estimation.

[0199] In one possibility, at least one of the entropy estimation result and the reconstructed audio or image at the decoder is an input of the lossless entropy estimation, for example, as shown in FIG. 7K, where I and T are both positive integers.

[0200] In one possibility, at least one entropy estimation result in a decoder, the reconstructed audio or image, and at least one decoded feature map are inputs for the lossless entropy estimation.

[0201] In one possibility, the entropy estimation is a convolutional network, which includes a convolutional layer and a nonlinear activation layer. It can be seen that the entropy estimation network in the example in FIG. 8 includes five network layers, specifically, three convolutional layers and two nonlinear activation layers.

[0202] Entropy Decoding Unit 306

[0203] The entropy decoding unit 306 is configured to analyze the bitstream 21 (or generally, the encoded image data 21) and to perform entropy decoding on the encoded audio or image data 21 to obtain a decoded feature map 307, decoded encoding parameters (not shown in FIG. 11 ), and / or the like. The entropy decoding unit 304 may be configured to apply a decoding algorithm or scheme that corresponds to the encoding scheme of the entropy encoding unit 208 of the encoder 20.

[0204] In one possibility, as shown in FIG. 10A, an entropy decoding unit is applied to a bitstream to be decoded that corresponds to at least two feature layers.

[0205] In one possibility, as shown in FIG. 10B, an entropy decoding unit is applied to the losslessly decoded bitstream corresponding to the residual layer.

[0206] In one possibility, since the actual character probabilities of the rounded feature maps are not known in the entropy encoding, statistics about the information or related information can be collected as needed, the information can be added to the entropy encoding module, and the information can be transmitted to the decoder side.

[0207] In one possibility, the decoder 30 may be further configured to perform entropy decoding on the image 21 or on image blocks in the image 21 .

[0208] In one possibility, decoder 30 may be further configured to perform entropy decoding on audio 21 or on audio segments in audio 21 .

[0209] Decoding Network Unit

[0210] The decoding network 306 is configured to allow the decoded feature map 307 to pass through a decoding network 308 to obtain a reconstructed audio or image 310 in the pixel domain.

[0211] In one possibility, FIG. 11 is a schematic diagram of inputting N decoded feature maps into a decoding network, where N is greater than 1.

[0212] In one possibility, the decoded feature map is pre-processed before being input to the decoding network, which includes subtracting the pixel values ​​of the samples in the output feature map and the average output by the entropy estimation to obtain an offset feature map, adding the pixel values ​​of the samples in the decoded feature map and the average output by the entropy estimation to obtain an updated decoded feature map, and then inputting the updated decoded feature map to the decoding network.

[0213] In one possibility, the input / output structure of the decoding network 306 is shown in FIG. 12. The decoding network 306 includes P network layers, where P>L, and M, L, T, and P are all positive integers. The Tth decoded feature map is the input after the network layer L in the decoding network 306. Both the Tth decoded feature map and the Mth decoded feature map are the input of the decoding network. It should be understood that multiple decoded feature maps can be inputs after different network layer positions in the decoding network unit. This is not limited in this specification.

[0214] Any of the network layers in FIG. 12 may be convolutional layers, normalization layers, nonlinear activation layers, or the like.

[0215] In one possibility, the decoding network 306 may include operations such as concatenation, addition, and subtraction.

[0216] In one possibility, the structures of the network layers in the decoding network 306 may be identical to one another or may be different.

[0217] In one possibility, an example of the structure of the decoding network 306 is shown in FIG. 13. It can be seen that the decoding network in the example includes 12 network layers, specifically, one non-normalized layer, six convolutional layers, and four non-linear activation layers. m, n, and t are all positive integers. The decoding network outputs a decoded image or a reconstructed audio or image. The tth decoded feature map, the nth decoded feature map, and the mth decoded feature map are all inputs of the decoding network, where t, n, and m are integers.

[0218] It should be understood that in the encoder 20 and the decoder 30, the processing result of the current stage may be further processed and then output to the next stage. For example, after processing is performed by the encoder unit or the decoder unit, further operations or processing, such as clip or shift operations or filtering, may be performed on the processing result of the encoder unit or the decoder unit.

[0219] It should be noted that although the above embodiments mainly describe audio / video coding, the embodiments of the decoding system 10, the encoder 20, and the decoder 30, as well as other embodiments described herein, may also be used for processing or coding still images, in particular for processing or coding a single image independent of any previous or subsequent images in audio / video coding. All other features (also referred to as tools or techniques) of the audio / video encoder 20 and the audio / video decoder 30 may also be used for processing still images.

[0220] Figure 14A shows a possible system architecture according to the present application. The model operation steps are as follows:

[0221] Encoder side

[0222] Step 1: Input data is passed through the encoding network, which produces N output feature maps.

[0223] Step 2: Perform a rounding operation on the N output feature maps to obtain N rounded feature maps.

[0224] Step 3: Estimate the probability of each rounded feature map sequentially (from the Nth to the 1st order) based on the entropy estimation, and perform entropy encoding on the N rounded feature maps to obtain N encoded bit streams.

[0225] The M-th rounded feature map may be the input of the L-th entropy estimation, where L, M, and N are all positive integers, L≧1, L <M≦Nである。

[0226] The Pth entropy estimate may be the input of the tth entropy estimate, where T, P, and N are all positive integers, T≧1, T <P≦Nである。

[0227] Decoder side

[0228] Step 1: Obtain N bitstreams to be decoded, and perform entropy decoding sequentially (from the Nth to the first order) based on entropy estimation to obtain N decoded feature maps.

[0229] The M-th rounded feature map may be the input of the L-th entropy estimation, where L, M, and N are all positive integers, L≧1, L <M≦Nである。

[0230] The Pth entropy estimate may be the input of the tth entropy estimate, where T, P, and N are all positive integers, T≧1, T <P≦Nである。

[0231] Step 2: The N output feature maps are passed through a decoding network to obtain output data.

[0232] 14B and 14C show a system architecture 700 in a possible scenario according to an embodiment of the present application. The model operation steps are as follows:

[0233] Encoder side

[0234] Stage 1: The encoding network module includes four feature layers, and extracts four output feature maps of the input image through four encoding sub-networks, where the network depth, the number of feature layers, and the number of feature channels in each layer of each encoding network are variable, realizing the function of dynamically changing the compression capability of the model.

[0235] Stage 2: As shown in FIG. 14B, the rounding module rounds the first to fourth output feature maps, and

number

number

number

[0236] Stage 3: The entropy estimation module sequentially estimates the probabilities of the compressed features. As shown in FIG. 14B, the fourth rounded feature map is the input of the third entropy estimation, the third rounded feature map is the input of the second entropy estimation, and the second rounded feature map is the input of the first entropy estimation. Correspondingly, as shown in FIG. 14C, the rounded feature map

number

number

number

number

number

number

number

[0237] Stage 4: As shown in FIG. 14B, from deep layer to shallower layer, the entropy encoding module performs entropy encoding on the fourth rounded feature map based on the fourth entropy estimation result, performs entropy encoding on the third rounded feature map based on the third entropy estimation result, performs entropy encoding on the second rounded feature map based on the second entropy estimation result, and performs entropy encoding on the first rounded feature map based on the first entropy estimation result. Correspondingly, as shown in FIG. 14C, the entropy encoding is performed on the rounded feature map

number

number

number

number

number

number

number

number

[0238] Decoder side

[0239] Step 1: As shown in Fig. 14B, the entropy estimation network module decodes the fourth encoded bitstream or the fourth bitstream to be decoded according to the fourth entropy estimation result to obtain a fourth decoded feature map. Correspondingly, as shown in Fig. 14B,

number

number

[0240] Step 2: As shown in Fig. 14C, the third entropy estimation network decodes the third encoded bitstream or the third bitstream to be decoded according to the fourth decoded feature map to obtain a third decoded feature map. Correspondingly, as shown in Fig. 14B,

number

number

number

[0241] Step 3: As shown in Fig. 14B, the second entropy estimation network decodes the second encoded bitstream or the second bitstream to be decoded based on the third decoded feature map to obtain a second decoded feature map. Correspondingly, as shown in Fig. 14B,

number

number

number

[0242] Step 4: As shown in Fig. 14C, the first entropy estimation network decodes the first encoded bitstream or the first bitstream to be decoded according to the second decoded feature map to obtain a first decoded feature map. Correspondingly, as shown in Fig. 14B,

number

number

number

[0243] Step 5: The decoding network module generates the decoded feature map.

number

number

number

[0244] In this embodiment,

number

number

number

number

number

number

number

number

number

number

number

number

number

[0245] 15 illustrates a system architecture 800 in another possible scenario according to an embodiment of the present application. This embodiment provides a lossless compression framework.

[0246] The model operation steps are as follows:

[0247] Encoder side

[0248] Stage 1: The encoding network module extracts output feature maps for each feature layer of the input data x0 based on each feature layer.

[0249] Step 2: The rounding module rounds the output feature maps of each feature layer of the image to obtain a rounded feature map.

[0250] Step 3: The decoding network obtains a reconstructed audio or image x1 based on the decoded feature maps of each feature layer.

[0251] Step 4: The encoding network obtains the residual x0-x1 of the input data.

[0252] Step 5: The entropy estimation network module performs entropy estimation sequentially from lower layers to shallower layers (from feature layer 4 to feature layer 1, and finally to the residual layer) to obtain the probability estimation results of each layer.

[0253] Step 6: The entropy encoding module performs entropy encoding sequentially (from lower layers to shallower layers), and the bitstream generated at each layer is transmitted over a network or stored as a local file.

[0254] Decoder side

[0255] Step 1: The entropy estimation network and entropy decoding module obtain the decoded feature maps and residuals of each layer sequentially through decoding, from the bottom to the top (from feature layer 4 to feature layer 1, and finally the residual layer).

[0256] Step 2: The decoding network module obtains a reconstructed audio or image x1 based on each decoded feature map.

[0257] Step 3: Concatenate the residual and the reconstructed audio or image x1 to obtain the output data or lossless reconstructed audio or image.

[0258] In another embodiment, Figure 16 shows a system architecture 900 in a possible scenario. The compression and decoding operation steps are as follows.

[0259] Stage 1: An AI encoding unit module is configured to convert image data into output features with lower redundancy and estimate the probability of each point in the output features, where the AI ​​encoding unit module includes an encoding network unit, a rounding unit, and an entropy estimation unit.

[0260] After an image is captured by an image capture device such as a camera, the image can be used as an input of the AI ​​encoding unit in multiple image representation formats, such as RAW domain, YUV, or RGB representation formats. The data processing process in the AI ​​encoding unit module can be implemented in, for example, a neural network processing unit (NPU) or a graphics processing unit (GPU) device.

[0261] Stage 2: An entropy encoding / decoding module (arithmetic encoding is used as an example) is configured to reduce the encoding redundancy of the output features and further reduce the amount of data transmitted during image compression.

[0262] The data processing process in the entropy encoding / decoding module may be implemented on a central processing unit (CPU).

[0263] Step 3: An AI decoding unit module is configured to perform an inverse transform on the output features and analyze the output features into an image. The AI ​​decoding unit module includes a decoding network unit and an entropy estimation unit.

[0264] The data processing process in the AI ​​encoding unit module may be implemented, for example, on a neural network processing unit (NPU) or a graphics processing unit (GPU) device.

[0265] Step 4: A file storage module is configured to store the data file generated by the entropy encoding module in a corresponding storage location on the terminal.

[0266] Step 5: The file loading module is configured to load the data file from a corresponding storage location on the terminal, and input the data file to the entropy decoding module.

[0267] In another embodiment, Figure 17 shows a system architecture 1000 in a possible scenario. This embodiment provides a diagram of the structure of a device for cloud applications, including:

[0268] Stage 1: A JPEG encoding / decoding module on the local side or cloud side is configured to compress / decompress digital images at the local side or cloud end to reduce the amount of data transmitted between the local side and the cloud side.

[0269] Stage 2: The AI ​​encoding unit module is configured to convert the image into an output feature with lower redundancy and estimate the probability of each point in the output feature. The AI ​​decoding unit module includes a decoding network unit and an entropy estimation unit.

[0270] Stage 3: An entropy encoding / decoding module (arithmetic encoding is used as an example) is configured to reduce the encoding redundancy of the output features and further reduce the amount of data transmitted during image compression.

[0271] Step 4: The AI ​​decoding unit module is configured to perform an inverse transform on the output features and analyze the output features into an image. The AI ​​decoding unit module includes a decoding network unit and an entropy estimation unit.

[0272] Step 5: A file storage module is configured to store a data file, such as an encoded bitstream or a bitstream to be decoded, generated by an entropy encoding (arithmetic encoding is used as an example) module in a corresponding storage location on the cloud side.

[0273] Step 6: The file loading module is configured to load the data file from the corresponding storage location on the cloud side, and input the data file into the entropy decoding unit.

[0274] 18A and 18B show an embodiment of the present application. The model operation steps are as follows:

[0275] Encoder side

[0276] Stage 1: The encoding network module includes four feature layers and extracts four output feature maps of the input data through four encoding sub-networks. The four output feature maps are shown in FIG. 18B.

number

number

number

[0277] Step 2: As shown in Fig. 18A, the first to third output feature maps are pre-processed to obtain first to third offset feature maps. The pre-processing operation corresponds to the subtraction operation in Fig. 17B. The sample value of each pixel in the output feature map and the mean μ output by the entropy estimation are subtracted to obtain the offset feature map.

[0278] Step 3: As shown in FIG. 18A, a rounding module rounds the first to third offset feature maps and the fourth output feature map to obtain first to fourth rounded feature maps.

[0279] Stage 4: The entropy estimation module estimates the probabilities of the compressed features sequentially. As shown in Figures 18A and 18B, the probability of the fourth rounded feature map is estimated by using the known probabilities, the probability of the third rounded feature map is estimated by using the fourth rounded feature map, the probability of the second rounded feature map is estimated by using the reversed third rounded feature map as an input for the second entropy estimation, and the probability of the first rounded feature map is estimated by using the reversed second rounded feature map as an input for the first entropy estimation.

[0280] Step 5: As shown in Fig. 18A, in the order from deep layers to shallower layers, the entropy encoding module performs entropy encoding on the fourth rounded feature map based on the fourth entropy estimation result, performs entropy encoding on the third rounded feature map based on the third entropy estimation result such as variance information σ3, performs entropy encoding on the second rounded feature map based on the second entropy estimation result such as variance information σ2, and performs entropy encoding on the first rounded feature map based on the first entropy estimation result such as variance information σ1.7. Correspondingly, as shown in Fig. 18B, entropy encoding is sequentially performed on the fourth to first rounded feature maps based on the probability of the rounded feature maps to generate data to be transmitted through a network or stored as a local file.

[0281] The reverse processing operation on the encoder side is to add the sample value of each pixel in the rounded feature map and the average output by the entropy estimation.

[0282] Decoder side

[0283] Step 1: As shown in FIG. 18A, the entropy estimation network module performs entropy decoding on the fourth encoded bitstream or the fourth bitstream to be decoded based on the fourth entropy estimation result, and obtains a fourth decoded feature map.

[0284] Step 2: As shown in FIG. 18A , the third entropy estimation network obtains an output probability estimation result, such as variance information σ3, based on the fourth decoded feature map, performs entropy decoding on the third encoded bit stream or the third bit stream to be decoded based on the third entropy estimation output result to obtain a third decoded feature map, performs an inverse process on the third decoded feature map to obtain an updated third decoded feature map, and uses the updated third decoded feature map as an input of the second entropy estimation to estimate the probability of the second decoded feature map.

[0285] Step 3: As shown in FIG. 18A, entropy decoding is performed on the second encoded bit stream or the second bit stream to be decoded based on the probability estimation result such as the variance information σ2 output by the second entropy estimation to obtain a second decoded feature map, and an inverse process is performed on the second decoded feature map to obtain an updated second decoded feature map, and the updated second decoded feature map is used as an input of the first entropy estimation to estimate the probability of the first decoded feature map.

[0286] Step 4: As shown in FIG. 18A, based on the probability estimation result such as the variance information σ1 output by the first entropy estimation, entropy decoding is performed on the first encoded bitstream or the first bitstream to be decoded to obtain a first decoded feature map, and an inverse process is performed on the first decoded feature map to obtain an updated first decoded feature map.

[0287] Step 5: The decoding network module obtains a reconstructed audio or image based on the updated first, second, and third decoded feature maps.

[0288] The inverse processing operation on the decoder side is to add the sample values ​​of each pixel in the decoded feature map and the average output by the entropy estimation.

[0289] Figure 19 shows an embodiment of the present application. This embodiment provides an audio compression framework. The model operation steps are as follows:

[0290] Encoder side

[0291] Step 1: The encoding network module is divided into N feature layers, and the output features of each layer of the audio x are extracted based on each layer.

[0292] Step 2: The rounding module rounds the output features of each layer of the audio x to obtain rounded features of each layer.

[0293] Step 3: The entropy estimation network module sequentially estimates the probability of rounding the features in each layer, from the lower layer (nth feature layer) to the shallower layer (first layer).

[0294] Step 4: The entropy encoding module sequentially performs entropy encoding from the lower layer (nth feature layer) to the shallower layer (first layer) based on the entropy estimation result, where the encoded bitstream of each layer is transmitted over a network or stored as a local file.

[0295] Decoder side

[0296] Step 1: The entropy estimation network and the entropy decoding module sequentially obtain the decoded features of each layer through decoding, from the lower layer (nth feature layer) to the shallower layer (first layer).

[0297] Stage 2: The decoding network module reconstructs the audio x based on the decoded features of each layer.

[0298] Those skilled in the art may appreciate that the functions described with reference to the various exemplary logical blocks, modules, and algorithmic steps disclosed and described herein may be implemented by hardware, software, firmware, or any combination thereof. If implemented by software, the functions described with reference to the exemplary logical blocks, modules, and steps may be stored on or transmitted through a computer-readable medium as one or more instructions or code and executed by a hardware-based processing unit. A computer-readable medium may include a computer-readable storage medium corresponding to a tangible medium, such as a data storage medium, or may include any communication medium that facilitates the transfer of a computer program from one place to another (e.g., according to a communication protocol). In this manner, a computer-readable medium may generally correspond to (1) a non-transitory tangible computer-readable storage medium, or (2) a communication medium, such as a signal or carrier. A data storage medium may be any available medium that can be accessed by one or more computers or one or more processors to obtain instructions, code, and / or data structures for implementing the techniques described herein. A computer program product may include a computer-readable medium.

[0299] By way of example and not limitation, computer-readable storage media may include RAM, ROM, EEPROM, CD-ROM or other compact disk storage, magnetic disk storage or other magnetic storage, flash memory, or any other medium that may be used to store desired program code in the form of instructions or data structures that may be accessed by a computer. In addition, any connection may technically be referred to as a computer-readable medium. For example, if instructions are transmitted from a website, server, or another remote source over coaxial cable, optical fiber, twisted pair, digital subscriber line (DSL), or wireless technology such as infrared, radio waves, or microwave, the coaxial cable, optical fiber, twisted pair, DSL, or wireless technology such as infrared, radio waves, or microwave, is included in the definition of the medium. However, it should be understood that computer-readable storage media and data storage media do not include connections, carriers, signals, or other transitory media, but are in fact non-transitory tangible storage media. As used herein, disk and disc include compact discs (CDs), laser discs, optical discs, digital versatile discs (DVDs), and Blu-ray discs. Disks typically reproduce data magnetically and disks reproduce data optically through lasers. Combinations of the above items should also be included within the scope of computer readable media.

[0300] The instructions may be executed by one or more processors, such as one or more digital signal processors (DSPs), general-purpose microprocessors, application specific integrated circuits (ASICs), field programmable gate arrays (FPGAs), or other equivalent integrated or discrete logic circuits. Thus, the term "processor" as used herein may refer to the foregoing structures or any other structures suitable for implementing the techniques described herein. In addition, in some aspects, the functionality described with reference to the exemplary logic blocks, modules, and stages described herein may be provided in dedicated hardware and / or software modules configured for encoding and decoding, or may be integrated into a combined codec. In addition, the techniques may be implemented entirely within one or more circuit or logic elements.

[0301] The techniques of the present application may be implemented in a variety of apparatuses or devices, including a wireless handset, an integrated circuit (IC), or a set of ICs (e.g., a chipset). Various components, modules, or units are described herein to highlight functional aspects of apparatuses configured to perform the disclosed techniques, but need not necessarily be implemented by distinct hardware units. In practice, as noted above, the various units may be combined into a codec hardware unit in combination with appropriate software and / or firmware, or may be provided by an interoperating hardware unit (including one or more processors as described above).

[0302] The above description is merely an exemplary specific implementation of the present application, and is not intended to limit the scope of protection of the present application. Any variations or replacements that are easily conceived by those skilled in the art within the technical scope disclosed in the present application shall be included in the scope of protection of the present application. Therefore, the scope of protection of the present application shall be subject to the scope of protection of the claims.

Claims

1. 1. An audio / video or image encoding method comprising the steps of: enabling the audio or image to be encoded to pass through an encoding network and obtaining a first output feature map of the audio or image to be encoded; allowing the encoded audio or image to pass through the encoding network and obtaining a second output feature map of the encoded audio or image; rounding the first output feature map to obtain a first rounded feature map of the audio or image to be encoded; rounding the second output feature map to obtain a second rounded feature map of the encoded audio or image; performing entropy encoding on the second rounded feature map based on a probability estimation result of the second entropy estimation to obtain a second encoded bitstream; performing a probability estimation of a first entropy estimation based on the second rounded feature map and / or the probability estimation result of the second entropy estimation to obtain a probability estimation result of the first entropy estimation; and performing entropy encoding on the first rounded feature map based on the probability estimation result of the first entropy estimation to obtain a first encoded bitstream. A method for providing the above.

2. The method further comprises: allowing the encoded audio or image to pass through the encoding network to obtain a third output feature map of the encoded audio or image, and rounding the third output feature map to obtain a third rounded feature map of the encoded audio or image; and performing entropy encoding on the third rounded feature map based on a probability estimation result of the third entropy estimation to obtain a third encoded bitstream. The method of claim 1 , comprising:

3. 3. The method of claim 2, further comprising: performing a probability estimation of the second entropy estimation based on the probability estimation result of the third entropy estimation of the encoding target audio or image and / or the third rounded feature map to obtain the probability estimation result of the second entropy estimation.

4. The method further comprises: allowing the encoded audio or image to pass through the encoding network to obtain a k-th output feature map of the encoded audio or image, and rounding the k-th output feature map to obtain a k-th rounded feature map of the encoded audio or image, where k is an integer greater than 3; The method according to claim 1 , comprising:

5. The method of claim 4 , wherein the k-th rounded feature map is input information for the n-th entropy estimation, where n is an integer and n≦k.

6. The method further comprises: outputting a reconstructed audio or image of the encoded audio or image by using at least one of the rounded feature maps as an input of a decoding network of the encoded audio or image; calculating the difference between corresponding samples of the encoded audio or image and the reconstructed audio or image to obtain a residual image of the encoded audio or image; The following information: any one or more of said probability estimation results; any one or more of the rounding feature maps; or The reconstructed audio or image obtaining a probability estimate of a lossless entropy estimate of the audio or image to be decoded based on at least one of performing entropy encoding on the residual image based on the probability estimation result of the lossless entropy estimation to obtain a losslessly encoded bitstream of the encoding target audio or image. The method of any one of claims 1 to 5, comprising:

7. Prior to the step of rounding the first output feature map to obtain a first rounded feature map of the audio or image to be encoded, the method further comprises: subtracting pixel values ​​of samples in the first output feature map and a mean output by the first entropy estimation to obtain a first offset feature map. With The step of rounding the first output feature map to obtain a first rounded feature map of the audio or image to be encoded comprises: rounding the first offset feature map to obtain the first rounded feature map of the audio or image to be encoded. The method of claim 1 , comprising:

8. Prior to the step of rounding the m-th output feature map to obtain an m-th rounded feature map of the encoding target audio or image, the method further comprises: subtracting pixel values ​​of samples in the m output feature map and an average output by the m entropy estimation to obtain an m offset feature map; The step of rounding the m-th output feature map to obtain the m-th rounded feature map of the encoding target audio or image comprises: rounding the m offset feature map to obtain the m rounded feature map of the encoding target audio or image; and adding the pixel values ​​of the samples in the m rounded feature map and the average output by the m entropy estimator and using the sum as input to a t entropy estimator, where m is an integer greater than 1 and t is an integer less than m. The method according to any one of claims 2 to 5, comprising:

9. 1. A method for decoding an image, comprising: obtaining a first bitstream to be decoded of audio or image; obtaining a second bitstream to be decoded of the audio or image to be decoded; performing entropy decoding on the second bitstream to be decoded of the audio or image based on a probability estimation result of the second entropy estimation of the audio or image to be decoded to obtain a second decoded feature map of the audio or image; performing a probability estimation of a first entropy estimation based on the second decoded feature map and / or the probability estimation result of the second entropy estimation to obtain a probability estimation result of the first entropy estimation; performing entropy decoding on the first bitstream to be decoded based on the probability estimation result of the first entropy estimation to obtain a first decoded feature map of the audio or image to be decoded; and outputting a reconstructed audio or image of the audio or image to be decoded by using the first decoded feature map and / or the second decoded feature map as an input of a decoding network. A method for providing the above.

10. The method further comprises: obtaining a third bitstream to be decoded of the audio or image to be decoded; performing entropy decoding on the third bitstream to be decoded based on a probability estimation result of a third entropy estimation of the audio or image to be decoded, to obtain a third decoded feature map of the audio or image to be decoded; performing a probability estimation of the second entropy estimation of the audio or image to be decoded based on the third decoded feature map and / or the probability estimation result of the third entropy estimation; and outputting the reconstructed audio or image of the audio or image to be decoded by using at least one of the first decoded feature map, the second decoded feature map, and the third decoded feature map as an input of the decoding network. The method of claim 9 comprising:

11. The method of claim 10, wherein a probability estimation of the second entropy estimation is performed on the audio or image to be decoded based on the third decoded feature map and / or the probability estimation result of the third entropy estimation.

12. The method further comprises: obtaining the m-th bitstream to be decoded of the audio or image to be decoded; and performing entropy decoding on the mth bitstream to be decoded based on a probability estimation result of the mth entropy estimation of the audio or image to be decoded, to obtain an mth decoded feature map of the audio or image to be decoded, where m is an integer greater than 3; The method according to any one of claims 9 to 11, comprising:

13. The method of claim 12 , wherein the m decoded feature maps and / or the probability estimation result of the m entropy estimation are input information for a t th entropy estimation, where t is an integer less than or equal to m.

14. The method further comprises: obtaining a losslessly decoded bitstream of the audio or image to be decoded; The following information: at least one of the decoded feature maps; At least one of the probability estimates of the entropy estimation; or the reconstructed audio or image of the audio or image to be decoded obtaining a probability estimation result of a lossless entropy estimation of the audio or image to be decoded based on at least one of the following: performing entropy decoding on the losslessly decoded bitstream based on the probability estimation result of the lossless entropy estimation of the audio or image to be decoded to obtain a residual image of the audio or image to be decoded; and performing a summation on corresponding samples of the reconstructed audio or image of the audio or image to be decoded and the residual image of the audio or image to be decoded to obtain a lossless reconstructed audio or image of the audio or image to be decoded.

14. The method of any one of claims 9 to 13, comprising:

15. 15. The method of claim 9, wherein when the first decoded feature map is an input of the decoding network, pixel values ​​of samples in the first decoded feature map and an average output by the first entropy estimation are added to obtain the first decoded feature map.

16. An encoder comprising a processing circuit configured to perform the method of any one of claims 1 to 8.

17. A decoder comprising processing circuitry configured to perform the method of any one of claims 9 to 15.

18. A computer program product for causing a computer to carry out the method according to any one of claims 1 to 15.

19. 1. An encoder comprising: one or more processors; and A non-transitory computer-readable storage medium coupled to the one or more processors and storing a program for execution by the one or more processors. wherein, when the program is executed by the one or more processors, the encoder is capable of executing the method according to any one of claims 1 to 8. Encoder.

20. A decoder comprising: one or more processors; and A non-transitory computer-readable storage medium coupled to the one or more processors and storing a program for execution by the one or more processors. wherein, when the program is executed by the one or more processors, the decoder is capable of executing the method according to any one of claims 9 to 15. decoder.

21. 1. An encoder comprising: one or more processors; and A non-transitory computer-readable storage medium coupled to the one or more processors and storing a program for execution by the one or more processors. wherein, when the program is executed by the one or more processors, the encoder is capable of executing the method according to any one of claims 1 to 8. Encoder.

22. An image processor comprising processing circuitry configured to carry out the method of any one of claims 1 to 15.

23. 16. A non-transitory computer readable storage medium comprising program code, the program code being used to perform the method of any one of claims 1 to 15 when executed by a computing device.

Citation Information

Patent Citations

  • Variable code rate image encoding and decoding system and method based on deep learning

    CN109996071A

  • Variable bit rate generative compression method based on adversarial learning

    CN111787323A

  • Image encoding method and device, and image decoding method and device

    JP2020173782A

  • Image coding method and apparatus and image decoding method and apparatus

    JP2020191077A