Method and apparatus for video coding, and computer readable storage medium

By optimizing the video coding framework through neural image compression technology and content-adaptive online training, the problem of balancing video coding efficiency and quality in existing technologies is solved, achieving efficient video data compression and low-distortion reconstruction.

CN118784841APending Publication Date: 2024-10-15TENCENT AMERICA LLC
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202411164002.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2022-04-26
Filing Date
2022-04-29
Publication Date
2024-10-15

AI Technical Summary

Technical Problem

Existing video coding technologies struggle to achieve the optimal balance between compression efficiency and image quality, especially in the encoding of high-resolution and high-frame-rate videos, where there is a problem of excessive redundant data and low coding efficiency.

Method used

We employ neural image compression technology and optimize the video coding framework through content-adaptive online training. We utilize neural networks for iterative updates of feature representations and simulated entropy coding, and combine quantization and entropy decoding to generate efficient coded representations to reduce redundant data.

Benefits of technology

It improves video encoding compression efficiency and image quality, reduces bit rate consumption, and maintains low distortion loss, adapting to the video encoding needs of different content.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118784841A_ABST
    Figure CN118784841A_ABST
Patent Text Reader

Abstract

Aspects of the present disclosure provide a method and apparatus for video encoding. In one embodiment, an apparatus includes processing circuitry configured to generate an initial feature representation from an input image to be encoded, and perform iterative updates on values of a plurality of elements in the initial feature representation. The iterative update includes generating an encoded representation corresponding to a final feature representation based on the final feature representation that has been updated from the initial feature representation by a plurality of iterations of the iterative update. A reconstructed image corresponding to the final feature representation is generated based on the encoded representation. An encoded image corresponding to the final feature representation having the updated values of the plurality of elements is generated. One of (i) a rate distortion loss corresponding to the final feature representation or (ii) a number of iterations of the iterative update satisfies a predetermined condition.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] Related Applications

[0002] This application claims the benefit of priority to U.S. Patent Application No. 17 / 730,026, filed on April 26, 2022, entitled “CONTENT ADAPTIVE ONLINE TRAINING WITH FEATURE REPLACEMENT IN NEURAL IMAGE COMPRESSION,” which claims the benefit of priority to U.S. Provisional Application No. 63 / 182,476, filed on April 30, 2021, entitled “CONTENT ADAPTIVE ONLINE TRAINING WITH FEATURE REPLACEMENT IN NEURAL IMAGE COMPRESSION.” The disclosures of the prior applications are incorporated herein by reference in their entirety. Technical Field

[0003] This disclosure describes embodiments that generally relate to video encoding. Background Art

[0004] The background description provided here is to generally present the context of the present disclosure. To the extent that the work described in this background section is by the inventors currently named and aspects of the description that may not qualify as prior art at the time of filing, neither is implicitly admitted to be prior art to the present disclosure.

[0005] Image and / or video encoding and decoding can be performed using inter-picture prediction with motion compensation. Uncompressed digital images and / or videos can include a series of pictures, each picture having spatial dimensions of, for example, 1920×1080 luminance samples and associated chrominance samples. The series of pictures can have a fixed or variable image rate (also informally referred to as a frame rate), for example, 60 pictures per second or 60Hz. Uncompressed images and / or videos have specific bit rate requirements. For example, 1080p60 4:2:0 video with 8 bits per sample (1920x1080 luminance sample resolution at 60Hz frame rate) requires a bandwidth of nearly 1.5Gbit / s. One hour of such video requires more than 600G bytes of storage space.

[0006] One purpose of video encoding and decoding is to reduce redundancy in input images and / or video signals by compression. Compression helps reduce the above-mentioned bandwidth and / or storage space requirements, in some cases by two orders of magnitude or more. Although the video encoding / decoding used herein is described as an illustrative example, the same technology can be applied to image encoding / decoding in a similar manner without departing from the spirit of the present disclosure. Lossless compression and lossy compression and their combinations can be used. Lossless compression refers to a technology that can reconstruct an exact copy of the original signal from the compressed original signal. When lossy compression is used, the reconstructed signal may not be the same as the original signal, but the distortion between the original signal and the reconstructed signal is small enough to make the reconstructed signal useful for the intended application. For video, lossy compression is widely used. The amount of distortion allowed depends on the application; for example, users of certain consumer streaming applications may tolerate higher distortion than users of television distribution applications. The achievable compression ratio can reflect that higher allowable / tolerable distortion can produce higher compression ratios.

[0007] Video encoders and decoders may utilize several broad categories of techniques including, for example, motion compensation, transforms, quantization, and entropy coding.

[0008] Video codec techniques may include a technique known as intra-coding. In intra-coding, sample values ​​are represented without reference to samples or other data from a previously reconstructed reference picture. In some video codecs, pictures are spatially subdivided into blocks of samples. When all sample blocks are encoded in intra-mode, the picture may be an intra-picture. Intra-pictures and their derivatives (e.g., independent decoder refresh pictures) can be used to reset decoder states and can therefore be used as the first picture in a coded video bitstream and video session, or as a still image. Samples of intra-blocks may be transformed, and transform coefficients may be quantized before entropy coding. Intra-prediction may be a technique for minimizing sample values ​​in a pre-transform domain. In some cases, the smaller the transformed DC value, the smaller the AC coefficient, and the fewer bits required to represent the entropy-coded block at a given quantization step size.

[0009] For example, conventional intra-frame coding known from MPEG-2 generation coding techniques does not use intra-frame prediction. However, some newer video compression techniques include techniques such as attempting to obtain surrounding sample data and / or metadata during encoding and / or decoding of a data block that is adjacent in space and preceding in decoding order. Such techniques are hereinafter referred to as "intra-frame prediction" techniques. Note that, at least in some cases, the reference data used for intra-frame prediction comes only from the current picture being reconstructed, not from a reference picture.

[0010] There can be many different forms of intra-frame prediction. When more than one such technique can be used in a given video coding technique, the technique used can be encoded in the intra-frame prediction mode. In some cases, a mode can have sub-modes and / or parameters, which can be encoded separately or contained in a mode codeword. For a given mode, sub-mode and / or parameter combination, which codeword is used will have an impact on the coding efficiency gain through intra-frame prediction, and therefore, on the entropy coding technique that converts the codeword into the bitstream.

[0011] H.264 introduced specific intra-frame prediction modes, which were improved in H.265 and further improved in newer coding technologies, such as the Joint Exploration Model (JEM), Versatile Video Coding (VVC), and Benchmark Set (BMS). The prediction block is formed using the values ​​of neighboring samples that are already available samples. The sample values ​​of neighboring samples are copied to the prediction block according to the direction. A reference to the direction in use can be encoded into the bitstream or can be predicted by itself.

[0012] refer to Figure 1A , the lower right depicts a subset of 9 known prediction directions from the 33 possible prediction directions of H.265 (corresponding to the 33 angular modes of the 35 intra modes). The point (101) where the arrows converge represents the sample being predicted. The arrows indicate the direction from which the predicted sample comes. For example, arrow (102) indicates that sample (101) is predicted from one or more samples to the upper right at an angle of 45° to the horizontal. Similarly, arrow (103) indicates that sample (101) is predicted from one or more samples to the lower left of sample (101) at an angle of 22.5° to the horizontal.

[0013] Still reference Figure 1A, a square block (104) of 4×4 samples is depicted in the upper left (indicated by the thick dashed line). The square block (104) includes 16 samples, each sample labeled with "S", its position in the Y dimension (e.g., row index) and its position in the X dimension (e.g., column index). For example, sample S21 is the second sample in the Y dimension (from the top) and the first sample in the X dimension (from the left). Similarly, sample S44 is the fourth sample in the block (104) in both the Y and X dimensions. Since the size of the block is 4×4 samples, S44 is located in the lower right corner. Reference samples are also shown following a similar numbering scheme. The reference samples marked with R are labeled (104) with their Y position (e.g., row index) and X position (column index) relative to the block. In H.264 and H.265, the prediction samples are adjacent to the block being reconstructed; therefore, negative values ​​do not need to be used.

[0014] Intra-picture prediction can work by copying reference sample values ​​from neighboring samples in the appropriate signal prediction direction. For example, assume that the encoded video bitstream contains a signal for this block that indicates a prediction direction consistent with arrow (102) - that is, samples predicted from one or more prediction samples to the upper right at a 45° angle to the horizontal. In this case, samples S41, S32, S23, and S14 are predicted from the same reference sample R05. Sample S44 is then predicted from reference sample R08.

[0015] In some cases, the values ​​of multiple reference samples may be combined, for example, by interpolation, in order to calculate the reference sample; in particular, when the direction is not divisible by 45°.

[0016] As video coding techniques have evolved, the number of possible directions has increased. In H.264 (2003), nine different directions could be represented. This was increased to 33 in H.265 (2013), and JEM / VVC / BMS can support up to 65 directions at the time of disclosure. Experiments have been conducted to identify the most likely directions, and certain techniques in entropy coding are used to represent those possible directions with a small number of bits, accepting some penalty for less likely directions. Additionally, the direction itself can sometimes be predicted from adjacent directions used in adjacent already decoded blocks.

[0017] Figure 1B A schematic diagram (110) is shown depicting 65 intra prediction directions according to JEM to illustrate that the number of prediction directions increases over time.

[0018] The mapping of intra prediction direction bits in the coded video bitstream to represent directions can vary depending on the video coding technique; ranging from simple direct mappings of prediction directions to intra prediction modes, to codewords, to complex adaptive schemes involving the most probable mode, and similar techniques. However, in all cases, some directions are statistically less likely to occur in the video content than some other directions. Since the goal of video compression is to reduce redundancy, in better video coding techniques, those less likely directions will be represented by more bits than those that are more likely.

[0019] Motion compensation may be a lossy compression technique, and may involve techniques where a block of sample data from a previously reconstructed picture or part thereof (reference picture) may be used to predict a newly reconstructed picture or part of a picture, after being spatially shifted in a direction indicated by a motion vector (hereafter MV). In some cases, the reference picture may be the same as the picture currently being reconstructed. The MV may have two dimensions, X and Y, or three dimensions, the third dimension being an indication of the reference picture in use (the reference picture may indirectly be a temporal dimension).

[0020] In some video compression techniques, the MV applicable to a region of sample data can be predicted from other MVs, for example, from MVs associated with another region of sample data that is spatially adjacent to the region being reconstructed and precedes the MV in decoding order. Doing so can greatly reduce the amount of data required to encode the MV, thereby eliminating redundancy and improving compression. MV prediction can work effectively, for example, because when encoding an input video signal derived from a camera (called natural video), there is a statistical probability that regions larger than the region to which a single MV can be applied move in similar directions, so in some cases, similar motion vectors derived from MVs of neighboring regions can be used for prediction. This makes the MV found for a given region similar or identical to the MV predicted from the surrounding MVs, and after entropy coding, this can be represented with fewer bits than would be used if the MV was encoded directly. In some cases, MV prediction can be an example of lossless compression of a signal (i.e., MV) derived from the original signal (i.e., sample stream). In other cases, MV prediction itself may be lossy, for example, when the predicted value is calculated from several surrounding MVs, rounding errors may occur.

[0021] Various MV prediction mechanisms are described in H.265 / HEVC (ITU-T Rec. H.265, "High Efficiency Video Coding", December 2016). Among the many MV prediction mechanisms provided by H.265, a technique referred to as "spatial merging" is described here.

[0022] refer to Figure 2 , the current block (201) includes samples found by the encoder during a motion search process to be predicted from a previous block of the same size that has been spatially shifted. Instead of encoding the MV directly, the MV can be derived from metadata associated with one or more reference pictures, for example, from the most recent (in decoding order) reference picture, using the MV associated with any of the five surrounding samples (denoted A0, A1 and B0, B1, B2 (202 to 206, respectively). In H.265, MV prediction can use a predictor from the same reference picture that a neighboring block is using. Summary of the invention

[0023] Various aspects of the present disclosure provide methods and devices for video encoding and computer-readable storage media. In some examples, a device for video encoding includes a processing circuit. The processing circuit is configured to generate an initial feature representation from an input image to be encoded. The processing circuit is configured to perform iterative updates on the values ​​of multiple elements in the initial feature representation. The iterative update includes generating an encoded representation corresponding to the final feature representation based on the final feature representation, and the final feature representation is obtained by updating the initial feature representation through multiple iterations of iterative updates. The iterative update includes generating a reconstructed image corresponding to the final feature representation based on the encoded representation. The processing circuit is configured to generate an encoded image corresponding to the final feature representation with updated values ​​of multiple elements. (i) The rate-distortion loss corresponding to the final feature representation or (ii) The number of iterations of the iterative update, one of the two satisfies a predetermined condition, wherein the rate-distortion loss is determined based on the bit consumption of the encoded representation corresponding to the final feature representation and the difference between the input image and the reconstructed image corresponding to the final feature representation.

[0024] In one embodiment, the processing circuit is configured to add noise to the final feature representation to generate a first representation corresponding to the final feature representation, and to generate an encoded representation based on simulated entropy encoding of the first representation. The processing circuit is configured to perform simulated entropy decoding on the encoded representation.

[0025] In one embodiment, the processing circuit is configured to determine a context model based on the final feature representation and to generate the encoded representation based on simulated entropy encoding of the first representation with the determined context model.

[0026] In one example, the processing circuit is configured to quantize the final feature representation into a quantized representation, wherein the encoded image is generated based on the quantized representation.

[0027] In one example, the processing circuit is configured to entropy encode the quantized representation into an encoded image.

[0028] In one example, the processing circuit is configured to arithmetically encode the quantized representation into an encoded image.

[0029] In one example, the processing circuit is configured to determine a context model based on the final feature representation, and entropy encode the quantized representation into an encoded image based on the determined context model.

[0030] In one embodiment, the processing circuit is configured to perform an iterative update on (i) the sum of the values ​​of multiple elements in the initial feature representation (ii) pre-trained parameters in a neural network NN used to generate an encoded representation based on the final feature representation. The processing circuit can generate an encoded representation corresponding to the final feature representation based on the final feature representation by replacing the pre-trained parameters with the replacement parameters. The replacement parameters have been determined from the pre-trained parameters by the number of iterations of the iterative update. The processing circuit can generate an encoded image from the final feature representation based on the NN updated by the replacement parameters.

[0031] In one embodiment, the processing circuit is configured to perform iterative updating on (i) the sum of the values ​​of multiple elements in the initial feature representation and (ii) pre-trained parameters in a neural network NN used to generate a reconstructed image based on the encoded representation. The processing circuit can generate a reconstructed image corresponding to the final feature representation based on the encoded representation corresponding to the final feature representation by replacing the pre-trained parameters with the replacement parameters after the NN is updated. The replacement parameters have been determined from the pre-trained parameters by the number of iterations of the iterative update. The processing circuit can generate neural network update information included in the encoded bitstream, wherein the neural network update information is used to indicate the replacement parameters. The processing circuit can transmit the encoded image and the neural network update information in the encoded bitstream.

[0032] In one example, the processing circuit transmits the encoded image in an encoded bitstream.

[0033] In some examples, a method for video encoding is provided. The method includes: generating an initial feature representation from an input image to be encoded; performing iterative updates on values ​​of multiple elements in the initial feature representation, the iterative updates including: generating an encoded representation corresponding to the final feature representation based on the final feature representation, the final feature representation being obtained by updating the initial feature representation through multiple iterations of iterative updates, and generating a reconstructed image corresponding to the final feature representation based on the encoded representation; and generating an encoded image corresponding to the final feature representation with updated values ​​of multiple elements, wherein (i) a rate-distortion loss corresponding to the final feature representation or (ii) the number of iterations of the iterative update satisfies a predetermined condition, and the rate-distortion loss is determined based on the bit consumption of the encoded representation corresponding to the final feature representation and the difference between the input image and the reconstructed image corresponding to the final feature representation.

[0034] In one embodiment, generating the encoded representation includes: adding noise to the final feature representation to generate a first representation corresponding to the final feature representation; generating the encoded representation based on simulated entropy encoding of the first representation, and generating the reconstructed image includes: performing simulated entropy decoding on the encoded representation.

[0035] In one embodiment, generating the encoded representation based on simulated entropy coding further comprises: determining a context model based on the final feature representation, and generating the encoded representation based on simulated entropy coding of the first representation with the determined context model.

[0036] In one example, generating the encoded image includes quantizing the final feature representation into a quantized representation, and generating the encoded image based on the quantized representation.

[0037] In one example, generating the encoded image includes entropy encoding the quantized representation into the encoded image.

[0038] In one example, entropy encoding the quantized representation into the encoded image includes arithmetically encoding the quantized representation into the encoded image.

[0039] In one example, entropy encoding the quantized representation into the encoded image further comprises: determining a context model based on the final feature representation, and entropy encoding the quantized representation into the encoded image based on the determined context model.

[0040] In one embodiment, performing iterative updates on values ​​of multiple elements in an initial feature representation includes: performing iterative updates on (i) the sum of the values ​​of multiple elements in the initial feature representation and (ii) pre-trained parameters in a neural network NN used to generate a coded representation based on a final feature representation, generating the coded representation includes: generating a coded representation corresponding to the final feature representation based on the final feature representation by replacing the pre-trained parameters with replacement parameters after the NN is updated, the replacement parameters having been determined from the pre-trained parameters by the number of iterations of the iterative update, and generating a coded image includes generating a coded image from the final feature representation based on the NN updated by the replacement parameters.

[0041] In one embodiment, performing iterative updates on values ​​of multiple elements in an initial feature representation includes: performing iterative updates on (i) the sum of the values ​​of multiple elements in the initial feature representation and (ii) pre-trained parameters in a neural network NN used to generate a reconstructed image based on the encoded representation, generating the reconstructed image includes replacing the pre-trained parameters by replacement parameters after the NN is updated, based on the encoded representation corresponding to the final feature representation, generating a reconstructed image corresponding to the final feature representation, the replacement parameters having been determined from the pre-trained parameters by the number of iterations of the iterative update, and the method also includes: generating neural network update information included in a coded bit stream, the neural network update information being used to indicate the replacement parameters, and transmitting the coded image and the neural network update information in the coded bit stream.

[0042] In one example, the method further includes: transmitting the encoded image in an encoded bit stream.

[0043] Aspects of the present disclosure also provide a non-transitory computer-readable storage medium storing a program executable by at least one processor to perform a method for video encoding. BRIEF DESCRIPTION OF THE DRAWINGS

[0044] Further features, properties and various advantages of the disclosed subject matter will become more apparent from the following detailed description and accompanying drawings, in which:

[0045] Figure 1A is a schematic diagram of an exemplary set of intra prediction modes;

[0046] Figure 1B is a diagram of exemplary intra prediction directions;

[0047] Figure 2 shows a current block and surrounding samples according to one embodiment;

[0048] Figure 3 is a schematic diagram of a simplified block diagram of a communication system according to one embodiment;

[0049] Figure 4 is a schematic diagram of a simplified block diagram of a communication system according to one embodiment;

[0050] Figure 5 is a schematic diagram of a simplified block diagram of a decoder according to one embodiment;

[0051] Figure 6 is a schematic diagram of a simplified block diagram of an encoder according to one embodiment;

[0052] Figure 7 shows a block diagram of an encoder according to another embodiment;

[0053] Figure 8 shows a block diagram of a decoder according to another embodiment;

[0054] Fig. 9 An exemplary neural image compression (NIC) framework according to an embodiment of the present disclosure is shown;

[0055] Fig.10 An exemplary convolutional neural network (CNN) of a main encoder network according to an embodiment of the present disclosure is shown;

[0056] Fig.11 An exemplary CNN of a main decoder network according to an embodiment of the present disclosure is shown;

[0057] Fig.12An exemplary CNN of a super encoder according to an embodiment of the present disclosure is shown;

[0058] Fig.13 An exemplary CNN of a super decoder according to an embodiment of the present disclosure is shown;

[0059] Fig.14 An exemplary CNN of a context model network according to an embodiment of the present disclosure is shown;

[0060] Fig.15 An exemplary CNN of an entropy parameter network according to an embodiment of the present disclosure is shown;

[0061] Fig.16A An exemplary video encoder according to an embodiment of the present disclosure is shown;

[0062] Fig. 16B An exemplary video decoder according to an embodiment of the present disclosure is shown;

[0063] Fig.17 An exemplary video encoder according to an embodiment of the present disclosure is shown;

[0064] Fig.18 An exemplary video decoder according to an embodiment of the present disclosure is shown;

[0065] Fig.19A An example of a learning-based image encoding process according to an embodiment of the present disclosure is shown;

[0066] Fig.19B An exemplary NIC framework according to an embodiment of the present disclosure is shown;

[0067] Fig.19C An exemplary encoding process based on the NIC framework according to an embodiment of the present disclosure is shown;

[0068] Fig. 20 A flowchart showing an overview process according to an embodiment of the present disclosure is shown;

[0069] Fig.21 is a schematic diagram of a computer system according to one embodiment. DETAILED DESCRIPTION

[0070] Figure 3 A simplified block diagram of a communication system (300) according to an embodiment of the present disclosure is shown. The communication system (300) includes a plurality of terminal devices that can communicate with each other via, for example, a network (350). For example, the communication system (300) includes a first pair of terminal devices (310) and (320) interconnected via the network (350). Figure 3In the example of , a first pair of terminal devices (310) and (320) perform unidirectional transmission of data. For example, the terminal device (310) can encode video data (e.g., a video picture stream captured by the terminal device (310)) for transmission to another terminal device (320) via the network (350). The encoded video data can be transmitted in the form of one or more encoded video bitstreams. The terminal device (320) can receive the encoded video data from the network (350), decode the encoded video data to restore the video picture, and display the video picture based on the restored video data. Unidirectional data transmission is common in scenarios such as media service applications.

[0071] In another example, the communication system (300) includes a second pair of terminal devices (330) and (340) that perform bidirectional transmission of encoded video data, such as encoded video data generated during a video conference. For the bidirectional transmission of data, in one example, each of the terminal devices (330) and (340) can encode video data (e.g., a video picture stream captured by the terminal device) for transmission to the other of the terminal devices (330) and (340) via a network (350). Each of the terminal devices (330) and (340) can also receive the encoded video data transmitted by the other of the terminal devices (330) and (340), and can decode the encoded video data to restore the video picture, and can display the video picture on an accessible display device based on the restored video data.

[0072] exist Figure 3 In the example of, terminal device (310), terminal device (320), terminal device (330) and terminal device (340) can be shown as a server, a personal computer and a smart phone, but the principles of the present disclosure may not be limited to this. Embodiments of the present disclosure are applicable to laptop computers, tablet computers, media players and / or dedicated video conferencing equipment. Network (350) represents any number of networks that transmit encoded video data between terminal devices (310), terminal devices (320), terminal devices (330) and terminal devices (340), including, for example, lines (wired) and / or wireless communication networks. Communication network (350) can exchange data in circuit switching and / or packet switching channels. Representative networks include telecommunication networks, local area networks, wide area networks and / or the Internet. For the purpose of the current discussion, the architecture and topology of network (350) may be unimportant to the operation of the present disclosure unless explained below.

[0073] As examples of applications of the disclosed subject matter, Figure 4The placement of a video encoder and a video decoder in a streaming environment is shown. The disclosed subject matter is equally applicable to other video-enabled applications including, for example, video conferencing, digital television, storing compressed video on digital media including CDs, DVDs, memory sticks, etc.

[0074] The streaming system may include: a capture subsystem (413), which may include a video source (401), such as a digital camera; creating, for example, an uncompressed video picture stream (402). In one example, the video picture stream (402) includes samples taken by the digital camera. The video picture stream (402) is depicted as thick lines to emphasize the high amount of data when compared to the encoded video data (404) (or encoded video bitstream), and can be processed by an electronic device (420) including a video encoder (403) coupled to the video source (401). The video encoder (403) may include hardware, software, or a combination thereof to implement or implement various aspects of the disclosed subject matter as described in more detail below. The encoded video data (404) (or encoded video bitstream (404)) is depicted as thin lines to emphasize its lower amount of data when compared to the video picture stream (402), and can be stored on a streaming server (405) for future use. One or more streaming client subsystems (e.g., Figure 4 The client subsystems (406) and (408) in the video server (405) can access the streaming server (405) to retrieve copies (407) and (409) of the encoded video data (404). The client subsystem (406) may include, for example, a video decoder (410) in an electronic device (430). The video decoder (410) decodes the input copy (407) of the encoded video data and creates an output video picture stream (411) that can be rendered on a display (412) (e.g., a display screen) or other rendering device (not shown). In some streaming systems, the encoded video data (404), the copies (407) and (409) of the encoded video data (e.g., an encoded video bitstream) may be encoded according to certain video coding / compression standards. Examples of these standards include ITU-T Recommendation H.265. In one example, the video coding standard under development is informally referred to as Versatile Video Coding (VVC). The disclosed subject matter may be used in the context of VVC.

[0075] It should be noted that the electronic devices (420) and (430) may include other components (not shown). For example, the electronic device (420) may include a video decoder (not shown), and the electronic device (430) may also include a video encoder (not shown).

[0076] Figure 5A block diagram of a video decoder (510) according to an embodiment of the present disclosure is shown. The video decoder (510) may be included in an electronic device (530). The electronic device (530) may include a receiver (531) (e.g., a receiving circuit). The video decoder (510) may be used to replace Figure 4 A video decoder (410) is shown in an example.

[0077] A receiver (531) may receive one or more encoded video sequences to be decoded by a video decoder (510); in the same or another embodiment, one at a time, wherein decoding of each encoded video sequence is independent of the other encoded video sequences. The encoded video sequences may be received from a channel (501), which may be a hardware / software link to a storage device storing the encoded video data. The receiver (531) may receive the encoded video data and other data, such as encoded audio data and / or auxiliary data streams, which may be forwarded to their respective consuming entities (not shown). The receiver (531) may separate the encoded video sequence from the other data. To combat network jitter, a buffer memory (515) may be coupled between the receiver (531) and an entropy decoder / parser (520) (hereinafter referred to as "parser (520)"). In some applications, the buffer memory (515) is part of the video decoder (510). In other cases, it may be external to the video decoder (510) (not shown). In other cases, there may be a buffer memory (not shown) outside the video decoder (510), for example, to combat network jitter, and another buffer memory (515) inside the video decoder (510), for example, to handle playout timing. When the receiver (531) receives data from a store / forward device with sufficient bandwidth and controllability or from an isochronous network, the buffer memory (515) may not be needed or may be small. For use over a best-effort packet network such as the Internet, a buffer memory (515) may be required, which may be relatively large and may advantageously have an adaptive size and may be implemented at least in part in an operating system or similar element (not shown) external to the video decoder (510).

[0078] The video decoder (510) may include a parser (520) to reconstruct symbols (521) from the encoded video sequence. The categories of these symbols include information for managing the operation of the video decoder (510) and potentially controlling a rendering device such as a rendering device (512) (e.g., a display screen) that is not part of the electronic device (530) but can be coupled to the electronic device (530), such as Figure 5As shown. The control information for the rendering device may be in the form of a supplemental enhancement information (SEI message) or a video usability information (VUI) parameter set fragment (not shown). The parser (520) may parse / entropy decode the received coded video sequence. The coding of the coded video sequence may be based on a video coding technique or standard and may follow various principles, including variable length coding, Huffman coding, arithmetic coding with or without context sensitivity, etc. The parser (520) may extract a group of subgroup parameters of at least one pixel subgroup in the video decoder from the coded video sequence based on at least one parameter corresponding to the group. The subgroup may include a group of pictures (Groups of Pictures, GOP), a picture, a tile, a slice, a macroblock, a coding unit (CU), a block, a transform unit (TU), a prediction unit (PU), etc. The parser (520) may also extract information from the coded video sequence, such as a transform coefficient, a quantizer parameter value, a motion vector, etc.

[0079] The parser (520) may perform entropy decoding / parsing operations on the video sequence received from the buffer memory (515) to create symbols (521).

[0080] Depending on the type of coded video picture or part thereof (e.g., inter- and intra-pictures, inter- and intra-blocks) and other factors, the reconstruction of the symbol (521) may involve a number of different units. Which units are involved and how they are involved may be controlled by subgroup control information parsed from the coded video sequence by the parser (520). For clarity, such subgroup control information flow between the parser (520) and the following multiple units is not described.

[0081] In addition to the functional blocks already mentioned, the video decoder (510) can be conceptually subdivided into a number of functional units as described below. In a practical implementation operating under commercial constraints, many of these units interact closely with each other and may be at least partially integrated with each other. However, for the purpose of describing the disclosed subject matter, it is appropriate to conceptually subdivide into the following functional units.

[0082] The first unit is a scaler / inverse transform unit (551). The scaler / inverse transform unit (551) receives quantized transform coefficients and control information, including which transform to use, block size, quantization factor, quantization scaling matrix, etc., as symbols (521) from the parser (520). The scaler / inverse transform unit (551) can output blocks including sample values, which can be input into the aggregator (555).

[0083] In some cases, the output samples of the scalar / inverse transform unit (551) may belong to an intra-coded block; that is, a block that does not use prediction information from a previously reconstructed picture, but may use prediction information from a previously reconstructed portion of the current picture. Such prediction information may be provided by an intra-picture prediction unit (552). In some cases, the intra-picture prediction unit (552) generates a block of the same size and shape as the block being reconstructed using surrounding already reconstructed information obtained from a current picture buffer (558). The current picture buffer (558) buffers, for example, a partially reconstructed current picture and / or a fully reconstructed current picture. In some cases, the aggregator (555) adds the prediction information already generated by the intra-prediction unit (552) to the output sample information provided by the scalar / inverse transform unit (551) on a per-sample basis.

[0084] In other cases, the output samples of the scaler / inverse transform unit (551) may belong to an inter-frame coded and possibly motion compensated block. In this case, the motion compensated prediction unit (553) may access the reference picture memory (557) to obtain samples for prediction. After the obtained samples are motion compensated according to the symbols (521) associated with the block, these samples may be added by the aggregator (555) to the output of the scaler / inverse transform unit (551) (in this case referred to as residual samples or residual signal) to generate output sample information. The addresses within the reference picture memory (557) from which the motion compensated prediction unit (553) obtains the predicted samples may be controlled by motion vectors, and it is feasible for the motion compensated prediction unit (553) to obtain these addresses in the form of symbols (521), which may have, for example, X, Y and reference picture components. When sub-sampled accurate motion vectors are used, motion compensation may also include interpolation of sample values ​​obtained from the reference picture memory (557), motion vector prediction mechanisms, etc.

[0085] The output samples of the aggregator (555) may be subjected to various loop filtering techniques in a loop filter unit (556). The video compression techniques may include loop filtering techniques that are controlled by parameters contained in the coded video sequence (also referred to as the coded video bitstream) and that may be used in the loop filtering unit (556) as symbols (521) from the parser (520), and may also be responsive to meta-information obtained during decoding of a previous (in decoding order) portion of the coded video sequence or coded picture, and to previous reconstructed and loop filtered sample values.

[0086] The output of the loop filter unit (556) may be a sample stream that may be output to a rendering device (512) and stored in a reference picture memory (557) for future inter-picture prediction.

[0087] Once fully reconstructed, certain coded pictures can be used as reference pictures for future predictions. For example, once a coded picture corresponding to a current picture is fully reconstructed and the coded picture has been identified as a reference picture (e.g., by the parser (520)), the current picture buffer (558) can become part of the reference picture memory (557) and a new current picture buffer can be reallocated before starting reconstruction of the next coded picture.

[0088] The video decoder (510) may perform decoding operations according to a predetermined video compression technique in a standard such as ITU-T Rec. H.265. The coded video sequence may conform to the syntax specified by the video compression technique or standard used in the sense that the coded video sequence conforms to the syntax of the video compression technique or standard and the profile recorded in the video compression technique or standard. Specifically, the profile may select certain tools from all the tools available in the video compression technique or standard as the only tools available under the profile. Conformance to the standard also requires that the complexity of the coded video sequence is within the range defined by the level of the video compression technique or standard. In some cases, the level limits the maximum picture size, maximum frame rate, maximum reconstruction sampling rate (e.g., measured in megasamples per second), maximum reference picture size, etc. In some cases, the limits set by the level may be further limited by the Hypothetical Reference Decoder (HRD) specification and metadata for HRD buffer management for signaling in the coded video sequence.

[0089] In one embodiment, the receiver (531) can receive additional (redundant) data with the encoded video. The additional data can be included as part of the encoded video sequence. The video decoder (510) can use the additional data to correctly decode the data and / or more accurately reconstruct the original video data. The additional data can be in the form of, for example, temporal, spatial or signal-to-noise ratio (SNR) enhancement layers, redundant slices, redundant pictures, forward error correction codes, etc.

[0090] Figure 6 A block diagram of a video encoder (603) according to an embodiment of the present disclosure is shown. The video encoder (603) is included in an electronic device (620). The electronic device (620) includes a transmitter (640) (e.g., a transmitting circuit). The video encoder (603) can be used to replace Figure 4 The video encoder (403) in the example.

[0091] The video encoder (603) can be used to obtain the video source (601) (which is not Figure 6 In another example, the video source (601) is a part of the electronic device (620) to receive the video samples, and the video source can capture the video pictures to be encoded by the video encoder (603). In another example, the video source (601) is a part of the electronic device (620).

[0092] The video source (601) may provide a source video sequence encoded by a video encoder (603) in the form of a digital video sample stream, which may have any suitable bit depth (e.g., 8-bit, 10-bit, 12-bit, ...), any color space (e.g., BT.601 Y CrCB, RGB, ...), and any suitable sampling structure (e.g., Y CrCb 4:2:0, Y CrCb 4:4:4). In a media service system, the video source (601) may be a storage device storing previously prepared videos. In a video conferencing system, the video source (601) may be a camera that captures local image information as a video sequence. The video data may be provided in the form of multiple individual pictures that impart motion when viewed sequentially. The pictures themselves may be organized as a spatial array of pixels, where each pixel may include one or more samples, depending on the sampling structure, color space, etc. in use. The relationship between pixels and samples may be easily understood by those skilled in the art. The following description focuses on samples.

[0093] According to one embodiment, the video encoder (603) can encode and compress the pictures of the source video sequence into a coded video sequence (643) in real time or under any other time constraints required by the application. Implementing the appropriate encoding speed is a function of the controller (650). In some embodiments, the controller (650) controls other functional units as described below and is functionally coupled to the other functional units. For clarity, the coupling is not described. The parameters set by the controller (650) may include rate control related parameters (picture skipping, quantizer, lambda value of rate distortion optimization technology, ...), picture size, picture group (GOP) layout, maximum motion vector search range, etc. The controller (650) can be configured to have other suitable functions related to the video encoder (603) optimized for a specific system design.

[0094] In some embodiments, the video encoder (603) is configured to operate in an encoding loop. As an oversimplified description, in one example, the encoding loop may include a source encoder (630) (e.g., for creating symbols, e.g., a symbol stream, based on an input picture to be encoded and a reference picture) and a (local) decoder (633) embedded in the video encoder (603). The decoder (633) reconstructs the symbols in a manner similar to what the (remote) decoder will also create to create sample data (because in the video compression techniques considered in the disclosed subject matter, any compression between the symbols and the encoded video bitstream is lossless). The reconstructed sample stream (sample data) is input to a reference picture memory (634). Since the decoding of the symbol stream results in a bit-accurate result independent of the decoder location (local or remote), the contents in the reference picture memory (634) are also bit-accurate between the local encoder and the remote encoder. In other words, when prediction is used during decoding, the predicted part of the encoder "sees" as a reference picture sample exactly the same sample value as the sample value "seen" by the decoder. The basic principle of reference picture synchronization (and the resulting drift if synchronization cannot be maintained, for example, due to channel errors) is also used in some related techniques.

[0095] The operation of the "local" decoder (633) may be identical to the operation of a "remote" decoder such as the video decoder (510), described above in conjunction with Figure 5 However, a brief reference to Figure 5 , since symbols are available and the symbol encoding / decoding of the encoded video sequence by the entropy encoder (645) and the parser (520) can be lossless, the entropy decoding portion of the video decoder (510), including the buffer memory (515) and the parser (520), may not be fully implemented in the local decoder (633).

[0096] In one embodiment, except the parsing / entropy decoding present in the decoder, the decoder technology is present in the corresponding encoder in the same or substantially the same functional form. Therefore, the disclosed subject matter focuses on the decoder operation. The description of the encoder technology can be simplified because these technologies are the inverse of the fully described decoder technology. In some areas, a more detailed description is provided below.

[0097] During operation, in some examples, the source encoder (630) may perform motion compensated predictive coding, which predictively encodes an input picture with reference to one or more previously encoded pictures from a video sequence designated as “reference pictures.” In this manner, the encoding engine (632) encodes the differences between pixel blocks of the input picture and pixel blocks of a reference picture that may be selected as a prediction reference for the input picture.

[0098] The local video decoder (633) can decode the encoded video data of the picture that can be designated as the reference picture based on the symbol created by the source encoder (630). The operation of the encoding engine (632) can be advantageously a lossy process. When the encoded video data can be decoded at the video decoder ( Figure 6 When decoded at a remote video decoder (not shown), the reconstructed video sequence may typically be a copy of the source video sequence with some errors. The local video decoder (633) may replicate the decoding process performed by the video decoder on the reference picture and may cause the reconstructed reference picture to be stored in the reference picture cache (634). In this way, the video encoder (603) may locally store copies of the reconstructed reference pictures that have the same content (without transmission errors) as the reconstructed reference pictures obtained by the remote video decoder.

[0099] The predictor (635) may perform a prediction search on the encoding engine (632). That is, for a new picture to be encoded, the predictor (635) may search the reference picture memory (634) for sample data (as candidate reference pixel blocks) or certain metadata, such as reference picture motion vectors, block shapes, etc., that may be used as appropriate prediction references for the new picture. The predictor (635) may operate on a sample block-pixel block basis to find an appropriate prediction reference. In some cases, as determined by the search results obtained by the predictor (635), the input picture may have prediction references extracted from multiple reference pictures stored in the reference picture memory (634).

[0100] The controller (650) may manage encoding operations of the source encoder (630), including, for example, the setting of parameters and sub-group parameters for encoding video data.

[0101] The outputs of all the aforementioned functional units may undergo entropy coding in an entropy encoder (645). The entropy encoder (645) converts the symbols generated by the various functional units into a coded video sequence by losslessly compressing the symbols according to techniques such as Huffman coding, variable length coding, arithmetic coding, etc.

[0102] The transmitter (640) can buffer the encoded video sequence created by the entropy encoder (645) in preparation for transmission via a communication channel (660), which can be a hardware / software link to a storage device where the encoded video data will be stored. The transmitter (640) can combine the encoded video data from the video encoder (603) with other data to be transmitted, such as encoded audio data and / or ancillary data streams (source not shown).

[0103] The controller (650) can manage the operation of the video encoder (603). During encoding, the controller (650) can assign a specific coded picture type to each coded picture, which can affect the coding techniques that can be applied to the corresponding picture. For example, a picture can generally be assigned one of the following picture types:

[0104] An intra picture (I picture) may be a picture that is encoded and decoded without using any other picture in the sequence as a prediction source. Some video codecs allow different types of intra pictures, including, for example, independent decoder refresh ("IDR") pictures. Those skilled in the art are aware of those variants of I pictures and their corresponding applications and features.

[0105] A predicted picture (P picture) may be a picture that is encoded and decoded using intra prediction or inter prediction, which uses at most one motion vector and a reference index to predict sample values ​​for each block.

[0106] Bidirectional prediction pictures (B pictures) can be pictures that are encoded and decoded using intra prediction or inter prediction, which uses up to two motion vectors and reference indices to predict the sample values ​​of each block. Similarly, multi-prediction pictures can use more than two reference pictures and related metadata to reconstruct a single block.

[0107] A source picture may typically be spatially subdivided into a number of blocks of samples (e.g., 4×4, 8×8, 4×8, or 16×16 blocks of samples each), and encoded on a block-by-block basis. Blocks are predictively encoded with reference to other (already coded) blocks, where the other blocks are determined by the coding allocation applied to the block's corresponding picture. For example, blocks of an I picture may be non-predictively coded, or may be predictively coded (spatial prediction or intra prediction) with reference to already coded blocks of the same picture. Blocks of pixels of a P picture are predictively coded with reference to one previously coded reference picture, either via spatial prediction or via temporal prediction. Blocks of a B picture may be predictively coded with reference to one or two previously coded reference pictures, either via spatial prediction or via temporal prediction.

[0108] The video encoder (603) may perform encoding operations according to a predetermined video encoding technique or standard (e.g., ITU-T Rec. H.265). In its operation, the video encoder (603) may perform various compression operations, including predictive encoding operations that exploit temporal and spatial redundancy in the input video sequence. Thus, the encoded video data may conform to the syntax specified by the video encoding technique or standard being used.

[0109] In one embodiment, the transmitter (640) may transmit additional data along with the encoded video. The source encoder (630) may include data as part of the encoded video sequence. The additional data may include temporal / spatial / SNR enhancement layers, other forms of redundant data (e.g., redundant pictures and slices), SEI messages, VUI parameter set fragments, etc.

[0110] Captured from a video as multiple source pictures (video pictures) in a temporal sequence. Intra-picture prediction (often abbreviated to intra-prediction) exploits spatial correlations in a given picture, while inter-picture prediction exploits (temporal or other) correlations between pictures. In one example, a particular picture in encoding / decoding, called the current picture, is divided into blocks. When a block in the current picture is similar to a reference block in a reference picture that was previously encoded in the video and is still buffered, the block in the current picture can be encoded by a vector called a motion vector. In the case of using multiple reference pictures, the motion vector points to a reference block in a reference picture and can have a third dimension that identifies the reference picture.

[0111] In some embodiments, bidirectional prediction techniques may be used in inter-picture prediction. According to the bidirectional prediction technique, two reference pictures are used, for example, a first reference picture and a second reference picture, both of which are before the current picture in the video in decoding order (but may be in the past and future in display order, respectively). A block in the current picture may be encoded by a first motion vector pointing to a first reference block in the first reference picture and a second motion vector pointing to a second reference block in the second reference picture. The block may be predicted by a combination of the first reference block and the second reference block.

[0112] In addition, merge mode techniques can be used in inter-picture prediction to improve coding efficiency.

[0113] According to some embodiments of the present disclosure, for example, inter-picture prediction and intra-picture prediction can perform prediction in units of blocks. For example, according to the HEVC standard, pictures in a video picture sequence are divided into coding tree units (Coding Tree Units, CTU for short) for compression, and the CTUs in the pictures have the same size, for example, 64×64 pixels, 32×32 pixels, or 16×16 pixels. Typically, a CTU includes three coding tree blocks (Coding Tree Blocks, CTB for short), namely a luminance CTB and two chrominance CTBs. Each CTU can be recursively quadtree-divided into one or more coding units (CUs). For example, a 64×64 pixel CTU can be divided into a 64×64 pixel CU, or 4 32×32 pixel CUs, or 16 16×16 pixel CUs. In one example, each CU is analyzed to determine the prediction type of the CU, for example, an inter-prediction type or an intra-prediction type. According to temporal and / or spatial predictability, the CU is divided into one or more prediction units (PUs). Typically, each PU includes a luma prediction block (PB) and two chroma PBs. In an embodiment, the prediction operation in encoding (encoding / decoding) is performed in units of prediction blocks. Using a luma prediction block as an example of a prediction block, the prediction block contains a matrix of pixel values ​​(e.g., luma values), such as 8×8 pixels, 16×16 pixels, 8×16 pixels, 16×8 pixels, etc.

[0114] Figure 7 A schematic diagram of a video encoder (703) according to another embodiment of the present disclosure is shown. The video encoder (703) is configured to receive a processed block (e.g., a prediction block) of sample values ​​within a current video picture in a video picture sequence, and encode the processed block into an encoded image as part of an encoded video sequence. In one example, the video encoder (703) is used to replace Figure 4 The video encoder (403) in the example.

[0115] In the HEVC example, the video encoder (703) receives a matrix of sample values ​​for a processing block, such as a prediction block of 8×8 samples, etc. The video encoder (703) determines whether to best encode the processing block using intra mode, inter mode, or a bidirectional prediction mode such as rate-distortion optimization. When the processing block is to be encoded in intra mode, the video encoder (703) may encode the processing block into a coded picture using intra prediction techniques; and when the processing block is to be encoded in inter mode or bidirectional prediction mode, the video encoder (703) may encode the processing block into a coded picture using inter prediction or bidirectional prediction techniques, respectively. In some video coding techniques, the merge mode may be an inter picture prediction submode, in which motion vectors are derived from one or more motion vector predictors without benefiting from a coded motion vector component outside the predictor. In some other video coding techniques, there may be a motion vector component applicable to the object block. In one example, the video encoder (703) includes other components, such as a mode decision module (not shown) for determining the mode of the processing block.

[0116] exist Figure 7 In the example of FIG. 7 , the video encoder ( 703 ) includes Figure 7 An inter-frame encoder (730), an intra-frame encoder (722), a residual calculator (723), a switch (726), a residual encoder (724), a general controller (721), and an entropy encoder (725) are shown coupled together.

[0117] The inter-frame encoder (730) is configured to receive samples of a current block (e.g., a processing block), compare the block with one or more reference blocks in a reference picture (e.g., blocks in a previous picture and a subsequent picture), generate inter-frame prediction information (e.g., description of redundant information according to an inter-frame coding technique, motion vectors, merge mode information), and calculate an inter-frame prediction result (e.g., a prediction block) based on the inter-frame prediction information obtained using any suitable technique. In some examples, the reference picture is a decoded reference picture decoded based on the encoded video information.

[0118] The intra encoder (722) is configured to receive samples of a current block (e.g., a processing block), compare the block with blocks already encoded in the same picture, generate quantized coefficients after transformation, and in some cases, generate intra prediction information (e.g., intra prediction direction information according to one or more intra coding techniques). In one example, the intra encoder (722) also calculates an intra prediction result (e.g., a prediction block) based on the intra prediction information and a reference block in the same picture.

[0119] The general controller (721) is configured to determine general control data and control other components of the video encoder (703) based on the general control data. In one example, the general controller (721) determines the mode of the block and provides a control signal to the switch (726) based on the mode. For example, when the mode is intra-frame mode, the general controller (721) controls the switch (726) to select the intra-frame mode result for use by the residual calculator (723), and controls the entropy encoder (725) to select the intra-frame prediction information and include the intra-frame prediction information in the bitstream; when the mode is inter-frame mode, the general controller (721) controls the switch (726) to select the inter-frame prediction result for use by the residual calculator (723), and controls the entropy encoder (725) to select the inter-frame prediction information and include the inter-frame prediction information in the bitstream.

[0120] The residual calculator (723) is configured to calculate the difference (residual data) between the received block and the prediction result selected from the intra encoder (722) or the inter encoder (730). The residual encoder (724) is configured to operate based on the residual data to encode the residual data to generate a transform coefficient. In one example, the residual encoder (724) is configured to convert the residual data from the spatial domain to the frequency domain and generate a transform coefficient. The transform coefficient is then quantized to obtain a quantized transform coefficient. In various embodiments, the video encoder (703) further includes a residual decoder (728). The residual decoder (728) is configured to perform an inverse transform and generate decoded residual data. The decoded residual data can be appropriately used by the intra encoder (722) and the inter encoder (730). For example, the inter encoder (730) can generate a decoded block based on the decoded residual data and the inter prediction information, and the intra encoder (722) can generate a decoded block based on the decoded residual data and the intra prediction information. The decoded blocks are processed appropriately to generate a decoded picture, and the decoded picture may be buffered in memory circuitry (not shown) and used as a reference picture in some examples.

[0121] The entropy encoder (725) is configured to format the bitstream to include the coded blocks. The entropy encoder (725) is configured to include various information according to a suitable standard, such as the HEVC standard. In one example, the entropy encoder (725) is configured to include general control data, selected prediction information (e.g., intra-frame prediction information or inter-frame prediction information), residual information, and other suitable information in the bitstream. Note that according to the disclosed subject matter, when the block is encoded in inter-frame mode or the merge sub-mode of the bidirectional prediction mode, there is no residual information.

[0122] Figure 8A schematic diagram of a video decoder (810) according to another embodiment of the present disclosure is shown. The video decoder (810) is configured to receive a coded picture as part of a coded video sequence and decode the coded picture to generate a reconstructed picture. In one example, the video decoder (810) is used to replace Figure 4 A video decoder (410) is shown in an example.

[0123] exist Figure 8 In the example of FIG. 8 , the video decoder ( 810 ) includes Figure 8 An entropy decoder (871), an inter-frame decoder (880), a residual decoder (873), a reconstruction module (874) and an intra-frame decoder (872) are shown coupled together.

[0124] The entropy decoder (871) can be configured to reconstruct certain symbols from the encoded image, which represent syntax elements that constitute the encoded image. Such symbols may include, for example, a mode for encoding a block (e.g., intra-frame mode, inter-frame mode, bidirectional prediction mode, merge sub-mode or the latter two modes in another sub-mode), prediction information (e.g., intra-frame prediction information or inter-frame prediction information) that can identify certain samples or metadata predicted by an intra-frame decoder (872) or an inter-frame decoder (880), such as residual information in the form of quantized transform coefficients, etc. In one example, when the prediction mode is an inter-frame or bidirectional prediction mode, the inter-frame prediction information is provided to the inter-frame decoder (880); and when the prediction type is an intra-frame prediction type, the intra-frame prediction information is provided to the intra-frame decoder (872). The residual information may be subjected to inverse quantization and provided to the residual decoder (873).

[0125] The inter-frame decoder (880) is configured to receive the inter-frame prediction information and generate an inter-frame prediction result based on the inter-frame prediction information.

[0126] The intra decoder (872) is configured to receive intra prediction information and generate a prediction result based on the intra prediction information.

[0127] The residual decoder (873) is configured to perform inverse quantization to extract dequantized transform coefficients and process the dequantized transform coefficients to convert the residual from the frequency domain to the spatial domain. The residual decoder (873) may also require certain control information (to include a quantization parameter (QP)), and this information may be provided by the entropy decoder (871) (the data path is not shown because this may only be a small amount of control information).

[0128] The reconstruction module (874) is configured to combine the residual output by the residual decoder (873) and the prediction result (output by the inter-frame or intra-frame prediction module, as appropriate) in the spatial domain to form a reconstructed block, which can be part of a reconstructed picture, which in turn can be part of a reconstructed video. Note that other suitable operations such as deblocking operations can be performed to improve visual quality.

[0129] Note that the video encoder (403), video encoder (603) and video encoder (703) and video decoder (410), video decoder (510) and video decoder (810) may be implemented using any suitable technology. In one embodiment, the video encoder (403), video encoder (603) and video encoder (703) and video decoder (410), video decoder (510) and video decoder (810) may be implemented using one or more integrated circuits. In another embodiment, the video encoder (403), video encoder (603) and video encoder (603) and video decoder (410), video decoder (510) and video decoder (810) may be implemented using one or more processors that execute software instructions.

[0130] The present disclosure describes video coding techniques related to neural image compression techniques and / or neural video compression techniques, for example, neural image compression (NIC) based on artificial intelligence (AI). Aspects of the present disclosure include content-adaptive online training in NIC, for example, a NIC method for end-to-end (E2E) optimized image coding framework based on a neural network. A neural network (NN) may include an artificial neural network (ANN), for example, a deep neural network (DNN), a convolutional neural network (CNN), and the like.

[0131] In one embodiment, the related hybrid video codec is difficult to be optimized as a whole. For example, the improvement of a single module (e.g., encoder) in the hybrid video codec may not lead to a coding gain in overall performance. In the NN-based video coding framework, different modules can be jointly optimized from input to output by performing a learning process or a training process (e.g., a machine learning process) to improve the final goal (e.g., rate-distortion performance, such as the rate-distortion loss L described in the present disclosure), and thus produce an E2E optimized NIC.

[0132] An exemplary NIC framework or system can be described as follows. The NIC framework can use an input image x as an input to a neural network encoder (e.g., an encoder based on a neural network (e.g., DNN)) to compute a compressed representation (e.g., a compact representation) The compressed representation can be compact, for example, for storage and transmission purposes. A neural network decoder (e.g., a decoder based on a neural network (e.g., DNN)) can use the compressed representation As input to reconstruct the output image (also called reconstructed image) In various embodiments, the input image x and the reconstructed image In the spatial domain, the compressed representation In a domain other than the spatial domain. In some examples, the compressed representation quantized and entropy coded.

[0133] In some examples, the NIC framework can use a Variational AutoEncoder (VAE) structure. In the VAE structure, the neural network encoder can directly use the entire input image x as the input of the neural network encoder. The entire input image x can be passed through a set of neural network layers that work as a black box to calculate the compressed representation Compressed Representation is the output of the neural network encoder. The neural network decoder can convert the entire compressed representation As input. Compressed representation can be passed through another set of neural network layers that works as another black box to compute the reconstructed image Rate distortion (RD) loss can be optimized to achieve the reconstructed image using a compromise hyperparameter λ Distortion loss and compact representation A compromise between the bit consumption R.

[0134]

[0135] A neural network (e.g., ANN) can learn to perform tasks from examples without task-specific programming. ANN can be configured with connected nodes or artificial neurons. The connection between the nodes can transmit a signal from a first node to a second node (e.g., a receiving node), and the signal can be modified by a weight, which can be indicated by a weight coefficient of the connection. The receiving node can process a signal from a node that sends a signal to the receiving node (i.e., an input signal of the receiving node), and then generate an output signal by applying a function to the input signal. The function can be a linear function. In one example, the output signal is a weighted sum of the input signals. In one example, the output signal is further modified by a bias that can be indicated by a bias term, so that the output signal is the sum of the weighted sum of the bias and the input signal. The function can include, for example, a nonlinear operation of the weighted sum of the input signal or the sum of the bias and the weighted sum. The output signal can be sent to a node connected to the receiving node (a downstream node connected to the receiving node). ANN can be represented or configured by parameters (e.g., weights of connections and / or biases). The weights and / or biases may be obtained by training the ANN with examples that may iteratively adjust the weights and / or biases. The trained ANN configured with the determined weights and / or the determined biases may be used to perform the task.

[0136] The nodes in the ANN can be organized using any suitable architecture. In various embodiments, the nodes in the ANN are organized into layers, including an input layer that receives input signals to the ANN and an output layer that outputs output signals from the ANN. In one embodiment, the ANN also includes layers between the input layer and the output layer, such as hidden layers. Different layers can perform different types of transformations on corresponding inputs of different layers. Signals can be transmitted from the input layer to the output layer.

[0137] An ANN with multiple layers between the input layer and the output layer may be referred to as a DNN. In one embodiment, the DNN is a feed-forward network, where data flows from the input layer to the output layer without looping back. In one example, the DNN is a fully connected network, where each node in one layer is connected to all nodes in the next layer. In one embodiment, the DNN is a recurrent neural network (RNN), where data can flow in any direction. In one embodiment, the DNN may be a CNN.

[0138] A CNN may include an input layer, an output layer, and a hidden layer between the input layer and the output layer. The hidden layer may include a convolution layer (e.g., used in an encoder) that performs convolution (e.g., two-dimensional (2D) convolution). In one embodiment, the 2D convolution performed in the convolution layer is between a convolution kernel (also referred to as a filter or channel, e.g., a 5×5 matrix) and an input signal of the convolution layer (e.g., a 2D matrix, e.g., a 2D image, a 256×256 matrix). In various examples, the dimension of the convolution kernel (e.g., 5×5) is smaller than the dimension of the input signal (e.g., 256×256). Therefore, the portion of the input signal (e.g., a 256×256 matrix) covered by the convolution kernel (e.g., a 5×5 area) is smaller than the area of ​​the input signal (e.g., a 256×256 area), and can therefore be referred to as a receptive field in a corresponding node in the next layer.

[0139] During convolution, the dot product of the convolution kernel and the corresponding receptive field in the input signal is calculated. Therefore, each element of the convolution kernel is a weight applied to the corresponding sample in the receptive field, and the convolution kernel therefore includes weights. For example, a convolution kernel represented by a 5×5 matrix has 25 weights. In some examples, a bias is applied to the output signal of the convolution layer, and the output signal is based on the sum of the dot product and the bias.

[0140] The convolution kernel can be moved along the input signal (e.g., 2D matrix) by a size called stride, so the convolution operation generates a feature map or activation map (e.g., another 2D matrix), which in turn contributes to the input of the next layer in the CNN. For example, the input signal is a 2D image with 256×256 samples, and the stride is 2 samples (e.g., stride 2). For a stride of 2, the convolution kernel is moved by 2 samples along the X direction (e.g., horizontal direction) and / or the Y direction (e.g., vertical direction).

[0141] Multiple convolution kernels can be applied to the input signal in the same convolution layer to generate multiple feature maps, respectively, where each feature map can represent a specific feature of the input signal. In general, a convolution layer with N channels (i.e., N convolution kernels) (each convolution kernel has M×M samples and a stride of S) can be specified as Conv:MxM cN sS. For example, a convolution layer with 192 channels (each convolution kernel has 5×5 samples and a stride of 2) is specified as Conv:5x5c192s2. The hidden layer may include a deconvolution layer (e.g., used in a decoder) that performs deconvolution (e.g., 2D deconvolution). Deconvolution is the inverse operation of convolution. A deconvolution layer with 192 channels (each deconvolution kernel has 5×5 samples and a stride of 2) is specified as DeConv:5x5c192 s2.

[0142] In various embodiments, CNN has the following benefits. The number of learnable parameters (i.e., parameters to be trained) in CNN can be significantly smaller than the number of learnable parameters in DNN (e.g., feedforward DNN). In CNN, a relatively large number of nodes can share the same filter (e.g., the same weight) and the same bias (if bias is used), so memory usage can be reduced because a single bias and a single weight vector can be used on all receptive fields that share the same filter. For example, for an input signal with 100×100 samples, a convolutional layer with a convolution kernel of 5×5 samples has 25 learnable parameters (e.g., weights). If a bias is used, one channel uses 26 learnable parameters (e.g., 25 weights and one bias). If the convolutional layer has N channels, the total learnable parameters are 26xN. On the other hand, for a fully connected layer in a DNN, 100x100 (i.e., 10,000) weights are used for each node in the next layer. If the next layer has L nodes, the total learnable parameters are 10,000xL.

[0143] CNN may also include one or more other layers, such as pooling layers, fully connected layers that can connect each node in one layer to each node in another layer, normalization layers, etc. The layers in a CNN may be arranged in any suitable order and in any suitable architecture (e.g., feed-forward architecture, recursive architecture). In one example, the convolutional layer is followed by other layers, such as pooling layers, fully connected layers, normalization layers, etc.

[0144] Pooling layers can be used to reduce the dimensionality of data by combining the outputs of multiple nodes from one layer into a single node in the next layer. The pooling operation of a pooling layer that takes a feature map as input is described below. The description can be appropriately applied to other input signals. The feature map can be divided into sub-regions (e.g., rectangular sub-regions), and the features in the corresponding sub-regions can be independently downsampled (or pooled) into a single value, for example, by taking the average in average pooling or taking the maximum value in maximum pooling.

[0145] The pooling layer can perform pooling, such as local pooling, global pooling, maximum pooling, average pooling, etc. Pooling is a form of nonlinear downsampling. Local pooling combines a small number of nodes in the feature map (e.g., a local node cluster, such as 2×2 nodes). For example, global pooling can combine all nodes of the feature map.

[0146] Pooling layers can reduce the size of representations, thereby reducing the number of parameters, memory usage, and computation in CNNs. In one example, a pooling layer is inserted between consecutive convolutional layers in a CNN. In one example, the pooling layer is followed by an activation function, such as a rectified linear unit (ReLU) layer. In one example, the pooling layer is omitted between consecutive convolutional layers in a CNN.

[0147] The normalization layer can be ReLU, leaky ReLU, generalized division normalization (Generalized DivisiveNormalization, GDN for short), inverse GDN (IGDN), etc. ReLU can apply a non-saturated activation function to remove negative values ​​from the input signal (e.g., feature map) by setting negative values ​​to zero. For negative values, the leaky ReLU can have a small slope (e.g., 0.01) instead of a flat slope (e.g., 0). Therefore, if the value x is greater than 0, the output from the leaky ReLU is x. Otherwise, the output from the leaky ReLU is the value x multiplied by a small slope (e.g., 0.01). In one example, the slope is determined before training and is therefore not learned during training.

[0148] Fig. 9 An exemplary NIC framework (900) (e.g., NIC system) according to an embodiment of the present disclosure is shown. The NIC framework (900) can be based on a neural network, such as a DNN and / or a CNN. The NIC framework (900) can be used to compress (e.g., encode) an image and decompress (e.g., decode or reconstruct) a compressed image (e.g., an encoded image). The NIC framework (900) can include two sub-neural networks implemented using a neural network, namely a first sub-neural network (NN for short) (951) and a second sub-NN (952).

[0149] The first sub-NN (951) can be similar to an autoencoder and can be trained to generate a compressed image of the input image x And decompress the compressed image To obtain the reconstructed image The first sub-NN (951) may include a plurality of components (or modules), for example, a main encoder neural network (or main encoder network) (911), a quantizer (912), an entropy encoder (913), an entropy decoder (914), and a main decoder neural network (or main decoder network) (915). Fig. 9 , the main encoder network (911) can generate a potential or latent representation y from an input image x (e.g., an image to be compressed or encoded). In one example, the main encoder network (911) is implemented using a CNN. The relationship between the potential representation y and the input image x can be described using Equation 2.

[0150] y=f 1 (x;θ 1 )Equation 2

[0151] Among them, the parameter θ 1Represents parameters, e.g., weights and biases used in the convolution kernels in the main encoder network (911) (if biases are used in the main encoder network (911)).

[0152] The latent representation y may be quantized using a quantizer (912) to generate a quantized latent The potential of this quantification may be compressed, for example, using lossless compression by an entropy encoder (913) to generate a compressed image (eg, an encoded image) (931), which is a compressed representation of the input image x The entropy encoder (913) may use an entropy coding technique, such as Huffman coding, arithmetic coding, etc. In one example, the entropy encoder (913) uses arithmetic coding and is an arithmetic encoder. In one example, the encoded image (931) is transmitted in an encoded bit stream.

[0153] The coded image (931) can be decompressed (e.g., entropy decoded) by an entropy decoder (914) to generate an output. The entropy decoder (914) can use an entropy decoding technique corresponding to the entropy encoding technique used in the entropy encoder (913), such as Huffman decoding, arithmetic decoding, etc. In one example, the entropy decoder (914) uses arithmetic decoding and is an arithmetic decoder. In one example, lossless compression is used in the entropy encoder (913), lossless decompression is used in the entropy decoder (914), and noise such as that generated by the transmission of the coded image (931) can be ignored, and the output from the entropy decoder (914) is a quantized potential.

[0154] The main decoder network (915) can decode the quantized latent To generate the reconstructed image In one example, the main decoder network (915) is implemented using a CNN. Reconstructed Image (i.e., the output of the main decoder network (915)) and the quantized potential The relationship between (i.e., the input of the main decoder network (915)) can be described using Equation 3.

[0155]

[0156] Among them, the parameter θ 2 represents parameters, e.g., weights and biases used in the convolution kernels in the main decoder network (915) (if biases are used in the main decoder network (915)). Thus, the first sub-NN (951) can compress (e.g., encode) the input image x to obtain an encoded image (931) and decompress (e.g., decode) the encoded image (931) to obtain a reconstructed image Due to the quantization loss introduced by the quantizer (912), the reconstructed image x may be different from the input image x.

[0157] The second sub-NN (952) can be used for entropy coding in the quantization potential The entropy model (e.g., a prior probability model) is learned on the context model. Therefore, the entropy model can be a conditional entropy model, for example, a Gaussian mixture model (GMM), a Gaussian scale model (GSM) depending on the input image x. The second sub-NN (952) can include a context model NN (916), an entropy parameter NN (917), a super encoder (921), a quantizer (922), an entropy encoder (923), an entropy decoder (924), and a super decoder (925). The entropy model used in the context model NN (916) can be a latent image (e.g., a quantized latent image). ) autoregressive model. In one example, the super encoder (921), quantizer (922), entropy encoder (923), entropy decoder (924) and super decoder (925) form a super neural network (e.g., super NN). The super neural network can represent information useful for correcting context-based predictions. Data from the context model NN (916) and the super neural network can be combined through entropy parameters NN (917). The entropy parameters NN (917) can generate parameters, such as mean and scale parameters for entropy models such as conditional Gaussian entropy models (e.g., GMM).

[0158] refer to Fig. 9 , at the encoder side, the quantized potential from the quantizer (912) is fed back to the context model NN (916). On the decoder side, the quantized potential from the entropy decoder (914) The context model NN (916) can be implemented using a neural network such as CNN. The context model NN (916) can be based on the context Generate output o cm,i , which outputs a quantized potential available to the context model NN (916). Context The output of the context model NN (916) may include a previously quantized potential at the encoder side or a previously entropy decoded quantized potential at the decoder side. cm,i and input (e.g., ) can be described using Equation 4.

[0159]

[0160] Among them, the parameter θ 3 Represents parameters, e.g., weights and biases used in the convolution kernels in the context model NN (916) (if biases are used in the context model NN (916)).

[0161] Output o from context model NN (916) cm,i and the output o from the super decoder (925) hc is fed back to the entropy parameter NN (917) to generate the output o ep The entropy parameter NN (917) may be implemented using a neural network such as a CNN. The output of the entropy parameter NN (917) is ep and input (for example, o cm,i and hc ) can be described using Equation 5.

[0162] o ep =f 4 (o cm,i , o hc θ 4 )Equation 5

[0163] Among them, the parameter θ 4 represents the parameters, e.g., weights and biases used in the convolution kernel of the entropy parameters NN (917) (if biases are used in the entropy parameters NN (917)). The output o of the entropy parameters NN (917) ep can be used to determine (eg, adjust) an entropy model, and the adjusted entropy model can depend on the input image x, for example, via the output o from the super decoder (925). hc In one example, the output o ep Includes parameters for tuning entropy models (e.g., GMM), such as mean and scale parameters. Fig. 9 , the entropy encoder (913) and the entropy decoder (914) can use an entropy model (e.g., a conditional entropy model) in entropy encoding and entropy decoding, respectively.

[0164] The second sub-NN (952) can be described as follows. Potential y can be fed back into the super encoder (921) to generate a super potential z. In one example, the super encoder (921) is implemented using a neural network such as a CNN. The relationship between super potential z and potential y can be described using Equation 6.

[0165] z=f 5 (y;θ 5 ) Equation 6

[0166] Among them, the parameter θ 5Represents parameters, e.g., weights and biases used in the convolution kernels of the super encoder (921) (if biases are used in the super encoder (921)).

[0167] The quantizer (922) quantizes the super potential z to generate a quantized potential The potential for quantification can be compressed For example, side information, such as coded bits (932) from a super neural network, is generated by an entropy encoder (923) using lossless compression. The entropy encoder (923) can use entropy coding techniques, such as Huffman coding, arithmetic coding, etc. In one example, the entropy encoder (923) uses arithmetic coding and is an arithmetic encoder. In one example, side information such as coded bits (932) can be transmitted in a coded bitstream, such as with a coded image (931).

[0168] The side information, such as the coded bits (932), can be decompressed (e.g., entropy decoded) by an entropy decoder (924) to generate an output. The entropy decoder (924) can use an entropy decoding technique, such as Huffman decoding, arithmetic decoding, etc. In one example, the entropy decoder (924) uses arithmetic decoding and is an arithmetic decoder. In one example, lossless compression is used in the entropy encoder (923), lossless decompression is used in the entropy decoder (924), and noise, such as caused by the transmission of the side information, can be ignored. The output from the entropy decoder (924) can be a quantized potential. The super decoder (925) can decode the quantized potential To generate the output to hc Output to hc and quantify the potential The relationship between can be described using Equation 7.

[0169]

[0170] Among them, the parameter θ 6 Represents parameters, e.g., weights and biases used in the convolution kernels of the super decoder (925) (if biases are used in the super decoder (925)).

[0171] As described above, compressed or encoded bits (932) can be added to the encoded bitstream as side information, which enables the entropy decoder (914) to use a conditional entropy model. Thus, the entropy model can be image-dependent and spatially adaptive, and thus it can be more accurate than a fixed entropy model.

[0172] The NIC framework (900) may be modified appropriately, for example, by omitting Fig. 9 Modify one or more components shown in Fig. 9 One or more components shown in, and / or including Fig. 9 In one example, the NIC framework using the fixed entropy model includes the first sub-NN (951) and does not include the second sub-NN (952). In one example, the NIC framework includes components other than the entropy encoder (923) and the entropy decoder (924) in the NIC framework (900).

[0173] In one embodiment, Fig. 9 One or more components in the illustrated NIC framework (900) are implemented using a neural network (e.g., a CNN). Each NN-based component (e.g., a main encoder network (911), a main decoder network (915), a context model NN (916), an entropy parameter NN (917), a super encoder (921), or a super decoder (925)) in a NIC framework (e.g., the NIC framework (900)) can include any suitable architecture (e.g., having any suitable combination of layers), include any suitable type of parameters (e.g., weights, biases, a combination of weights and biases, and / or the like), and include any suitable number of parameters.

[0174] In one embodiment, the main encoder network (911), the main decoder network (915), the context model NN (916), the entropy parameter NN (917), the super encoder (921) and the super decoder (925) are implemented using corresponding CNNs.

[0175] Fig.10 An exemplary CNN of the main encoder network (911) according to an embodiment of the present disclosure is shown. For example, the main encoder network (911) includes four groups of layers, where each group of layers includes a convolutional layer 5x5 c192 s2 followed by a GDN layer. Fig.10 Additional layers may be added to the main encoder network (911).

[0176] Fig.11 An exemplary CNN of the main decoder network (915) according to an embodiment of the present disclosure is shown. For example, the main decoder network (915) includes three groups of layers, where each group of layers includes a deconvolution layer 5x5c192 s2 followed by an IGDN layer. In addition, the three groups of layers are followed by a deconvolution layer 5x5 c3 s2 followed by an IGDN layer. The above examples may be modified and / or omitted. Fig.11 Additional layers may be added to the main decoder network (915).

[0177] Fig.12An exemplary CNN of a super encoder (921) according to an embodiment of the present disclosure is shown. For example, the super encoder (921) includes a convolutional layer 3x3 c192 s1, followed by a leaky ReLU, a convolutional layer 5x5 c192 s2, followed by a leaky ReLU, and a convolutional layer 5x5 c192 s2. The following may be modified and / or omitted. Fig.12 Additional layers may be added to the super encoder (921).

[0178] Fig.13 An exemplary CNN of a super decoder (925) according to an embodiment of the present disclosure is shown. For example, the super decoder (925) includes a deconvolution layer 5x5 c192 s2, followed by a leaky ReLU, a convolution layer 5x5 c288 s2, followed by a leaky ReLU, and a convolution layer 3x3 c384 s1. The above may be modified and / or omitted. Fig.13 Additional layers may be added to the super decoder (925).

[0179] Fig.14 An exemplary CNN of the context model NN (916) according to an embodiment of the present disclosure is shown. For example, the context model NN (916) includes a masked convolution 5x5c384 s1 for context prediction, so the context in Equation 4 Include limited context (e.g., 5×5 convolution kernel). Can be modified Fig.14 Additional layers may be added to the context model NN (916).

[0180] Fig.15 An exemplary CNN of an entropy parameter NN (917) according to an embodiment of the present disclosure is shown. For example, the entropy parameter NN (917) includes a convolution layer 1x1 c640 s1, followed by a leaky ReLU, a convolution layer 1x1 c512 s1, followed by a leaky ReLU, and a convolution layer 1x1 c384 s1. The following may be modified and / or omitted: Fig.15 Additional layers may be added to the entropy parameter NN (917).

[0181] The NIC framework (900) can be implemented using CNN, as shown in Figure 10-15As described. The NIC framework (900) can be suitably adapted so that one or more components in the NIC framework (900) (e.g., the main encoder network (911), the main decoder network (915), the context model NN (916), the entropy parameter NN (917), the super encoder (921) and / or the super decoder (925)) are implemented using any suitable type of neural network (e.g., a CNN-based or non-CNN-based neural network). One or more other components of the NIC framework (900) can be implemented using a neural network.

[0182] The NIC framework (900) including a neural network (e.g., CNN) can be trained to learn parameters used in the neural network. For example, when using CNN, the parameters of θ and θ can be learned during the training process. 1 -θ 6 Parameters represented, for example, weights and biases used in the convolution kernels in the main encoder network (911) (if biases are used in the main encoder network (911)), weights and biases used in the convolution kernels in the main decoder network (915) (if biases are used in the main decoder network (915)), weights and biases used in the convolution kernels in the super encoder (921) (if biases are used in the super encoder (921)), weights and biases used in the convolution kernels in the super decoder (925) (if biases are used in the super decoder (925)), weights and biases used in the convolution kernels in the context model NN (916) (if biases are used in the context model NN (916)), and weights and biases used in the convolution kernels in the entropy parameter NN (917) (if biases are used in the entropy parameter NN (917)).

[0183] In one example, reference Fig.10 , the main encoder network (911) includes four convolutional layers, where each convolutional layer has a 5×5 convolution kernel and 192 channels. Therefore, the number of weights used in the convolution kernels in the main encoder network (911) is 19200 (i.e., 4x5x5x192). The parameters used in the main encoder network (911) include 19200 weights and an optional bias. Additional parameters may be included when biases and / or additional NNs are used in the main encoder network (911).

[0184] refer to Fig. 9, the NIC framework (900) includes at least one component or module built on a neural network. The at least one component may include one or more of a main encoder network (911), a main decoder network (915), a super encoder (921), a super decoder (925), a context model NN (916), and an entropy parameter NN (917). The at least one component can be trained separately. In one example, the training process is used to learn the parameters of each component separately. The at least one component can be trained together as a group. In one example, the training process is used to jointly learn the parameters of a subset of at least one component. In one example, the training process is used to learn the parameters of all at least one component, and is therefore called E2E optimization.

[0185] During the training process of one or more components in the NIC framework (900), the weights (or weight coefficients) of the one or more components may be initialized. In one example, the weights are initialized based on a pre-trained corresponding neural network model (e.g., a DNN model, a CNN model). In one example, the weights are initialized by setting the weights to random numbers.

[0186] For example, after initializing the weights, a set of training images can be used to train one or more components. The set of training images can include any suitable images of any suitable size. In some examples, the set of training images includes original images, natural images, computer-generated images, etc. in the spatial domain. In some examples, the set of training images includes residual images with residual data in the spatial domain. The residual data can be calculated by a residual calculator (e.g., residual calculator (723)). In some examples, the training images in the set of training images (e.g., original images and / or residual images including residual data) can be divided into blocks of suitable size, and these blocks and / or images can be used to train a neural network in the NIC framework. Therefore, the original images, residual images, blocks from the original images, and / or blocks from the residual images can be used to train a neural network in the NIC framework.

[0187] For the sake of brevity, the training process is described below using training images as an example. The description can be applied appropriately to training blocks. A training image t in the set of training images can be obtained by Fig. 9 The encoding process in , to generate a compressed representation (e.g., coded information, such as a bitstream). The coded information can be obtained by Fig. 9 The decoding process described in the above is used to calculate and reconstruct the reconstructed image

[0188] For the NIC framework (900), two competing objectives, e.g., reconstruction quality and bit consumption, can be balanced. Quality loss function (e.g., distortion or distortion loss) Can be used to indicate reconstruction quality, e.g., reconstruction (e.g., reconstructed image ) and the difference between the original image (e.g., training image t). The rate (or rate loss) R can be used to indicate the bit consumption of the compressed representation. In an example, the rate loss R also includes side information, such as that used in determining the context model.

[0189] For neural image compression, a differentiable approximation of quantization can be used in E2E optimization. In various examples, during training of neural network-based image compression, noise injection is used to simulate quantization, so that quantization is simulated by noise injection rather than being performed by a quantizer (e.g., quantizer (912)). Therefore, training with noise injection can variably approximate the quantization error. A bits per pixel (BPP) estimator can be used to simulate an entropy encoder, so that entropy encoding is simulated by the BPP estimator rather than being performed by an entropy encoder (e.g., (913)) and an entropy decoder (e.g., (914)). Therefore, for example, during training, the rate loss R in the loss function L shown in Equation 1 can be estimated based on noise injection and the BPP estimator. In general, a higher rate R can allow lower distortion D, while a lower rate R can result in higher distortion D. The trade-off hyperparameter λ in Equation 1 can be used to optimize a common RD loss L, where L can be optimized as the sum of λD and R. The training process may be used to adjust parameters of one or more components (e.g., the main encoder network (911), the main decoder network (915)) in the NIC framework (900) so that the common RD loss L is minimized or optimized.

[0190] Various models can be used to determine the distortion loss D and the rate loss R, thereby determining the common RD loss L in Equation 1. In one example, the distortion loss It is expressed as Peak Signal-to-Noise Ratio (PSNR), which is a metric based on mean square error, multiscale structural similarity (MS-SSIM) quality index, and a weighted combination of PSNR and MS-SSIM.

[0191] In one example, the goal of the training process is to train an encoding neural network (e.g., encoding DNN), e.g., a video encoder to be used on the encoder side, and to train a decoding neural network (e.g., decoding DNN), e.g., a video decoder to be used on the decoder side. Fig. 9, the encoding neural network may include a main encoder network (911), a super encoder (921), a super decoder (925), a context model NN (916), and an entropy parameter NN (917). The decoding neural network may include a main decoder network (915), a super decoder (925), a context model NN (916), and an entropy parameter NN (917). The video encoder and / or video decoder may include other components based on NN and / or not based on NN.

[0192] The NIC framework (e.g., NIC framework (900)) can be trained in an E2E manner. In one example, the encoding neural network and the decoding neural network are jointly updated in an E2E manner based on back-propagation gradients during training.

[0193] After the parameters of the neural network of the NIC framework (900) are trained, one or more components in the NIC framework (900) can be used to encode and / or decode an image. In one embodiment, on the encoder side, the video encoder is configured to encode the input image x into an encoded image (931) to be transmitted in a bitstream. The video encoder may include multiple components in the NIC framework (900). In one embodiment, on the decoder side, the corresponding video decoder is configured to decode the encoded image (931) in the bitstream into a reconstructed image The video decoder may include multiple components in the NIC framework (900).

[0194] In one example, for example, when content-adaptive online training is employed, the video encoder includes all components in the NIC framework (900).

[0195] Fig.16A An exemplary video encoder (1600A) according to an embodiment of the present disclosure is shown. The video encoder (1600A) includes a reference Fig. 9 The main encoder network (911), quantizer (912), entropy encoder (913) and second sub-NN (952) described herein are omitted in detail for the sake of brevity. Fig. 16B An exemplary video decoder (1600B) according to an embodiment of the present disclosure is shown. The video decoder (1600B) may correspond to the video encoder (1600A). The video decoder (1600B) may include a main decoder network (915), an entropy decoder (914), a context model NN (916), an entropy parameter NN (917), an entropy decoder (924), and a super decoder (925). Figures 16A-16BOn the encoder side, the video encoder (1600A) can generate coded images (931) and coded bits (932) to be transmitted in a bitstream. On the decoder side, the video decoder (1600B) can receive and decode the coded images (931) and coded bits (932).

[0196] Figure 17-18 An exemplary video encoder (1700) and a corresponding video decoder (1800) according to an embodiment of the present disclosure are shown respectively. Fig.17 , the encoder (1700) includes a main encoder network (911), a quantizer (912) and an entropy encoder (913). Fig. 9 Describes an example of a main encoder network (911), a quantizer (912), and an entropy encoder (913). Fig.18 , the video decoder (1800) includes a main decoder network (915) and an entropy decoder (914). Fig. 9 Describes an example of a main decoder network (915) and an entropy decoder (914). Fig.17 and 18 , the video encoder (1700) can generate a coded image (931) to be transmitted in a bitstream. The video decoder (1800) can receive and decode the coded image (931).

[0197] As described above, the NIC framework (900) including a video encoder and a video decoder can be trained based on images and / or blocks in the set of training images. In some examples, the input image to be compressed (e.g., encoded) and / or transmitted has properties that are significantly different from the set of training images. Therefore, directly encoding and decoding the input image using a video encoder and a video decoder trained based on the set of training images, respectively, will result in a suboptimal or relatively poor RD loss L (e.g., relatively large distortion and / or relatively large bit rate). Aspects of the present disclosure include content-adaptive online training methods in NIC. Various content-adaptive online training processes can be used to improve the RD loss L.

[0198] The NIC framework (900), video encoder, and video decoder trained by the set of training images may be referred to as a pre-trained NIC framework (900), a pre-trained video encoder, and a pre-trained video decoder, respectively. The parameters in the pre-trained NIC framework (900), the pre-trained video encoder, and the pre-trained video decoder are referred to as NIC pre-trained parameters, encoder pre-trained parameters, and decoder pre-trained parameters, respectively.

[0199] In one embodiment, a NN-based training process is applied to iteratively update a feature representation of an input image (e.g., an image to be compressed and / or transmitted) to obtain an updated feature representation to improve the RD loss L. When the updated feature representation is encoded and decoded using a pre-trained video encoder and a pre-trained video decoder trained based on the set of training images, respectively, a final RD loss L corresponding to the updated feature representation is obtained, and when the feature representation is encoded and decoded using the pre-trained video encoder and the pre-trained video decoder, respectively, it is less than the initial RD loss L. The NN-based training process that updates the feature representation instead of updating one or more pre-trained parameters in the NIC pre-trained parameters in the pre-trained NIC framework (900) can be referred to as a feature representation training process, for example, an online feature representation training process. Because the feature representation indicates the features of the input image, the feature representation training process can be referred to as a feature training process. The feature training process is a content-adaptive online training process that adapts to the input image to be compressed and is a learning-based image coding process based on the NN.

[0200] Fig.19A An example of a learning-based image encoding process (1900A) according to an embodiment of the present disclosure is shown. Learning-based image compression can be described as a two-step mapping process including an encoding mapping (or encoding process) and a decoding mapping (or decoding process). In the encoding mapping of the encoder, the original image x in the original space (e.g., high-dimensional space) 0 can be mapped to the feature representation f 0 . The feature representation f 0 can be mapped to a code with rate loss R(x 0 ) is the encoded representation (1910). The original image x 0 The coded representation (1910) may be mapped back to the reconstructed image in the original space in the decoder's decoding mapping. The coded representation (1910) may be transmitted in a bitstream, and a rate loss R(x) determined based on the coded representation (1910) may be determined based on the bitstream. 0 ) may indicate the bit consumption of the encoded image (1910). As described above, the reconstructed image The distortion loss is Instructions for reconstructing the image and the original image x 0 The difference between them, and the corresponding RD loss L1 can be obtained using Equation 1, as

[0201] refer to Fig.19A , feature representation f′ 0(e.g., alternative feature representations) can be obtained from the feature representation f by a feature training process 0 Using the same encoding and decoding mappings, the alternative feature representation f′ can be 0 Mapping to reconstructed image Reconstructing the image The distortion loss is Instructions for reconstructing the image and the original image x 0 The difference between them, and the corresponding RD loss L2 can be obtained using Equation 1, as Among them, R(x′ 0 ) is the alternative feature representation f′ 0 In one embodiment, a NN-based training process is used to iteratively train (e.g., update) the feature representation f 0 , to obtain the feature representation f′ 0 , so that L2 is reduced and smaller than L1, thereby achieving better video coding performance.

[0202] When L2 is smaller than L1, the distortion loss Can be less than distortion loss Therefore, based on the feature representation f′ 0 The reconstructed image obtained Compared with feature representation f 0 The reconstructed image obtained More precisely. In some examples, the distortion loss Greater than distortion loss However, the rate loss R(x′ 0 ) is less than the rate loss R(x 0 ), where when L2 is smaller than L1, the global minimum of RD loss can be achieved.

[0203] In one embodiment, after 0 During the encoding process from x to the encoded representation (e.g., (1910)), the original image x is modified in one or more stages 0 In some embodiments, an intermediate representation may be generated during the encoding process, for example, the original image x 0 The characteristic representation f 0 An intermediate representation may be replaced or updated to reduce the RD loss L, thereby improving the coding efficiency. In one example, the coding process is implemented based on NN (e.g., DNN, CNN), and one or more feature maps are generated in CNN. Feature representation f 0A feature map may be included and updated to reduce the RD loss L. For example, a feature map may include a 2D matrix, and the values ​​of multiple elements in the 2D matrix are updated to update a feature map. The multiple elements may include the entire 2D matrix, or one or more rows, or one or more columns, or one or more elements in the 2D matrix.

[0204] Return to reference Fig.10 , the main encoder network (911) includes a normalization layer (e.g., GDN) and multiple convolutional layers and multiple (e.g., 192) channels for each convolutional layer. In one example, the feature representation f 0 is the output of the main encoder network (911). In one example, the feature representation f 0 is the output of the convolutional layer in the main encoder network (911). In one example, the feature representation f 0 is the output of the GDN in the main encoder network (911). In one example, the main encoder network (911) includes multiple sub-NNs, for example, a first sub-NN and a second sub-NN. The feature representation f 0 Can be the output of one of multiple sub-NNs.

[0205] In the preprocessing module, the gradient of the RD loss L can be used to update the feature representation f of the input image 0 As described above, the model (e.g., RD ​​loss L including rate loss R and distortion loss D) can be differentiable, and the gradient can be back-propagated, for example, by replacing non-differentiable operations with differentiable operations (e.g., replacing quantization with noise injection). Therefore, the above optimization can be solved iteratively using gradient descent.

[0206] In order to distinguish the feature representation f before the feature training process 0 and the updated feature representation f′ after the feature training process 0 , the initial feature representation f before the feature training process 0 It is called the initial feature representation f 0 The updated feature representation f′ after the feature training process 0 It is called the final feature representation f′ 0 .

[0207] The above-mentioned learning-based image encoding process (e.g., feature training process) can be applied to the initial feature representation corresponding to the input image to be encoded to iteratively update the initial feature representation to the final feature representation, thereby reducing the common RD loss L. The feature training process can be used as a preprocessing step to improve the compression performance of the pre-trained E2E NIC compression method.

[0208] The feature training process may include multiple epochs (e.g., iterations), wherein the initial feature representation is updated in an iterative update process. In one embodiment, an initial feature representation is generated from an input image to be encoded, and an iterative update of one or more values ​​corresponding to one or more elements in the initial feature representation is performed during the feature training process until one of (i) a training loss (e.g., RD ​​loss L) corresponding to the final feature representation or (ii) the number of iterations of the iterative update satisfies a predetermined condition. As described above, reference Fig.19A , and the final feature representation (e.g., f′ 0 ) The corresponding training loss (e.g., RD ​​loss L) can be based on the bit consumption or rate loss (e.g., R(x′)) of the encoded representation (e.g., (1920)) of the final feature representation. 0 )) and the input image (e.g., x 0 ) and the reconstructed image of the final feature representation (e.g., x′ 0 ) to be sure.

[0209] When the training loss (e.g., RD ​​loss L) has flattened or is about to flatten, the feature training process (e.g., iterative update) can stop. In one example, the feature training process stops when the training loss is below a first threshold. In one example, the feature training process stops when the difference between two consecutive training losses is below a second threshold.

[0210] Two hyperparameters (e.g., step size and maximum number of steps) can be used together with a training loss function (e.g., RD ​​loss L) for the feature training process. The maximum number of iterations can be used as a threshold for terminating the maximum number of iterations of the feature training process. In one example, when the number of iterations reaches the maximum number of iterations, the feature training process stops.

[0211] refer to Fig.19A , during the encoding process of the feature training process, the final feature representation (e.g., f′) can be generated based on the final feature representation 0 ), for example, by encoding a NN and at least one training module, wherein the final feature representation (e.g., f′ 0 ) has been updated according to the number of iterations of the initial feature representation (for example, f 0 ) is updated. In the decoding process of the feature training process, the reconstructed image of the final feature representation can be generated by decoding the encoded representation of the NN based on the final feature representation (for example,

[0212] For example, after the feature training process, a coded image corresponding to the final feature representation with one or more updated values ​​can be generated by the video encoder. A coded bitstream including the coded image can also be generated. In one example, the coded image is transmitted in the coded bitstream.

[0213] The feature training process can be described in detail below. Fig. 9 A NIC framework such as the NIC framework (900) in can be used to perform iterative updates. Fig.19B An exemplary NIC framework (1900B) according to an embodiment of the present disclosure is shown. The NIC framework (1900B) may be used to implement the feature training process. The NIC framework (1900B) may include Fig. 9 The NIC framework (1900B) may include one or more of the main encoder network (911), the main decoder network (915), the super encoder (921), the super decoder (925), the context model NN (916), and the entropy parameter NN (917) described in the embodiment of the present invention. Fig. 9 The noise injection module (1912) of the quantizer (912) and the entropy coding simulator (1913) in the embodiment can simulate Fig. 9 The NIC framework (1900B) may include a feature update module (1950).

[0214] The input image to be compressed is fed back to the main encoder network (911), and an initial feature representation is generated by the main encoder network (911).

[0215] To illustrate the iterative update, the initial feature representation is denoted as f 0 , the final feature representation is denoted as f′ 0 The iterative update includes multiple iterations, and each iteration is labeled as the i-th iteration, where i is a positive integer from 1 to K, and K represents the number of iterations (e.g., the total number of iterations before the iterative update stops). For example, the final feature representation is generated in the K-th iteration. In the first iteration, the first feature representation is the initial feature representation f 0 .

[0216] The i-th iteration is described as follows. During the encoding process of the i-th iteration, noise can be added to the i-th feature representation by the noise injection module (1912) to generate the i-th first representation. An entropy coding simulator (1913) for simulating entropy coding can generate the i-th coded representation based on the i-th first representation.

[0217] During the decoding process of the i-th iteration, an i-th second representation can be generated from the i-th encoded representation by an entropy coding simulator (1913) that simulates entropy decoding. Based on the i-th second representation, an i-th reconstructed image can be generated by a decoding NN (e.g., a main decoder network (915)).

[0218] As described above, in the training process of NN-based image compression, noise injection can be used to simulate quantization to variably approximate the quantization error. An entropy coding simulator (1913) (e.g., a BPP estimator) can be used to simulate an entropy encoder. Therefore, for example, the rate loss R in the loss function L is estimated based on noise injection and an entropy coding estimator, as shown in equation 1 for the i-th iteration. In the i-th iteration, the training loss (e.g., RD ​​loss L) corresponding to the i-th feature representation can be obtained as the sum of the estimated rate loss R and distortion loss D. It can be determined whether (i) the training loss (e.g., RD ​​loss L) corresponding to the i-th feature representation or (ii) the number of iterations of the iterative update (e.g., the i-th) meets a predetermined condition. If (i) the training loss corresponding to the i-th feature representation or (ii) the number of iterations of the iterative update (e.g., the i-th) meets a predetermined condition, the iterative update stops and the i-th feature representation is determined as the final feature representation. The number of iterations is i.

[0219] If neither (i) the training loss of the ith feature representation nor (ii) the number of iterations of the iterative update (e.g., the ith time) satisfies a predetermined condition, then the adjustment of one or more values ​​in the ith feature representation may be determined, for example, by the feature update module (1950) based on a gradient (e.g., a gradient of the RD loss L relative to the value in the ith feature representation) and a step size. As described above, the one or more values ​​here correspond to the values ​​of one or more elements in the ith feature representation (e.g., one or more rows, one or more columns, a subset or a full set of elements in a 2D matrix). The (i+1)th feature representation may be generated by the feature update module (1950) based on the gradient and the step size. The iterative update continues to the (i+1)th iteration, and so on, until the training loss corresponding to the final feature representation or the number of iterations of the iterative update satisfies a predetermined condition.

[0220] According to an embodiment of the present disclosure, the input image is not directly updated in the iterative update. Instead, the initial feature representation of the input image is updated to the final feature representation, and the encoded representation is generated based on the final feature representation.

[0221] In some examples, in the i-th iteration, the entropy model determined based on the i-th feature representation using the sub-network (1952) is used as the context model. As described above, the sub-network (1952) is the same or similar to the second sub-network (952), except that the second noise injection module (1922) replaces the quantizer (922) and the second entropy coding simulator (1923) capable of simulating entropy coding and entropy decoding replaces the entropy encoder (923) and the entropy decoder (924). The i-th coded representation can be generated based on the i-th first representation with the determined context model. The determined context model depends on the i-th feature representation and is therefore feature-dependent. Therefore, the context model can be more accurate than a fixed entropy model.

[0222] refer to Fig.19B , additional components may be used in the encoding process between the main encoder network (911) and the noise injection module (1912) so that another type of feature representation may be generated. Iterative updates may be performed on another feature representation.

[0223] The step size may indicate the learning rate of the feature training process. The step size may be used in a gradient descent algorithm or in a back propagation calculation performed during the feature training process. Any suitable method may be used to determine the step size. In one embodiment, different step sizes are used in images (or feature representations) with different types of content to obtain optimal results. Different types may refer to different variances. In one example, the step size is determined based on the variance of the feature representation. For example, the step size of a feature representation with a high variance is greater than the step size of a feature representation with a low variance, where a high variance is greater than a low variance.

[0224] In one embodiment, a first step size may be used to run a certain number of iterations (e.g., 100). Then, a second step size (e.g., the first step size plus or minus a size increment) may be used to run a certain number of iterations. The results of the first and second step sizes are compared to determine the step size to be used. More than two step sizes may be tested to determine the best step size.

[0225] During the feature training process, the step size can vary. The step size can have an initial value at the beginning of the feature training process, and the initial value can be reduced (e.g., halved) in subsequent stages of the feature training process, for example, after a certain number of iterations, to achieve finer tuning. During the iterative feature training process, the step size or learning rate can be changed by a scheduler. The scheduler may include a parameter adjustment method for adjusting the step size. The scheduler may determine the value of the step size so that the step size may increase, decrease, or remain constant in multiple intervals. In one example, the learning rate is changed by the scheduler in each step. A single scheduler or multiple different schedulers may be used for different feature representations. Therefore, multiple final feature representations can be generated based on multiple schedulers, and one of the multiple final feature representations with better compression performance (e.g., smaller RD loss) can be selected.

[0226] As described above, with the final feature representation f′ having one or more updated values 0 The corresponding coded image can be generated by a video encoder, such as Fig.19C shown. Fig.19C An exemplary encoding process based on the NIC framework (900) according to an embodiment of the present disclosure is shown. Fig. 9 Describe the components in the NIC framework (900).

[0227] Before iterative updating, an initial feature representation is generated based on the input image. Therefore, after obtaining the final feature representation based on the iterative updating, some encoding components (e.g., the main encoder network (911) or a portion of the main encoder network (911)) may not be used to generate the encoded image (931) based on the final feature representation. Fig.19C , the final feature representation determined by the iterative update can be quantized by a quantizer into a quantized representation (912). A coded image can be generated based on the quantized representation (e.g., (931)). Fig.19C In the example shown, the initial feature representation is the output of the main encoder network (911), so the main encoder network (911) is not used to encode the encoded image (931) according to the final feature representation. In some examples, the main encoder network (911) may include multiple sub-NNs (e.g., a first sub-NN followed by a second sub-NN) or multiple convolutional layers. For example, the initial feature representation is the output of the first sub-NN in the main encoder network (911). In one example, the first sub-NN is not used to generate the encoded image (931). The second sub-NN is used to generate the encoded image (931) based on the final feature representation.

[0228] The quantized representation may be entropy encoded by an entropy encoder (913) into an encoded image (931). In one example, when the entropy encoder (913) is an arithmetic encoder, the entropy encoding includes arithmetic encoding.

[0229] In one example, as referenced Fig. 9 The context model is determined based on the final feature representation using the second sub-network (952). The quantized representation can be entropy encoded into the encoded image (931) based on the context model determined using the entropy encoder (913). The determined context model depends on the final feature representation and is therefore feature-dependent. Therefore, the context model can be more accurate than a fixed entropy model.

[0230] In one example, the encoded image (931) is transmitted in the encoded video bitstream. At the decoder side, the video decoder can obtain the reconstructed image of the final feature representation by decoding the encoded image (931). Fig. 9 As described above, the coded bits may be transmitted in a coded video bitstream (932).

[0231] The NIC framework used in the iterative update can include any type of neural network and use any neural network-based image compression method, such as the contextual super-optimal encoder-decoder framework (e.g., Fig. 9 The NIC framework shown in ), the scale-superoptimal encoder-decoder framework, the Gaussian mixture likelihood framework and variants of the Gaussian mixture likelihood framework, the RNN-based recursive compression method and variants of the RNN-based recursive compression method, etc.

[0232] As described above, various content-adaptive online training processes can be used to improve the RD loss L. For example, one or more pre-trained parameters used in the NIC framework can be trained based on one or more images to be compressed (e.g., encoded) and / or transmitted, and the content-adaptive online training of the one or more pre-trained parameters can be referred to as a parameter training process (e.g., an online parameter training process) or a fine-tuning process, as described below.

[0233] In some examples, one or more images to be compressed (e.g., encoded) and / or transmitted have significantly different properties from the set of training images. Therefore, encoding and decoding the one or more images using a video encoder and a video decoder trained based on the set of training images, respectively, will result in a relatively poor RD loss L (e.g., relatively large distortion and / or relatively large bit rate).

[0234] In order to distinguish between a training process based on the set of training images and a content-adaptive online training process based on one or more pre-trained parameters of one or more images to be compressed (e.g., encoded) and / or transmitted, the NIC framework (900), the video encoder, and the video decoder trained by the set of training images are respectively referred to as a pre-trained NIC framework (900), a pre-trained video encoder, and a pre-trained video decoder. The parameters in the pre-trained NIC framework (900), the pre-trained video encoder, or the pre-trained video decoder are respectively referred to as NIC pre-trained parameters, encoder pre-trained parameters, and decoder pre-trained parameters. In one example, the NIC pre-trained parameters include encoder pre-trained parameters and decoder pre-trained parameters. In one example, the encoder pre-trained parameters and the decoder pre-trained parameters do not overlap, wherein none of the encoder pre-trained parameters are included in the decoder pre-trained parameters. For example, the encoder pre-trained parameters in the video encoder (1700) (e.g., the pre-trained parameters in the main encoder network (911)) and the decoder pre-trained parameters in the video decoder (1800) (e.g., the pre-trained parameters in the main decoder network (915)) do not overlap. In one example, the encoder pre-trained parameters and the decoder pre-trained parameters overlap, wherein at least one encoder pre-trained parameter is included in the decoder pre-trained parameters. For example, the encoder pre-trained parameters (e.g., pre-trained parameters in the context model NN (916)) in the pre-trained video encoder (1600A) and the decoder pre-trained parameters (e.g., pre-trained parameters in the context model NN (916)) in the pre-trained video decoder (1600B) overlap. The NIC pre-trained parameters can be obtained based on blocks and / or images in the set of training images.

[0235] One or more of the NIC pre-trained parameters in the pre-trained NIC framework (900) may be further trained (e.g., fine-tuned) based on one or more images to be encoded and / or transmitted, wherein the one or more images may be different from the set of training images. The one or more pre-trained parameters used in the NIC pre-trained parameters may be fine-tuned by optimizing a common RD loss L based on the one or more images. The one or more pre-adjusted parameters that have been fine-tuned by the one or more images are referred to as one or more replacement parameters or one or more fine-tuning parameters. In one embodiment, after one or more of the pre-trained parameters in the NIC pre-trained parameters have been fine-tuned (e.g., replaced) by one or more replacement parameters, neural network update information is encoded into the bitstream to indicate the one or more replacement parameters or a subset of the one or more replacement parameters. In one example, the NIC framework (900) is updated (or fine-tuned), wherein the one or more pre-trained parameters are replaced by the one or more replacement parameters, respectively.

[0236] In the first case, the one or more pre-trained parameters include a first subset of the one or more pre-trained parameters and a second subset of the one or more pre-trained parameters. The one or more replacement parameters include a first subset of the one or more replacement parameters and a second subset of the one or more replacement parameters.

[0237] A first subset of one or more pre-trained parameters is used in a pre-trained video encoder and is replaced by a first subset of one or more replacement parameters, e.g., during a training process. Thus, the pre-trained video encoder is updated to an updated video encoder through the training process. The neural network update information may indicate a second subset of one or more replacement parameters that will replace the second subset of one or more replacement parameters. One or more images may be encoded using the updated video encoder and transmitted in a bitstream with the neural network update information.

[0238] On the decoder side, the second subset of the one or more pre-trained parameters is used in the pre-trained video decoder. In one embodiment, the pre-trained video decoder receives and decodes the neural network update information to determine the second subset of one or more replacement parameters. When the second subset of one or more pre-trained parameters in the pre-trained video decoder is replaced by the second subset of one or more replacement parameters, the pre-trained video decoder is updated to an updated video decoder. The updated video decoder can be used to decode the one or more encoded images.

[0239] Figures 16A-16B An example of the first case is shown. For example, one or more pre-trained parameters include N1 pre-trained parameters in the pre-trained context model NN (916) and N2 pre-trained parameters in the pre-trained main decoder network (915). Therefore, a first subset of one or more pre-trained parameters includes N1 pre-trained parameters, and a second subset of one or more pre-trained parameters is the same as the one or more pre-trained parameters. Therefore, the N1 pre-trained parameters in the pre-trained context model NN (916) can be replaced by replacement parameters corresponding to N1, so that the pre-trained video encoder (1600A) can be updated to an updated video encoder (1600A). The pre-trained context model NN (916) is also updated to an updated context model NN (916). On the decoder side, the N1 pre-trained parameters can be replaced by replacement parameters corresponding to N1, the N2 pre-trained parameters can be replaced by replacement parameters corresponding to N2, the pre-trained context model NN (916) is updated to an updated context model NN (916), and the pre-trained main decoder network (915) is updated to an updated main decoder network (915). Therefore, the pre-trained video decoder (1600B) can be updated to the updated video decoder (1600B).

[0240] In a second case, one or more pre-trained parameters are not used in the pre-trained video encoder on the encoder side. One or more pre-trained parameters are used in the pre-trained video decoder on the decoder side. Therefore, the pre-trained video encoder is not updated and continues to be the pre-trained video encoder after the training process. In one embodiment, the neural network update information indicates one or more replacement parameters. One or more images can be encoded using the pre-trained video encoder and transmitted in a bitstream with the neural network update information.

[0241] On the decoder side, the pre-trained video decoder can receive and decode the neural network update information to determine one or more replacement parameters. When one or more pre-trained parameters in the pre-trained video decoder are replaced by one or more replacement parameters, the pre-trained video decoder is updated to an updated video decoder. The updated video decoder can be used to decode one or more encoded images.

[0242] Figures 16A-16B An example of the second case is shown. For example, one or more pre-trained parameters include N2 pre-trained parameters in the pre-trained main decoder network (915). Therefore, one or more pre-trained parameters are not used in the pre-trained video encoder on the encoder side (e.g., the pre-trained video encoder (1600A)). Therefore, after the training process, the pre-trained video encoder (1600A) continues to be a pre-trained video encoder. On the decoder side, the N2 pre-trained parameters can be replaced by the replacement parameters corresponding to N2, which updates the pre-trained main decoder network (915) to the updated main decoder network (915). Therefore, the pre-trained video decoder (1600B) can be updated to the updated video decoder (1600B).

[0243] In a third case, one or more pre-trained parameters are used in a pre-trained video encoder and are replaced by one or more replacement parameters, for example, during a training process. Thus, through the training process, the pre-trained video encoder is updated to an updated video encoder. One or more images are encoded using the updated video encoder and transmitted in a bitstream. No neural network update information is encoded in the bitstream. At the decoder side, the pre-trained video decoder is not updated and remains a pre-trained video decoder. The pre-trained video decoder can be used to decode the one or more encoded images.

[0244] Figures 16A-16BAn example of the third case is shown. For example, one or more pre-trained parameters are in the pre-trained master encoder network (911). Therefore, one or more pre-trained parameters in the pre-trained master encoder network (911) can be replaced by one or more replacement parameters, so that the pre-trained video encoder (1600A) can be updated to the updated video encoder (1600A). The pre-trained master encoder network (911) is also updated to the updated master encoder network (911). On the decoder side, the pre-trained video decoder (1600B) is not updated.

[0245] In various examples as described in the first, second, and third scenarios, video decoding may be performed by pre-trained decoders with different capabilities, including decoders with and without the ability to update pre-trained parameters.

[0246] In one example, compression performance can be improved by encoding one or more images with an updated video encoder and / or an updated video decoder compared to encoding the one or more images with a pre-trained video encoder and a pre-trained video decoder. Thus, a content-adaptive online training method can be used to adapt a pre-trained NIC framework (e.g., pre-trained NIC framework (900)) to target image content (e.g., one or more images to be transmitted), thereby fine-tuning the pre-trained NIC framework. Thus, a video encoder on the encoder side and / or a video decoder on the decoder side can be updated.

[0247] The content-adaptive online training method can be used as a preprocessing step (e.g., a pre-encoding step) to improve the compression performance of the pre-trained E2E NIC compression method.

[0248] In one embodiment, the one or more images include a single input image, and the fine-tuning process is performed using the single input image. The NIC framework (900) is trained and updated (e.g., fine-tuned) based on the single input image. An updated video encoder on the encoder side and / or an updated video decoder on the decoder side may be used to encode the single input image and optionally other input images. The neural network update information may be encoded into the bitstream along with the encoded single input image.

[0249] In one embodiment, the one or more images include multiple input images, and the fine-tuning process is performed using the multiple input images. The NIC framework (900) is trained and updated (e.g., fine-tuned) based on the multiple input images. The updated video encoder on the encoder side and / or the updated decoder on the decoder side can be used to encode the multiple input images and optionally other input images. The neural network update information can be encoded into the bitstream along with the encoded multiple input images.

[0250] The rate loss R may increase as the signaling of the neural network update information in the bitstream increases. When the one or more images include a single input image, the neural network update information is signaled for each encoded image, and a first increase in the rate loss R is used to indicate the increase in the rate loss R due to the signaling of the neural network update information for each image. When the one or more images include multiple input images, the neural network update information is signaled and shared by the multiple input images, and a second increase in the rate loss R is used to indicate the increase in the rate loss R due to the signaling of the neural network update information for each image. Because the neural network update information is shared by multiple input images, the second increase in the rate loss R may be less than the first increase in the rate loss R. Therefore, in some examples, it is advantageous to use multiple input images to fine-tune the NIC framework.

[0251] In one embodiment, the one or more pre-trained parameters to be updated are in one component of the pre-trained NIC framework (900). That is, the one component of the pre-trained NIC framework (900) is updated based on the one or more replacement parameters, and other components of the pre-trained NIC framework (900) are not updated.

[0252] This component can be a pre-trained context model NN (916), a pre-trained entropy parameter NN (917), a pre-trained main encoder network (911), a pre-trained main decoder network (915), a pre-trained super encoder (921) or a pre-trained super decoder (925). Depending on the updated component in the pre-trained NIC framework (900), the pre-trained video encoder and / or the pre-trained video decoder can be updated.

[0253] In one example, one or more pre-trained parameters to be updated are in the pre-trained context model NN (916), and the pre-trained context model NN (916) is updated without updating the remaining components, the main encoder network (911), the main decoder network (915), the super encoder (921), the entropy parameter NN (917) and the super decoder (925). In one example, the pre-trained video encoder on the encoder side and the pre-trained video decoder on the decoder side include the pre-trained context model NN (916), that is, the pre-trained video encoder and the pre-trained video decoder are updated.

[0254] In one example, the one or more pre-trained parameters to be updated are in the pre-trained super decoder (925), and the pre-trained super decoder (925) is updated without updating the remaining components, the main encoder network (911), the main decoder network (915), the context model NN (916), the entropy parameter NN (917) and the super encoder (921). That is, the pre-trained video encoder is not updated, but the pre-trained video decoder is updated.

[0255] In one embodiment, one or more pre-trained parameters to be updated are in multiple components of the pre-trained NIC framework (900). That is, multiple components of the pre-trained NIC framework (900) are updated based on one or more replacement parameters. In one example, multiple components of the pre-trained NIC framework (900) include all components configured with a neural network (e.g., DNN, CNN). In one example, multiple components of the pre-trained NIC framework (900) include CNN-based components: a pre-trained main encoder network (911), a pre-trained main decoder network (915), a pre-trained context model NN (916), a pre-trained entropy parameter NN (917), a pre-trained super encoder (921), and a pre-trained super decoder (925).

[0256] As described above, in one example, the one or more pre-trained parameters to be updated are in a pre-trained video encoder of a pre-trained NIC framework (900). In one example, the one or more pre-trained parameters to be updated are in a pre-trained video decoder of a NIC framework (900). In one example, the one or more pre-trained parameters to be updated are in a pre-trained video encoder and a pre-trained video decoder of a pre-trained NIC framework (900).

[0257] The NIC framework (900) may be based on a neural network, for example, one or more components in the NIC framework (900) may include a neural network, such as a CNN, a DNN, etc. As described above, the neural network may be specified by different types of parameters, such as weights, biases, etc. Each neural network-based component in the NIC framework (900) (e.g., a context model NN (916), an entropy parameter NN (917), a main encoder network (911), a main decoder network (915), a super encoder (921), or a super decoder (925)) may be configured with appropriate parameters, such as corresponding weights, biases, or a combination of weights and biases. When a CNN is used, the weights may include elements in a convolution kernel. One or more types of parameters may be used to specify a neural network. In one embodiment, one or more pre-trained parameters to be updated are bias terms, and only the bias terms are replaced by one or more replacement parameters. In one embodiment, one or more pre-trained parameters to be updated are weights, and only the weights are replaced by one or more replacement parameters. In one embodiment, one or more pre-trained parameters to be updated include weights and bias terms, and all pre-trained parameters including weights and bias terms are replaced by one or more replacement parameters. In one embodiment, other parameters may be used to specify the neural network and other parameters may be fine-tuned.

[0258] The fine-tuning process may include multiple iterations, wherein one or more pre-trained parameters are updated during the iterative fine-tuning process. The fine-tuning process may stop when the training loss is flat or about to be flat. In one example, the fine-tuning process stops when the training loss (e.g., RD ​​loss L) is below a first threshold. In one example, the fine-tuning process stops when the difference between two consecutive training losses is below a second threshold.

[0259] As described above in the feature training process, two hyperparameters (e.g., step size and maximum number of steps) can be used in the fine-tuning process together with the loss function (e.g., RD ​​loss L). The maximum number of iterations can be used as a threshold for the maximum number of iterations to terminate the fine-tuning process. In one example, the fine-tuning process stops when the number of iterations reaches the maximum number of iterations. The selection of step size during the feature training process is described above, and the selection of step size can be applicable to the image training process. For example, the step size can be determined based on the variance of the image used to update the NIC framework. At the end of the fine-tuning process, one or more updated parameters can be calculated for the corresponding one or more replacement parameters. In one embodiment, the one or more updated parameters are calculated as the difference between the one or more replacement parameters and the corresponding one or more pre-trained parameters. In one embodiment, the one or more updated parameters are respectively one or more replacement parameters.

[0260] In one embodiment, one or more updated parameters can be generated from one or more replacement parameters, for example, using some linear or non-linear transformation, and the one or more updated parameters are representative parameters generated based on the one or more replacement parameters. The one or more replacement parameters are converted into one or more updated parameters for better compression.

[0261] The first subset of the one or more update parameters corresponds to the first subset of the one or more replacement parameters, and the second subset of the one or more update parameters corresponds to the second subset of the one or more replacement parameters.

[0262] In one example, the one or more updated parameters may be compressed, for example, using LZMA2, which is a variant of the Lempel–Ziv–Markov chain algorithm (LZMA), the bzip2 algorithm, etc. In one example, compression may be omitted for the one or more updated parameters. In some embodiments, the one or more updated parameters or a second subset of the one or more updated parameters may be encoded into the bitstream as neural network update information, wherein the neural network update information indicates the one or more replacement parameters or a second subset of the one or more replacement parameters.

[0263] After the fine-tuning process, in some examples, a pre-trained video encoder on the encoder side can be updated or fine-tuned based on (i) a first subset of one or more replacement parameters or (ii) one or more replacement parameters. An input image (e.g., one of the one or more images used for the fine-tuning process) can be encoded into a bitstream using the updated video encoder. Thus, the bitstream includes the encoded image and the neural network update information.

[0264] If applicable, in one example, the neural network update information is decoded (e.g., decompressed) by the pre-trained video decoder to obtain one or more updated parameters or a second subset of one or more updated parameters. In one example, the one or more replacement parameters or a second subset of one or more replacement parameters can be obtained based on a relationship between the one or more updated parameters and the one or more replacement parameters. As described above, the pre-trained video decoder can be fine-tuned, and the decoded update video can be used to decode the encoded image.

[0265] The NIC framework can include any type of neural network and use any neural network-based image compression method, such as the contextual super-optimal encoder-decoder framework (e.g., Fig. 9 The NIC framework shown in ), the scale-superoptimal encoder-decoder framework, the Gaussian mixture likelihood framework and variants of the Gaussian mixture likelihood framework, the RNN-based recursive compression method and variants of the RNN-based recursive compression method, etc.

[0266] Compared with the related E2E image compression methods, the content adaptive online training method and device disclosed in the present invention have the following advantages. An adaptive online training mechanism is used to improve NIC coding efficiency. A flexible and general framework can be used to adapt to various types of pre-training frameworks and quality metrics. For example, certain pre-training parameters in various types of pre-training frameworks can be replaced by using online training of images to be encoded and transmitted.

[0267] The feature training process and the parameter training process can be combined in any order. In one embodiment, the feature training process and the parameter training process are applied in sequence. For example, the parameter training process is applied to update one or more pre-trained parameters in the NIC framework, thereby updating the video encoder and / or the video decoder. Subsequently, the feature training process is applied to update the initial feature representation using the updated NIC framework, the updated video encoder and / or the updated video decoder.

[0268] In one embodiment, the feature training process and the parameter training process are applied simultaneously. That is, one or more pre-trained parameters in the NIC framework and the initial feature representation are updated in the same iterative update. Iterative updates of (i) one or more values ​​of one or more elements in the initial feature representation and (ii) one or more pre-trained parameters in the NIC framework may be performed until the RD loss L corresponding to the final feature representation or the number of iterations of the iterative update satisfies a predetermined condition.

[0269] refer to Fig.19B In one example, a NN (e.g., a portion of a primary encoder network (911), a context model NN (916), and / or an entropy parameter NN (917)) configured with a first subset of one or more pre-trained parameters is updated, wherein the NN is used to generate an encoded representation based on a final feature representation. In a final iteration, an encoded representation corresponding to the final feature representation may be generated based on the final feature representation by updating the NN with replacement parameters of the first subset replacing the one or more pre-trained parameters. The replacement parameters have been updated based on the first subset of the one or more pre-trained parameters according to an iteration number of the iterative update.

[0270] refer to Fig.19C , an encoded image (e.g., (931)) can be generated from the final feature representation based on the NN updated by the replacement parameters.

[0271] In one example, a decoding NN (e.g., a primary decoder network (915)) configured with a second subset of one or more pre-trained parameters is updated with replacement parameters. The replacement parameters may be determined based on the second subset of one or more pre-trained parameters by an iteration number of the iterative update. Fig.19B , in a final iteration, a reconstructed image corresponding to the final feature representation may be generated by the decoding NN based on the encoded representation corresponding to the final feature representation, and the decoding NN may be updated with replacement parameters of a second subset of one or more pre-trained parameters in the decoding NN.

[0272] refer to Fig.19C , neural network update information indicating replacement parameters for a second subset of one or more pre-trained parameters can be generated. The neural network update information can be included in the encoded bitstream and transmitted. In addition, at the decoder side, the encoded image (931) can be decoded into a reconstructed image using a decoding NN (e.g., a main decoder network (915)) updated with replacement parameters for the second subset of one or more pre-trained parameters in the decoding NN.

[0273] The feature training process and parameter training process described in this disclosure may also be applied when the input includes one or more blocks instead of images. The feature training process and parameter training process described in this disclosure are applicable when the input image or block includes raw data or residual data.

[0274] Fig. 20 A flowchart outlining a process (2000) according to an embodiment of the present disclosure is shown. The process (2000) may be used to encode an image, e.g., an original image or a residual image. In various embodiments, the process (2000) is performed by a processing circuit, e.g., a processing circuit in a terminal device (310), (320), (330), and (340), a processing circuit that performs the functions of a NIC framework (e.g., NIC framework (900), (1900B)), a processing circuit that performs the functions of a video encoder (1600A) or (1700). In one example, the processing circuit performs a combination of (i) one of video encoders (403), (603), and (703) and (ii) the functions of one of video encoder (1600A) and video encoder (1700). In some embodiments, the process (2000) is implemented in software instructions, i.e., when the processing circuit executes the software instructions, the processing circuit performs the process (2000). The process starts at (S2001). In one example, the NIC framework is based on a neural network. In one example, the NIC framework is a reference Fig. 9 The NIC framework (900) or framework (1900B) described herein. The NIC framework may be based on a CNN, for example, Figure 10-15 As described above, the video encoder (e.g., (1600A) or (1700)) may include multiple components in the NIC framework. The neural network-based NIC framework is pre-trained, thereby pre-training the video encoder. The process (2000) proceeds to (S2010).

[0275] At (S2010), an initial feature representation may be generated from the input image to be encoded, as described above with reference to Fig.19B described.

[0276] At (S2020), iterative updates of the values ​​of the multiple elements in the initial feature representation may be performed until one of (i) the rate-distortion loss of the final feature representation or (ii) the number of iterations of the iterative update satisfies a predetermined condition, as described above with reference to Figures 19A-19B described.

[0277] The iterative update may include multiple iterations. The final feature representation has been updated based on the initial feature representation by the number of iterations of the iterative update. The final feature representation may include updated values ​​of multiple elements.

[0278] In a final iteration, an encoded representation corresponding to the final feature representation may be generated based on the final feature representation. A reconstructed image corresponding to the final feature representation may be generated based on the encoded representation corresponding to the final feature representation. A rate-distortion loss corresponding to the final feature representation may be determined based on a bit consumption (e.g., an estimated bit consumption) of the encoded representation corresponding to the final feature representation and a difference between the input image and the reconstructed image corresponding to the final feature representation.

[0279] At (S2030), a coded image corresponding to the final feature representation may be generated, for example, Fig.19C In one example, a coded bitstream may be generated to include a coded image.

[0280] The process (2000) may be adapted to various circumstances, and the steps in the process (2000) may be adjusted accordingly. One or more steps in the process (2000) may be modified, omitted, repeated, and / or combined. The process (2000) may be implemented in any suitable order. Additional steps may be added.

[0281] The embodiments of the present disclosure may be used alone or in any order. In addition, each of the method (or embodiment), encoder, and decoder may be implemented by a processing circuit (e.g., one or more processors or one or more integrated circuits). In one example, one or more processors may execute a program stored in a non-transitory computer-readable medium.

[0282] The present disclosure does not impose any restrictions on the methods used in the encoder (e.g., an encoder based on a neural network), the decoder (e.g., a decoder based on a neural network). The neural network used in the encoder, the decoder, etc. can be any suitable type of neural network, such as DNN, CNN, etc.

[0283] That is, the content-adaptive online training method of the present disclosure can adapt to different types of NIC frameworks, for example, different types of encoding DNNs, decoding DNNs, encoding CNNs, decoding CNNs, etc.

[0284] The above techniques may be implemented as computer software using computer-readable instructions and physically stored in one or more computer-readable media. Fig.21 A computer system (2100) suitable for implementing certain embodiments of the disclosed subject matter is shown.

[0285] Computer software may be encoded using any suitable machine code or computer language, which may be subjected to assembly, compilation, linking or similar mechanisms to create code comprising instructions that may be executed directly by one or more computer central processing units (CPUs), graphics processing units (GPUs), etc., or through interpretation, microcode execution, etc.

[0286] The instructions may be executed on various types of computers or components thereof, including, for example, personal computers, tablet computers, servers, smartphones, gaming devices, IoT devices, etc.

[0287] Fig.21 The components of the computer system (2100) shown in the example are exemplary in nature and are not intended to impose any limitation on the scope of use or functionality of computer software implementing embodiments of the present disclosure. The configuration of components should also not be interpreted as having any dependency or requirement on any one component or combination of components shown in the exemplary embodiment of the computer system (2100).

[0288] The computer system (2100) may include certain human-machine interface input devices. Such human-machine interface input devices may respond to input from one or more human users, such as tactile input (e.g., keystrokes, swipes, data glove movements), audio input (e.g., voice, clapping), visual input (e.g., gestures), olfactory input (not shown). The human-machine interface device may also be used to capture certain media that are not necessarily directly related to a person's conscious input, such as audio (e.g., voice, music, ambient sound), images (e.g., scanned images, photographic images obtained from a still image camera), and video (e.g., two-dimensional video, three-dimensional video including stereoscopic video).

[0289] Input human-machine interface devices may include one or more of the following (only one of each is depicted): keyboard (2101), mouse (2102), trackpad (2103), touch screen (2110), data gloves (not shown), joystick (2105), microphone (2106), scanner (2107), camera (2108).

[0290] The computer system (2100) may also include certain human-computer interface output devices. Such human-computer interface output devices may stimulate one or more senses of a human user, such as through tactile output, sound, light, and smell / taste. Such human-computer interface output devices may include tactile output devices (e.g., tactile feedback through a touch screen (2110), a data glove (not shown), or a joystick (2105), but there may also be tactile feedback devices that are not used as input devices), audio output devices (e.g., speakers (2109), headphones (not shown)), visual output devices (e.g., screens (2110), including CRT screens, LCD screens, plasma screens, OLED screens, each with or without touch screen input capabilities, each with or without tactile feedback capabilities - some of which are capable of outputting two-dimensional visual output or output in more than three dimensions, such as through stereo output; virtual reality glasses (not shown), holographic displays, and smoke boxes (not shown)) and printers (not shown).

[0291] The computer system (2100) may also include human-accessible storage devices and their associated media, such as optical media including CD / DVD ROM / RW (2120) with CD / DVD or similar media (2121), thumb drives (2122), removable hard drives or solid-state drives (2123), traditional magnetic media such as tapes and floppy disks (not shown), dedicated ROM / ASIC / PLD devices such as security dongles (not shown), and the like.

[0292] Those skilled in the art should also understand that the term "computer-readable media" used in connection with the presently disclosed subject matter does not include transmission media, carrier waves, or other transient signals.

[0293] The computer system (2100) may also include an interface (2154) to one or more communication networks (2155). The network may be, for example, wireless, wired, optical. The network may also be local, wide, metropolitan, vehicular and industrial, real-time, delay-tolerant, etc. Examples of networks include local area networks such as Ethernet, wireless LAN, cellular networks including GSM, 3G, 4G, 5G, LTE, etc., television wired or wireless wide area digital networks including cable television, satellite television and terrestrial broadcast television, vehicle and industrial networks including CANBus, etc. Some networks typically require an external network interface adapter connected to some common data port or peripheral bus (2149) (e.g., a USB port of the computer system (2100)); others are typically integrated into the core of the computer system (2100) by connecting to a system bus as described below (e.g., an Ethernet interface in a PC computer system or a cellular network interface in a smartphone computer system). Using any of these networks, the computer system (2100) can communicate with other entities. Such communication may be one-way, receive-only (e.g., broadcast television), one-way, send-only (e.g., CANbus to certain CANbus devices), or two-way, for example, to other computer systems using local or wide area digital networks. As described above, certain protocols and protocol stacks may be used on each of these networks and network interfaces.

[0294] The aforementioned human-machine interface device, human-accessible storage device, and network interface may be attached to the core (2140) of the computer system (2100).

[0295] The core (2140) may include one or more central processing units (CPUs) (2141), graphics processing units (GPUs) (2142), dedicated programmable processing units in the form of field programmable gate areas (FPGAs) (2143), hardware accelerators (2144) for certain tasks, graphics adapters (2150), etc. These devices, along with read-only memory (ROM) (2145), random-access memory (RAM) (2146), and internal large-capacity storage (2147) such as internal non-user accessible hard drives and SSDs, may be connected via a system bus (2148). In some computer systems, the system bus (2148) may be accessed in the form of one or more physical plugs to allow expansion of additional CPUs, GPUs, etc. Peripheral devices may be connected to the core's system bus (2148) directly or via a peripheral bus (2149). In one example, the screen (2110) may be connected to a graphics adapter (2150). The architecture of the peripheral bus includes PCI, USB, and the like.

[0296] The CPU (2141), GPU (2142), FPGA (2143) and accelerator (2144) can execute certain instructions, which can be combined to form the above-mentioned computer code. The computer code can be stored in ROM (2145) or RAM (2146). Transition data can also be stored in RAM (2146), while permanent data can be stored in, for example, internal mass storage (2147). Fast storage and retrieval of any storage device can be achieved by using a cache memory, which can be closely associated with one or more CPUs (2141), GPUs (2142), mass storage (2147), ROM (2145), RAM (2146), etc.

[0297] The computer readable medium may have computer codes for performing various computer-implemented operations. The media and computer codes may be specially designed and constructed for the purposes of the present disclosure, or may be of a type well known and available to those skilled in the art of computer software.

[0298] As an example and not limitation, a computer system (2100) having an architecture, in particular a core (2140), can provide functionality as a result of a processor (including a CPU, GPU, FPGA, accelerator, etc.) that executes software embedded in one or more tangible computer-readable media. Such a computer-readable medium can be a medium associated with a user-accessible mass storage as described above and certain memories of a core (2140) that are non-transitory, for example, a core internal mass storage (2147) or a ROM (2145). Software that implements various embodiments of the present disclosure can be stored in such a device and executed by the core (2140). Depending on specific needs, the computer-readable medium may include one or more storage devices or chips. The software can enable the core (2140) and in particular the processor therein (including a CPU, GPU, FPGA, etc.) to perform a specific process or a specific part of a specific process described herein, including defining a data structure stored in RAM (2146) and modifying such a data structure according to a software-defined process. In addition or as an alternative, the computer system may provide functionality as a result of logic hardwired or otherwise contained in a circuit (e.g., accelerator (2144)), which may replace software or operate in conjunction with software to perform a specific process or a specific portion of a specific process described herein. Where appropriate, references to software may include logic and vice versa. Where appropriate, references to computer-readable media may include circuits (e.g., integrated circuits (ICs)) storing the software to be executed, circuits containing logic for execution, or both. The present disclosure includes any suitable combination of hardware and software.

[0299] Appendix A: Abbreviations

[0300] JEM: joint exploration model

[0301] VVC: versatile video coding

[0302] BMS: Benchmark set

[0303] MV: Motion Vector

[0304] HEVC: High Efficiency Video Coding

[0305] SEI: Supplementary Enhancement Information

[0306] VUI: Video Usability Information

[0307] GOP: Groups of Pictures

[0308] TU: Transform Units

[0309] PU: Prediction Units

[0310] CTU: Coding Tree Units

[0311] CTB: Coding Tree Blocks

[0312] PB: Prediction Blocks

[0313] HRD: Hypothetical Reference Decoder

[0314] SNR: Signal Noise Ratio

[0315] CPU: Central Processing Units

[0316] GPU: Graphics Processing Units

[0317] CRT: Cathode Ray Tube

[0318] LCD: Liquid-Crystal Display

[0319] OLED: Organic Light-Emitting Diode

[0320] CD: Compact Disc

[0321] DVD: Digital Video Disc

[0322] ROM: Read-Only Memory

[0323] RAM: Random Access Memory

[0324] ASIC: Application-Specific Integrated Circuit

[0325] PLD: Programmable Logic Device

[0326] LAN: Local Area Network

[0327] GSM: Global System for Mobile communications

[0328] LTE: Long-Term Evolution

[0329] CANBus: Controller Area Network Bus

[0330] USB: Universal Serial Bus

[0331] PCI: Peripheral Component Interconnect

[0332] FPGA: Field Programmable Gate Areas

[0333] SSD: solid-state drive

[0334] IC:Integrated Circuit

[0335] CU: Coding Unit

[0336] NIC: Neural Image Compression

[0337] RD: Rate-Distortion

[0338] E2E: End to End

[0339] ANN: Artificial Neural Network

[0340] DNN: Deep Neural Network

[0341] CNN: Convolution Neural Network

[0342] Although the present disclosure has described several exemplary embodiments, there are changes, permutations, and various alternative equivalents that fall within the scope of the present disclosure. Therefore, it should be understood that those skilled in the art will be able to design many systems and methods that, although not explicitly shown or described herein, embody the principles of the present disclosure and are therefore within the spirit and scope of the present disclosure.

Claims

1. A method for video encoding, characterized in that include: generating an initial feature representation from an input image to be encoded; Iteratively updating the values ​​of multiple elements in the initial feature representation and at least one parameter in the neural network NN, wherein the iterative updating comprises: generating a first representation by adding noise to the initial feature representation, and updating at least one parameter in the NN based on the first representation, and generating, by the NN, an encoded representation based on the first representation, and generating a reconstructed image corresponding to the first representation based on the encoded representation, and updating at least one value in a row or a column of the initial feature representation based on the reconstructed image to generate (i) a next initial feature representation of a subsequent iteration of iterative updating or (ii) a final feature representation of the input image, and Generate an encoded image corresponding to the final feature representation, where (i) a rate-distortion loss corresponding to the final feature representation or (ii) the number of iterations of the iterative update satisfies one of the predetermined conditions, and The rate-distortion loss is determined based on a bit consumption of the encoded representation corresponding to the final feature representation and a difference between the input image and the reconstructed image corresponding to the final feature representation.

2. The method according to claim 1, characterized in that Generating the encoded representation comprises: generating an encoded representation based on simulated entropy encoding of said first representation, and Generating the reconstructed image comprises performing simulated entropy decoding on the encoded representation.

3. The method according to claim 2, characterized in that The generating the encoded representation according to the simulated entropy encoding of the first representation further comprises: determining a context model based on the first representation, and The encoded representation is generated based on simulated entropy encoding of the first representation with the determined context model.

4. The method according to claim 1, characterized in that: Generating the encoded image includes quantizing the final feature representation into a quantized representation, and generating the encoded image based on the quantized representation.

5. The method according to claim 4, characterized in that Generating the encoded image comprises: The quantized representation is entropy encoded into the encoded image.

6. The method according to claim 5, characterized in that The entropy encoding the quantized representation into the encoded image comprises: arithmetically encoding the quantized representation into the encoded image.

7. The method according to claim 5, characterized in that The entropy encoding the quantized representation into the encoded image further comprises: determining a context model based on the final feature representation, and Based on the determined context model, the quantized representation is entropy encoded into the encoded image.

8. The method according to claim 1, characterized in that Generating the encoded representation includes: generating the encoded representation corresponding to the final feature representation based on the final feature representation by replacing pre-trained parameters in the NN with replacement parameters after updating the NN, wherein the replacement parameters have been determined from the pre-trained parameters by the number of iterations of iterative updating, and The generating the encoded image comprises generating the encoded image from the final feature representation based on the NN updated by the replacement parameters.

9. The method according to claim 1, characterized in that: Generating the reconstructed image comprises: generating the reconstructed image corresponding to the final feature representation based on the encoded representation corresponding to the final feature representation by replacing pre-trained parameters in the NN with replacement parameters after updating the NN, the replacement parameters having been determined from the pre-trained parameters by the number of iterations of iterative updating, and The method further comprises: generating neural network update information included in a coded bit stream, the neural network update information being used to indicate the replacement parameter, and The encoded image and the neural network update information are transmitted in the encoded bit stream.

10. The method according to claim 1, characterized in that Also includes: The coded pictures are transmitted in a coded bit stream.

11. A device for video encoding, characterized in that include: processor and memory, The memory is used to store program instructions; The processor is used to call the program instructions stored in the memory to implement the method according to any one of claims 1 to 10.

12. A non-transitory computer-readable storage medium, characterized in that A program executable by at least one processor is stored to execute the method according to any one of claims 1 to 10.

13. A method for processing a video bitstream, characterized in that: A video bit stream is stored on a non-transitory computer-readable storage medium, wherein the video bit stream is generated according to the encoding method according to any one of claims 1 to 10.

Citation Information

Patent Citations

  • Content-adaptive online training with feature substitution in neural image compression

    US20220353512A1