Iterative training of neural networks for intra prediction
By using an iterative training method, and leveraging the partitioned data of the codec to extract blocks and their context, the problem of insufficient generalization or specialization of neural networks in video codecs is solved, thereby improving the accuracy of intra-frame prediction and the efficiency of encoding and decoding.
Patent Information
- Application Number
- CN202611233551.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2020-01-13
- Filing Date
- 2020-11-03
- Publication Date
- 2026-11-27
AI Technical Summary
Existing video codecs suffer from overgeneralization or underspecialization when training neural networks for intra-frame prediction, resulting in poor prediction performance.
An iterative training method is adopted, which extracts blocks and their context from the partitioned data of the codec to train the neural network, so that it gradually deviates from the original prediction in the codec while maintaining rate distortion performance and avoiding fuzzy prediction.
It improves the accuracy of intra-frame prediction and encoding/decoding efficiency, and enhances video compression performance.
Smart Images

Figure CN123185350A_ABST
Abstract
Description
[0001] This is a divisional application. The parent application is entitled "Iterative Training of Neural Networks for Intra-Frame Prediction", filed on November 3, 2020, with application number 202080076859.4. Technical Field
[0002] At least one embodiment of this implementation typically relates to a method or apparatus for video encoding or decoding, compression or decompression. Background Technology
[0003] To achieve high compression efficiency, image and video coding schemes typically employ prediction and transformation, including motion dimension prediction, to utilize spatial and temporal redundancy in video content. Generally, intra-frame or inter-frame prediction is used to leverage intra-frame or inter-frame correlations, and then the difference between the original image and the predicted image (usually represented as prediction error or prediction residual) is transformed, quantized, and entropy-coded. To reconstruct the video, the compressed data is decoded through the inverse process corresponding to entropy coding, quantization, transformation, and prediction. Summary of the Invention
[0004] At least one embodiment of this implementation generally relates to a method or apparatus for video encoding or decoding, and more specifically to a method or apparatus for simplifying encoding patterns based on a parameter model of neighbor-sample dependence.
[0005] According to a first aspect, a method is provided. The method includes the steps of training a set of neural networks for intra-frame prediction of a video block using pairs of partitioned portions of a video block and a surrounding region; extracting additional pairs of the video block and the surrounding region by iteratively using the set of neural networks as additional intra-frame coding modes for a codec; and retraining the set of neural networks using the extracted additional pairs to generate a set of neural networks for intra-frame prediction.
[0006] According to the first aspect, a method is provided. The method includes the aforementioned training step on an ensemble of neural networks for intra-frame prediction, and further includes performing encoding or decoding of video blocks using the generated ensemble of neural networks.
[0007] According to another aspect, an apparatus is provided. The apparatus includes a processor. The processor can be configured to encode video blocks or decode bitstreams by performing any of the methods described above.
[0008] According to another general aspect of at least one embodiment, an apparatus is provided comprising: means according to any embodiment of the decoding embodiment; and at least one of: (i) an antenna configured to receive a signal including a video block; (ii) a band limiter configured to limit the received signal to a band including the video block; and (iii) a display configured to display an output representing the video block.
[0009] According to another general aspect of at least one embodiment, a non-transitory computer-readable medium is provided, the non-transitory computer-readable medium containing data content generated according to any embodiment or variant of the described encoding embodiment or variant.
[0010] According to another general aspect of at least one embodiment, a signal is provided that includes video data generated according to any embodiment or variant of the described encoding embodiment or variant.
[0011] According to another general aspect of at least one implementation scheme, the bitstream is formatted to include data content generated according to any of the described encoding implementation schemes or variations.
[0012] According to another general aspect of at least one embodiment, a computer program product is provided, the computer program product including instructions that, when executed by a computer, cause the computer to perform any of the described coded embodiments or variations.
[0013] These and other aspects, features, and advantages of the general aspects will become apparent from the following detailed description of exemplary embodiments read in conjunction with the accompanying drawings. Attached Figure Description
[0014] Figure 1 The example shown is a reference sample used for intra-frame prediction in H.266 in the case of a square current block.
[0015] Figure 2 The intra-frame predicted orientation of a square block in H.266 is shown.
[0016] Figure 3 The top and left CU positions are shown for deriving the MPM list for different block shapes.
[0017] Figure 4 The diagram illustrates a decision tree for intra-frame prediction signaling for lumen in VTM-6.0.
[0018] Figure 5 An example decision tree illustrating intra-frame prediction signaling for chroma in VTM-6.0 is shown.
[0019] Figure 6 An example of the context surrounding the current square block to be predicted is shown.
[0020] Figure 7 An example of intra-frame prediction of square blocks from their context is shown using a fully connected neural network.
[0021] Figure 8 An example of intra-frame prediction of square blocks from their context is shown using a convolutional neural network.
[0022] Figure 9 The diagram illustrates the extraction of W×W block Y from the original image I via H.265 and the extraction of its context X from the reconstruction of I.
[0023] Figure 10 The diagram illustrates the extraction of an additional W×W block Y from the original image I via H.265 and the extraction of its context X from the reconstruction of I.
[0024] Figure 11 This shows the context reconstructed via H.265 through a W×W block Y from the original image I and from I. X An example of extraction using "extract_pair".
[0025] Figure 12 An example of extraction via H.266 through the H×W block Y from the original image I and the “extract_pair” of its reconstructed context X from I.
[0026] Figure 13 This shows the spatial location given by the image partitions. x, y The example extracted via the H×W block Y from the original image I and its context X uses H.266.
[0027] Figure 14 This demonstrates a standard, general-purpose video compression scheme.
[0028] Figure 15 This demonstrates a standard, general-purpose video decompression scheme.
[0029] Figure 16 A processor-based system for encoding / decoding is shown, based on aspects described in general.
[0030] Figure 17 An implementation of the method according to the aspects described in general is shown.
[0031] Figure 18 Another embodiment of the method according to the aspects described in general is shown.
[0032] Figure 19 An exemplary device based on the described aspects is shown. Detailed Implementation
[0033] Intra-frame prediction is a core coding tool in all video compression standards, such as H.264 / AVC, HEVC, and VVC. The basic idea is to leverage spatial correlations in an image frame sequence by predicting blocks of pixels based on already decoded causally adjacent pixels. The prediction residuals at the encoder are then transformed using a block transform, the transform coefficients are quantized, and then binary encoded. At the decoder, the blocks are reconstructed by adding the predictions to the decoded residuals, which is the reverse process of binary decoding, dequantization, and inverse transform.
[0034] For prediction purposes, the standard defines several models known as prediction modes. For example, HEVC defines 35 prediction modes, one of which is a planar mode, one is a DC mode, and the remaining 33 are angular modes. The planar and DC modes are designed to model regions of slowly and gradually changing intensity, while the angular modes are designed to model the orientation of different objects. On the other hand, VVC defines 67 regular intra-frame prediction modes, which include the 35 prediction modes from HEVC and an additional 32 angular modes. VVC also defines 28 wide-angle modes for use with rectangular coded blocks. The encoder prediction tool selects the optimal prediction mode in terms of rate distortion performance and signals it to the decoder using the mode coding scheme. The decoder prediction tool decodes the prediction mode and uses the decoded pixels from neighboring pixels to predict the current block using this mode.
[0035] The general aspects described in this paper address the problem of training neural networks for intra-frame prediction in video codecs such as H.265 / HEVC and H.266 / VVC. The term "context" is used to refer to the adjacent region of a block fed into the neural network, including several rows of decoded pixels above the block and several columns of pixels to the left of the block. In contrast, in H.265 / H.266, the term "reference sample" is always used to refer to the adjacent region of this block fed into the intra-frame prediction mode, including a row of decoded pixels above the block and a column of decoded pixels to the left of the block.
[0036] The neural network used for intra-frame prediction infers a prediction for the current block from the context or neighboring regions surrounding it. An ensemble of trained neural networks forms a single, additional intra-frame prediction pattern within the video codec of interest. In this additional single pattern, each neural network predicts blocks of a different size.
[0037] There are two ways to train a neural network within this set. The first method involves using an encoder-decoder pair of blocks at random spatial locations and their context from Y.C b C r Images and their reconstructions are extracted, and then a neural network is trained on these pairs. More precisely, from Y at random spatial locations... C b C r Image patches are extracted, and their context is extracted from the image reconstruction at the same spatial location using an encoder-decoder. However, trained neural networks tend to provide fuzzy predictions because they are trained on multiple unrestricted pairs of patches and their contexts. Trained neural networks are said to be over-generalized. In the second approach, the image is extracted from Y using an encoder-decoder of interest. C b C r Pairs of blocks and their contexts are extracted from image partitions, and then a neural network is trained on these pairs. More precisely, a collection of data from Y... C b C r The image is partitioned by each block returned by the codec, and its context is extracted from the reconstruction of the image. However, the trained neural network primarily learns the codec's intra-frame predictions because the partitioning mechanism ensures that each returned block is predicted relatively well by the intra-frame prediction patterns in the codec from its reconstructed reference sample set. At this point, the trained neural network is considered overly "specialized" for the video codec.
[0038] To find a trade-off between extreme generalization and extreme specialization of the trained neural network's codec, an iterative training method for the neural network for intra-frame prediction is proposed. In the first iteration, the neural network ensemble is trained according to the second method described above. Then, for several iterations, (i) the neural network ensemble is inserted into the codec, and the prediction is performed from Y using a codec with a single additional mode based on the neural network. C b C r (ii) Extract pairs of blocks and their contexts from the partitions of the image, and retrain the neural network on these pairs. In this way, the neural network learns intra-prediction that deviates from the intra-prediction in the codec starting from the second iteration, while still being valuable to the codec in terms of rate distortion performance.
[0039] This section introduces intra-frame prediction components for video codecs. It focuses on the H.266 video codec because it is currently considered the best video codec in terms of compression performance, and it is an extension of H.265. Then, it presents neural network-based intra-frame prediction and two methods from the literature for training neural networks.
[0040] The intra-frame prediction process in H.266 consists of the following steps: collecting reference samples, processing these samples, deriving the actual predictions for the samples in the current block, and finally post-processing the predicted samples.
[0041] The reference sample generation process is in Figure 1 As shown in the diagram, the "top" row of 2W samples is formed by previously reconstructed pixels located above the current block, where W represents the block width. Similarly, the "left" column of 2H samples is formed by reconstructed pixels located to the left of the current block, where H represents the block height. Corner pixels are also used to fill the gaps between the "top" row and the "left" column references. If some samples above and / or to the left of the current block are unavailable, a method called reference sample replacement is performed because the corresponding coded block (CB) is not in the same slice, or the current CB is at a frame boundary. In this method, the missing samples are copied from the available samples in a clockwise direction. The reference samples are then filtered using a specified filter based on the current CU size and prediction mode.
[0042] H.266 includes a family of prediction models derived from those in H.265. Planar and DC prediction models are used to predict smooth and gradually changing regions, while angular prediction models are used to capture different oriented structures. For each rectangular block shape, there are 65 directional prediction models organized in different ways. These prediction models correspond to, for example,... Figure 2 The different prediction directions are shown.
[0043] Intra-prediction is further extended using tools such as intra-prediction using multiple reference lines (MRL), intra-prediction using sub-partitions (ISP), and matrix intra-prediction (MIP). MIP is a set of intra-prediction modes, each of which infers the prediction of the current block from the reconstructed pixels through an affine transformation [4]. For 4×4 blocks, there are 35 modes. For 4×8, 8×4, and 8×8 blocks, there are 19 modes. For other blocks, 11 modes are used.
[0044] Intra-frame prediction signaling for lumen The following paragraphs focus on signaling in planar mode, DC mode, and 65 directional modes, omitting signaling for MRL, ISP, and MIP. These last three will be described in detail in subsequent paragraphs.
[0045] Signaling in planar mode, DC mode, and 65 directional modes On the encoder side, the optimal intra-prediction mode according to the rate distortion criterion is selected, and its index is transmitted from the encoder to the decoder. To execute the signaling of the selected mode index via entropy coding, a list of maximum possible modes (MPMs) is established.
[0046] In VTM-6.0, the MPM list contains six intra-prediction modes used to signal the intra-prediction mode for the current block. The MPM list is created from the prediction modes of the intra-coded CUs located above and to the left of the current CU, along with some default modes. The above and left CUs are located at the right and bottom edges of the current block, respectively. Figure 3 As shown.
[0047] Using circular adjacency in the range [2-66], it is equivalent to writing Using the relationships described above, the MPM list derivation is shown in Table 1.
[0048] Table 1: MPM Derivation in VTM-6.0. A and L represent the prediction modes of the upper and left CUs, respectively. .
[0049] If the selected intra-prediction mode used to predict the current block corresponds to one of the six MPM modes, this is signaled by: via a value of 1 mpmFlag And then, by using the variable-length encoding scheme shown in Table 2, the candidate patterns from the MPM list are signaled. Otherwise, mpmFlag The value is equal to 0, and the candidate indices in the set of the remaining 61 patterns are truncated into binary codes using 5 or 6 bits.
[0050] Table 2: MPM Signaling in VTM-6.0 .
[0051] Signaling of Multiple Reference Lines (MRLs) For intra-frame prediction using MRL, use the label multiRefIdx Send a signal to the reference row used for prediction. multiRefIdx The valid values are 0, 1, and 3, which respectively signal the first reference line, the second reference line, and the fourth reference line. When multiRefIdx When the value is non-zero (meaning the second or fourth reference row is used), the prediction pattern always belongs to the MPM list. Therefore, no signal is issued. mpmFlag Furthermore, planes are excluded from the list. This means when multiRefIdx When the value is non-zero, only five prediction patterns are available as possible candidate patterns. multiRefIdx When the value is non-zero, the prediction mode is signaled as shown in Table 3.
[0052] Table 3: In VTM-6.0 multiRefIdx When the value is greater than 0, a signal is sent to notify the MPM signaling. .
[0053] Signaling utilizing intra-frame prediction (ISP) of sub-partitions For ISPs, it is called ispMode The flag is signaled to indicate the partition type used for the CU. Only when... multiRefIdx When equal to 0, for ispMode Encode it. ispMode The valid values are 0, 1, and 2, which respectively signal the absence of partitions, horizontal partitions, and vertical partitions.
[0054] Signaling for Matrix Intra-Frame Prediction (MIP) Firstly, it is called mipFlag The flag signals the MIP mode; a value of 1 means the MIP mode is used to predict the current block, and 0 means one of the 67 intra-frame prediction modes is used. When mipFlag When equal to 1, multiRefIdx It must equal 0, which means using the first reference line, and ispMode A value of 0 indicates that the target CU partition does not exist. Therefore, when mipFlag When equal to 1, multiRefIdx and ispMode Do not write to the bitstream. If mipFlag If the value is 1, then the index of the selected MIP mode is truncated and encoded in binary from VTM-6.0 onwards.
[0055] To handle cases where the intra-prediction mode used to predict the current block is one of 67 intra-prediction modes and the selected mode used to predict the upper CU or the selected mode used to predict the left CU is a MIP mode, a mapping between each MIP mode and one of the regular modes allows the MIP mode to be replaced with its mapped regular mode. Since VTM-6.0, any MIP mode is mapped to a plane.
[0056] Summary of Intra-Frame Prediction Signaling for Luminosity pass Figure 4 The decision tree summary in the image is used for intra-frame prediction signaling of brightness. Figure 4 In the diagram, light gray markers indicate that the value of a marker is derived from the value of a previous marker written to the bitstream on the encoder side and read from the bitstream on the decoder side. This means that markers in light gray are not written to the bitstream on the encoder side; nor are these markers read from the bitstream on the decoder side.
[0057] Intra-frame prediction signaling for chroma For two chroma channels, neither MRL, ISP, nor MIP are used. Instead, two specific tools are employed: Direct Mode and Inter-Component Linear Model (CCLM). Direct Mode corresponds to applying the selected mode used to predict the juxtaposed luma block to the prediction of the current chroma block. If directFlagequals 1, the direct mode is selected for predicting the current chroma block. Otherwise, directFlag equals 0, the list L =[Planar, Vertical, Horizontal, DC] is selected. If L one mode in equals the direct mode, this mode is replaced by the mode of index 66. In CCLM, a linear model predicts the current chroma block from reconstructed luma reference samples of surrounding collocated luma blocks. The parameters of the linear model are derived from the reconstructed reference samples. There are three CCLM modes, each mode being associated with a different derivation of the parameters. If cclmFlag equals 1, one CCLM mode among the three CCLM modes is selected. In this case, directFlag is not written in the bitstream. Otherwise, cclmFlag equals 0, and either the direct mode or one mode among the modes of L is selected. In Figure 5 the intra prediction signalling for chroma is represented.
[0058] Intra-frame prediction based on neural networks A neural network for intra prediction infers the prediction of a block from the context surrounding the current block to be predicted. The context X c is composed of reconstructed pixels located above and to the left of the current block Y, similar to the set of reconstructed reference samples used for intra prediction in H.266. However, unlike it, the context X c extends towards the left and top, see Figure 6 . Thanks to this extension, the neural network can learn the relation between the spatial correlation in its input context and the prediction it gives. Note that the subscript “c” in X c indicates that the reconstructed pixels of the context have been pre-processed, as detailed in the section “Signaling a Neural Network-based Intra Prediction Mode Inside a Video Codec”.
[0059] If the neural network is fully connected, the context is usually flattened into a vector, and the resulting vector is fed into the neural network. Then, the vector provided by the neural network is reshaped into the shape of the current block, yielding the prediction , see Figure 7 . Note that the subscript “c” in indicates that the predicted pixels have not been post-processed, as explained in the section “Signaling a Neural Network-based Intra Prediction Mode Inside a Video Codec”.
[0060] If the neural network is convolutional, the context can be divided into two parts. Each part is then fed into a stack of convolutional layers. The two stacks of feature maps at the outputs of the two convolutional layers are merged through full connectivity. Finally, the merged result is inserted into a stack of transposed convolutional layers to produce a prediction. See Figure 8 .
[0061] Create a neural network-based intra-frame prediction mode within the video codec. In H.265 and H.266, images are divided into Coding Tree Units (CTUs). A CTU contains a Luminance Coding Tree Block (CTB), two Chroma CTBs, and syntax elements. Now, let's focus on the Luminance CTB for simplicity. One CTB is processed at a time in raster scan order. Each CTB can be further divided into Coding Blocks (CBs). CBs within a CTB are processed in Z-scan order. For example, in H.265, the size of the block to be predicted can be 64×64, 32×32, 16×16, 8×8, or 4×4. This means that five neural networks are needed, one for each size of the block to be predicted. Therefore, a neural network-based intra-frame prediction mode consists of five neural networks. In H.266, when the hierarchical segmentation is more complex, the block to be predicted can have the following sizes: 128×128, 64×64, 32×32, 16×16, 8×8, or 4×4. Alternatively, it can also be, for example, a rectangle of size 4×8. In this case, the solution is to allocate one neural network per block size to build neural network-based patterns.
[0062] Signaling is sent within the video codec to notify the neural network-based intra-frame prediction mode. In different runs of integrating neural network-based intra-prediction modes into video codecs [1, 2, 3] (typically H.265), the neural network-based mode systematically competes with existing modes. For the current block to be predicted, a marker is written to the bitstream before all other markers used for intra-prediction. A value of 1 indicates that a neural network-based intra-prediction mode is selected for predicting the current block. In this case, other markers used for intra-prediction are not written to the bitstream. A value of 0 means that one of the regular intra-prediction modes is selected. In this case, the regular markers used for intra-prediction are then written to the bitstream.
[0063] Note that the signaling mentioned above has been implemented in H.265. A method has not yet been proposed in H.266. It is worth noting that how to handle the tags is unclear when selecting a neural network-based mode. mipFlag , multiRefIdx and ispMode .
[0064] Training a neural network for intra-frame prediction In the literature, there are two main approaches to training neural networks for intra-frame prediction. These two approaches, referred to as training via “random” data extraction and training via “partitioned” data extraction, are described in the following two sections.
[0065] pass " random ” Data extraction for training In the first approach to training a neural network for intra-frame prediction, the codec of interest is used to determine the position of Y at a random spatial location. C b C r Pairs of blocks and their contexts are extracted from the image and its reconstruction, and then a neural network is trained on these pairs. More specifically, we take the training of a neural network for predicting W×W blocks as an example. For Y... C b C r Each image I in the set of images is encoded via a codec of interest, and several times, (i) at random spatial locations. Extract W×W block Y from I, see [link / reference] Figure 9 (ii) Reconstruction of I at (x,y) (iii) Extract its context X; (iii) Preprocess the block and its context and add them to the training set of the neural network used to predict W×W blocks. Figure 9 The diagram illustrates the extraction of a W×W block Y from the original image I using H.265 with a quantization parameter (QP) of 37 at the same random spatial locations x, y, and the extraction of its context X from the reconstructed image I. Here, the image is in a 4:2:0 configuration, with W=8, x=8, and y=16. Note that for x, y, the positions correspond to the pixels in I that are above and to the left of Y.
[0066] However, using neural networks trained through “random” data extraction, the trained networks often provide fuzzy predictions because they are trained on multiple unrestricted pairs of blocks and their contexts, and often many predictions of a block are possible given its context.
[0067] pass " partition ” Data extraction for training In the second approach to training a neural network for intra-frame prediction, the codec is used to obtain the data from Y... C b C r Pairs of blocks and their contexts are extracted from image partitions, and then a neural network is trained on these pairs. Again, we will focus on an example of training a neural network for predicting W×W blocks. For Y C b C rFor each image I in the set of images, encoded via a codec of interest, and for each W×W block Y returned by the image partitioning, (i) at the spatial location (x) given by the image partitioning. Y ,y Y Extract Y from I at () (see) Figure 10 (ii) in (x) Y ,y Y Reconstruction of I at point ) (iii) Extract its context X; (iii) Preprocess the block and its context and add them to the training set of the neural network used to predict W×W blocks. Figure 10 The diagram illustrates the extraction of a W×W block Y from the original image I using H.265 with a QP of 37 at spatial locations xY, yY given by image partitioning, and the extraction of its context X from the reconstruction of I. Here, the image is in a 4:2:0 ratio, with W=8, xY=8, and yY=24. Note that xY, yY correspond to the position of the pixel to the upper left of Y in I.
[0068] However, using training through “partitioned” data extraction, the trained neural network primarily learns intra-frame predictions for the codecs of interest.
[0069] The described aspect aims to train a neural network for intra-frame prediction such that it learns intra-frame predictions that deviate from the intra-frame predictions in the codec of interest, while still being valuable to the codec in terms of rate-distortion performance. An ensemble of neural networks is trained outside the encoder and decoder. A unique ensemble of neural networks may exist, and this set of neural networks is trained before actual encoding and decoding. The same trained ensemble of neural networks is then fed into both the encoder and decoder. The decoder does not require information to inform it of the selection of the neural network ensemble. Then, actual encoding and decoding can begin.
[0070] Iterative training of neural networks for intra-frame prediction The first impetus for the described aspect is to avoid situations where the learned model gives fuzzy predictions, because the model is trained on multiple unrestricted pairs of blocks and their contexts. This is why Y is encoded via a codec. C b C r A set of images Γ to generate a training set The reason, among which S H , W This includes pairs of blocks of size H×W provided by partitions of the image in Γ, and their contexts. Then, in S... H , W The training is done by θ H , W Each neural network f is parameterized H ,W (.;θ H , W See Method 1. H It is the set of all possible block heights in the codec, where R W It is the set of all possible block widths in the codec.
[0071] It is important to note that the image partitioning in the codec of interest returns a Transform Block (TB). Within the codec, there may be coded block (CB) sizes that are not TB, as CBs of this size are forced to be segmented. A single additional intra-frame prediction mode based on a neural network in the codec has a neural network specifically designed to predict CBs of this size. Therefore, a neural network for predicting CBs of this size must be trained, but its training set cannot be generated using the methods described in the previous paragraphs. Instead, training via “random” data extraction, as explained in the section “Training via ‘Random’ Data Extraction,” can be used to train this neural network. As an example, in H.265, H = W, because the blocks are squares, and W ∈ R. W ={4,8,16,32}. In fact, the maximum CB size of 64×64 is not the TB size because the 64×64CB is forced to be segmented during image partitioning.
[0072] Method 1: Iterative training of the neural network used for intra-frame prediction in the codec of interest.
[0073] During this phase of training, the learned model tends to reproduce intra-prediction within the codec of interest. This is because the image partitioning that generates the training blocks ensures that each training block is predicted relatively well from its reconstructed reference sample set by the intra-prediction pattern in that codec. To allow the neural network to learn intra-prediction that gradually deviates from the predictions in the codec, while still remaining valuable to the codec, [further steps are needed]. l -1 iterations, (i) build training sets as described in the last paragraph, but replace the codecs with codecs that have a single additional pattern based on a neural network, and (ii) retrain the neural network on these training sets, see Method 1.
[0074] The following functionality depends on the codec specificity: each image in Γ is encoded by the codec, and then pairs of H×W blocks and their contexts, H∈R, are extracted from the partitions of these images. H , W∈R WThis is referred to as "extract_from_partitioning" in Method 1. Similarly, the following function depends on the codec architecture: each image in Γ is encoded by a codec with a single additional intra-prediction mode based on a neural network, and then pairs of blocks of size H×W and their contexts provided by the partitions of these images are extracted, H∈R. H , W∈R W In Method 1, this is called "extract_from_partitioning_nn". This is why "extract_from_partitioning" and "extract_from_partitioning_nn" are mentioned in the following two sections when iterative training is applied to a specific codec. In Method 1, L H , W Through neural network f H , W (.;θ H , W The parameter θ H , W The objective function to be minimized.
[0075] Iterative Training of Neural Networks for Intra-Frame Prediction in H.265 When the codec of interest is H.265, "extract_from_partitioning" can be precisely described, see Method 2. Image I in Γ is encoded via H.265, denoted as "h265", and a reconstruction of I is generated using H.265. And the feature set B of the blocks from partition I. The feature set of the block includes the position (x, y) of the top-left pixel of the block in I, the block width W, the number n0 of the bottom-left rows of the unreconstructed block, and the number n1 of the top-right columns of the unreconstructed block. Note that n0 and n1 are useful for filling pixels in the context of the unreconstructed blocks. Then, for each block, its features are used to extract block Y from I and its context X from I, see [link to relevant documentation]. Figure 11 . Figure 11 This shows the spatial location given by the image partitions. x, y Here, an example of extraction via H.265 using a QP of 37, through the "extract_pair" of the W×W block Y from the original image I and the reconstructed context X from I. The image is located at... 4:2:0 , W=8 , x=8 , y=16 Here, the n0=8 rows in the lower left corner of the block have not yet been reconstructed, but all the rows in the upper right corner of the block have been reconstructed.
[0076] Finally, X and Y are preprocessed using the function "preprocessing" to produce the data to be added to the training set S. W Training pairs (X) c ,Y c ).
[0077] Method 2: "extract_from_partitioning" in the H.265 case “extract_from_partitioning_nn” follows the same description as “extract_from_partitioning”, but replaces H.265 with H.265 having a single additional intra-frame prediction mode based on a neural network, and is represented as “h265_nn” in Method 3.
[0078] Method 3: "extract_from_partitioning_nn" in the H.265 case Iterative Training of Neural Networks for Intra-Frame Prediction in H.266 When the codec of interest is H.266, "extract_from_partitioning" shown in Method 2 and "extract_from_partitioning_nn" described in detail in Method 3 are modified in two ways. First, via H.266 by YC b C r The partitioning of an image can return rectangular blocks. This means that the block height H is now added to the properties of each block in B. Furthermore, "extract_pair" is extended to rectangular blocks; see [link to relevant documentation]. Figure 12 . Figure 12 In the spatial location given by image partitioning x, y At that point, via H.266 using QP of 37 from the original image I H ×W blocks Y and from I Reconstruction I its context X Extract using "extract_pair". The image is in... 4:2:0 , H=8 , W=4 , x=8 , y=16 Here, the n0=8 rows in the lower left corner of the block have not yet been reconstructed, but all the rows in the upper right corner of the block have been reconstructed.
[0079] Secondly, H.265 was replaced by H.266, denoted as "h266". H.265 with a single additional intra-prediction mode based on a neural network was replaced by H.266 with a single additional mode based on a neural network, denoted as "h266". nn See Methods 4 and 5.
[0080] Method 4: "extract_from_partitioning" in the H.266 case Method 5: "extract_from_partitioning_nn" in the H.266 case The proposed variant of iterative training Any distribution from which quantization parameters are extracted By default, in methods 2, 3, 4, and 5, for a given YC in Γ to be encoded by the codec of interest... b C r Image I uses quantization parameters (QPs) uniformly extracted from the set {22, 27, 32, 37} for encoding. However, QPs can be extracted from any set and are not necessarily uniform.
[0081] Random initialization of the neural network during each iteration of training. In method 1, when there is an exponent During iteration, at the start of minimization, the parameters of each neural network are initialized using the neural network parameters obtained at the end of the iteration with index i-1. Alternatively, during iteration with exponent i, the parameters of each neural network can be randomly initialized at the start of minimization.
[0082] Extracting the context of a given block from the original image In previous chapters, for a given YC in Γ encoded by the codec of interest b C r Image I, generating its reconstruction Extract block Y from I, and from Extract its context X. Alternatively, the context can also be extracted from I. For example, in the case where the codec of interest is H.266, the current variant will... Figure 12 Transform into Figure 13 . Figure 13 This shows the spatial location given by the image partitions. x, yThe image is extracted via "extract_pair" from the H×W block Y of the original image I and its context X, with H.266 used to encode I using a QP of 37. The image is in a 4:2:0 ratio, with H=8, W=4, x=8, y=16. Here, the n0=8 rows in the lower left of the block have not yet been reconstructed, but all rows in the upper right of the block have been reconstructed.
[0083] During the first iteration of training, use " partition ” Data extraction substitution " random ” Data extraction In Method 1, the first step corresponds to “partitioned” data extraction, the principle of which has been explained previously. Conversely, the first step can correspond to “random” data extraction, the process of which has been described in detail in previous chapters. Note that in the latter case, at the end of the first iteration of iterative training, the trained neural network is an extremely “generalized” intra-frame predictor. Then, starting from the second iteration, the trained neural network is specialized for the codec of interest.
[0084] Eliminating individual elements from their context by using neural networks from the training set " Unpredictable ” piece In the iteration of iterative training When creating a training set At the same time, referring to Method 1, it can be achieved by YC using a codec of interest with a single additional pattern based on a neural network. b C r The image is partitioned to return blocks because the regular intra-frame prediction mode in this codec provides high prediction quality for this block. However, with a single additional mode based on the neural network, this block may be "unpredictable" from its context alone. To avoid retraining the neural network using previously trained models with blocks that are "unpredictable" from their context alone, methods 3 and 5 can be supplemented with conditions for detecting and removing these blocks, each paired with its context. Any condition can be used.
[0085] For example, consider two different conditions. Under both conditions, the training set contains only brightness patches. This means that in methods 2, 3, 4, and 5, for a given YC in Γ encoded by a codec of interest with a single additional pattern based on a neural network... b C r Image I, extract the luminance block Y from the luminance channel of I, and reconstruct from I... Extract the luminance context X from the luminance channel.
[0086] This first condition is divided into two cases. In the first case, via YC b C rThe luminance blocks (TBs) returned by partitioning an image are not generated by dividing its luminance PB into different luminance TBs; that is, the TB and its PB are equivalent. The first case is indicated by the flag isSplit = false. In the second case, isSplit = true, and the luminance TB comes from at least one such partition. If isSplit = false, then t lowest “fast costs” are found across all intra-frame prediction modes on that luminance TB, along with the “fast cost” c of a single additional neural network-based mode on that luminance TB. nn ∈R + * The "fast cost" of intra-frame prediction mode on a block linearly combines the distortion between this block and mode prediction with an approximation of the cost of signaling the mode. In H.265, the distortion is the sum of absolute differences (SAD), while in H.266, the distortion is the minimum between SAD multiplied by 2 and the sum of absolute transform differences (SATD). If c nn Less than γ∈R + * Multiply by the t-th lowest "fast cost" c t ∈R + * If γ ∈ [0.90, 1.10], then the luminance TB is added to the training set. Otherwise, it is ignored. Typically, γ ∈ [0.90, 1.10] works well. t can take any value less than the number of regular intra-prediction modes in the codec of interest. For example, t ∈ {2, 3} works well. If isSplit = true, then the luminance TB is added to the training set if a single additional mode of the neural network based on index idxNN is selected for predicting this TB. For example, in this variant, method 5 becomes method 6.
[0087] Method 6: H.266 and the "extract_from_partitioning_nn" in the first conditional case mentioned above. In method 6, m refers to the index of the intra-prediction mode, which is selected to predict the current TB returned by the image partition.
[0088] Under the second condition, the isSplit flag is no longer used; see method 7.
[0089] Method 7: H.266 and the second conditional case in the above section, "extract_from_partitioning_nn" Replace "fast cost" with the distorted measure from the previous variant. In the variant of the section “Eliminating Blocks That Are ‘Unpredictable’ Individually from Their Context’ in the Training Set Using Neural Networks,” each “fast cost” of the intra-prediction mode on the current luminance TB can be replaced with the distortion between the current luminance TB and the prediction provided by this mode. Any measure of distortion is valid. For example, if the sum of the squared differences between the current luminance TB and the prediction given by this mode (called the “predicted SSD”) is chosen as the measure of distortion, the variant is adjusted as in the previous section. If isSplit = false, then the t lowest predicted SSDs and the predicted SSDd of a single additional neural network-based mode on the luminance TB are found among all intra-prediction modes on that luminance TB. nn ∈R + * If d nn Less than γ multiplied by the t-th lowest predicted SSDd t ∈R + * If so, the brightness TB will be added to the training set.
[0090] Otherwise, ignore it. If isSplit=true, the brightness TB is added to the training set if a single additional neural network-based pattern of index idxNN is selected for predicting this TB. For example, Method 8 replaces the "fast cost" in Method 6 with the predicted SSD, as shown below.
[0091] Method 8: When "fast cost" is predicted to be replaced by SSD, "extract_from_" in the H.266 case partitioning_nn” From each YC b C r Extract an equal number of training pairs from the image From Method 2 to Method 8, if some images in Γ are larger than others, the training set is populated with more pairs of preprocessed patches extracted from the relatively larger images and their preprocessed context. This means that the various textures found in the training pairs are imbalanced compared to those present in the relatively larger images. To circumvent this, each method from Method 2 to Method 8 can be supplemented by the following criterion: this criterion limits the number of training pairs extracted from each image in Γ to s∈N. * Typically, when Γ contains more than 1 million YC b C r When images are displayed, It works well. To avoid only extracting from YC... b C r For each image, the blocks surrounding the top left corner are uniformly sampled from all training pairs extracted from that image, with the sum of s. For example, Method 9 supplements Method 5 with the above standard. Method 10 supplements Method 6 with the above standard.
[0092] Method 9: "extract_from_partitioning_nn" in the H.266 case, the standard is detailed in previous chapters. Detailed description Method 10: H.266 and the section "Impurity of individual components from their context when removed from a training set by a neural network" The "extract_from_partitioning_nn" in the first conditional case of the "prediction" block is detailed in the preceding paragraphs. Detailed description In methods 9 and 10, the function "shuffle" scrambles the elements of its input set. The element set of B contains the characteristics of the blocks returned by the image partitioning. Furthermore, the "break" statement breaks the innermost "for" loop, as in C.
[0093] Figure 17 An embodiment of method 1700 according to the aspects described herein is illustrated. The method begins at a start box 1701 and commences at box 1710 to train an ensemble of neural networks for intra-frame prediction of a video patch using pairs of partitioned portions of a video patch and its surrounding region. The method proceeds from box 1710 to box 1720 to extract additional pairs of video patches and their surrounding regions by iteratively using the ensemble of neural networks as a single additional intra-frame coding mode for the codec. Control proceeds from box 1720 to box 1730 to retrain the ensemble of neural networks using the extracted additional pairs to generate an ensemble of neural networks for intra-frame prediction.
[0094] Figure 18 Another embodiment of method 1800 according to the aforementioned aspect is illustrated. The method begins at a start box 1801 and commences at box 1810 to train an ensemble of neural networks for intra-frame prediction of the video block using pairs of partitioned portions of the video block and surrounding regions. The method proceeds from box 1810 to box 1820 to extract additional pairs of the video block and surrounding regions by iteratively using the ensemble of neural networks as a single additional intra-frame coding mode for the codec. Control proceeds from box 1820 to box 1830 to retrain the ensemble of neural networks using the extracted additional pairs to generate an ensemble of neural networks for intra-frame prediction. Control proceeds from box 1830 to box 1840 to encode / decode the video block using the generated ensemble of neural networks for intra-frame prediction.
[0095] Figure 19 An embodiment of an apparatus 1900 for encoding, decoding, compressing, or decompressing video data using a simplified encoding mode based on a neighbor-sample dependency parameter model is shown. The apparatus includes a processor 1910 and can be interconnected to a memory 1920 via at least one port. Both the processor 1910 and the memory 1920 may also have one or more additional interconnects for external connection.
[0096] The processor 1910 is also configured to insert or receive information in the bitstream and to use any of the aspects described to perform compression, encoding, or decoding.
[0097] This document describes multiple aspects, including tools, features, implementation schemes, models, methods, etc. Many of these aspects are described in detail, and often in a way that may sound limited, at least to illustrate individual characteristics. However, this is for clarity and does not limit the application or scope of these aspects. In fact, all the different aspects can be combined and interchanged to provide further aspects. Furthermore, these aspects can also be combined and interchanged with those described in previous submissions.
[0098] The aspects described and envisioned in this document can be implemented in many different forms. The following... Figure 12 , Figure 13 and Figure 14 Some implementation schemes are provided, but other implementation schemes are envisioned, and Figure 12 , Figure 13 and Figure 14 The discussion does not limit the breadth of specific implementations. At least one of these aspects generally relates to video encoding and decoding, and at least one other aspect generally relates to transmitting a bitstream generated or encoded. These and other aspects can be implemented as methods, apparatus, computer-readable storage media having instructions stored thereon for encoding or decoding video data according to any of the methods, and / or computer-readable storage media having a bitstream generated according to any of the methods stored thereon.
[0099] In this application, the terms "reconstruction" and "decoding" are used interchangeably, as are the terms "pixel" and "sample," and the terms "image," "picture," and "frame." Generally, but not necessarily, the term "reconstruction" is used at the encoding end, while "decoding" is used at the decoding end.
[0100] This document describes various methods, and each method includes one or more steps or actions for implementing the method. Unless the correct operation of the method requires a specific order of steps or actions, the order and / or purpose of a particular step and / or action may be modified or combined.
[0101] The various methods and other aspects described in this document can be used to modify modules of the video encoder 100 and decoder 200 (e.g., intra-frame prediction, entropy coding, and / or decoding modules (160, 360, 145, 330)), such as Figure 12 and Figure 13As shown. Furthermore, aspects of the invention are not limited to VVC or HEVC, and can be applied to, for example, other standards and recommendations (whether pre-existing or developed in the future) and any extensions of such standards and recommendations (including VVC and HEVC). Unless otherwise specified or technically excluded, the aspects described in this document may be used alone or in combination.
[0102] Various numerical values are used in this document, such as {{1,0}, {3,1}, {1,1}}. Specific values are for illustrative purposes only, and the aspects described are not limited to these specific values.
[0103] Figure 12 Encoder 100 is illustrated. Variations of this encoder 100 are envisioned, but for clarity, encoder 100 is described below without describing all anticipated variations.
[0104] Before encoding, the video sequence may undergo pre-coding (101), for example, by applying color transformations to the input color image (e.g., a conversion from RGB 4:4:4 to YCbCr 4:2:0), or by performing remapping of the input image components to obtain a more resilient signal distribution to compression (e.g., histogram equalization using one of the color components). Metadata may be associated with the pre-processing and attached to the bitstream.
[0105] In encoder 100, the image is encoded by encoder elements as described below. The image to be encoded is partitioned (102) and processed in units such as CUs. For example, each unit is encoded using either an intra-frame mode or an inter-frame mode. When a unit is encoded in intra-frame mode, it performs intra-frame prediction (160). In inter-frame mode, motion estimation (175) and compensation (170) are performed. The encoder determines (105) which of the intra-frame mode or inter-frame mode is used to encode the unit and indicates the intra-frame / inter-frame decision by, for example, a prediction mode label. For example, the prediction residual is calculated by subtracting (110) the prediction block from the original image block.
[0106] The predicted residual is then transformed (125) and quantized (130). The quantized transform coefficients, motion vectors, and other syntax elements are entropy encoded (145) to output a bitstream. The encoder can skip the transform and apply quantization directly to the untransformed residual signal. The encoder can bypass both the transform and quantization, i.e., encode the residual directly without applying the transform or quantization process.
[0107] The encoder decodes the coded block to provide a reference for further prediction. The quantized transform coefficients are dequantized (140) and inverse transformed (150) to decode the prediction residual. The decoded prediction residual and the prediction block are combined (155) to reconstruct the image block. A loop filter (165) is applied to the reconstructed image to perform, for example, deblocking / SAO (sample adaptive offset) filtering, thereby reducing coded artifacts. The filtered image is stored in a reference image buffer (180).
[0108] Figure 13 A block diagram of a video decoder 200 is illustrated. In decoder 200, the bitstream is decoded by decoder elements, as described below. Video decoder 200 typically performs operations similar to... Figure 12 The encoding process is the opposite of the decoding process. Encoder 100 typically also performs video decoding as part of the video data encoding.
[0109] The decoder's input includes a video bitstream, which can be generated by the video encoder 100. First, the bitstream is entropy-decoded (230) to obtain transform coefficients, motion vectors, and other encoded information. Image partitioning information indicates how the image should be partitioned. Therefore, the decoder can partition (235) the image based on the decoded image partitioning information. The transform coefficients are dequantized (240) and inverse transformed (250) to decode the prediction residuals. The decoded prediction residuals and prediction blocks are combined (255) to reconstruct the image blocks. Prediction blocks (270) can be obtained from intra-frame prediction (260) or motion-compensated prediction (i.e., inter-frame prediction) (275). A loop filter (265) is applied to the reconstructed image. The filtered image is stored in a reference image buffer (280).
[0110] The decoded image can also undergo post-decoding processing (285), such as inverse color transformation (e.g., a transformation from YCbCr 4:2:0 to RGB 4:4:4) or inverse remapping of the remapping process performed in the pre-encoding process (101). Post-decoding processing can utilize metadata derived in the pre-encoding process and signaled in the bitstream.
[0111] Figure 14A block diagram illustrating examples of systems implementing various aspects and embodiments therein is provided. System 1000 may be embodied as a device including the various components described below and configured to perform one or more aspects described in this document. Examples of such devices include, but are not limited to, various electronic devices such as personal computers, laptop computers, smartphones, tablet computers, digital multimedia set-top boxes, digital television receivers, personal video recording systems, connected home appliances, and servers. Elements of system 1000 may be embodied individually or in combination in a single integrated circuit (IC), multiple ICs, and / or discrete components. For example, in at least one embodiment, the processing elements and encoder / decoder elements of system 1000 are distributed across multiple ICs and / or discrete components. In various embodiments, system 1000 is communicatively coupled to other similar systems or other electronic devices via, for example, a communication bus or through dedicated input and / or output ports. In various embodiments, system 1000 is configured to implement one or more aspects described in this document.
[0112] System 1000 includes at least one processor 1010 configured to execute instructions loaded thereon for implementing various aspects, such as those described in this document. Processor 1010 may include embedded memory, input / output interfaces, and various other circuitry known in the art. System 1000 includes at least one memory 1020 (e.g., a volatile memory device and / or a non-volatile memory device). System 1000 includes a storage device 1040 that may include non-volatile memory and / or volatile memory, including but not limited to EEPROM, ROM, PROM, RAM, DRAM, SRAM, flash memory, disk drives, and / or optical disk drives. As a non-limiting example, storage device 1040 may include internal storage devices, attached storage devices, and / or network-accessible storage devices.
[0113] System 1000 includes an encoder / decoder module 1030 configured to, for example, process data to provide encoded or decoded video, and the encoder / decoder module 1030 may include its own processor and memory. The encoder / decoder module 1030 represents a module that can be included in a device to perform encoding and / or decoding functions. It is well known that a device may include one or both of an encoding module and a decoding module. Furthermore, the encoder / decoder module 1030 may be implemented as a standalone element of system 1000, or may be incorporated within processor 1010 as a combination of hardware and software known to those skilled in the art.
[0114] Program code to be loaded onto processor 1010 or encoder / decoder 1030 to execute the various aspects described in this document may be stored in storage device 1040 and subsequently loaded onto memory 1020 for execution by processor 1010. According to various embodiments, one or more of processor 1010, memory 1020, storage device 1040, and encoder / decoder module 1030 may store one or more items from various projects during the execution of the processes described in this document. Such stored items may include, but are not limited to, input video, decoded or partially decoded video, bitstreams, matrices, variables, and intermediate or final results of processing equations, formulas, operations, and operational logic.
[0115] In several embodiments, the memory within processor 1010 and / or encoder / decoder module 1030 is used to store instructions and provide working memory for processing required during encoding or decoding. However, in other embodiments, external memory (e.g., the processing device may be processor 1010 or encoder / decoder module 1030) is used for one or more of these functions. The external memory may be memory 1020 and / or storage device 1040, such as volatile memory and / or non-volatile flash memory. In several embodiments, external non-volatile flash memory is used to store the television's operating system. In at least one embodiment, fast external volatile memory, such as RAM, is used as working memory for video encoding and decoding operations, such as for MPEG-2, HEVC, or VVC (Video Coding).
[0116] Inputs to the components of system 1000 may be provided by various input devices as shown in box 1130. Such input devices include, but are not limited to: (i) an RF section that receives RF signals, for example, transmitted by a broadcaster via radio; (ii) a composite input terminal; (iii) a USB input terminal; and / or (iv) an HDMI input terminal.
[0117] In various embodiments, the input device of block 1130 has associated corresponding input processing elements as known in the art. For example, the RF section may be associated with elements necessary to: (i) select a desired frequency (also known as select a signal, or limit the signal band to a band), (ii) down-convert the selected signal, (iii) re-band limit the signal to a narrower band to select (e.g.,) a signal band that may be referred to as a channel in some embodiments), (iv) demodulate the down-converted and band-limited signal, (v) perform error correction, and (vi) demultiplex to select the desired data packet stream. The RF section of various embodiments includes one or more elements for performing these functions, such as frequency selectors, signal selectors, band limiters, channel selectors, filters, downconverters, demodulators, error correctors, and demultiplexers. The RF section may include tuners that perform various functions among these functions, including, for example, down-converting received signals to a lower frequency (e.g., intermediate frequency or near-baseband frequency) or to baseband. In one set-top box implementation, the RF section and its associated input processing elements receive RF signals transmitted via a wired (e.g., cable) medium and perform frequency selection by filtering, down-converting, and re-filtering to the desired frequency band. Various implementations rearrange the order of the aforementioned (and other) components, remove some of these components, and / or add other components that perform similar or different functions. Adding components may include inserting components between existing components, such as inserting amplifiers and analog-to-digital converters. In various implementations, the RF section includes an antenna.
[0118] Furthermore, USB and / or HDMI terminals may include corresponding interface processors for connecting system 1000 to other electronic devices across USB and / or HDMI connections. It should be understood that various aspects of input processing (e.g., Reed-Solomon error correction) may be implemented as needed, for example, within a separate input processing IC or within processor 1010. Similarly, aspects of USB or HDMI interface processing may be implemented as needed, either within a separate interface IC or within processor 1010. Demodulated streams, error-corrected streams, and demultiplexed streams are provided to various processing elements, including, for example, processor 1010 and encoder / decoder 1030, which operate in conjunction with memory and storage elements to process the data streams as needed for presentation on the output device.
[0119] Various components of system 1000 can be housed within an integrated housing. Within the integrated housing, various components can be interconnected and transmit data therebetween using a suitable connection arrangement 1140 (e.g., internal buses as known in the art, including inter-IC (I2C) buses, wiring, and printed circuit boards).
[0120] System 1000 includes a communication interface 1050 capable of communicating with other devices via a communication channel 1060. The communication interface 1050 may include, but is not limited to, a transceiver configured to transmit and receive data via the communication channel 1060. The communication interface 1050 may include, but is not limited to, a modem or network interface card (NIC), and the communication channel 1060 may be implemented, for example, in a wired and / or wireless medium.
[0121] In various implementations, data is streamed to system 1000 using a wireless network such as IEEE 802.11. For example, the wireless signals in these implementations are received via a communication channel 1060 and a communication interface 1050 suitable for Wi-Fi communication. The communication channel 1060 in these implementations is typically connected to an access point or router that provides access to external networks, including the Internet, to allow streaming applications and other cloud-based communications. Other implementations use a set-top box to provide streaming data to system 1000, delivering data via an HDMI connection to input block 1130. Still other implementations use an RF connection to input block 1130 to provide streaming data to system 1000.
[0122] System 1000 can provide output signals to various output devices, including a display 1100, a speaker 1110, and other peripheral devices 1120. In various examples of embodiments, the other peripheral devices 1120 include one or more of the following: a standalone DVR, a disk player, a stereo system, a lighting system, and other devices that provide output functionality based on System 1000. In various embodiments, control signals are transmitted between System 1000 and the display 1100, speaker 1110, or other peripheral devices 1120 using signaling such as AV.Link, CEC, or other communication protocols, which enable device-to-device control with or without user intervention. Output devices can be communicatively coupled to System 1000 via dedicated connections through corresponding interfaces 1070, 1080, and 1090. Alternatively, output devices can be connected to System 1000 via communication interface 1050 using communication channel 1060. The display 1100 and speaker 1110 can be integrated into a single unit with other components of System 1000 in electronic devices (e.g., a television set). In various implementations, the display interface 1070 includes a display driver, such as a timing controller (T Con) chip.
[0123] Alternatively, if the RF portion of input 1130 is part of a separate set-top box, the display 1100 and speaker 1110 may be separated from one or more other components. In various embodiments where the display 1100 and speaker 1110 are external components, the output signal may be provided via a dedicated output connection, including, for example, an HDMI port, a USB port, or a COMP output.
[0124] These implementations may be executed by processor 1010 or by computer software implemented in hardware or a combination of hardware and software. As a non-limiting example, these implementations may be implemented by one or more integrated circuits. As a non-limiting example, memory 1020 may be of any type suitable for the technical environment and may be implemented using any suitable data storage technology, such as optical memory devices, magnetic memory devices, semiconductor-based memory devices, fixed memory, and removable memory. As a non-limiting example, processor 1010 may be of any type suitable for the technical environment and may encompass one or more of microprocessors, general-purpose computers, special-purpose computers, and processors based on multi-core architectures.
[0125] Various specific implementations involve decoding. As used in this application, "decoding" may include all or part of a process, for example, performing on a received coded sequence to produce a final output suitable for display. In various embodiments, such a process includes one or more processes typically performed by a decoder, such as entropy decoding, inverse quantization, inverse transform, and differential decoding. In various embodiments, such a process also or alternatively includes processes performed by a decoder of various embodiments described in this application, such as extracting weight indices to be used for various intra-frame prediction reference arrays.
[0126] As a further example, in one embodiment, "decoding" refers only to entropy decoding; in another embodiment, "decoding" refers only to differential decoding; and in yet another embodiment, "decoding" refers to a combination of entropy decoding and differential decoding. Whether the phrase "decoding process" specifically refers to a subset of operations or broadly refers to a wider decoding process will be clear based on the specific context of the description and is believed to be well understood by those skilled in the art.
[0127] Various specific implementations involve encoding. In a manner similar to the discussion above regarding “decoding,” the term “encoding,” as used herein, can encompass all or part of a process performed, for example, on an input video sequence to produce an encoded bitstream. In various embodiments, such processes include one or more processes typically performed by an encoder, such as partitioning, differential coding, transform, quantization, and entropy coding. In various embodiments, such processes also or alternatively include processes performed by an encoder of the various embodiments described herein, such as weighting an intra-frame prediction reference array.
[0128] As a further example, in one implementation, "encoding" refers only to entropy encoding; in another implementation, "encoding" refers only to differential encoding; and in yet another implementation, "encoding" refers to a combination of differential and entropy encoding. Whether the phrase "encoding process" specifically refers to a subset of operations or broadly refers to a wider encoding process will be clear based on the specific context of the description and is believed to be well understood by those skilled in the art.
[0129] Note that the grammatical elements used in this article are descriptive terms. Therefore, the use of other grammatical element names is not excluded.
[0130] When the accompanying drawings are presented as flowcharts, it should be understood that block diagrams of the corresponding devices are also provided. Similarly, when the accompanying drawings are presented as block diagrams, it should be understood that flowcharts of the corresponding methods / processes are also provided.
[0131] Various implementation schemes refer to rate-distortion computation or rate-distortion optimization. During the encoding process, a balance or trade-off between rate and distortion is typically considered, often taking into account computational complexity constraints. Rate-distortion optimization is generally formulated as minimizing a rate-distortion function, which is a weighted sum of rate and distortion. Different approaches exist to solve the rate-distortion optimization problem. For example, these methods may be based on extensive testing of all encoding options (including all considered modes or encoding parameter values) and a complete evaluation of their encoding costs and the associated distortion of the reconstructed signal after encoding and decoding. Faster methods can also be used to reduce encoding complexity, particularly for the computation of approximate distortion based on prediction or prediction of the residual signal rather than the reconstructed residual signal. A hybrid of these two approaches can also be used, such as by using approximate distortion for only some of the possible encoding options and full distortion for others. Other methods evaluate only a subset of the possible encoding options. More generally, many methods employ any of a variety of techniques to perform optimization, but optimization is not necessarily a complete evaluation of both encoding costs and associated distortion.
[0132] The specific embodiments and aspects described herein may be implemented, for example, in methods or processes, apparatus, software programs, data streams, or signals. Even if discussed only in the context of a single form of specific embodiment (e.g., discussed only as a method), specific embodiments of the discussed features may be implemented in other forms (e.g., apparatus or program). Apparatus may be implemented, for example, in suitable hardware, software, and firmware. Methods may be implemented, for example, in a processor that generally refers to a processing device, including, for example, a computer, microprocessor, integrated circuit, or programmable logic device. Processors also include communication devices, such as, for example, computers, mobile phones, portable / personal digital assistants (“PDAs”), and other devices that facilitate information communication between end users.
[0133] The reference to “an implementation plan” or “implementation plan” or “a specific implementation” or “specific implementation”, and their other variations, means that the specific features, structures, characteristics, etc., described in connection with the implementation plan are included in at least one implementation plan. Therefore, the appearance of the phrase “in an implementation plan” or “in an implementation plan” or “in a specific implementation” or “in a specific implementation”, and any other variations appearing throughout this document, do not necessarily refer to the same implementation plan.
[0134] In addition, this document may refer to the various pieces of information marked "determined". Determined information may include one or more of the following: estimated information, calculated information, predicted information, or information retrieved from memory.
[0135] Furthermore, this document may refer to "accessing" each piece of information. Accessing information may include, for example, receiving information, retrieving information (e.g., from memory), storing information, moving information, copying information, calculating information, determining information, predicting information, or estimating information, or more of these.
[0136] Furthermore, this document may refer to "receiving" individual pieces of information. Like "access," "receiving" is intended as a broad term. Receiving information may include, for example, accessing information or retrieving information (e.g., from memory). Moreover, "receiving" typically participates in one or more of the following operations: such as storing information, processing information, transmitting information, moving information, copying information, erasing information, calculating information, determining information, predicting information, or estimating information.
[0137] It should be understood that, for example, in the cases of “A / B,” “A and / or B,” and “at least one of A and B,” the use of any of the following “ / ,” “and / or,” and “at least one” is intended to cover selecting only the first listed option (A), or only the second listed option (B), or both options (A and B). As a further example, in the cases of “A, B, and / or C” and “at least one of A, B, and C,” such phrases are intended to cover selecting only the first listed option (A), or only the second listed option (B), or only the third listed option (C), or only the first and second listed options (A and B), or only the first and third listed options (A and C), or only the second and third listed options (B and C), or all three options (A, B, and C). As will be apparent to those skilled in the art and related fields, this can be extended to as many items as possible listed.
[0138] Moreover, as used herein, the term "signaling" refers to (among other things) instructing the corresponding decoder to do something. For example, in some implementations, the encoder signals a specific weight among several weights to be used in the intra-prediction reference array. Thus, in one implementation, the same parameters are used on both the encoder and decoder sides. Therefore, for example, the encoder can transmit (explicit signaling) specific parameters to the decoder so that the decoder can use the same specific parameters. Conversely, if the decoder already has specific parameters and others, signaling can be used without transmission (implicit signaling) to simply allow the decoder to know and select specific parameters. Bit savings are achieved in various implementations by avoiding the transmission of any actual functionality. It should be understood that signaling can be implemented in various ways. For example, in various implementations, information is signaled to the corresponding decoder using one or more syntax elements, tags, etc. Although the verb form of the term "signal" has been used above, the term "signal" can also be used as a noun herein.
[0139] It will be apparent to those skilled in the art that embodiments can generate various signals formatted to carry, for example, storable or transmissible information. The information may include, for example, instructions for performing a method or data generated by one of the embodiments. For example, a signal may be formatted to carry a bitstream of the embodiment. Such signals may be formatted as, for example, electromagnetic waves (e.g., using the radio frequency portion of a spectrum) or baseband signals. Formatting may include, for example, encoding a data stream and modulating the carrier with the encoded data stream. The information carried by the signal may be, for example, analog or digital information. It is known that signals can be transmitted via various wired or wireless links. Signals may be stored on a processor-readable medium.
[0140] Implementations may include one or more of the following features or entities, individually or in combination, across a variety of different claim classes and types: • Use a set of neural networks as an additional prediction mode in the codec. This mode can be an intra-frame prediction mode, and the neural networks can be of various sizes.
[0141] • Use a single additional intra-frame prediction mode that includes neural networks of different sizes.
[0142] • Use a single additional intra-prediction mode that includes neural networks of different sizes, wherein an initial training set of neural networks is constructed using an encoder and decoder with a single additional intra-prediction mode, and the neural networks including that set are retrained with the initial training set.
[0143] • The above single intra-frame prediction mode, in which a neural network corresponding to one of the sizes is trained by random data extraction.
[0144] • In the H.265 codec, a set of neural networks is used as additional intra-prediction modes. These modes can be intra-prediction modes, and the neural networks can be of various sizes.
[0145] • The above neural network set is trained in the H.265 codec as an additional intra-prediction mode, wherein for each block, the block and its context are extracted from the image using a feature set from the partitioned block, and the features and their context are preprocessed to produce training pairs to be added to the training set.
[0146] • Train at least one neural network for intra-frame prediction, wherein the neural network learns intra-frame predictions that deviate from the intra-frame predictions in the codec, while still being valuable to the codec in terms of rate distortion performance.
[0147] • The image set is encoded / decoded using a codec to produce a training set containing pairs of blocks and their contexts, the size of which is provided by partitioning at least one image in the image set, and the corresponding neural network is trained using the training set.
[0148] • The above encoding / decoding, where the blocks are rectangular.
[0149] • Includes a bitstream or signal of one or more syntax elements or their variants from the described syntax elements.
[0150] • To create and / or transmit and / or receive and / or decode bit streams or signals that include one or more of the described syntax elements or their variants.
[0151] • A television, set-top box, mobile phone, tablet computer, or other electronic device that performs loop filtering according to any of the embodiments described.
[0152] • A television, set-top box, mobile phone, tablet computer, or other electronic device that performs loop filtering according to any of the described implementation schemes and displays the resulting image (e.g., using a monitor, screen, or other type of display).
[0153] • A television, set-top box, mobile phone, tablet computer, or other electronic device that tunes (e.g., uses a tuner) a channel to receive signals including encoded images and performs loop filtering according to any of the described embodiments.
[0154] • A television, set-top box, mobile phone, tablet computer, or other electronic device that receives signals including encoded images via radio (e.g., using an antenna) and performs loop filtering according to any of the described embodiments.
[0155] Various other general and specific inventions and claims are also supported and envisioned throughout this specification.
Claims
1. A method for training one or more machine learning models for video coding, the method comprising: For each of a plurality of training blocks, a block feature associated with the training block is generated, wherein the block feature includes a quantization parameter associated with encoding an image containing the training block, or includes a value derived from the quantization parameter; Training pairs are extracted using a video codec, the training pairs including the training block and the surrounding region associated with the training block; The machine learning model is trained using the training pairs and the block features; The trained machine learning model is used as an additional intra-frame prediction mode in the video codec; Additional training pairs are extracted by encoding one or more images using a video codec that includes the additional intra-frame prediction mode; and The machine learning model is retrained using the additional training pairs and corresponding block features.
2. The method according to claim 1, wherein, The quantization parameters are selected before encoding the images from which the training blocks are extracted.
3. The method according to claim 2, wherein, The quantization parameters are randomly selected.
4. The method according to claim 2, wherein, The quantization parameter is selected from a plurality of quantization parameters.
5. The method according to claim 4, wherein, The quantization parameters are selected based on the distribution.
6. The method according to claim 5, wherein, The distribution is non-uniform.
7. The method according to claim 1, wherein, The values derived from the quantization parameters include the normalized quantization parameters.
8. The method according to claim 1, wherein, The values derived from the quantization parameters include encoding quality indicators.
9. The method according to claim 1, wherein, The block features also include one or more of the following: block width, block height, block position, or partition information.
10. The method according to claim 9, wherein, The partition information identifies the transform block returned by the partitioning performed by the video codec.
11. The method according to claim 1, wherein, Extracting the training pair includes extracting the training block from the original image and extracting the surrounding region from the reconstructed version of the image.
12. The method according to claim 11, wherein, The surrounding area includes the reconstructed samples above and to the left of the training block.
13. The method according to claim 1, wherein, The machine learning model includes a neural network configured to predict the pixel values of the training block.
14. The method according to claim 13, wherein, Train multiple neural networks, with different neural networks corresponding to different block sizes.
15. The method according to claim 14, wherein, At least one neural network corresponding to a block size not supported by the transform block partition is trained using randomly selected training pairs.
16. The method according to claim 1, wherein, Retraining involves initializing the parameters of the machine learning model using parameters obtained from previous iterations.
17. The method according to claim 1, wherein, Retraining involves inserting the machine learning model into the video codec as the additional intra-frame prediction mode to generate updated training pairs.
18. The method according to claim 17, wherein, The training pairs are selectively retained based on the prediction quality criterion.
19. The method according to claim 18, wherein, The prediction quality criteria are based on a measure of prediction distortion or rapid cost.
20. A method for encoding video, the method comprising: One or more machine learning models are retrained according to any of the preceding claims, and the retrained machine learning models are used as additional intra-frame prediction modes to encode blocks of the video.
