Content-adaptive online training method and apparatus for deblocking in block-based image compression

A content-adaptive online training method using DNNs in video decoders addresses blocking artifacts and optimizes compression by adaptively tuning deblocking parameters, enhancing video quality and efficiency.

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

Patent Information

Application Number
JP2023524439
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Priority Date
2022-05-27
Filing Date
2022-06-03
Publication Date
2024-10-15
Estimated Expiration
2042-06-03

AI Technical Summary

Technical Problem

Existing video coding techniques face challenges in efficiently reducing blocking artifacts and optimizing compression performance, particularly in block-wise image compression, due to the varying likelihood of intra-prediction directions and motion vectors, which affect coding efficiency and distortion.

Method used

A content-adaptive online training method using deep neural networks (DNNs) is employed to deblock reconstructed image blocks, updating deblocking parameters based on content-specific training to improve the deblocking process in video decoders, thereby enhancing compression efficiency and reducing artifacts.

Benefits of technology

The method effectively reduces blocking artifacts and improves compression efficiency by adaptively tuning deblocking parameters, leading to better rate-distortion performance and enhanced video quality.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007567052000102
    Figure 0007567052000102
  • Figure 0007567052000103
    Figure 0007567052000103
  • Figure 0007567052000104
    Figure 0007567052000104
Patent Text Reader

Abstract

Aspects of the present disclosure provide a method, an apparatus, and a non-transitory computer-readable storage medium for video decoding. The apparatus includes a processing circuit that reconstructs a block of an image to be reconstructed from a coded video bitstream. The processing circuit decodes first deblocking information in the coded video bitstream, the first deblocking information including a first deblocking parameter of a deep neural network (DNN) in the video decoder. The first deblocking parameter of the DNN is an updated parameter previously determined by a content adaptive training process. The processing circuit determines a DNN for a first boundary region including a subset of samples in the reconstructed block based on the first deblocking parameter included in the first deblocking information. The processing circuit deblocks the first boundary region including the subset of samples in the reconstructed block based on the determined DNN corresponding to the first deblocking parameter.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] Incorporation by Reference This application claims the benefit of priority to U.S. Provisional Patent Application No. 63 / 211,408, entitled "Content Adaptive Online Training Deblocking for Block-Wise Image Compression," filed on June 16, 2021, which claims the benefit of priority to U.S. Provisional Patent Application No. 17 / 826,806, entitled "CONTENT-ADAPTIVE ONLINE TRAINING METHOD AND APPARATUS FOR DEBLOCKING IN BLOCK-WISE IMAGE COMPRESSION," filed on May 27, 2022. The disclosures of the prior applications are incorporated herein by reference in their entireties.

[0002] This disclosure describes embodiments related generally to video coding. [Background technology]

[0003] The discussion of the background art provided herein is intended to generally present the context of the present disclosure. The work of the named inventors is not admitted, explicitly or implicitly, as prior art to the present disclosure, to the extent that such work is described in this Background section, along with aspects of the description that may not otherwise be prior art at the time of filing.

[0004] Coding and decoding of images and / or videos may be performed using inter-picture prediction with motion compensation. Uncompressed digital images and / or videos may include a sequence of pictures, each having spatial dimensions of, for example, 1920x1080 luminance samples and associated chrominance samples. The sequence of pictures may have a fixed or variable picture rate (also informally known as frame rate), for example, 60 pictures per second or 60Hz. Uncompressed images and / or videos have specific bitrate requirements. For example, 1080p60 4:2:0 video (1920x1080 luminance sample resolution at a frame rate of 60Hz) with 8 bits per sample requires a bandwidth approaching 1.5Gbit / s. One hour of such video requires more than 600GByte of storage space.

[0005] One objective of image and / or video coding and decoding may be the reduction of redundancy in the input image and / or video signal through compression. Compression may help reduce the aforementioned bandwidth and / or storage space requirements, possibly by more than one order of magnitude. The description herein uses video encoding / decoding as an illustrative example, but the same techniques may be applied to image encoding / decoding in a similar manner without departing from the spirit of this disclosure. Both lossless and lossy compression, and combinations thereof, may be used. Lossless compression refers to techniques where an exact copy of the original signal can be reconstructed from a compressed original signal. When using lossy compression, the reconstructed signal may not be identical to 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 adopted. The amount of tolerable distortion depends on the application, for example, a user of a particular consumer streaming application may tolerate higher distortion than a user of a television distribution application. The achievable compression ratio may reflect that the higher the acceptable / tolerable distortion, the higher the compression ratio that can be obtained.

[0006] Video encoders and decoders can utilize techniques from a number of broad categories, including, for example, motion compensation, transform, quantization, and entropy coding.

[0007] Video codec techniques can include a technique known as intra-coding. In intra-coding, sample values ​​are represented without reference to samples or other data from previously reconstructed reference pictures. In some video codecs, a picture is spatially subdivided into blocks of samples. If all blocks of samples are coded in intra mode, the picture may be an intra picture. Intra pictures and their derivatives, such as independent decoder refresh pictures, can be used to reset the decoder state and therefore can be used as the first picture in a coded video bitstream and video session or as a still image. Samples of an intra block can undergo a transform, and the transform coefficients can be quantized before entropy coding. Intra prediction can be a technique that minimizes sample values ​​in the pre-transform domain. In some cases, the smaller the DC value after the transform and the smaller the AC coefficients, the fewer bits are needed for a given quantization step size to represent the block after entropy coding.

[0008] Conventional intra-coding, for example as known from MPEG-2 generation coding techniques, does not use intra-prediction. However, some newer video compression techniques include techniques that attempt to predict from surrounding sample data and / or metadata obtained during encoding and / or decoding of a data block that is, for example, spatially adjacent and preceding in decoding order. Such techniques are hereafter referred to as "intra-prediction" techniques. It should be noted that at least in some cases, intra-prediction uses only reference data from the current picture being reconstructed, and not from a reference picture.

[0009] There may be many different forms of intra-prediction. If more than one of such techniques may be used in a given video coding technique, the technique in use may be coded in an intra-prediction mode. In certain cases, a mode may have sub-modes and / or parameters, which may be coded separately or included in the codeword of the mode. Which codeword is used for a given mode, sub-mode, and / or parameter combination may affect the coding efficiency gains via intra-prediction, and thus may also affect the entropy coding technique used to convert the codeword into a bitstream.

[0010] A specific mode of intra prediction was introduced in H.264, improved in H.265, and further improved in newer coding techniques such as Joint Search Model (JEM), Versatile Video Coding (VVC), and Benchmark Set (BMS). A predictor block can be formed using neighboring sample values ​​belonging to already available samples. The sample values ​​of the neighboring samples are copied to the predictor block according to the direction. The reference to the direction in use can be coded in the bitstream or can itself be predicted.

[0011] Referring to FIG. 1A, depicted at the bottom right is a subset of 9 predictor directions known from the 33 possible predictor directions (corresponding to the 33 angle modes of the 35 intra modes) of H.265. The point (101) where the arrows converge represents the sample being predicted. The arrows represent the direction in which the sample is predicted. For example, arrow (102) indicates that sample (101) is predicted from one or more samples to the upper right, at an angle of 45 degrees from 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 degrees from the horizontal.

[0012] 1A, a square block (104) of 4×4 samples (indicated by a thick dashed line) is depicted at the top left. The square block (104) contains 16 samples, each labeled with "S", its Y-dimensional position (e.g., row index), and its X-dimensional position (e.g., column index). For example, sample S21 is the second sample (from the top) in the Y dimension and the first sample (from the left) in the X dimension. Similarly, sample S44 is the fourth sample in the block (104) in both the Y and X dimensions. Since the block is 4×4 samples in size, S44 is at the bottom right. Further shown are reference samples that follow a similar numbering scheme. The reference samples are labeled with R, their Y position (e.g., row index), and X position (column index) relative to the block (104). In both H.264 and H.265, the predicted samples are adjacent to the block being reconstructed, and therefore negative values ​​do not need to be used.

[0013] Intra-picture prediction can work by copying reference sample values ​​from adjacent samples as assigned by the signaled prediction direction. For example, assume that the coded video bitstream includes signaling for this block indicating a prediction direction that coincides with the arrow (102), i.e., the sample is predicted from one or more prediction samples to the upper right and at an angle of 45 degrees from the horizontal. In that case, samples S41, S32, S23, S14 are predicted from the same reference sample R05. Then, sample S44 is predicted from reference sample R08.

[0014] In certain cases, especially when the orientation is not evenly divisible by 45 degrees, the values ​​of multiple reference samples may be combined, for example by interpolation, to calculate the reference sample.

[0015] The number of possible directions has increased as video coding techniques have developed. In H.264 (2003), nine different directions could be represented; in H.265 (2013), this increased to 33, and JEM / VVC / BMS, at the time of disclosure, can support up to 65 directions. Experiments have been carried out to identify the most likely directions, and certain techniques of entropy coding are used to represent those likely directions with a small number of bits, accepting a certain penalty for less likely directions. Furthermore, the direction itself may be predicted from neighboring directions used in neighboring, already decoded blocks.

[0016] FIG. 1B shows a schematic diagram (110) depicting 65 intra prediction directions with JEM to illustrate the increasing number of prediction directions over time.

[0017] The mapping of intra-prediction direction bits in a coded video bitstream that represent the directions may vary from one video coding technique to another, ranging, for example, from a simple direct mapping from prediction direction to intra-prediction mode to complex adaptation schemes involving codewords, most likely modes, and similar techniques. In all cases, however, there may be certain directions that are statistically less likely to occur in the video content than certain other directions. Because the goal of video compression is to reduce redundancy, these less likely directions are represented with more bits than more likely directions in a well-performing video coding technique.

[0018] Motion compensation may be a lossy compression technique and may refer to a technique in which blocks of sample data from a previously reconstructed picture or part thereof (reference picture) are 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 latter may indirectly be a temporal dimension).

[0019] In some video compression techniques, the MV applicable to a particular area of ​​sample data can be predicted from other MVs, e.g., from MVs associated with other areas of sample data that are spatially adjacent to the area being reconstructed and that precede that MV in decoding order. Doing so can significantly reduce the amount of data required to code the MV, thereby eliminating redundancy and increasing the compression ratio. MV prediction can work effectively because, for example, when coding an input video signal derived from a camera (known as natural video), there is a statistical likelihood that areas larger than the area to which a single MV is applicable move in similar directions and can therefore, in some cases, be predicted using similar motion vectors derived from MVs of neighboring areas. As a result, the detected MV for a given area will be similar or the same as the MV predicted from the surrounding MVs, which, after entropy coding, can be represented with fewer bits than would be used if the MV were coded directly. In some cases, MV prediction can be an example of lossless compression of a signal (i.e., MV) derived from an original signal (i.e., a sample stream). In other cases, the MV prediction itself can be lossy, e.g., due to rounding errors when calculating a predictor from several surrounding MVs.

[0020] 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 offered by H.265, the one described here is a technique hereafter referred to as "spatial merging".

[0021] Referring to Figure 2, a current block (201) contains samples that have been discovered by the encoder during the motion search process to be predictable from a previous block of the same size but spatially shifted. Instead of coding its MV directly, the MV can be derived from metadata associated with one or more reference pictures, e.g., from the most recent reference picture (in decoding order), using MVs associated with any one of five surrounding samples, denoted A0, A1, and B0, B1, B2 (202-206, respectively). In H.265, MV prediction can use predictors from the same reference picture that neighboring blocks are using. Summary of the Invention [Means for solving the problem]

[0022] Aspects of the present disclosure provide a method and apparatus for video encoding and decoding. In some examples, the apparatus for video decoding includes a processing circuit. The processing circuit is configured to reconstruct a block of an image to be reconstructed from a coded video bitstream. The processing circuit can decode first deblocking information in the coded video bitstream including a first deblocking parameter of a deep neural network (DNN) in the video decoder. The first deblocking parameter of the DNN is an updated parameter that has been previously determined by a content adaptation training process. The processing circuit can determine a DNN in the video decoder for a first boundary region including a subset of samples in the reconstructed block based on the first deblocking parameter included in the first deblocking information. The processing circuit can deblock the first boundary region including a subset of samples in the reconstructed block based on the determined DNN corresponding to the first deblocking parameter.

[0023] In one embodiment, the reconstructed block includes a first adjacent reconstructed block having a first shared boundary and including a first boundary region of samples on both sides of the first shared boundary. The first adjacent reconstructed block further includes a non-boundary region outside the first boundary region. The first boundary region in the first adjacent reconstructed block is replaced with the deblocked first boundary region.

[0024] In one embodiment, the first deblocking parameter is a bias term or weighting factor in the DNN.

[0025] In one embodiment, the DNN is configured with initial parameters, and the processing circuit can update one of the initial parameters based on the first deblocking parameter.

[0026] In one embodiment, the first deblocking information indicates a difference between the first deblocking parameter and one of the initial parameters. The processing circuit can determine the first deblocking parameter according to a sum of the difference and the one of the initial parameters.

[0027] In one embodiment, the reconstructed block includes a second adjacent reconstructed block having a second shared boundary and including a second boundary region of samples on either side of the second shared boundary. The processing circuit can decode second deblocking information in the coded video bitstream corresponding to the second boundary region. The second deblocking information indicates second deblocking parameters that have been previously determined by the content adaptation training process. The second boundary region can be different from the first boundary region. The processing circuit can update the DNN based on the first deblocking parameters and the second deblocking parameters. The updated DNN corresponds to the second boundary region and is composed of the first deblocking parameters and the second deblocking parameters. The processing circuit can deblock the second boundary region based on the updated DNN corresponding to the second boundary region.

[0028] In one embodiment, the reconstruction block includes a second adjacent reconstruction block of the reconstruction block having a second shared boundary and including a second boundary region having samples on both sides of the second shared boundary. The processing circuit can deblock the second boundary region based on the determined DNN corresponding to the first boundary region.

[0029] In one embodiment, the number of layers of the DNN depends on the size of the first bounding region.

[0030] In one embodiment, the first boundary region further includes samples on both sides of a third shared boundary between a third two adjacent reconstructed blocks included in the reconstructed block, the first two adjacent reconstructed blocks being different from the third two adjacent reconstructed blocks.

[0031] 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 decoding.

[0032] Further features, nature and various advantages of the disclosed subject matter will become more apparent from the following detailed description and the accompanying drawings. [Brief description of the drawings]

[0033] [Figure 1A] FIG. 2 is a schematic diagram of an example subset of intra-prediction modes. [Figure 1B] FIG. 2 is a diagram of an example intra-prediction direction. [Diagram 2] FIG. 2 illustrates a current block (201) and surrounding samples according to one embodiment. [Diagram 3] FIG. 3 is a schematic diagram of a simplified block diagram of a communication system (300) according to one embodiment. [Figure 4] FIG. 4 is a schematic diagram of a simplified block diagram of a communication system (400) according to one embodiment. [Diagram 5] FIG. 2 is a schematic diagram of a simplified block diagram of a decoder according to one embodiment. [Figure 6] FIG. 2 is a schematic diagram of a simplified block diagram of an encoder according to one embodiment. [Figure 7] FIG. 4 is a block diagram illustrating an encoder according to another embodiment. [Figure 8] FIG. 4 is a block diagram showing a decoder according to another embodiment; [Figure 9A] FIG. 2 illustrates an example of block-based image coding according to one embodiment of the present disclosure. [Figure 9B] FIG. 1 illustrates an exemplary NIC framework in accordance with one embodiment of the present disclosure. [Figure 10] FIG. 1 illustrates an example convolutional neural network (CNN) of a main encoder network according to one embodiment of the present disclosure. [Figure 11]FIG. 2 illustrates an exemplary CNN for a main decoder network according to one embodiment of the present disclosure. [Figure 12] FIG. 2 illustrates an exemplary CNN of a hyperencoder according to one embodiment of the present disclosure. [Figure 13] FIG. 2 illustrates an exemplary CNN of a hyperdecoder according to one embodiment of the present disclosure. [Figure 14] FIG. 1 illustrates an exemplary CNN of a context model network in accordance with one embodiment of the present disclosure. [Figure 15] FIG. 1 illustrates an exemplary CNN of an entropy parameter network in accordance with one embodiment of the present disclosure. [Figure 16A] FIG. 2 illustrates an exemplary video encoder according to one embodiment of the present disclosure. [Figure 16B] FIG. 2 illustrates an exemplary video decoder according to one embodiment of the present disclosure. [Figure 17] FIG. 2 illustrates an exemplary video encoder according to one embodiment of the present disclosure. [Figure 18] FIG. 2 illustrates an exemplary video decoder according to one embodiment of the present disclosure. [Figure 19] FIG. 2 illustrates an exemplary deblocking process according to one embodiment of the present disclosure. [Figure 20] FIG. 2 illustrates an exemplary deblocking process according to an embodiment of the present disclosure. [Figure 21] FIG. 2 illustrates an exemplary deblocking process based on multiple deblocking models in accordance with one embodiment of the present disclosure. [Figure 22A] FIG. 2 illustrates an exemplary deblocking process according to an embodiment of the present disclosure. [Figure 22B] FIG. 2 illustrates an exemplary deblocking process according to an embodiment of the present disclosure. [Diagram 23] 1 is a flow chart outlining an encoding process according to one embodiment of the present disclosure. [Figure 24] 1 is a flow chart outlining a decoding process according to one embodiment of the present disclosure. [Diagram 25] FIG. 1 is a schematic diagram of a computer system according to one embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0034] FIG. 3 shows a simplified block diagram of a communication system (300) according to one embodiment of the present disclosure. The communication system (300) includes a plurality of terminal devices that can communicate with each other, for example, via a network (350). For example, the communication system (300) includes a first pair of terminal devices (310) and (320) interconnected via the network (350). In the example of FIG. 3, the first pair of terminal devices (310) and (320) perform unidirectional transmission of data. For example, the terminal device (310) may code video data (e.g., a stream of video pictures captured by the terminal device (310)) for transmission to the other terminal device (320) via the network (350). The encoded video data may be transmitted in the form of one or more coded video bitstreams. The terminal device (320) may receive the coded video data from the network (350), decode the coded video data to reconstruct the video pictures, and display the video pictures according to the reconstructed video data. Unidirectional data transmission may be common, such as in media serving applications.

[0035] In another example, the communication system (300) includes a second pair of terminal devices (330) and (340) for bidirectional transmission of coded video data, such as may occur during a video conference. In the case of bidirectional transmission of data, in one example, each of the terminal devices (330) and (340) may code video data (e.g., a stream of video pictures captured by the terminal device) for transmission to the other of the terminal devices (330) and (340) over the network (350). Each of the terminal devices (330) and (340) may also receive coded video data transmitted by the other of the terminal devices (330) and (340), decode the coded video data to recover the video pictures, and display the video pictures on an accessible display device according to the recovered video data.

[0036] In the example of FIG. 3, the terminal devices (310), (320), (330), and (340) may be depicted as a server, a personal computer, and a smartphone, although the principles of the present disclosure may not be so limited. The embodiments of the present disclosure apply with laptop computers, tablet computers, media players, and / or dedicated video conferencing equipment. The network (350) represents any number of networks that convey coded video data between the terminal devices (310), (320), (330), and (340), including, for example, wired (wired) and / or wireless communication networks. The communication network (350) may exchange data over circuit-switched and / or packet-switched channels. Representative networks include telecommunications networks, local area networks, wide area networks, and / or the Internet. For purposes of this discussion, the architecture and topology of the network (350) may not be important to the operation of the present disclosure, unless otherwise described herein below.

[0037] 4 illustrates an arrangement of a video encoder and a video decoder in a streaming environment as an example of an application for the disclosed subject matter. The disclosed subject matter may be equally applicable to other video-enabled applications including, for example, video conferencing, digital television, storage of compressed video on digital media including CDs, DVDs, memory sticks, etc.

[0038] The streaming system may include a video source (401), which may include, for example, a digital camera, that creates a stream of uncompressed video pictures (402). In one example, the stream of video pictures (402) includes samples taken by a digital camera. The stream of video pictures (402), depicted as a thick line to emphasize the large amount of data compared to the encoded video data (404) (or coded video bitstream), may be processed by an electronic device (420) that includes a video encoder (403) coupled to the video source (401). The video encoder (403) may include hardware, software, or a combination thereof that enables or implements aspects of the disclosed subject matter, as described in more detail below. The encoded video data (404) (or coded video bitstream), depicted as a thin line to emphasize the small amount of data compared to the stream of video pictures (402), may be stored in a streaming server (405) for future use. One or more streaming client subsystems, such as the client subsystems (406) and (408) of FIG. 4, can access the streaming server (405) to retrieve copies (407) and (409) of the encoded video data (404). The client subsystem (406) can include a video decoder (410), for example within an electronic device (430). The video decoder (410) decodes an input copy (407) of the encoded video data and creates an output stream (411) of video pictures 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), (407), and (409) (e.g., a video bitstream) can be encoded according to a particular video coding / compression standard.Examples of those standards include ITU-T Recommendation H.265. In one example, a video coding standard under development is informally known as Versatile Video Coding (VVC). The disclosed subject matter may be used in the context of VVC.

[0039] 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).

[0040] 5 shows a block diagram of a video decoder (510) according to one embodiment of the present disclosure. 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 in place of the video decoder (410) of the example of FIG. 4.

[0041] The receiver (531) may receive one or more coded video sequences to be decoded by the video decoder (510), or in the same or other embodiments, one coded video sequence at a time, with the decoding of each coded video sequence being independent of the other coded video sequences. The coded video sequences may be received from a channel (501), which may be a hardware / software link to a storage device that stores the encoded video data. The receiver (531) may receive the encoded video data along with other data, such as coded audio data and / or auxiliary data streams, that may be forwarded to their respective using entities (not shown). The receiver (531) may separate the coded video sequences from the other data. To combat network jitter, a buffer memory (515) may be coupled between the receiver (531) and the entropy decoder / parser (520) (hereinafter "parser (520)"). In certain applications, the buffer memory (515) is part of the video decoder (510). In other applications, the buffer memory (515) may be external to the video decoder (510) (not shown). In still other applications, there may be buffer memories (not shown) external to the video decoder (510), e.g., to combat network jitter, plus other buffer memories (515) internal to the video decoder (510), e.g., to handle playout timing. When the receiver (531) is receiving data from a store / forward device of sufficient bandwidth and controllability, or from an isosynchronous network, the buffer memory (515) may be unnecessary or may be small. For use with best-effort packet networks such as the Internet, the buffer memory (515) may be necessary and may be relatively large, may be advantageously of 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).

[0042] The video decoder (510) may include a parser (520) to reconstruct symbols (521) from the coded video sequence. These symbol categories include information used to manage the operation of the video decoder (510) and potentially information for controlling a rendering device such as a rendering device (512) (e.g., a display screen) that is not an integral part of the electronic device (530) but may be coupled to the electronic device (530) as shown in FIG. 5. The control information for the rendering device(s) may be in the form of supplemental enhancement information (SEI message) or video usability information (VUI) parameter set fragments (not shown). The parser (520) may parse / entropy decode the received coded video sequence. The coding of the coded video sequence may follow a video coding technique or standard and may follow various principles including variable length coding with or without context dependency, Huffman coding, arithmetic coding, etc. The parser (520) may extract from the coded video sequence a set of subgroup parameters for at least one of the subgroups of pixels in the video decoder based on at least one parameter corresponding to the group. The subgroups may include Group of Pictures (GOPs), pictures, tiles, slices, macroblocks, coding units (CUs), blocks, transform units (TUs), prediction units (PUs), etc. The parser (520) may also extract information such as transform coefficients, quantization parameter values, motion vectors, etc. from the coded video sequence.

[0043] The parser (520) may perform an entropy decoding / parsing operation on the video sequence received from the buffer memory (515) to produce symbols (521).

[0044] The reconstruction of the symbols (521) can involve several different units, depending on the type of coded video picture or portion thereof (inter-picture and intra-picture, inter-block and intra-block, etc.), as well as other factors. Which units are involved and how can be controlled by subgroup control information parsed from the coded video sequence by the parser (520). The flow of such subgroup control information between the parser (520) and the following units is not depicted for clarity.

[0045] Other than the functional blocks already mentioned, the video decoder (510) may be conceptually subdivided into several functional units as described below. In an actual implementation operating under commercial constraints, many of these units may interact closely with each other and may be at least partially integrated with each other. However, for purposes of describing the disclosed subject matter, the following conceptual subdivision into functional units is adequate:

[0046] The first unit is a scalar / inverse transform unit (551), which receives quantized transform coefficients as well as control information from the parser (520) including which transform to use, block size, quantization coefficients, quantization scaling matrices, etc. as symbol(s) (521). The scalar / inverse transform unit (551) can output blocks containing sample values ​​that can be input to an aggregator (555).

[0047] In some cases, the output samples of the scalar / inverse transform unit (551) may relate to intra-coded blocks, i.e., blocks that do not use prediction information from a previously reconstructed picture, but can use prediction information from a previously reconstructed portion of the current picture. Such prediction information can 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 fetched 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. The aggregator (555) optionally adds, on a sample-by-sample basis, the prediction information generated by the intra-prediction unit (552) to the output sample information as provided by the scalar / inverse transform unit (551).

[0048] In other cases, the output samples of the scalar / inverse transform unit (551) may relate to an inter-coded, potentially motion-compensated block. In such cases, the motion compensated prediction unit (553) may access the reference picture memory (557) to fetch samples used for prediction. After motion compensating the fetched samples according to the symbols (521) related to the block, these samples may be added to the output of the scalar / inverse transform unit (551) by the aggregator (555) to generate output sample information (in this case referred to as residual samples or residual signals). The addresses in the reference picture memory (557) from which the motion compensated prediction unit (553) fetches the prediction samples may be controlled by motion vectors available to the motion compensated prediction unit (553) in the form of symbols (521), which may have, for example, X, Y, and reference picture components. Motion compensation may also include interpolation of sample values ​​fetched from the reference picture memory (557) when sub-sample accurate motion vectors are used, motion vector prediction mechanisms, and the like.

[0049] The output samples of the aggregator (555) can be subjected to various loop filtering techniques in the loop filter unit (556). The video compression techniques can include in-loop filter techniques controlled by parameters contained in the coded video sequence (also called the coded video bitstream) and made available to the loop filter unit (556) as symbols (521) from the parser (520), but can also be responsive to meta-information obtained during decoding of a previous part (in decoding order) of the coded picture or coded video sequence, or to previously reconstructed loop filtered sample values.

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

[0051] Once a particular coded picture is fully reconstructed, it can be used as a reference picture for future prediction. For example, once a coded picture corresponding to a current picture is fully reconstructed and the coded picture is 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 beginning reconstruction of the next coded picture.

[0052] The video decoder (510) may perform decoding operations according to a given video compression technique in a standard such as ITU-T Rec. H.265. The coded video sequence may comply with the syntax specified by the video compression technique or standard being used in the sense that the coded video sequence adheres to both the syntax of the video compression technique or standard and the profile documented in the video compression technique or standard. In particular, the profile may select certain tools from among all tools available in the video compression technique or standard as tools that are only available to them under the profile. Compliance may also require that the complexity of the coded video sequence be within a range specified 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 sample rate (e.g., measured in megasamples per second), maximum reference picture size, etc. The limits set by the level can be further limited in some cases by the specification of a hypothetical reference decoder (HRD) and metadata for HRD buffer management signaled in the coded video sequence.

[0053] In one embodiment, the receiver (531) may receive additional (redundant) data along with the encoded video. The additional data may be included as part of the coded video sequence(s). The additional data may be used by the video decoder (510) to properly decode the data and / or to more accurately reconstruct the original video data. The additional data may 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.

[0054] 6 shows a block diagram of a video encoder (603) according to one embodiment of the present disclosure. The video encoder (603) is included in an electronic device (620). The electronic device (620) includes a transmitter (640) (e.g., a transmission circuit). The video encoder (603) can be used in place of the video encoder (403) of the example of FIG. 4.

[0055] The video encoder (603) may receive video samples from a video source (601) (which is not part of the electronic device (620) in the example of FIG. 6) that may capture the video image(s) to be coded by the video encoder (603). In other examples, the video source (601) is part of the electronic device (620).

[0056] The video source (601) may provide a source video sequence to be coded by the video encoder (603) in the form of a digital video sample stream that may be of 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 serving system, the video source (601) may be a storage device that stores previously prepared video. 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 as multiple individual pictures that convey motion when viewed in sequence. The pictures themselves may be organized as a spatial array of pixels, each of which may contain one or more samples depending on the sampling structure, color space, etc. in use. Those skilled in the art can easily understand the relationship between pixels and samples. The following description focuses on samples.

[0057] According to one embodiment, the video encoder (603) may code and compress pictures of a source video sequence into a coded video sequence (643) in real time or under any other time constraint required by the application. Enforcing an appropriate coding rate is one function of the controller (650). In some embodiments, the controller (650) controls and is operatively coupled to other functional units described below. This coupling is not depicted for clarity. Parameters set by the controller (650) may include rate control related parameters (picture skip, quantizer, lambda value for rate distortion optimization techniques, ...), picture size, Group of Pictures (GOP) layout, maximum motion vector search range, etc. The controller (650) can be configured to have other appropriate functions related to the video encoder (603) optimized for a particular system design.

[0058] In some embodiments, the video encoder (603) is configured to operate in a coding loop. As an oversimplified explanation, in one example, the coding loop can include a source coder (630) (responsible for creating symbols, such as a symbol stream, based on an input picture to be coded and a reference picture(s)), as well as a (local) decoder (633) embedded in the video encoder (603). The decoder (633) reconstructs the symbols to create sample data in a manner similar to what a (remote) decoder would also create (since any compression between the symbols and the coded video bitstream is lossless in the video compression techniques contemplated by the disclosed subject matter). The reconstructed sample stream (sample data) is input to a reference picture memory (634). Since decoding of the symbol stream leads to a bit-exact result regardless of the location of the decoder (local or remote), the content in the reference picture memory (634) is also bit-exact between the local and remote encoders. In other words, the prediction part of the encoder "sees" exactly the same sample values ​​as the decoder will "see" when using the prediction during decoding. This basic principle of reference picture synchrony (and the resulting drift when synchrony cannot be maintained, e.g., due to channel errors) is also used in several related technologies.

[0059] The operation of the "local" decoder (633) may be the same as that of a "remote" decoder, such as the video decoder (510), already described in detail above in conjunction with Figure 5. Referring also briefly to Figure 5, however, because symbols are available and the encoding / decoding of symbols into a coded video sequence by the entropy coder (645) and parser (520) may 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).

[0060] In one embodiment, the decoder techniques, except for parsing / entropy decoding, present in the decoder, are present in the corresponding encoder in the same or substantially the same functional form. Therefore, the subject matter disclosed focuses on the operation of the decoder. The description of the encoder techniques can be omitted since the encoder techniques are the opposite of the decoder techniques, which are described generically. Only in certain areas will a more detailed description be provided below.

[0061] In some examples, during operation, the source coder (630) may perform motion-compensated predictive coding, which predictively codes an input picture with reference to one or more previously coded pictures from a video sequence designated as “reference pictures.” In this manner, the coding engine (632) codes differences between pixel blocks of the input picture and pixel blocks of the reference picture(s) that may be selected as the predictive reference(s) to the input picture.

[0062] The local video decoder (633) may decode the coded video data of pictures that may be designated as reference pictures based on the symbols created by the source coder (630). The operation of the coding engine (632) may advantageously be a lossy process. If the coded video data may be decoded in a video decoder (not shown in FIG. 6), 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 that may be performed by the video decoder on the reference pictures and store the reconstructed reference pictures in the reference picture memory (634). In this way, the video encoder (603) may locally store copies of reconstructed reference pictures that have common content as reconstructed reference pictures that will be obtained by the far-end video decoder (without transmission errors).

[0063] The predictor (635) may perform a predictive search for the coding engine (632). That is, for a new picture to be coded, the predictor (635) may search the reference picture memory (634) for sample data (as candidate reference pixel blocks) or specific metadata, such as reference picture motion vectors, block shapes, etc., that may serve as suitable prediction references for the new picture. The predictor (635) may operate on sample blocks, pixel block by pixel block, to find a suitable prediction reference. In some cases, as determined by the search results obtained by the predictor (635), the input picture may have prediction references drawn from multiple reference pictures stored in the reference picture memory (634).

[0064] The controller (650) may manage the coding operations of the source coder (630), including, for example, setting the parameters and subgroup parameters used to encode the video data.

[0065] The output of all the aforementioned functional units may undergo entropy coding in an entropy coder (645), which converts the symbols produced 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.

[0066] The transmitter (640) may buffer the coded video sequence(s) created by the entropy coder (645) for transmission over a communication channel (660), which may be a hardware / software link to a storage device that will store the encoded video data. The transmitter (640) may merge the coded video data from the video encoder (603) with other data to be transmitted, such as coded audio data and / or auxiliary data streams (sources not shown).

[0067] The controller (650) may manage the operation of the video encoder (603). During coding, the controller (650) may assign a particular coded picture type to each coded picture, which may affect the coding technique that may be applied to the respective picture. For example, pictures may often be assigned as one of the following picture types:

[0068] An intra picture (I-picture) may be one that can be coded and decoded without using any other picture in a sequence as a source of prediction. 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 these variations of I-pictures and their respective uses and characteristics.

[0069] A predictive picture (P picture) may be one that can be coded and decoded using intra- or inter-prediction, which predicts the sample values ​​of each block using at most one motion vector and reference index.

[0070] A bidirectionally predicted picture (B-picture) may be one that can be coded and decoded using intra- or inter-prediction, which predicts the sample values ​​of each block using up to two motion vectors and reference indexes. Similarly, a multi-predicted picture may use more than two reference pictures and associated metadata for the reconstruction of a single block.

[0071] A source picture may generally be spatially subdivided into multiple sample blocks (e.g., blocks of 4x4, 8x8, 4x8, or 16x16 samples each) and coded block by block. A block may be predictively coded with reference to other (already coded) blocks determined by the coding assignment applied to the block's respective picture. For example, a block of an I picture may be non-predictively coded or predictively coded with reference to already coded blocks of the same picture (spatial or intra prediction). A pixel block of a P picture may be predictively coded via spatial prediction or via temporal prediction with reference to one previously coded reference picture. A block of a B picture may be predictively coded via spatial prediction or via temporal prediction with reference to one or two previously coded reference pictures.

[0072] The video encoder (603) may perform coding operations in accordance with a given video coding technique or standard, such as ITU-T Rec. H.265. In its operations, the video encoder (603) may perform various compression operations, including predictive coding operations that exploit temporal and spatial redundancy in the input video sequence. Thus, the coded video data may conform to a syntax specified by the video coding technique or standard being used.

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

[0074] A video may be captured as multiple source pictures (video pictures) in a time sequence. Intra-picture prediction (often abbreviated as intra-prediction) exploits spatial correlation within a given picture, while inter-picture prediction exploits (temporal or other) correlation between pictures. In one example, a particular picture being encoded / decoded, called the current picture, is divided into blocks. When a block in the current picture is similar to a reference block in a previously coded, yet buffered reference picture in the video, the block in the current picture may be coded by a vector called a motion vector. The motion vector points to a reference block in the reference picture and may have a third dimension that identifies the reference picture when multiple reference pictures are used.

[0075] In some embodiments, bi-prediction techniques may be used in inter-picture prediction. According to bi-prediction techniques, two reference pictures, such as a first reference picture and a second reference picture, both of which precede the current picture in decoding order in a video (but may be in the past and future, respectively, in display order), are used. A block in the current picture may be coded by a first motion vector that points to a first reference block in the first reference picture and a second motion vector that points to a second reference block in the second reference picture. A block may be predicted by a combination of the first reference block and the second reference block.

[0076] Furthermore, to improve coding efficiency, merge mode techniques can be used in inter-picture prediction.

[0077] According to some embodiments of the present disclosure, predictions such as inter-picture prediction and intra-picture prediction are performed on a block-by-block basis. For example, according to the HEVC standard, a picture in a sequence of video pictures is divided into coding tree units (CTUs) for compression, and the CTUs in a picture have the same size, such as 64×64 pixels, 32×32 pixels, and 16×16 pixels. In general, a CTU includes three coding tree blocks (CTBs), one luma CTB and two chroma CTBs. Each CTU can be recursively quadtree partitioned into one or more coding units (CUs). For example, a CTU of 64×64 pixels can be partitioned into one CU of 64×64 pixels, or into four CUs of 32×32 pixels, or into 16 CUs of 16×16 pixels. In one example, each CU is analyzed to determine a prediction type of the CU, such as an inter prediction type or an intra prediction type. A CU is divided into one or more prediction units (PUs) according to temporal predictability and / or spatial predictability. In general, each PU includes one luma prediction block (PB) and two chroma PBs. In one embodiment, prediction operations in coding (encoding / decoding) are performed in units of prediction blocks. Taking a luma prediction block as an example of a prediction block, the prediction block includes a matrix of pixel values ​​(e.g., luma values), such as 8×8 pixels, 16×16 pixels, 8×16 pixels, 16×8 pixels, etc.

[0078] 7 shows a diagram of a video encoder (703) according to another embodiment of this disclosure. The video encoder (703) is configured to receive a processed block (e.g., a predictive block) of sample values ​​in a current video picture in a sequence of video pictures and to encode the processed block into a coded picture that is part of a coded video sequence. In one example, the video encoder (703) is used in place of the video encoder (403) of the example of FIG. 4.

[0079] In an HEVC example, the video encoder (703) receives a matrix of sample values ​​for a processing block, such as a predictive block of 8x8 samples. The video encoder (703) determines whether the processing block is optimally coded using intra-mode, inter-mode, or bi-predictive mode, e.g., with rate-distortion optimization. If the processing block is to be coded in intra-mode, the video encoder (703) may encode the processing block into a coded picture using intra-prediction techniques, and if the processing block is to be coded in inter-mode or bi-predictive mode, the video encoder (703) may encode the processing block into a coded picture using inter-prediction techniques or bi-prediction techniques, respectively. In certain video coding techniques, the merge mode may be an inter-picture prediction sub-mode in which a motion vector is derived from one or more motion vector predictors without benefit of coded motion vector components outside the predictors. In certain other video coding techniques, there may be motion vector components applicable to the current block. In one example, the video encoder (703) includes other components, such as a mode decision module (not shown), to determine the mode of the processing block.

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

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

[0082] The intra encoder (722) is configured to receive samples of a current block (e.g., a processing block), possibly compare the block with already coded blocks in the same picture, generate transformed quantized coefficients, and possibly also generate intra prediction information (e.g., intra prediction direction information according to one or more intra encoding techniques). In one example, the intra encoder (722) also calculates intra prediction results (e.g., prediction blocks) based on the intra prediction information and reference blocks in the same picture.

[0083] 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, if the mode is an intra mode, the general controller (721) controls the switch (726) to select an intra mode result for use by the residual calculator (723) and controls the entropy encoder (725) to select intra prediction information and include the intra prediction information in the bitstream, and if the mode is an inter mode, the general controller (721) controls the switch (726) to select an inter prediction result for use by the residual calculator (723) and controls the entropy encoder (725) to select inter prediction information and include the inter prediction information in the bitstream.

[0084] The residual calculator (723) is configured to calculate a difference (residual data) between the received block and a 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 transform coefficients. In one example, the residual encoder (724) is configured to transform the residual data from the spatial domain to the frequency domain to generate transform coefficients. The transform coefficients then undergo a quantization process to obtain quantized transform coefficients. In various embodiments, the video encoder (703) also 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 used by the intra-encoder (722) and the inter-encoder (730) as appropriate. For example, the inter-encoder (730) may generate decoded blocks based on the decoded residual data and the inter-prediction information, and the intra-encoder (722) may generate decoded blocks based on the decoded residual data and the intra-prediction information. The decoded blocks are suitably processed to generate decoded pictures, which may be buffered in a memory circuit (not shown) and used as a reference picture in some examples.

[0085] The entropy encoder (725) is configured to format a bitstream to include the encoded block. The entropy encoder (725) is configured to include various information in accordance with an appropriate standard, such as the HEVC standard. In one example, the entropy encoder (725) is configured to include in the bitstream general control data, selected prediction information (e.g., intra-prediction information or inter-prediction information), residual information, and other appropriate information. It should be noted that, in accordance with the disclosed subject matter, when coding a block in a merged sub-mode of either an inter mode or a bi-prediction mode, no residual information is present.

[0086] 8 shows a diagram of a video decoder (810) according to another embodiment of the present disclosure. The video decoder (810) is configured to receive coded pictures that are part of a coded video sequence and decode the coded pictures to generate reconstructed pictures. In one example, the video decoder (810) is used in place of the video decoder (410) of the example of FIG. 4.

[0087] In the example of FIG. 8, the video decoder (810) includes an entropy decoder (871), an inter-decoder (880), a residual decoder (873), a reconstruction module (874), and an intra-decoder (872), coupled to each other as shown in FIG.

[0088] The entropy decoder (871) can be configured to reconstruct from the coded picture certain symbols that represent syntax elements of which the coded picture is composed. Such symbols can include, for example, prediction information (e.g., intra-prediction and inter-prediction information, etc.) that can identify the mode in which the block is coded (e.g., intra-mode, inter-mode, bi-prediction mode, merged submode or other submode inter-mode and bi-prediction mode, etc.), certain samples or metadata used for prediction by the intra-decoder (872) or the inter-decoder (880), respectively, residual information in the form of quantized transform coefficients, etc. In one example, if the prediction mode is an inter-mode or bi-prediction mode, the inter-prediction information is provided to the inter-decoder (880), and if the prediction type is an intra-prediction type, the intra-prediction information is provided to the intra-decoder (872). The residual information can undergo inverse quantization and is provided to the residual decoder (873).

[0089] The inter decoder (880) is configured to receive the inter prediction information and to generate inter prediction results based on the inter prediction information.

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

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

[0092] The reconstruction module (874) is configured to combine, in the spatial domain, the residual output by the residual decoder (873) and the prediction result (possibly output by the inter-prediction module or the intra-prediction module) to form a reconstructed block that may become part of a reconstructed picture, which may become part of a reconstructed video. It should be noted that other suitable operations, such as a deblocking operation, may be performed to improve visual quality.

[0093] It should be noted that the video encoders (403), (603), and (703) and the video decoders (410), (510), and (810) may be implemented using any suitable technology. In one embodiment, the video encoders (403), (603), and (703) and the video decoders (410), (510), and (810) may be implemented using one or more integrated circuits. In other embodiments, the video encoders (403), (603), and (603) and the video decoders (410), (510), and (810) may be implemented using one or more processors executing software instructions.

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

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

[0096] An exemplary NIC framework or system can be described as follows: The NIC framework uses an input block x as an input to a neural network encoder (e.g., an encoder based on a neural network such as a DNN) to generate a compressed representation (e.g., a compact representation) that may be compact for storage and transmission purposes, for example.

number

number

number

number

number

number

[0097] In some examples, the NIC framework can use a variational autoencoder (VAE) structure. In a VAE structure, a neural network encoder can directly use an entire input block x as input to the neural network encoder. The entire input block x is converted into a compressed representation

number

number

number

number

number

number

number

number

number

number

[0098] Neural networks (e.g., ANNs) can learn to perform tasks from examples without task-specific programming. ANNs can be composed of connected nodes or artificial neurons. The connections between the nodes can send 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 denoted by a weight coefficient of the connection. The receiving node can process the signal(s) from the node(s) that transmits the signal(s) to the receiving node (i.e., the input signal(s) intended for 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 signal(s). In one example, the output signal is further modified by a bias, which can be denoted by a bias term, such that the output signal is a sum of the bias and the weighted sum of the input signal(s). The function can include, for example, a nonlinear operation on the weighted sum or sum of the bias and the weighted sum of the input signal(s). The output signal can be sent to the node(s) (the downstream node(s) connected to the receiving node). The ANN can be represented or configured by parameters (e.g., weights and / or biases of the connections). The weights and / or biases can be obtained by training the ANN with examples, where the weights and / or biases can be iteratively adjusted. The trained ANN configured with the determined weights and / or determined biases can be used to perform a task.

[0099] The nodes in the ANN can be organized in any suitable architecture. In various embodiments, the nodes in the ANN are organized in layers including an input layer that receives input signal(s) to the ANN and an output layer that outputs output signal(s) from the ANN. In one embodiment, the ANN further includes a layer(s), such as a hidden layer(s) between the input layer and the output layer. Different layers may perform different types of transformations on the inputs of the different layers. Signals may proceed from the input layer to the output layer.

[0100] An ANN with multiple layers between the input layer and the output layer can 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 every node 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 is a CNN.

[0101] A CNN may include an input layer, an output layer, and a hidden layer(s) between the input layer and the output layer. The hidden layer(s) may include a convolution layer(s) (e.g., used in an encoder) that performs convolution, such as a two-dimensional (2D) convolution. In one embodiment, the 2D convolution performed in the convolution layer is between a convolution kernel (also called a filter or channel, such as a 5×5 matrix) and an input signal to the convolution layer (e.g., a 2D matrix, such as a 2D block, 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). Thus, the portion (e.g., a 5×5 area) in the input signal (e.g., a 256×256 matrix) covered by the convolution kernel is smaller than the area of ​​the input signal (e.g., a 256×256 area), and thus may be referred to as the receptive field at each node in the next layer.

[0102] During convolution, a dot product of a convolution kernel and a corresponding receptive field in the input signal is calculated. Thus, each element of the convolution kernel is a weight applied to a corresponding sample in the receptive field, and thus the convolution kernel contains 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.

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

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

[0105] In various embodiments, CNN has the following advantages: The number of learnable parameters (i.e., parameters to be trained) in CNN can be significantly smaller than the number of learnable parameters in DNNs such as feedforward DNNs. 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 the memory footprint can be reduced because a single bias and a single weight vector can be used across all receptive fields that share the same filter. For example, for an input signal with 100×100 samples, a convolution layer with a convolution kernel with 5×5 samples has 25 learnable parameters (e.g., weights). If bias is used, one channel uses 26 learnable parameters (e.g., 25 weights and one bias). If a convolution layer has N channels, the total number of learnable parameters is 26×N. On the other hand, for a fully connected layer in DNN, 100×100 (i.e., 10,000) weights are used for each node in the next layer. If the next layer has L nodes, the total number of learnable parameters is 10000×L.

[0106] A CNN may further include one or more other layers, such as a pooling layer(s), a fully connected layer(s) that may connect all nodes in one layer to all nodes in other layers, a normalization layer(s), etc. The layers in a CNN may be arranged in any suitable order and in any suitable architecture (e.g., feed-forward architecture, recurrent architecture). In one example, a convolutional layer is followed by other layers, such as a pooling layer(s), a fully connected layer(s), a normalization layer, etc.

[0107] Pooling layers can be used to reduce the dimensionality of data by combining the outputs from multiple nodes in one layer into a single node in the next layer. The pooling operation for a pooling layer with a feature map as input is described below. This description can be adapted appropriately to other input signals. The feature map can be divided into subregions (e.g., rectangular subregions), and the features in each subregion can be singly downsampled (or pooled) to a single value, for example, by taking the average value in average pooling or the maximum value in max pooling.

[0108] A pooling layer can perform pooling such as local pooling, global pooling, max 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 cluster of nodes, 2x2 nodes, etc.). Global pooling can, for example, combine all the nodes in the feature map.

[0109] The pooling layer can reduce the size of the representation, and thus the number of parameters, memory footprint, and computational complexity in the CNN. In one example, the pooling layer is inserted between successive convolutional layers in the 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 successive convolutional layers in the CNN.

[0110] The normalization layer can be ReLU, Leaky ReLU, Generalized Divided Normalization (GDN), Inverse GDN (IGDN), etc. ReLU can apply a non-saturating activation function to remove negative values ​​from an input signal such as a feature map by setting negative values ​​to 0. Leaky ReLU can have a small slope (e.g., 0.01) for negative values ​​instead of a flat slope (e.g., 0). Thus, if the value x is greater than 0, the output from Leaky ReLU is x. Otherwise, the output from Leaky ReLU is the value x multiplied by the small slope (e.g., 0.01). In one example, the slope is determined before training and is thus not learned during training.

[0111] In NN-based image compression methods, such as DNN-based or CNN-based image compression methods, instead of directly encoding the entire image, a block-based or block-based coding mechanism may be effective for compressing images in DNN-based video coding standards, such as FVC. The entire image may be divided into blocks of equal (or various) sizes, and the blocks may be compressed separately. In one embodiment, the image may be divided into blocks of equal or unequal size. The divided blocks may also be compressed instead of the image. FIG. 9A illustrates an example of block-based image coding according to one embodiment of the present disclosure. An image (980) may be divided into blocks, e.g., blocks (981)-(996). The blocks (981)-(996) may be compressed, for example, according to a scan order. In the example illustrated in FIG. 9A, blocks (981)-(989) have already been compressed, and blocks (990)-(996) are to be compressed.

[0112] In one embodiment, an image is treated as blocks, where a block is the entire image, and the image is compressed without being divided into blocks. The entire image can be the input of the E2E NIC framework.

[0113] FIG. 9B illustrates an exemplary NIC framework (900) (e.g., a NIC system) according to one embodiment of the present disclosure. The NIC framework (900) may be based on a neural network, such as a DNN and / or a CNN. The NIC framework (900) may be used to compress (e.g., encode) blocks and to decompress (e.g., decode or reconstruct) compressed blocks (e.g., encoded blocks). The NIC framework (900) may include two sub-neural networks, a first sub-NN (951) and a second sub-NN (952), implemented using neural networks.

[0114] The first sub-NN (951) can be similar to an autoencoder, compressing the input block x

number

number

number

[0115] The latent representation y is the quantized latent value

number

number

number

number

[0116] The encoded blocks (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 coding technique, such as Huffman coding, arithmetic coding, etc., that corresponds to the entropy encoding technique used in the entropy encoder (913). 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) and lossless decompression is used in the entropy decoder (914), where noise, such as that due to transmission of the encoded blocks (931), can be omitted and the output from the entropy decoder (914) is a quantized latent value.

number

[0117] The main decoder network (915) is a reconstruction block

number

number

number

number

number

number

number

[0118] The second sub-NN (952) generates the quantized latent values ​​used for entropy coding.

number

number

[0119] Referring to FIG. 9B, on the encoder side, the quantized potential value from the quantizer (912)

number

number

number

number

number

number

number

[0120] Output from the context model NN (916) cm,i and the output from the HyperDecoder (925) hc will output ep The entropy parameter NN (917) can be implemented using a neural network such as a CNN. epand the input of the entropy parameter NN(917) (e.g., o cm,i Yao hc ) can be written using Equation 5 as follows: o ep =f4(o cm,i ,o hc ;θ4) Equation 5 where the parameter θ4 represents parameters such as weights and biases (if biases are used in the entropy parameter NN (917)) used in the convolution kernels in the entropy parameter NN (917). ep can be used in determining (e.g., conditioning) the entropy model, such that the conditioned entropy model is, for example, hc In one example, the output o ep includes parameters, such as mean and scale parameters, that are used to condition an entropy model (e.g., GMM). Referring to Figure 9B, the entropy model (e.g., the conditioned entropy model) can be used by the entropy encoder (913) and the entropy decoder (914) in entropy coding and entropy decoding, respectively.

[0121] The second sub-NN (952) can be described as follows: The latent value y can be fed to a hyper-encoder (921) to generate a hyper-latent value z. In one example, the hyper-encoder (921) is implemented using a neural network such as a CNN. The relationship between the hyper-latent value z and the latent value y can be described using Equation 6 as follows: z=f5(y;θ5) Equation 6 In the equation, the parameter θ5 represents parameters such as weights and biases (if biases are used in the hyperencoder (921)) used in the convolution kernels in the hyperencoder (921).

[0122] The hyper-latency z is the quantized latent

number

number

[0123] The side information, such as the encoded bits (932), can be decompressed (e.g., entropy decoded) by an entropy decoder (924) to generate an output. The entropy decoder (924) can use entropy coding techniques, such as Huffman coding, arithmetic coding, 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) and lossless decompression is used in the entropy decoder (924), where noise, such as that due to the transmission of side information, can be omitted, and the output from the entropy decoder (924) is a quantized latent value.

number

number

number

number

[0124] As described above, the compressed or encoded bits (932) can be added to the coded bitstream as side information, allowing the entropy decoder (914) to use a conditional entropy model. Thus, the entropy model can be block-dependent and spatially adaptive, and therefore more accurate than a fixed entropy model.

[0125] The NIC framework (900) may be suitably adapted, for example, to omit one or more components shown in Figure 9B, modify one or more components shown in Figure 9B, and / or include one or more components not shown in Figure 9B. In one example, the NIC framework using a fixed entropy model includes a first sub-NN (951) and does not include a second sub-NN (952). In one example, the NIC framework includes the components in the NIC framework (900) except for the entropy encoder (923) and the entropy decoder (924).

[0126] In one embodiment, one or more components in the NIC framework (900) shown in Figure 9B are implemented using neural network(s), such as CNN(s). Each NN-based component (e.g., the main encoder network (911), the main decoder network (915), the context model NN (916), the entropy parameter NN (917), the hyperencoder (921), or the hyperdecoder (925)) in the NIC framework (e.g., the NIC framework (900)) may include any suitable architecture (e.g., have any suitable combination of layers), include any suitable type of parameters (e.g., weights, biases, a combination of weights and biases, etc.), and include any suitable number of parameters.

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

[0128] Figure 10 illustrates an exemplary CNN for a main encoder network (911) according to one embodiment of the present disclosure. For example, the main encoder network (911) includes four sets of layers, each set of layers including a convolutional layer 5x5 c192 s2 followed by a GDN layer. One or more layers shown in Figure 10 may be modified and / or omitted. Additional layer(s) may be added to the main encoder network (911).

[0129] FIG. 11 illustrates an exemplary CNN of the main decoder network (915) according to one embodiment of the present disclosure. For example, the main decoder network (915) includes three sets of layers, each set of layers including a deconvolutional layer 5×5 c192 s2 followed by an IGDN layer. In addition, the three sets of layers are followed by a deconvolutional layer 5×5 c3 s2 followed by an IGDN layer. One or more layers shown in FIG. 11 may be modified and / or omitted. Additional layer(s) may be added to the main decoder network (915).

[0130] FIG. 12 illustrates an exemplary CNN of a hyperencoder (921) according to one embodiment of the present disclosure. For example, the hyperencoder (921) includes a convolutional layer 3×3 c192 s1 followed by a Leaky ReLU, a convolutional layer 5×5 c192 s2 followed by a Leaky ReLU, and a convolutional layer 5×5 c192 s2. One or more layers illustrated in FIG. 12 may be modified and / or omitted. Additional layer(s) may be added to the hyperencoder (921).

[0131] FIG. 13 illustrates an exemplary CNN of a hyperdecoder (925) according to one embodiment of the present disclosure. For example, the hyperdecoder (925) includes a deconvolution layer 5×5 c192 s2 followed by a Leaky ReLU, a deconvolution layer 5×5 c288 s2 followed by a Leaky ReLU, and a deconvolution layer 3×3 c384 s1. One or more layers illustrated in FIG. 13 may be modified and / or omitted. Additional layer(s) may be added to the hyperdecoder (925).

[0132] 14 illustrates an example CNN of the context model NN (916) according to one embodiment of the present disclosure. For example, the context model NN (916) includes a masked convolution 5×5 c384 s1 for context prediction, and thus the context

number

[0133] FIG. 15 illustrates an exemplary CNN of an entropy parameter NN (917) according to one embodiment of the present disclosure. For example, the entropy parameter NN (917) includes a convolutional layer 1×1 c640 s1 followed by a Leaky ReLU, a convolutional layer 1×1 c512 s1 followed by a Leaky ReLU, and a convolutional layer 1×1 c384 s1. One or more layers illustrated in FIG. 15 may be modified and / or omitted. Additional layer(s) may be added to the entropy parameter NN (917).

[0134] The NIC framework (900) may be implemented using a CNN, as described with reference to Figures 10-15. The NIC framework (900) may be suitably adapted such that one or more components (e.g., (911), (915), (916), (917), (921), and / or (925)) within the NIC framework (900) are implemented using any suitable type of neural network (e.g., a CNN or a non-CNN based neural network). One or more other components of the NIC framework (900) may be implemented using a neural network(s).

[0135] The NIC framework (900) that includes a neural network (e.g., a CNN) can be trained to learn parameters used in the neural network. For example, when a CNN is used, parameters represented by θ1 to θ6, such as the weights and biases used in the convolution kernels in the main encoder network (911) (if biases are used in the main encoder network (911)), the weights and biases used in the convolution kernels in the main decoder network (915) (if biases are used in the main decoder network (915)), the weights and biases used in the convolution kernels in the hyperencoder (921) (if biases are used in the hyperencoder (921)), the weights and biases used in the convolution kernels in the hyperdecoder (925) (if biases are used in the hyperdecoder (925)), the 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 the weights and biases used in the convolution kernels in the entropy parameter NN (917) (if biases are used in the entropy parameter NN (917)), can each be learned in a training process.

[0136] In one example, referring to FIG. 10, the main encoder network (911) includes four convolution layers, each with a 5×5 convolution kernel and 192 channels. Thus, the number of weights used in the convolution kernels in the main encoder network (911) is 19200 (i.e., 4×5×5×192). The parameters used in the main encoder network (911) include the 19200 weights and optional biases. When biases and / or additional NN(s) are used in the main encoder network (911), additional parameter(s) may be included.

[0137] Referring to FIG. 9B, the NIC framework (900) includes at least one component or module built on a neural network (one or more). The at least one component may include one or more of a main encoder network (911), a main decoder network (915), a hyperencoder (921), a hyperdecoder (925), a context model NN (916), and an entropy parameter NN (917). The at least one component may be trained individually. In one example, the training process is used to learn parameters for each component separately. The at least one component may be trained together as a group. In one example, the training process is used to learn parameters for a subset of the at least one component together. In one example, the training process is used to learn all parameters of the at least one component, thus referred to as E2E optimization.

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

[0139] For example, after the weights are initialized, a set of training blocks may be used to train one or more components. The set of training blocks may include any suitable blocks having any suitable size(s). In some examples, the set of training blocks includes blocks from a raw image, a natural image, a computer-generated image, etc. in the spatial domain. In some examples, the set of training blocks includes residual blocks in the spatial domain or blocks from a residual image having residual data. The residual data may be calculated by a residual calculator (e.g., residual calculator (723)). In some examples, the raw image and / or the residual image including the residual data may be directly used to train a neural network in a NIC framework, such as the NIC framework (900). Thus, the raw image, the residual image, blocks from the raw image, and / or blocks from the residual image may be used to train a neural network in the NIC framework.

[0140] For simplicity, the following training process is described using a training block as an example. The description can be appropriately adapted to training images. A training block t of a set of training blocks can be passed through the encoding process of FIG. 9B to generate a compressed representation (e.g., encoded information into a bitstream, for example). The encoded information can be passed through the decoding process described in FIG. 9B to generate a reconstructed block t.

number

[0141] In the NIC framework (900), two competing objectives are balanced: reconstruction quality and bit consumption. A quality loss function (e.g., distortion or distortion loss)

number

number

[0142] In the case of neural image compression, a differentiable approximation of quantization can be used in the E2E optimization. In various examples, in the training process of neural network-based image compression, noise injection is used to simulate quantization, so that quantization is simulated by noise injection instead of being performed by a quantizer (e.g., quantizer (912)). Thus, training with noise injection can variationally approximate the quantization error. A bits-per-pixel (BPP) estimator can be used to simulate an entropy coder, so that entropy coding is simulated by the BPP estimator instead of being performed by an entropy encoder (e.g., (913)) and an entropy decoder (e.g., (914)). Thus, the rate loss R in the loss function L shown in Equation 1 during the training process can be estimated, for example, based on noise injection and the BPP estimator. In general, a higher rate R can enable lower distortion D, and a lower rate R can result in higher distortion D. Thus, the trade-off hyperparameter λ in Equation 1 can be used to optimize the joint RD loss L, where L as the sum of λ and R can be optimized. A training process can be used to tune parameters of one or more components (e.g., (911)(915)) in the NIC framework (900) such that the joint RD loss L is minimized or optimized. In some examples, the trade-off hyperparameter λ can be used to optimize the joint rate-distortion (RD) loss by:

number

[0143] Various models can be used to determine the distortion loss D and the rate loss R, and thus the joint RD loss L in Equation 1. In one example, the distortion loss

number

[0144] In one example, the goal of the training process is to train an encoding neural network (e.g., encoding DNN) such as a video encoder to be used on the encoder side and a decoding neural network (e.g., decoding DNN) such as a video decoder to be used on the decoder side. In one example, referring to FIG. 9B, the encoding neural network can include a main encoder network (911), a hyperencoder (921), a hyperdecoder (925), a context model NN (916), and an entropy parameter NN (917). The decoding neural network can include a main decoder network (915), a hyperdecoder (925), a context model NN (916), and an entropy parameter NN (917). The video encoder and / or video decoder can include other component(s) based on NN(s) and / or not based on NN(s).

[0145] The NIC framework (e.g., the NIC framework (900)) can be trained in an E2E manner. In one example, the encoding neural network and the decoding neural network are updated together in a training process based on backpropagation gradients in an E2E manner.

[0146] After the parameters of the neural network in the NIC framework (900) are trained, one or more components in the NIC framework (900) can be used to encode and / or decode the blocks. In one embodiment, on the encoder side, a video encoder is configured to encode an input block x into an encoded block (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, a corresponding video decoder converts the encoded block (931) in the bitstream into a reconstructed block (931).

number

[0147] In one example, the video encoder includes all components within the NIC framework (900).

[0148] FIG. 16A illustrates an exemplary video encoder (1600A) according to an embodiment of the present disclosure. The video encoder (1600A) includes a main encoder network (911), a quantizer (912), an entropy encoder (913), and a second sub-NN (952), as described, for example, with reference to FIG. 9B. FIG. 16B illustrates an exemplary video decoder (1600B) according to an embodiment of the present disclosure. 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 hyper decoder (925). 16A-16B, on the encoder side, a video encoder (1600A) can generate encoded blocks (931) and encoded bits (932) to be transmitted in a bitstream. On the decoder side, a video decoder (1600B) can receive and decode the encoded blocks (931) and encoded bits (932).

[0149] 17-18 respectively show an exemplary video encoder (1700) and a corresponding video decoder (1800) according to an embodiment of the present disclosure. With reference to FIG. 17, the encoder (1700) includes a main encoder network (911), a quantizer (912), and an entropy encoder (913). Examples of the main encoder network (911), the quantizer (912), and the entropy encoder (913) are described with reference to FIG. 9B. With reference to FIG. 18, the video decoder (1800) includes a main decoder network (915) and an entropy decoder (914). Examples of the main decoder network (915) and the entropy decoder (914) are described with reference to FIG. 9B. With reference to FIG. 17 and FIG. 18, the video encoder (1700) can generate an encoded block (931) to be included in a bitstream. The video decoder (1800) can receive and decode the encoded block (931).

[0150] Video coding techniques may include filtering operations performed on the reconstructed samples so that artifacts (e.g., blocking effects) may be reduced. A deblocking filter process may be used in such filtering operations, and block boundaries (e.g., boundary regions) between adjacent blocks may be filtered so that a smoother transition of sample values ​​from one block to another may be achieved.

[0151] In some related examples (e.g., HEVC), a deblocking process or a deblocking filter process may be applied to samples adjacent to block boundaries. The deblocking filter process may be performed per CU in the same order as the decoding process. For example, the deblocking filter process may be performed first by horizontal filtering of the vertical boundaries of the image, followed by vertical filtering of the horizontal boundaries of the image. For both luma and chroma components, filtering may be applied to the 8x8 block boundaries determined to be filtered. In one example, 4x4 block boundaries are not processed to reduce complexity.

[0152] A boundary strength (BS) may be used to indicate the degree or strength of the deblocking filter process. In one embodiment, a value of 2 for BS indicates strong filtering, 1 indicates weak filtering, and 0 indicates no deblocking filtering.

[0153] The blocks of the image may be reconstructed from the coded video bitstream using any suitable method, such as embodiments of the present disclosure. For example, the blocks are reconstructed using a video decoder (e.g., (1600B), (1800)) including, for example, a neural network (e.g., CNN). In some examples, the blocks are reconstructed using a video decoder that is not based on a NN. One or more deblocking methods (also referred to as deblocking, deblocking process, deblocking filtering process) may be used to reduce artifacts between blocks, such as artifacts in boundary regions of adjacent reconstructed blocks. Deblocking may reduce blocking artifacts or blocking effects between adjacent reconstructed blocks, for example, caused by independent quantization within adjacent reconstructed blocks. Deblocking may be performed on the boundary regions of adjacent reconstructed blocks using a deblocking module. To reduce artifacts between blocks, a NN-based deblocking model may be used. The NN-based deblocking model may be a DNN-based deblocking model, a CNN-based deblocking model, etc. The NN-based deblocking model may be implemented using a NN (e.g., a deblocking NN), including DNN(s), CNN(s), etc.

[0154] 19A-19C illustrate an exemplary deblocking process (1900) according to an embodiment of the present disclosure. Referring to FIG. 19A, an image (1901) may include a number of blocks (1911)-(1914). For simplicity, four equal-sized blocks (1911)-(1914) are shown in FIG. 19A. In general, an image may be divided into any suitable number of blocks, and the blocks may be of different or identical size, and this description may be adapted accordingly. In some examples, regions containing artifacts, for example resulting from dividing an image into blocks, may be processed by deblocking.

[0155] In one example, blocks (1911)-(1914) are reconstructed blocks from the main decoder network (915). The image (1901) is a reconstructed image. In some examples, the reconstructed image (1901) includes residual data.

[0156] The first two adjacent reconstructed blocks of the reconstructed blocks (1911) to (1914) may include a block (1911) and a block (1913) separated by a first shared boundary (1941). The block (1911) and the block (1913) may include a boundary region A having samples on both sides of the first shared boundary (1941). With reference to FIG. 19A to FIG. 19B, the boundary region A may include a sub-boundary region A1 and a sub-boundary region A2 located in the block (1911) and the block (1913), respectively. The first two adjacent reconstructed blocks (1911) and (1913) may include a boundary region A having samples on both sides of the first shared boundary (1941) and a non-boundary region (1921) and a non-boundary region (1923) outside the boundary region A.

[0157] Two adjacent reconstructed blocks among the reconstructed blocks (1911) to (1914) may include a block (1912) and a block (1914) separated by a second shared boundary (1942). The block (1912) and the block (1914) may include a boundary region B having samples on both sides of the second shared boundary (1942). With reference to FIGS. 19A to 19B, the boundary region B may include a sub-boundary region B1 and a sub-boundary region B2 located in the block (1912) and the block (1914), respectively. The block (1912) and the block (1914) may include a boundary region B having samples on both sides of the second shared boundary (1942) and a non-boundary region (1922) and a non-boundary region (1924) outside the boundary region B.

[0158] Two adjacent reconstructed blocks among the reconstructed blocks (1911) to (1914) may include a block (1911) and a block (1912) separated by a shared boundary (1943). The block (1911) and the block (1912) may include a boundary region C having samples on both sides of the shared boundary (1943). With reference to FIGS. 19A to 19B, the boundary region C may include a sub-boundary region C1 and a sub-boundary region C2 located in the block (1911) and the block (1912), respectively. The block (1911) and the block (1912) may include a boundary region C having samples on both sides of the shared boundary (1943) and a non-boundary region (1921) and a non-boundary region (1922) outside the boundary region C.

[0159] Two adjacent reconstructed blocks among the reconstructed blocks (1911) to (1914) may include a block (1913) and a block (1914) separated by a shared boundary (1944). The block (1913) and the block (1914) may include a boundary region D having samples on both sides of the shared boundary (1944). With reference to FIGS. 19A to 19B, the boundary region D may include a sub-boundary region D1 and a sub-boundary region D2 located in the block (1913) and the block (1914), respectively. The block (1913) and the block (1914) may include a boundary region D having samples on both sides of the shared boundary (1944) and a non-boundary region (1923) and a non-boundary region (1924) outside the boundary region D.

[0160] Referring to FIG. 19A, an image (1901) may include boundary regions A-D, and non-boundary regions (1921)-(1924) that are outside of boundary regions A-D.

[0161] Sub-border regions A1-D1 and sub-border regions A2-D2 (as well as border regions A-D) can have any suitable size (e.g., width and / or height). In the embodiment shown in FIG. 19A, sub-border regions A1, A2, B1, and B2 have the same size of m×n, where n is the width of blocks (1911)-(1914), and m is the height of sub-border regions A1, A2, B1, and B2. Both m and n are positive integers. In one example, m is 4 pixels or 4 samples. Thus, border region A and border region B have the same size of 2m×n. Sub-border regions C1, C2, D1, and D2 have the same size of n×m, where n is the height of blocks (1911)-(1914), and m is the width of sub-border regions C1, C2, D1, and D2. Thus, border region C and border region D have the same size of n×2m. As discussed above, the sub-border regions and border regions can have different sizes, such as different widths, different heights, etc. For example, sub-border region A1 and sub-border region A2 can have different heights. In one example, sub-border region C1 and sub-border region C2 can have different widths. Border region A and border region B can have different widths. Border region C and border region D can have different heights.

[0162] In some examples, the bounding region has a shape different from a rectangular or square shape. The bounding region can have an irregular shape that depends on the position(s), shape(s), and / or size(s) of the adjacent blocks.

[0163] 19A to 19B, boundary region A includes m samples (e.g., samples in m rows) from the first sharing boundary (1941) in block (1911) and m samples (e.g., samples in m rows) from the first sharing boundary (1941) in block (1913). Boundary region C includes m samples (e.g., samples in m columns) from the sharing boundary (1943) in block (1911) and m samples (e.g., samples in m columns) from the sharing boundary (1943) in block (1912).

[0164] Deblocking can be performed on one or more of the bounding regions A-D using a deblocking NN (1930), such as a deblocking NN based on DNN(s), CNN(s), or any suitable NN(s). In one example, the deblocking NN (1930) is implemented using a CNN including one or more convolutional layers. The deblocking NN (1930) can include additional layer(s) described in this disclosure, such as pooling layer(s), fully connected layer(s), normalization layer(s). The layers in the deblocking NN (1930) can be arranged in any suitable order and in any suitable architecture (e.g., feed-forward architecture, recurrent architecture). In one example, the convolutional layer is followed by other layer(s), such as pooling layer(s), fully connected layer(s), normalization layer(s).

[0165] Deblocking may be performed on boundary regions A-D using a deblocking NN (1930). One or more of the boundary regions A-D include artifacts. The artifacts may be induced by respective adjacent blocks. One or more of the boundary regions A-D may be sent to the deblocking NN (1930) to reduce the artifacts. Thus, the input to the deblocking NN (1930) includes one or more of the boundary regions A-D, and the output from the deblocking NN (1930) includes one or more of the deblocked boundary regions A-D.

[0166] 19B, boundary regions A-D include artifacts induced by respective adjacent blocks. Boundary regions A-D can be sent to a deblocking NN (1930) to reduce the artifacts. Output from the deblocking NN (1930) includes deblocked boundary regions A'-D'. In one example, artifacts in the deblocked boundary regions A'-D' are reduced compared to artifacts in boundary regions A-D.

[0167] 19B and 19C, the boundary regions A-D in the image (1901) are updated, for example, by replacing them with the deblocked boundary regions A'-D'. Thus, an image (1950) (e.g., a deblocked image) is generated, and the image (1950) includes the deblocked boundary regions A'-D' and the non-border regions (1921)-(1924).

[0168] In some examples, an image (1901) having boundary regions A-D is treated as a single boundary region. The image (1901) is sent to a deblocking NN (1930) to reduce blocking effects. Output from the deblocking NN (1930) may include a deblocked image (e.g., image (1950)), which may include deblocked boundary regions (e.g., A'-D') and non-border regions (1921)-(1924).

[0169] In some examples, a neighboring block that includes a boundary region(s) (e.g., block (1911)-(1912) that includes boundary region C) is sent to a deblocking NN (1930). The output from the deblocking NN (1930) includes a deblocked block, which may include a deblocked boundary region (e.g., C') and non-boundary regions (1921)-(1922).

[0170] One or more samples may be within multiple boundary regions. When the multiple boundary regions are replaced with corresponding deblocked boundary regions, any suitable method may be used to determine the value of one of the one or more shared samples.

[0171] 19A, there is a sample S in boundary region A and boundary region C. After obtaining boundary region A' and boundary region C', the following method can be used to obtain the value of sample S. In one example, boundary region A is replaced with deblocked boundary region A', and then boundary region C is replaced with deblocked boundary region C'. Thus, the value of sample S is determined by the value of sample S in deblocked boundary region C'.

[0172] In one example, boundary region C is replaced by deblocked boundary region C', and then boundary region A is replaced by deblocked boundary region A', so that the value of sample S is determined by the value of sample S in deblocked boundary region A'.

[0173] In one example, the value of sample S is determined by an average (eg, weighted average) of the value of sample S in deblocked boundary region A' and the value of sample S in deblocked boundary region C'.

[0174] A boundary region may include samples of more than two blocks. FIG. 20 illustrates an example deblocking process in which a boundary region may include samples of more than two blocks according to an embodiment of the present disclosure. A single boundary region AB may include boundary region A and boundary region B. Boundary region AB may include samples on both sides of a shared boundary (1941) between two adjacent reconstructed blocks (1911) and (1913) and may include samples on both sides of a shared boundary (1942) between two adjacent reconstructed blocks (1912) and (1914). A single boundary region CD may include boundary region C and boundary region D. Boundary region CD may include samples on both sides of a shared boundary (1943) between two adjacent reconstructed blocks (1911) and (1912) and may include samples on both sides of a shared boundary (1944) between two adjacent reconstructed blocks (1913) and (1914).

[0175] A deblocking NN, such as a deblocking NN (1930), may perform deblocking on one or more of the boundary regions AB and CD to generate one or more deblocked boundary regions of the boundary regions. Referring to FIG. 20, the boundary regions AB and CD are sent to the deblocking NN (1930), which generates a deblocked boundary region AB' and a deblocked boundary region CD'. The deblocked boundary region AB' and the deblocked boundary region CD' may replace the boundary region AB and the boundary region CD in the image (1901), thus generating an image (2050). The image (2050) may include the deblocked boundary regions AB'-CD' and the non-border regions (1921)-(1924). The image (2050) may be the same as or different from the image (1950).

[0176] According to an embodiment of the present disclosure, a multi-model deblocking method may be used. Different deblocking models may be applied to different types or categories of boundary regions to remove artifacts. A classification module may be applied to classify the boundary regions into different categories. Any classification module may be applied. In one example, the classification module is based on a NN. In one example, the classification module is not based on a NN. The boundary regions may be sent to different deblocking models according to their respective categories.

[0177] In one embodiment, the deblocking NN includes multiple deblocking NNs implemented based on different deblocking models. Which of the multiple deblocking NNs to apply to the boundary region can be determined, for example, by a classification module. Deblocking can be performed on the boundary region using the determined deblocking NN. In one example, which of the multiple deblocking NNs to apply is determined by a classification module based on a NN (e.g., a classification NN), such as a DNN, a CNN, etc.

[0178] In one embodiment, the deblocking NN includes a single NN that implements multi-model deblocking.

[0179] FIG. 21 illustrates an exemplary deblocking process (2100) based on multiple deblocking models, according to one embodiment of the present disclosure. The classification module (2110) can classify the boundary regions A-D into one or more categories. For example, the boundary regions C-D are classified into a first category, the boundary region B is classified into a second category, and the boundary region A is classified into a third category. Different deblocking models can be applied to boundary regions of different categories. In FIG. 21, the deblocking NN (2130) can be used to perform deblocking, such as multi-model deblocking based on multiple deblocking models (e.g., deblocking models 1-L). L is a positive integer. When L is 1, the deblocking NN (2130) includes a single deblocking model. When L is greater than 1, the deblocking NN (2130) includes multiple deblocking models. The deblocking NN (2130) can be implemented using a single NN or multiple NNs.

[0180] In one example, deblocking model 1 is applied to the boundary region(s) of a first category (e.g., C and D) to generate deblocked boundary region(s) (e.g., C″ and D″). Deblocking model 2 is applied to the boundary region(s) of a second category (e.g., B) to generate deblocked boundary region(s) (e.g., B″). Deblocking model 3 is applied to the boundary region(s) of a third category (e.g., A) to generate deblocked boundary region(s) (e.g., A″). The deblocked boundary regions A″-D″ may replace corresponding boundary regions A-D in image (1901), thus generating image (2150). Image (2150) may include deblocked boundary regions A″-D″ and non-border regions (2121)-(2124).

[0181] Any suitable metric may be applied to classify or categorize the boundary regions. In one example, the boundary regions are classified according to the content of the boundary regions. For example, boundary regions with high frequency content (e.g., content with relatively large variance) and boundary regions with low frequency content (e.g., content with relatively small variance) are classified into different categories corresponding to different deblocking models. The strength of artifacts in the boundary region may be used to classify the boundary region. The multi-model deblocking method may be applied to any suitable boundary region, such as a boundary region between two or more blocks (e.g., A, B, C, D, AB, and / or CD). The frequency of the boundary region may be determined based on a maximum difference of samples in the boundary region. In one example, a first difference of samples near a first edge on a first side of the shared boundary is determined. In one example, a second difference of samples near a second edge on a second side of the shared boundary is determined. In one example, the first difference and the second difference are determined.

[0182] A deblocking NN (e.g., the deblocking NN (1930) of FIG. 19B or the deblocking NN (2130) of FIG. 21) may be applied to remove artifacts between blocks. In one example, samples or pixels closer to the shared boundary may be deblocked more than samples (or pixels) further away from the shared boundary. Returning to FIG. 19A, sample S is closer to the shared boundary (1941) than sample F, and thus sample S may be deblocked more than sample F.

[0183] The deblocking model in the deblocking NN (e.g., Deblocking NN (1930) or Deblocking NN (2130)) can include one or more convolutional layers. For example, a CNN-based attention mechanism (e.g., non-local attention, squeeze and excitation network (SENet)), a residual neural network (ResNet) (e.g., including a set of CNNs or convnets and activation functions), etc. may be used. For example, the DNN used by image super-resolution can be used by, for example, changing the output size to be the same as the input size. In image super-resolution, the resolution of an image can be enhanced from a low resolution to a high resolution.

[0184] It is described above how to deblock the boundary region(s) using a NN or other learning-based method. In some examples, a video encoder and / or a video decoder may select between a NN-based deblocking method and a non-NN-based deblocking method. The selection may be made at various levels, such as slice level, picture level, Group of Pictures, sequence level, etc. The selection may be signaled using a flag. The selection may be inferred from the content of the boundary region.

[0185] In addition to the methods and embodiments described in this disclosure, the video encoder and / or video decoder may apply various levels of boundary strength (BS), for example, when the NN-derived adjustment for a pixel or sample is at a default level of boundary strength. By analyzing boundary conditions and block coding characteristics, different levels of BS may be assigned to modify (e.g., expand or shrink) the default adjustment.

[0186] According to one embodiment of the present disclosure, one or more of the non-boundary regions of the adjacent reconstructed blocks may be enhanced with an enhanced NN.

[0187] The deblocking NN (e.g., (1930) or (2130)) can be implemented using any suitable filtering method that can reduce artifacts, such as artifacts caused by blocking effects, and improve visual quality. The deblocking NN (e.g., (1930) or (2130)) can include any neural network architecture (e.g., feed-forward architecture or recurrent architecture), can include any number and any suitable combination of layers, can include one or more sub-neural networks, can include any suitable type of parameters (e.g., weights, biases, combinations of weights and biases), and can include any suitable number of parameters, as described in this disclosure. In one example, the deblocking NN (e.g., (1930) or (2130)) is implemented using DNN(s) and / or CNN(s).

[0188] In one example, the deblocking NN is implemented using a CNN that includes one or more convolutional layers. The deblocking NN can include additional layer(s) described in this disclosure, such as pooling layer(s), fully connected layer(s), normalization layer(s), etc. The layers in the deblocking NN can be arranged in any suitable order and in any suitable architecture (e.g., feed-forward architecture or recurrent architecture). In one example, the convolutional layer is followed by other layer(s), such as pooling layer(s), fully connected layer(s), normalization layer(s), etc. Each of the convolutional layers in the deblocking NN can include any suitable number of channels and any suitable convolution kernel and stride.

[0189] The deblocking NN can be trained based on any suitable training images or training blocks. The training of the deblocking NN can be similar or identical to that described above with reference to FIG. 9B. In one embodiment, the training images can include reconstructed images having artifacts due to blocking effects. In one embodiment, the training blocks can include reconstructed blocks having artifacts due to blocking effects. In one embodiment, the deblocking NN (e.g., (1930) or (2130)) is trained using the boundary regions (e.g., boundary regions A-D, AB, and / or CD) having artifacts due to blocking effects in the respective training blocks or training images. The deblocking NN (e.g., (1930) or (2130)) can be configured using the trained parameters after the training process. The trained deblocking NN can perform deblocking on one or more boundary regions as shown in FIGS. 19A-C, 20, 21, 22A, and 22B. A deblocking NN (e.g., (1930) or (2130)) can be applied to a reconstructed image (e.g., image (1901)) or a reconstructed block (e.g., blocks (1911)-(1912)) to reduce blocking effects, as described with reference to Figures 19B-19C. A deblocking NN (e.g., (1930) or (2130)) can be applied to boundary regions, as shown in Figures 22A-22B below.

[0190] The deblocking NN (e.g., (1930) or (2130)) can be trained separately to determine parameters in the deblocking NN. The deblocking NN (e.g., (1930) or (2130)) can be trained as a component within the NIC framework or trained together with the NIC framework. For example, the NIC framework (900) and the deblocking NN (e.g., (1930) or (2130)) can be trained together.

[0191] In the following description, for simplicity, the boundary signal may refer to a reconstructed image including the boundary region(s), an adjacent reconstruction block including the boundary region(s), or a boundary region(s) in the reconstructed image or an adjacent reconstruction block. The boundary signal may have artifacts due to blocking effects. In one embodiment, the boundary signal is not deblocked by a deblocking NN. The boundary signal may correspond to an encoded signal.

[0192] 9B, 19A, and 19B, the boundary signal may be based on the output(s) (e.g., reconstruction block) from the main decoder network (915), and the encoded signal corresponding to the boundary signal may be based on the output(s) (e.g., encoded block) from the entropy encoder (913).

[0193] In one example, the boundary signal may include a reconstructed image including boundary region(s), such as an image (1901) including reconstructed blocks (e.g., blocks (1911)-(1914)) from the main decoder network (915), where image (1901) includes boundary regions A-D. The encoded signal corresponding to the reconstructed image may include an encoded image based on output (e.g., encoded blocks) from the entropy encoder (913).

[0194] In one example, the boundary signal includes a boundary region (e.g., boundary region A, B, C, D, AB, or CD) in a reconstructed image (e.g., image (1901)). The encoded signal corresponding to the boundary region may include an encoded image based on an output (e.g., an encoded block) from the entropy encoder (913).

[0195] In one example, the boundary signal may include adjacent reconstructed blocks including a boundary region(s), such as blocks (1911)-(1912) from the main decoder network (915). The encoded signal corresponding to the adjacent reconstructed blocks may include encoded blocks (e.g., adjacent encoded blocks) based on the output from the entropy encoder (913).

[0196] In one example, the boundary signal may include boundary regions (e.g., boundary regions A, B, C, D, AB, or CD) within adjacent reconstructed blocks output from the main decoder network (915). The encoded signal corresponding to the boundary regions may include encoded blocks (e.g., adjacent encoded blocks) based on the output from the entropy encoder (913).

[0197] Deblocking may be applied to a boundary signal (e.g., a boundary region in a reconstructed image or reconstructed block, a reconstructed image, or an adjacent reconstructed block) to determine a deblocked boundary signal (e.g., a deblocked boundary region, a deblocked image, a deblocked adjacent reconstructed block). Deblocking may be used to reduce an RD loss L of the deblocked boundary signal, where the RD loss L may include a distortion loss D of the deblocked boundary signal and a rate loss R of an encoded signal corresponding to the boundary signal. In one embodiment, the encoded signal (e.g., an encoded image including the encoded block 931 or an encoded block including the encoded block 931 in FIG. 9B) is not affected by the deblocking process, so the rate loss R of the encoded signal remains unchanged in the deblocking process. Thus, the RD loss L of the deblocked boundary signal may be indicated by a distortion loss D of the deblocked boundary signal that depends on the deblocking process. Deblocking may be applied to reduce a distortion loss D of the deblocked boundary signal, where, for example, the distortion loss D of the deblocked boundary signal may be smaller than the distortion loss D of the corresponding boundary signal.

[0198] An example of deblocking is shown with reference to Figures 9A, 9B, and 19A-19C. An input image to be coded or compressed may be divided into blocks (e.g., input blocks) as described with reference to Figure 9A. With reference to Figure 9B, each of the input blocks (e.g., input block x) may be divided into a corresponding encoded block (e.g.,

number

number

[0199] In one example, the boundary signal to be deblocked is the reconstructed block

number

number

number

number

number

number

[0043]

number

number

number

number

number

number

number

[0200] The encoded image, as described above,

number

number

number

number

number

number

number

number

number

number

[0201] The above description can be adapted to the case where the boundary signal to be deblocked includes (i) adjacent reconstructed blocks (e.g., (1911) to (1912)) or (ii) a boundary region (e.g., boundary region A).

[0202] The boundary signal to be deblocked by the deblocking NN can correspond to an input signal (e.g., an input image or an input block) to be encoded and optionally included in the coded video bitstream. The deblocked boundary signal can be generated by the deblocking NN based on the boundary signal. If the boundary signal to be deblocked is significantly different from the training images, training blocks, and / or training boundary regions used to train the deblocking NN, the deblocked boundary signal may correspond to a relatively low RD loss L or a relatively large distortion D. Accordingly, aspects of the present disclosure describe content-adaptive online training methods and apparatus for deblocking, for example, for use in block-wise image compression. In content-adaptive online training for deblocking, one or more parameters (e.g., weight(s) and / or bias(es)) of the deblocking NN can be determined based on the boundary signal, and the boundary signal is generated based on the input signal (e.g., an input image or an input block) to be compressed (e.g., encoded) and / or included in the coded video bitstream. The input signal can include raw data or residual data. For simplicity, content-adaptive online training for deblocking based on the boundary signal to be deblocked is referred to as deblocking training in this disclosure.

[0203] According to one embodiment of the present disclosure, deblocking information indicative of one or more determined parameters of the deblocking NN (e.g., the determined weight(s) and / or the determined bias(es)) can be encoded and optionally included in the coded video bitstream. Thus, the RD loss L p may include a rate loss or bit consumption R(p) signaling deblocking information in the coded video bitstream. In one example, the boundary signal is

number

number

number

number

number

number

number

number

number

number

number

number

number

number

number

number

number

[0204] According to an embodiment of the present disclosure, at the encoder side, an input image to be compressed or coded can be divided into blocks. Referring to FIG. 9B, the blocks can be encoded into encoded blocks, for example, based on the NIC framework (900). The encoded blocks can be processed by the NIC framework (900) to generate reconstructed blocks.

[0205] The deblocking training can be performed at the encoder side, for example, based on a boundary signal associated with a reconstructed block (e.g., adjacent reconstructed blocks in a reconstructed block). In one example, the adjacent reconstructed blocks include a subset of the reconstructed blocks in a reconstructed image. In one example, the adjacent reconstructed blocks include each of the reconstructed blocks in the reconstructed image, and thus the entire reconstructed image is treated as adjacent reconstructed blocks. Thus, the boundary signal can include (i) the entire reconstructed image, such as image (1901), (ii) adjacent reconstructed blocks, such as blocks (1911)-(1912), or (iii) one or more boundary regions (e.g., one or more of boundary regions A-D) included in the reconstructed block.

[0206] According to one embodiment of the present disclosure, the boundary signal includes the entire reconstructed image. Deblocking training can be performed based on the reconstructed image, and one or more parameters of the deblocking NN are determined (e.g., updated) by optimizing the rate-distortion performance, for example, based on an iterative update process as described above with reference to FIG. 9B. In the deblocking training process, the term L training can be reduced by iteratively updating one or more parameters of the deblocking NN.

[0207] In one example, the boundary signal includes adjacent reconstructed blocks such as blocks (1911)-(1912). FIG. 22A illustrates an exemplary deblocking process according to one embodiment of the present disclosure. The adjacent reconstructed blocks (1911)-(1912) are fed to a deblocking NN (e.g., (1930)) to generate deblocked blocks (1911)′-(1912)′, which include a deblocked boundary region C′ and non-boundary regions (1921)-(1922). In one example, the distortion loss of the reconstructed blocks (1911)-(1912) is reduced to the distortion loss of the deblocked blocks (1911)′-(1912)′. According to one embodiment of the present disclosure, deblocking training may be performed based on adjacent reconstructed blocks, and one or more parameters of the deblocking NN are determined (e.g., updated) by optimizing the rate-distortion performance, for example, based on an iterative update process as described above with reference to FIG. 9B. In the deblocking training process, the term L training can be reduced by iteratively updating one or more parameters of the deblocking NN.

[0208] In one example, the boundary signal includes one or more boundary regions, such as one or more of boundary regions A-D shown in FIG. 19A and one or more of boundary regions AB and CD shown in FIG. 20. FIG. 22B illustrates an example deblocking process according to one embodiment of the present disclosure. Boundary region A of adjacent reconstructed block (1911) and reconstructed block (1913) is fed to a deblocking NN (e.g., (1930)) to obtain a deblocked boundary region A′. In one example, the distortion loss D of boundary region A is reduced to the distortion loss D of deblocked boundary region A′. According to one embodiment of the present disclosure, deblocking training can be performed based on one or more boundary regions, and one or more parameters of the deblocking NN are determined (e.g., updated) by optimizing the rate-distortion performance, for example, based on an iterative update process as described above with reference to FIG. 9B. In the deblocking training process, the term L training can be reduced by iteratively updating one or more parameters of the deblocking NN.

[0209] According to one embodiment of the present disclosure, the boundary signal includes boundary regions (e.g., A) in adjacent reconstructed blocks (e.g., (1911 and (1913)) in a reconstructed image (e.g., (1901)). On the encoder side, deblocking information indicative of the determined one or more parameters of the deblocking NN can be encoded in the video bitstream together with the corresponding encoded block. The deblocking information can correspond to the boundary signal (e.g., boundary region) used to determine the deblocking information in the deblocking training. For brevity, the following examples and / or embodiments are given using the boundary region(s) as the boundary signal(s), unless otherwise stated. The description can be appropriately adapted when the boundary signal(s) include the reconstructed image(s) or reconstructed block(s).

[0210] At the decoder side, the encoded block may be reconstructed from the coded video bitstream. The reconstructed block may include adjacent reconstructed blocks (e.g., (1911) and (1913)). Deblocking information in the coded video bitstream corresponding to the boundary region may be decoded, and the deblocking information may indicate one or more parameters of a deblocking NN in the video decoder. The deblocking NN in the video decoder may be determined based on the determined one or more parameters indicated by the deblocking information. In one example, the deblocking NN is determined specifically for the boundary region. The boundary region may be deblocked based on the determined deblocking NN corresponding to the boundary region.

[0211] Since one or more parameters in the deblocking NN are determined based on a boundary signal (e.g., a boundary region) to be deblocked, the deblocking NN may depend on the boundary signal (e.g., a boundary region). Since the boundary signal is determined based on an input image or block to be coded, the deblocking NN is content-adaptive to the input image or block to be coded. Since the deblocking training can be performed based on the boundary signal to be coded, the deblocking training can be online training. Since the deblocking training depends on the boundary signal and can thus be adjusted to the boundary signal, better compression performance can be achieved by using a deblocking NN determined using the deblocking training.

[0212] NN-based deblocking (e.g., DNN-based deblocking or CNN-based deblocking) can be implemented in a NN-based image coding framework (e.g., the NIC framework (900)) or other image compression methods. Deblocking training can be used as a preprocessing step (e.g., a pre-encoding step) to improve the compression performance of any image compression method.

[0213] The deblocking training may be image compression codec independent and may be performed with any suitable type of image compression codec. The image compression codec may be NN-based, such as the NIC framework (900) shown in FIG. 9B. The image compression codec may be implemented without a NN, such as the specific implementations of FIGS. 5-8.

[0214] The one or more parameters may include bias terms, weighting coefficients, etc. in the deblocking NN.

[0215] In one embodiment, the deblocking NN is not configured with initial parameters, and deblocking training is performed to generate parameters for the deblocking NN (eg, including one or more parameters of the deblocking NN).

[0216] In one embodiment, the deblocking NN is configured with initial parameters (e.g., initial weights and / or initial biases), e.g., prior to deblocking training. In one embodiment, the deblocking NN is pre-trained based on a training dataset including training blocks, training images, and / or training boundary regions. The initial parameters may include pre-trained parameters (e.g., pre-trained weights and / or pre-trained biases). In one embodiment, the deblocking NN is not pre-trained. The initial parameters may include randomly initialized parameters.

[0217] In one embodiment, one or more initial parameters of the initial parameters in the deblocking NN are iteratively updated in the deblocking training based on the boundary signal. The one or more initial parameters can be updated by one or more parameters (e.g., one or more replacement parameters) determined in the deblocking training. For example, the one or more initial parameters are replaced by one or more replacement parameters, respectively. In some examples, the one or more parameters indicated by the deblocking information are decompressed and then used to update the deblocking NN.

[0218] In one example, the entire set of initial parameters is updated with one or more replacement parameters. In one example, a subset of the initial parameters is updated with one or more replacement parameters, and a remaining subset of the initial parameters is left unchanged by the deblocking training.

[0219] By using the determined one or more parameters (e.g., one or more replacement parameters) in the deblocking NN, the deblocking NN is applied to the boundary signal to be deblocked, resulting in a smaller RD loss L p As described with reference to Equation 10, R(p) represents the bit consumption of one or more parameters (e.g., one or more substitution parameters) determined by the deblocking information encoded in the video bitstream.

[0220] According to one embodiment of the present disclosure, one or more other boundary regions (e.g., boundary region B in reconstructed blocks (1912) and (1914)) may be deblocked based on the determined deblocking NN corresponding to the boundary region (e.g., boundary region A). For example, if the boundary region (e.g., A) and one or more other boundary regions (e.g., B) have similar pixel distributions, the same deblocking NN may be applied to deblock the boundary region (e.g., A) and one or more other boundary regions (e.g., B), and a relatively high coding efficiency may be achieved.

[0221] The above description may be appropriately adapted to the case where multiple boundary signals, such as multiple boundary regions (e.g., boundary regions A to B), are used to determine one or more parameters in the deblocking NN, and the determined one or more parameters are shared by the multiple boundary signals.

[0222] According to an embodiment of the present disclosure, deblocking training can be referred to as a fine-tuning process, in which one or more initial parameters (e.g., one or more pre-trained parameters) of the deblocking NN can be updated (e.g., fine-tuned) based on a boundary signal(s) determined based on an input image(s) to be encoded and optionally included in the video bitstream or an input block of an input image to be encoded and optionally included in the video bitstream. The boundary signal(s) can be different from the training image, training block, or training boundary region used to obtain the pre-training parameters. Thus, the deblocking NN can be adapted to target the content of the input image(s) or input block.

[0223] In one example, the boundary signal includes a single boundary region (e.g., boundary region A), and deblocking training is performed on the single boundary region. A deblocking NN is determined (e.g., trained or updated) based on the single boundary region. The determined deblocking NN on the decoder side can be used to deblock the boundary region and optionally other boundary regions. The deblocking information can be encoded in the video bitstream together with the encoded block corresponding to the reconstructed block that includes the boundary region.

[0224] In one embodiment, the boundary signal includes multiple boundary regions (e.g., boundary regions A-B), and deblocking training is performed on the multiple boundary regions. A deblocking NN is determined (e.g., trained or updated) based on the multiple boundary regions. The determined deblocking NN at the decoder side can be used to deblock the multiple boundary regions, and optionally other boundary regions. The deblocking information can be encoded in the video bitstream together with an encoded block corresponding to a reconstructed block that includes the multiple boundary regions.

[0225] The rate loss R(p) may increase with the signaling of the deblocking information in the video bitstream. When the boundary signal includes a single boundary region, the deblocking information may be signaled for each boundary region, and a first increase in the rate loss R(p) is used to indicate the increase in the rate loss R(p) due to the signaling of the deblocking information for each boundary region. When the boundary signal includes multiple boundary regions, the deblocking information may be signaled for the multiple boundary regions and shared by the multiple boundary regions, and a second increase in the rate loss R(p) is used to indicate the increase in the rate loss R(p) due to the signaling of the deblocking information for each boundary region. Since the deblocking information is shared by multiple boundary regions, the second increase in the rate loss R(p) may be smaller than the first increase in the rate loss R(p). Thus, in some examples, it may be advantageous to determine (e.g., train or update) the deblocking NN using multiple boundary regions.

[0226] In one embodiment, a subset of parameters of the deblocking NN is determined in the deblocking training. For example, a subset of the initial parameters in the deblocking NN is updated in the deblocking training. In one embodiment, each parameter of the deblocking NN is determined in the deblocking training. For example, each initial parameter in the deblocking NN is updated in the deblocking training. In one example, the entire set of initial parameters is replaced with the determined one or more parameters.

[0227] In one embodiment, the one or more initial parameters that are updated are in a single layer (e.g., a single convolutional layer) of the deblocking NN. In one embodiment, the one or more initial parameters that are updated are in multiple or all layers (e.g., multiple or all convolutional layers) of the deblocking NN.

[0228] A deblocking NN can be specified by different types of parameters, such as weights, biases, etc. A deblocking NN can be configured with appropriate initial parameters, such as weights, biases, or a combination of weights and biases. If a CNN(s) is used, the weights can include elements in the convolution kernel.

[0229] In one embodiment, the one or more initial parameters to be updated are bias term(s) and only the bias term(s) are replaced with the determined parameter(s). In one embodiment, the one or more initial parameters to be updated are weights and only the weights are replaced with the determined parameter(s). In one embodiment, the one or more initial parameters to be updated include weights and bias term(s) and are replaced with the determined parameter(s).

[0230] In one embodiment, different types of parameters (e.g., biases or weights) may be determined (e.g., updated) for different boundary signals (e.g., boundary regions). For example, a first boundary region is used to update a first type of parameter (e.g., at least one bias) in the deblocking NN corresponding to the first boundary region, and a second boundary region is used to update a second type of parameter (e.g., at least one weight) in the deblocking NN corresponding to the second boundary region.

[0231] In one embodiment, different parameters are updated for different boundary signals (eg, different boundary regions).

[0232] In one embodiment, multiple boundary signals (e.g., multiple boundary regions) share the same one or more parameters. In one example, all boundary regions in a reconstructed image share the same one or more parameters.

[0233] In one embodiment, the one or more initial parameters to be updated are selected based on a characteristic of the boundary signal (e.g., the boundary region), such as the RGB variance of the boundary region. In one embodiment, the one or more initial parameters to be updated are selected based on the RD performance of the boundary region.

[0234] At the end of the deblocking training, one or more updated parameters may be calculated for each determined parameter or parameters (e.g., each replacement parameter or parameters). The deblocking information may indicate the updated parameter or parameters, and thus may indicate the determined parameter or parameters by indicating the updated parameter or parameters. In some embodiments, the updated parameter or parameters may be encoded in the video bitstream as the deblocking information. In one embodiment, the updated parameter or parameters are calculated as a difference between the determined parameter or parameters (e.g., each replacement parameter or parameters) and the corresponding initial parameter or parameters (e.g., pre-trained parameter or parameters). For example, the deblocking information indicates a difference between the one or more parameters and one or more of the initial parameters. The one or more parameters may be determined according to a sum of the difference and one or more of the initial parameters.

[0235] In one embodiment, the one or more updated parameters are the determined one or more parameters, respectively.

[0236] In one embodiment, how to obtain one or more updated parameters from the respective determined one or more parameters depends on the boundary signal (e.g., boundary region) used in the deblocking training. Different methods can be used for different boundary regions. In one example, the updated parameters of the deblocking NN applied to the first boundary region are calculated as the difference between the replacement parameters obtained based on the first boundary region and the corresponding initial parameters. In one example, the updated parameters of the deblocking NN applied to the second boundary region are the replacement parameters obtained based on the second boundary region.

[0237] In one embodiment, different boundary signals (different boundary regions) have different relationships between one or more updated parameters and one or more determined parameters. For example, for the first boundary region, one or more updated parameters are calculated as the difference between one or more replacement parameters and one or more corresponding pre-trained parameters. For the second boundary region, one or more updated parameters are one or more replacement parameters, respectively.

[0238] In one embodiment, how to obtain one or more updated parameters from each determined one or more parameters does not depend on the boundary signal (e.g., boundary region) used in deblocking training. In one example, all boundary regions share the same method for updating the parameter(s) in the deblocking NN. In one embodiment, multiple boundary regions (e.g., all boundary regions) in an image have the same relationship between one or more updated parameters and one or more replacement parameters.

[0239] In one embodiment, the relationship between the one or more updated parameters and the one or more replacement parameters is selected based on a characteristic of the boundary signal (e.g., the boundary region), such as the RGB variance of the boundary region. In one embodiment, the relationship between the one or more updated parameters and the one or more replacement parameters is selected based on the RD performance of the boundary region.

[0240] In one embodiment, the one or more updated parameters can be generated from the determined one or more parameters (e.g., one or more replacement parameters) using, for example, a certain linear or non-linear transformation, and the one or more updated parameters are (one or more) representative parameters generated based on the determined one or more parameters. The determined one or more parameters are transformed into the one or more updated parameters for better compression.

[0241] The one or more updated parameters may be compressed or uncompressed. In one example, the one or more updated parameters are compressed using, for example, a variant of the Lempel-Ziv-Markov chain algorithm (LZMA), the LZMA2 algorithm, the bzip2 algorithm, etc. In one example, compression for the one or more updated parameters is omitted.

[0242] In one embodiment, the compression method for the one or more updated parameters is different for different boundary signals (e.g., different boundary regions). For example, for a first boundary region, LZMA2 is used to compress the one or more updated parameters, and for a second boundary region, bzip2 is used to compress the one or more updated parameters. In one embodiment, the same compression method is used to compress the one or more updated parameters of multiple boundary regions (e.g., all boundary regions) in an image or in a reconstruction block. In one embodiment, the compression method is selected based on a characteristic of the boundary signal (e.g., boundary region), such as the RGB variance of the boundary region. In one embodiment, the compression method is selected based on the RD performance of the boundary region.

[0243] The deblocking training can include multiple epochs (e.g., iterations), where one or more initial parameters are updated in an iterative process. The deblocking training can stop when the training loss has flattened or is about to flatten. In one example, the deblocking training is performed by iterating the training loss (e.g., the RD loss L p Or term L training ) falls below a first threshold. In one example, deblocking training stops when the difference between two successive training losses falls below a second threshold.

[0244] Two hyperparameters (e.g., step size and maximum number of steps) determine the loss function (e.g., RD ​​loss L p Or term L training ) in the deblocking training. The max iterations can be used as a max iterations threshold for terminating the deblocking training. In one example, the deblocking training stops when the iterations reach the max iterations.

[0245] The step size may indicate a learning rate of an online training process (e.g., deblocking training). The step size may be used in the backpropagation calculations performed in the gradient descent algorithm or deblocking training. The step size may be determined using any suitable method.

[0246] In deblocking training, the step size of each boundary signal (e.g., each boundary region) may be different. In one embodiment, the step size of the deblocking training may be different for better compression results (e.g., better RD loss L p Or better term L training ), different step sizes can be assigned to border regions in the image.

[0247] In one embodiment, to achieve optimal results, different step sizes are used for boundary signals (e.g., boundary regions) with different types of content. Different types can refer to different variances. In one example, the step size is determined based on the variance of the boundary region used to update the deblocking NN. For example, the step size of a boundary region with high variance is larger than that of a boundary region with low variance, and high variance is larger than low variance.

[0248] In one embodiment, the step size is selected based on a characteristic of the boundary signal (e.g., the boundary region), such as the RGB variance of the boundary region. In one embodiment, the step size is selected based on the RD performance of the boundary region (e.g., the RD loss L p Or term L training ). Multiple sets of parameters (e.g., multiple sets of permutation parameters) can be generated based on different step sizes to achieve better compression performance (e.g., smaller RD loss L p or smaller term L training ) can be selected.

[0249] In one embodiment, a first step size can be used to perform a particular number of iterations (e.g., 100). Then, a second step size (e.g., the first step size plus / minus a size increment) can be used to perform a particular number of iterations. Results from the first and second step sizes can be compared to determine the step size to be used. Three or more step sizes may be tested to determine the optimal step size.

[0250] The step size may vary during deblocking training. The step size may have an initial value at the beginning of deblocking training, which may be reduced (e.g., halved) at a later stage of deblocking training, for example, after a certain number of iterations, to achieve finer adjustment. The step size or learning rate may be changed by a scheduler during iterative deblocking training. The scheduler may include a parameter adjustment method used to adjust the step size. The scheduler may determine the value of the step size such that the step size may increase, decrease, or remain constant in some intervals. In one example, the learning rate is changed at each step by the scheduler. A single scheduler or multiple different schedulers may be used for different boundary signals (e.g., different boundary regions). Thus, multiple sets of parameter(s) may be generated based on multiple schedulers, resulting in better compression performance (e.g., smaller RD loss L p or smaller term L training ) may be selected.

[0251] In one embodiment, multiple learning rate schedules are assigned to different boundary signals (e.g., different boundary regions) to achieve better compression results. In one example, all boundary regions in an image share the same learning rate schedule. In one example, a set of boundary regions share the same learning rate schedule. In one embodiment, the selection of the learning rate schedule is based on a property of the boundary region, such as the RGB variance of the boundary region. In one embodiment, the selection of the learning rate schedule is based on the RD performance of the boundary region.

[0252] In one embodiment, the structure (e.g., architecture) of the deblocking NN for each boundary signal (e.g., each boundary region) is identical. The structure of the deblocking NN can include the number of layers, how different nodes and / or layers are organized and connected, feed-forward architecture, recurrent architecture, DNN, CNN, etc. In one example, the structure refers to the number of convolutional layers, where different blocks have the same number of convolutional layers.

[0253] In one embodiment, different structures of the deblocking NN correspond to different boundary signals (e.g., different boundary regions). In one example, the deblocking NN has different numbers of convolutional layers corresponding to different boundary regions.

[0254] In one embodiment, whether to use a deblocking NN to deblock a boundary signal (e.g., a boundary region) depends on (i) the RD loss with deblocking training L p and the RD loss L without deblocking training, or (ii) the term L with deblocking training. training and the weighted distortion loss λ without deblocking training. In one embodiment, the best RD performance (e.g., the smallest RD loss L p ) is used to calculate the different RD losses L ps The selection is based on a comparison of

[0255] According to one embodiment of the present disclosure, each boundary signal (e.g., each boundary region) corresponds to a deblocking NN determined in deblocking training based on the boundary region. The deblocking NN can be updated independently of other deblocking NNs. For example, the deblocking NN corresponding to the first boundary region is updated independently of the deblocking NN corresponding to the second boundary region.

[0256] According to one embodiment of the present disclosure, a deblocking NN corresponding to a boundary signal (e.g., a boundary region) may be updated based on a deblocking NN corresponding to another boundary signal (e.g., another boundary region). In one example, a first deblocking information in a coded bitstream corresponding to a first boundary region is decoded. The first deblocking information may indicate a first parameter of a deblocking NN in a video decoder. A deblocking NN in a video decoder corresponding to the first boundary region may be determined based on the first parameter indicated by the first deblocking information. The first boundary region may be deblocked based on the determined deblocking NN corresponding to the first boundary region.

[0257] The second adjacent reconstructed block has a second shared boundary and can include a second boundary region of samples on both sides of the second shared boundary. The parameter(s) in the deblocking NN corresponding to the first boundary region can be used to update the deblocking NN corresponding to the second boundary region. For example, pixel distributions in boundary regions of the same image may be similar, so the parameter(s) to be updated of the deblocking NN corresponding to different boundary signals (e.g., different boundary regions) may be reduced. A second deblocking information in the coded video bitstream corresponding to the second boundary region can be decoded. The second deblocking information can indicate a second parameter. The second boundary region is different from the first boundary region. The deblocking NN can be updated based on the first parameter and the second parameter. The updated deblocking NN corresponds to the second boundary region and is composed of the first parameter and the second parameter. The second boundary region can be deblocked based on the updated deblocking NN corresponding to the second boundary region.

[0258] In one embodiment, different deblocking NNs can be applied to boundary signals (e.g., boundary regions) having different sizes. In general, the number of parameters in a deblocking NN may increase with the size (e.g., width, height, or area) of the boundary region.

[0259] In one embodiment, different deblocking NNs are applied to the same boundary signal (eg, the same boundary region) corresponding to different compression quality targets.

[0260] The NIC framework and deblocking NN may include any type of neural network and may use any neural network based image compression method, such as the context-hyperprior encoder-decoder framework, the scale-hyperprior encoder-decoder framework, the Gaussian mixture likelihood framework and variants of the Gaussian mixture likelihood framework, RNN-based recursive compression methods and variants of the RNN-based recursive compression methods.

[0261] The deblocking training method and apparatus in the present disclosure may have the following advantages: An adaptive online training mechanism is utilized to improve coding efficiency. The use of a flexible and general framework can adapt to various types of pre-trained frameworks and quality metrics. For example, a specific initial parameter (pre-trained parameter) in the deblocking NN can be replaced with a boundary signal (one or more) that is based on the block (one or more) or image (one or more) to be encoded by using online training.

[0262] FIG. 23 shows a flow chart outlining an encoding process (2300) according to one embodiment of the disclosure. The process (2300) can be used for encoding input blocks, deblocking training, and / or encoding deblocking information. In various embodiments, the process (2300) is performed by processing circuitry, such as processing circuitry in terminal devices (310), (320), (330), and (340), processing circuitry performing the functions of a video encoder (e.g., (403), (603), (703), (1600A), or (1700)). In one example, the processing circuitry performs a combination of functions, such as (i) one of the video encoder (403), video encoder (603), and video encoder (703), and (ii) one of the video encoder (1600A) or video encoder (1700). In some embodiments, the process (2300) is implemented with software instructions, such that when the processing circuit executes the software instructions, the processing circuit performs the process (2300). The process starts at (S2301) and proceeds to (S2310).

[0263] In (S2310), the encoded block (e.g.,

number

number

[0264] In (S2320), the reconstructed block is the encoded block

number

number

number

[0265] The deblocking NN may be configured with initial parameters, one or more of which may be iteratively updated in the deblocking training. The one or more initial parameters may be replaced with one or more parameters.

[0266] At (S2330), deblocking information indicative of the determined one or more parameters of the deblocking NN may be encoded. The deblocking information corresponds to a boundary signal (e.g., a boundary region). In some examples, the encoded block

number

[0267] The process (2300) may be appropriately adapted to various scenarios, and the steps in the process (2300) may be adjusted accordingly. One or more of the steps in the process (2300) may be adapted, omitted, repeated, and / or combined. Any suitable order may be used to perform the process (2300). Additional step(s) may be added. In one example, the boundary signal may include a reconstructed block, and the one or more parameters may be generated based on the reconstructed block. In one example, the boundary signal may include each reconstructed block in a reconstructed image, and the one or more parameters may be generated based on the reconstructed image.

[0268] FIG. 24 shows a flow chart outlining a decoding process (2400) according to one embodiment of the present disclosure. The process (2400) can be used in the reconstruction and deblocking of a boundary signal (e.g., a boundary region) based on deblocking information in a video bitstream. In various embodiments, the process (2400) is performed by a processing circuit, such as a processing circuit in a terminal device (310), (320), (330), or (340), a processing circuit performing the function of a video decoder (1600B), a processing circuit performing the function of a video decoder including a deblocking NN, or the like. In one example, the processing circuit performs a combination of functions including deblocking. In some embodiments, the process (2400) is implemented with software instructions, such that the processing circuit performs the process (2400) when the processing circuit executes the software instructions. The process starts at (S2401) and proceeds to (S2410).

[0269] At (S2410), a block of an image to be reconstructed from the coded video bitstream may be reconstructed. The reconstructed block may include a first adjacent reconstructed block having a first shared boundary and including a first boundary region of samples on either side of the first shared boundary.

[0270] At (S2420), first deblocking information in the coded video bitstream may be decoded. In one example, the first deblocking information corresponds to a first boundary region. The first deblocking information may indicate a first parameter (or a first deblocking parameter) of a deblocking neural network (NN) (e.g., a deep NN or DNN) in the video decoder. The first deblocking parameter of the DNN is an updated parameter that has been previously determined (e.g., trained) by a content adaptive training process. For example, the first deblocking parameter is determined by an online training process. In one example, the first deblocking information may include a first deblocking parameter.

[0271] The first deblocking parameter may be a bias term or a weighting coefficient in the deblocking NN.

[0272] The first deblocking information can indicate one or more parameters of the deblocking NN in various ways. In one example, the deblocking NN is configured with an initial parameter. The first deblocking information indicates a difference between the first parameter and one of the initial parameters, and the first parameter can be determined according to the sum of the difference and one of the initial parameters. In another example, the first postfiltering information directly indicates one or more parameters.

[0273] In one example, the number of layers in the deblocking NN depends on the size (e.g., width, height, or area) of the first bounding region.

[0274] In one example, the first boundary region further includes samples on both sides of a third shared boundary between a third two adjacent ones of the reconstructed blocks, and the first two adjacent reconstructed blocks are different from the third two adjacent reconstructed blocks.

[0275] At (S2430), a deblocking NN in the video decoder for the first border region may be determined based on a first parameter indicated by the first deblocking information.

[0276] In one example, the deblocking NN is configured with initial parameters, and one of the initial parameters is updated based on the first parameter, e.g., one of the initial parameters is replaced by the first parameter.

[0277] At (S2440), the first bounding region may be deblocked based on the determined deblocking NN corresponding to the first bounding region.

[0278] In one example, the first adjacent reconstructed block further includes a non-border area outside the first border area, and the first border area in the first adjacent reconstructed block is replaced with the deblocked first border area.

[0279] In one example, a second adjacent reconstructed block of the reconstructed block has a second shared boundary and includes a second boundary region having samples on both sides of the second shared boundary, The second boundary region can be deblocked based on the determined deblocking NN corresponding to the first boundary region.

[0280] The process (2400) proceeds to (S2499) and ends.

[0281] Process (2400) can be adapted appropriately to various scenarios, and steps in process (2400) can be adjusted accordingly. One or more of the steps in process (2400) can be adapted, omitted, repeated, and / or combined. Any suitable order can be used to perform process (2400). Additional step(s) can be added.

[0282] In one example, a second adjacent reconstructed block of the reconstructed block has a second shared boundary and includes a second boundary region of samples on both sides of the second shared boundary. Second deblocking information in the coded video bitstream corresponding to the second boundary region may be decoded. The second deblocking information may indicate a second parameter. The second boundary region may be different from the first boundary region. The deblocking NN may be updated based on the first parameter and the second parameter. The updated deblocking NN corresponds to the second boundary region and is composed of at least the first parameter and the second parameter. The second boundary region may be deblocked based on the updated deblocking NN corresponding to the second boundary region.

[0283] The embodiments of the present disclosure may be used separately or combined in any order. Furthermore, each of the methods (or embodiments), the encoder, and the decoder may be implemented by processing circuitry (e.g., one or more processors and / or one or more integrated circuits). In one example, the one or more processors execute a program stored on a non-transitory computer-readable medium.

[0284] This disclosure does not impose any limitations on the method used in the encoder, such as the NN-based encoder, or the decoder, such as the NN-based decoder. The neural network(s) used in the encoder, decoder, etc. may be any suitable type of neural network, such as a DNN, a CNN, etc.

[0285] Therefore, the content adaptive online training method of the present disclosure can be adapted to different types of NIC frameworks, for example, different types of encoding DNN, decoding DNN, encoding CNN, decoding CNN, etc.

[0286] The techniques described above can be implemented as computer software physically stored on one or more computer-readable media using computer-readable instructions. For example, Figure 25 illustrates a computer system (2500) suitable for implementing certain embodiments of the disclosed subject matter.

[0287] Computer software can be coded using any suitable machine code or computer language that can be assembled, compiled, linked, or similar mechanisms to produce code including instructions that can be executed directly, or via interpretation, microcode execution, etc., by one or more computer central processing units (CPUs) and graphics processing units (GPUs), etc.

[0288] The instructions may be executed on various types of computers or computer components including, for example, personal computers, tablet computers, servers, smartphones, gaming consoles, Internet of Things devices, and the like.

[0289] 25 for the computer system (2500) are exemplary in nature and are not intended to suggest any limitation as to the scope of use or functionality of the computer software implementing the embodiments of the present disclosure. The arrangement of components should not be interpreted as having any dependency or requirement regarding any one or combination of components illustrated in the exemplary embodiment of the computer system (2500).

[0290] The computer system (2500) may include certain human interface input devices. Such human interface input devices may be responsive to input by one or more human users, for example, via tactile input (keystrokes, swipes, data glove movements, etc.), audio input (voice, clapping, etc.), visual input (gestures, etc.), olfactory input (not shown). The human interface devices may also be used to capture certain media not necessarily directly associated with conscious human input, such as audio (voice, music, ambient sounds, etc.), images (scanned images, photographic images obtained from still image cameras, etc.), and video (two-dimensional video, three-dimensional video including stereoscopic video, etc.).

[0291] The input human interface devices may include one or more (only one of each is shown) of a keyboard (2501), a mouse (2502), a trackpad (2503), a touch screen (2510), a data glove (not shown), a joystick (2505), a microphone (2506), a scanner (2507), and a camera (2508).

[0292] The computer system (2500) may also include certain human interface output devices. Such human interface output devices may stimulate one or more of the senses of a human user, for example, through haptic output, sound, light, and smell / taste. Such human interface output devices may include haptic output devices (e.g., haptic feedback via a touch screen (2510), data gloves (not shown), or joystick (2505), although there may also be haptic feedback devices that do not function as input devices), audio output devices (such as speakers (2509), headphones (not shown)), visual output devices (such as screens (2510), including CRT screens, LCD screens, plasma screens, OLED screens, each with or without touch screen input capability, each with or without haptic feedback capability, some of which may be capable of outputting two-dimensional visual output, or output in more than three dimensions by means of stereoscopic output, etc.), and printers (not shown).

[0293] The computer system (2500) may also include human accessible storage devices and associated media for such storage devices, such as optical media including CD / DVD ROM / RW (2520) with CD / DVD or similar media (2521), thumb drives (2522), removable hard drives or solid state drives (2523), legacy magnetic media such as tapes or floppy disks (not shown), dedicated ROM / ASIC / PLD based devices (not shown) such as security dongles, etc.

[0294] Those skilled in the art will also understand that the term "computer-readable medium" as used in connection with the subject matter of this disclosure does not encompass transmission media, carrier waves, or other transitory signals.

[0295] The computer system (2500) may also include an interface (2554) to one or more communication networks (2555). The network may be, for example, wireless, wired, optical. The network may further be local, wide area, metropolitan, vehicular and industrial, real-time, and delay tolerant. Examples of networks include local area networks such as Ethernet, wireless LAN, cellular networks including GSM, 3G, 4G, 5G, LTE, television wired or wireless wide area digital networks including cable television, satellite television, and terrestrial broadcast television, and vehicular and industrial including CANBus. Certain networks generally require an external network interface adapter attached to a particular general data port (e.g., a USB port of the computer system (2500)) or peripheral bus (2549), while other networks are generally integrated into the core of the computer system (2500) by connection to a system bus described below (e.g., an Ethernet interface to a PC computer system or a cellular network interface to a smartphone computer system). Using any of these networks, the computer system (2500) can communicate with other entities. Such communication may be unidirectional, receive only (e.g., television broadcast), unidirectional transmit only (e.g., CANbus to a specific CANbus device), or bidirectional, for example, to other computer systems using local or wide area digital networks. Specific protocols and protocol stacks may be used with each of the networks and network interfaces as described above.

[0296] The aforementioned human interface devices, human accessible storage devices, and network interfaces may be connected to the core (2540) of the computer system (2500).

[0297] The cores (2540) may include one or more central processing units (CPUs) (2541), graphics processing units (GPUs) (2542), dedicated programmable processing units in the form of field programmable gate areas (FPGAs) (2543), hardware accelerators for specific tasks (2544), graphics adapters (2550), etc. These devices may be connected via a system bus (2548) along with read only memory (ROM) (2545), random access memory (2546), internal mass storage (2547) such as an internal hard drive that is not accessible to the user, SSDs, etc. In some computer systems, the system bus (2548) may be accessible in the form of one or more physical plugs to allow expansion with additional CPUs, GPUs, etc. Peripheral devices may be connected directly to the core's system bus (2548) or via a peripheral bus (2549). In one example, a screen (2510) may be connected to the graphics adapter (2550). Peripheral bus architectures include PCI, USB, and the like.

[0298] The CPU (2541), GPU (2542), FPGA (2543), and accelerator (2544) can execute certain instructions that may combine to constitute the aforementioned computer code. The computer code may be stored in a ROM (2545) or a RAM (2546). Temporary data may also be stored in the RAM (2546), and persistent data may be stored, for example, in an internal mass storage (2547). The use of cache memory, which may be closely associated with one or more of the CPU (2541), GPU (2542), mass storage (2547), ROM (2545), RAM (2546), etc., may enable fast storage and retrieval from any of the memory devices.

[0299] The computer readable medium can bear computer code for performing various computer-implemented operations. The medium and computer code can be those specially designed and constructed for the purposes of the present disclosure, or they can be of the available kind well known to those skilled in the computer software arts.

[0300] By way of example and not limitation, a computer system (2500) having an architecture, and in particular a core (2540), may provide functionality as a result of a processor (or processors) (including CPUs, GPUs, FPGAs, accelerators, etc.) executing software embodied in one or more tangible computer-readable media. Such computer-readable media may be user-accessible mass storage as described above, as well as media associated with a particular storage of the core (2540) that is non-transitory in nature, such as the core internal mass storage (2547) or ROM (2545). Software implementing various embodiments of the present disclosure may be stored in such devices and executed by the core (2540). The computer-readable media may include one or more memory devices or chips according to particular needs. The software may cause the core (2540), and in particular the processors (including CPUs, GPUs, FPGAs, etc.) therein, to execute particular processes or particular portions of particular processes described herein, including defining data structures stored in RAM (2546) and modifying such data structures according to processes defined by the software. Additionally or alternatively, the computer system may provide functionality as a result of logic hardwired or otherwise embodied in circuitry (e.g., accelerator (2544)) that may operate in place of or in conjunction with software to perform certain processes or certain portions of certain processes described herein. References to software may encompass logic, and vice versa, where appropriate. References to computer-readable media may encompass circuitry (such as integrated circuits (ICs)) that store software for execution, circuitry that embodies logic for execution, or both, where appropriate. The present disclosure encompasses any suitable combination of hardware and software. Appendix A: Acronyms JEM: Joint Exploration Model VVC: Versatile Video Coding BMS: Benchmark Set MV: Motion Vector HEVC: High Efficiency Video Coding SEI: Supplemental Enhancement Information VUI: Video Usability Information GOP: Group of Pictures TU: conversion unit PU: Prediction unit CTU: Coding Tree Unit CTB: coding tree block PB: Predicted block HRD: Hypothetical Reference Decoder SNR: Signal to Noise Ratio CPU: Central Processing Unit GPU: Graphics Processing Unit CRT: cathode ray tube LCD: Liquid crystal display OLED: Organic Light Emitting Diode CD:Compact Disc DVD: Digital Video Disc ROM: Read-Only Memory RAM: Random Access Memory ASIC: Application Specific Integrated Circuit PLD: Programmable Logic Device LAN: Local Area Network GSM: Global System for Mobile Communications LTE: Long Term Evolution CANBus: Controller Area Network Bus USB: Universal Serial Bus PCI: Peripheral Component Interconnect FPGA: Field Programmable Gate Area SSD: Solid State Drive IC: Integrated Circuit CU: coding unit NIC: Neural Image Compression RD: Rate Distortion E2E: End-to-end ANN: Artificial Neural Network DNN: Deep Neural Network CNN: Convolutional Neural Network

[0301] While this disclosure describes several exemplary embodiments, there exist modifications, substitutions, and various alternative equivalents that are within the scope of this disclosure. Thus, it will be appreciated that those skilled in the art can devise numerous systems and methods that, although not explicitly shown or described herein, embody the principles of this disclosure and are therefore within the spirit and scope of this disclosure. [Explanation of symbols]

[0302] 101 predicted samples 102 Arrow 103 Arrow 104 Square Block 110 Schematic diagram 201 Current Block 202 Surrounding Samples 203 Surrounding Samples 204 Surrounding Samples 205 Surrounding Samples 206 Surrounding Samples 300 Communication Systems 310 Terminal Devices 320 Terminal Devices 330 Terminal Devices 340 Terminal Devices 350 Network 400 Communication Systems 401 Video Source 402 Video Picture Stream 403 Video Encoder 404 Encoded video data 405 Streaming Server 406 Client Subsystem A copy of the 407 encoded video data 408 Client Subsystem A copy of the 409 encoded video data 410 Video Decoder 411 Video Picture Output Stream 412 Display 413 Capture Subsystem 420 Electronic Devices 430 Electronic Devices 501 Channel 510 Video Decoder 512 Rendering Device 515 Buffer Memory 520 Parser 521 Symbols 530 Electronic Devices 531 Receiver 551 Scaler / Descaler Unit 552 Intra Prediction 553 Motion Compensated Prediction 555 Aggregator 556 Loop Filter 557 Reference Picture Memory 558 Current Picture Buffer 601 Video Sources 603 Video Encoder 620 Electronic Devices 630 Source Coder 632 Coding Engine 633 Decoder 634 Reference Picture Memory 635 Predictor 640 Transmitter 643 coded video sequence 645 Entropy Coder 650 Controller 660 Channels 703 Video Encoder 721 General Controller 722 Intra Encoder 723 Residual Calculator 724 Residual Encoder 725 Entropy Encoder 726 Switch 728 Residual Decoder 730 InterEncoder 810 Video Decoder 871 Entropy Decoder 872 Intra Decoder 873 Residual Decoder 874 Reconstruction 880 Interdecoder 900 NIC Framework 911 Main Encoder Network 912 Quantizer 913 Entropy Encoder 914 Entropy Decoder 915 Main Decoder Network 916 Context Model NN 917 Entropy Parameter NN 921 HyperEncoder 922 Quantizer 923 Entropy Encoder 924 Entropy Decoder 925 Hyper Decoder 931 Encoded block x 932 encoded bits 951 1st Sub-NN 952 Second Sub-NN 980 images Block 981~996 1600A Video Encoder 1600B Video Decoder 1700 Video Encoder 1800 Video Decoder 1900 Deblocking Process 1901 images 1911~1914 Block 1911', 1912' Deblocked blocks 1921~1924 Non-boundary area 1930 Deblocking Neural Networks 1941 First shared boundary 1942 Second Shared Boundary 1943 Shared Boundary 1944 Shared Boundary 1950 Images 2050 images 2100 Deblocking Process 2110 Classification Module 2121~2124 Non-boundary area 2130 Deblocking NN 2150 images 2300 Encoding Process 2400 Decoding Process 2500 Computer System 2501 Keyboard 2502 Mouse 2503 Trackpad 2505 Joystick 2506 Microphone 2507 Scanner 2508 Camera 2509 Speaker 2510 Touch Screen 2520 CD / DVD ROM / RW 2521 CD / DVD or similar media 2522 Samud Drive 2523 Removable Hard Drive or Solid State Drive 2540 cores 2541 Central Processing Unit (CPU) 2542 Graphics Processing Unit (GPU) 2543 Field Programmable Gate Area (FPGA) 2544 Hardware accelerators for specific tasks 2545 Read-Only Memory (ROM) 2546 Random Access Memory 2547 Internal Mass Storage 2548 System Bus 2549 General Data Port or Peripheral Bus 2550 Graphics Adapter 2554 Interface 2555 Communication Network

Claims

1. 1. A method for video decoding in a video decoder, comprising: reconstructing a block of the image to be reconstructed from the coded video bitstream to obtain a reconstructed block; Decoding first deblocking information in the coded video bitstream, the first deblocking parameters of a deep neural network (DNN) in the video decoder, the first deblocking parameters of the DNN being updated parameters previously determined by a content adaptation training process; determining the DNN in the video decoder for a first boundary region including a subset of samples in the reconstructed block based on the first deblocking parameters included in the first deblocking information; deblocking the first boundary region including the subset of samples in the reconstructed block based on the determined DNN corresponding to the first deblocking parameter; Including, The method, wherein the number of layers of the DNN depends on the size of the first bounding region.

2. the reconstructed blocks include first two adjacent reconstructed blocks having a first shared boundary and including the first bounding region of samples on either side of the first shared boundary; the first two adjacent reconstruction blocks further include a non-boundary area outside the first bounding area; the first border region in the first two adjacent reconstruction blocks is replaced with the deblocked first border region; The method of claim 1.

3. The method of claim 1 , wherein the first deblocking parameter is a bias term or weighting coefficient within the DNN.

4. The DNN is configured with initial parameters, and wherein the determining step includes updating one of the initial parameters based on the first deblocking parameter. The method of claim 1.

5. the first deblocking information indicating a difference between the first deblocking parameter and one of the initial parameters; The method further includes determining the first deblocking parameter according to a sum of the difference and one of the initial parameters. The method of claim 4.

6. the reconstructed blocks include second two adjacent reconstructed blocks having a second shared boundary and including a second boundary region of samples on either side of the second shared boundary; The method comprises: decoding second deblocking information in the coded video bitstream corresponding to the second boundary region, the second deblocking information indicating second deblocking parameters previously determined by a content adaptation training process, the second boundary region being different from the first boundary region; updating the DNN based on the first deblocking parameter and the second deblocking parameter, the updated DNN corresponding to the second boundary region and configured with the first deblocking parameter and the second deblocking parameter; deblocking the second boundary region based on the updated DNN corresponding to the second boundary region; Further comprising: The method of claim 2.

7. the reconstructed block includes two second adjacent reconstructed blocks having a second shared boundary and including a second boundary region having samples on either side of the second shared boundary; The method further includes deblocking the second boundary region based on the determined DNN corresponding to the first boundary region. The method of claim 2.

8. the first boundary region further includes samples on both sides of a third shared boundary between a third two adjacent reconstructed blocks included in the reconstructed block; the first two adjacent reconstructed blocks are different from the third two adjacent reconstructed blocks; The method of claim 2.

9. Apparatus configured to perform the method according to any one of claims 1 to 8.

10. A computer program for causing a computer to carry out the method according to any one of claims 1 to 8.

Citation Information

Patent Citations

  • Image filter device

    JP2019201256A

  • Image decoder, image decoding method, and program

    JP2020150358A

  • Loop filtering device and image decoding device

    JP2021016150A