Neural network based bitstream decoding and encoding
By dividing input samples into subsets and using neural networks to reconstruct pictures with techniques like padding and cropping, the method addresses memory and processing challenges in video coding, enhancing efficiency and quality for consumer devices.
Patent Information
- Application Number
- JP2023527799
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2020-12-17
- Publication Date
- 2024-10-23
- Estimated Expiration
- 2040-12-17
AI Technical Summary
Existing video coding technologies face challenges in efficiently compressing and decompressing video data while maintaining high quality, particularly due to limited memory and processing resources, necessitating improved neural network-based methods that balance memory footprint and computational complexity.
A method and apparatus for dividing input samples into subsets, processing each subset using a neural network, and reconstructing pictures by combining output subsets, with techniques like padding and cropping to improve quality and adapt to display size, while minimizing memory requirements.
This approach allows for efficient video encoding and decoding with reduced memory usage and improved picture quality by optimizing the trade-off between memory resources and computational complexity, making it suitable for consumer devices.
Smart Images

Figure 0007571363000011 
Figure 0007571363000012 
Figure 0007571363000013
Abstract
Description
[Technical field]
[0001] TECHNICAL FIELD Embodiments of the present disclosure relate generally to the field of picture or video encoding and decoding, and more particularly to neural network-based bitstream encoding and decoding. [Background technology]
[0002] Video coding (video encoding and decoding) is used in a wide range of digital video applications, such as broadcast digital television, video transmission over the Internet and mobile networks, real-time conversation applications such as video chat and video conferencing, DVD and Blu-ray Discs, video content acquisition and editing systems, and camcorders in security applications.
[0003] The amount of video data required to render even a relatively short video can be substantial, which can present challenges when the data is streamed or otherwise communicated over communications networks that have limited bandwidth capacity. Thus, video data is typically compressed before being communicated over modern telecommunications networks. The size of the video can also be an issue when the video is stored on a storage device, since memory resources may be limited. Video compression devices often use software and / or hardware at the source to code the video data prior to transmission or storage, thereby reducing the amount of data required to represent a digital video image. The compressed data is then received at the destination by a video decompression device, which decodes the video data. With limited network resources and an ever-increasing demand for higher video quality, improved compression and decompression techniques that improve compression ratios with little or no sacrifice in picture quality are desirable.
[0004] Currently, neural network (NN) and deep learning (DL) techniques that utilize artificial neural networks have been used for some time in the technical field of encoding and decoding videos, images (e.g. still images), etc.
[0005] It is desirable to further improve the efficiency of such picture coding (video picture coding or still picture coding) based on trained networks, taking into account limitations in available memory and / or processing speed. Summary of the Invention [Problem to be solved by the invention]
[0006] Some embodiments of the present disclosure provide methods and apparatus for decoding and / or encoding pictures in an efficient manner, thereby reducing the memory footprint and the required operating frequency of a processing unit. In particular, the present disclosure enables a tradeoff between memory resources and computational complexity within a NN-based video encoding-decoding framework. [Means for solving the problem]
[0007] These and other objects are achieved by the subject matter of the independent claims. Further implementations are evident from the dependent claims, the description and the figures.
[0008] According to an aspect of the present disclosure, there is provided a method for reconstructing a picture from a bitstream, the method comprising: obtaining an input set (L) of samples representing a picture based on the bitstream; dividing the input set (L) into two or more input subsets (L1, L2); parsing side information from the bitstream; determining a size ((h1, w1); (h2, w2)) for each of the two or more input subsets (L1, L2) and / or a size ((H1, W1); (H2, W2)) for each of two or more output subsets (R1, R2) based on the side information; processing each of the two or more input subsets (L1, L2), including processing with a neural network including one or more layers, where the neural network is a pre-processor. generating one sample of each of the two or more output subsets (R1, R2) using a plurality of samples of an input subset of the two or more input subsets (L1, L2), thereby obtaining, for the two or more input subsets, the respective two or more output subsets (R1, R2); and reconstructing the picture (R) by combining the two or more output subsets, wherein a size of at least one of the input subsets is smaller than a size required to obtain the size of the respective output subset (R1, R2) after processing by the one or more layers.
[0009] As a result, a picture may be efficiently reconstructed from an input set L of samples by splitting the input samples L into multiple subsets L1 and L2 and processing each input subset Li with a neural network, leveraging side information parsed from the bitstream. Furthermore, the picture reconstruction may be performed with lower required memory since the size of the processed input subsets is smaller than the size of the respective output subsets.
[0010] In some example implementations, processing each of the two or more input subsets includes padding before processing with the one or more layers.
[0011] Thus, the missing samples in the input subsets may be added by a padding process, which improves the quality of the reconstructed output subsets Ri, and thus the quality of the reconstructed picture after combining the output subsets Ri is also improved.
[0012] In one example, the location and / or amount of samples to be padded is determined based on the side information.
[0013] Thus, the position and amount of padded samples can be quickly determined by the decoding side based on the signaled side information.
[0014] For example, the two or more input subsets (L1, L2) overlap by one or more samples.
[0015] Thus, the output subset Ri generated through a process involving a neural network becomes more accurate because it uses samples of nearby input subsets (corresponding to overlapping samples, usually located on the boundaries between adjacent subsets Li). Thus, the overlapping of Li improves the overall quality of the reconstructed picture, which is the union of the output subsets Ri. In particular, distortions along the boundaries of the input subsets Li are mitigated.
[0016] According to one implementation example, combining the two or more output subsets (R1, R2) includes overlapping the two or more output subsets (R1, R2) by one or more combined samples, a combined sample being a sample obtained as a combination of a sample from a first output subset (R1) and a sample from a second output subset (R2).
[0017] Thus, by overlapping the samples of the output subsets Ri, the quality of the reconstructed picture may be further improved, especially along the boundaries, thus reducing picture degradation and distortion.
[0018] In one example implementation, processing each of the two or more input subsets includes cropping one or more samples after processing with the one or more layers.
[0019] According to one example, cropping is performed after processing one or more of the two or more input subsets with a neural network to obtain one or more of the two or more output subsets (R1, R2), and combining the two or more output subsets is a non-overlapping merge.
[0020] Cropping allows making the size of the reconstructed picture smaller and / or changing the aspect ratio (length vs. width) of the picture so that the size of the reconstructed picture can be adapted to the preferred size of the display, which improves the viewing reproduction of the picture on the display (adaptive picture size).
[0021] For example, based on the side information the location and / or amount of samples to be cropped is determined.
[0022] In this way, the position and / or number of samples to be cropped can be determined by the decoding side based on the signaled side information.
[0023] In another example of such an implementation, the location and / or amount of samples to be cropped are determined according to the size of the input subset indicated in the side information and a neural network resizing parameter of the neural network that specifies the relationship between the size of the input to the network and the size of the output from the network.
[0024] Thus, by taking into account both the size of the input subset and the characteristics of the neural network (i.e., its resizing parameters), the position and / or cropping amount can be determined more accurately. Thus, the cropping amount and / or position can be adapted to the attributes of the neural network, which further improves the quality of the reconstructed picture.
[0025] According to one implementation of the method, the side information is: the number of said input subsets, the size of the input set, the size (h1, w1) of each of the two or more input subsets; The size (H,W) of the reconstructed picture (R), the size (H1, W1) of each of the two or more output subsets; The amount of overlap between the two or more input subsets (L1, L2) The amount of overlap between the two or more output subsets (R1, R2) The method includes one or more instructions for:
[0026] Thus, the signaling of various parameters through the side information can be performed in a flexible manner: thus, the signaling overhead may be adapted depending on which of the above parameters are signaled in the side information, while other parameters are derived from the signaled parameters.
[0027] For example, each of the two or more input subsets (L1, L2) is a rectangular region of a rectangular input set (L), and each of the two or more output subsets (R1, R2) is a rectangular region of a rectangular reconstructed picture (R).
[0028] Thus, combining the output subsets Ri can be performed quickly due to their rectangular shape. This further improves the efficiency of picture reconstruction. Furthermore, the rectangular shapes of the input and output subsets can be characterized by minimal parameters (e.g. width and height) since they are highly regular in shape. Thus, the number of parameters suitable for side information can be minimized, and thus the signaling overhead can be reduced. Because both the input and output subsets are rectangular in shape, their respective sizes can be related (and determined from each other) through simple operations.
[0029] In one exemplary implementation, the two or more input subsets (L1, L2) are processed independently.
[0030] Thus, the input subsets may be processed in parallel, meaning that one input subset does not use any results (intermediate or final) of the processing of another subset. Thus, the processing of the input subsets can be performed fast, further improving the performance of the picture reconstruction. Alternatively, even if no dependency exists between the processing of L1 and L2, each of the input subsets may be processed sequentially, i.e., one at a time, for example according to a predefined sequential order. Both the serial and parallel approaches reduce the memory required due to the independence of the processing.
[0031] According to an example, parsing the side information includes parsing one or more of a sequence parameter set or a picture parameter set or a picture header. In general, the side information can be obtained from a parameter set or a header. The header may be, for example, a slice header, a tile header, a picture header, an access unit header. The parameter set may be an adaptation parameter set, a picture parameter set, or a sequence parameter set. Thus, the side information can be parsed in a flexible manner, which means that parts of a sequence (pictures, groups of pictures, picture parts) can be controlled.
[0032] According to one aspect of the present disclosure, there is provided a processing method for encoding a picture into a bitstream, comprising: dividing an input set (L) of samples representing a picture into two or more input subsets (L1, L2); determining side information based on a size ((h1, w1); (h2, w2)) for each of the two or more input subsets (L1, L2) and / or a size ((H1, W1); (H2, W2)) for each of two or more output subsets (R1, R2); processing each of the two or more input subsets (L1, L2) including processing with a neural network including one or more layers, the neural network processing the two or more input subsets (L1, L2) including processing the two or more input subsets (L1, L2) with a size ((h1, w1); (h2, w2)) for each of the two or more output subsets (R1, R2), L2) to generate one sample of a respective one of the two or more output subsets (R1, R2), thereby obtaining, for the two or more input subsets, the respective two or more output subsets (R1, R2); and inserting the side information into the bitstream, wherein a size of at least one of the input subsets is smaller than a size required to obtain the respective output subset (R1; R2) after processing by the one or more layers.
[0033] As a result, a picture can be efficiently encoded from an input set L of samples by splitting the input samples L into multiple subsets L1 and L2 using side information and processing each input subset Li using a neural network. Furthermore, since the size of the processed input subset Li is smaller than the size of each output subset Ri, the encoding of the picture can be performed with lower memory requirements.
[0034] For example, the method further includes inserting an indication of the two or more output subsets (R1, R2) into the bitstream.
[0035] Indicating the output subsets in the bitstream may improve the partitioning of the input set L into input subsets at the decoding side.
[0036] In one example, processing each of the two or more input subsets includes padding before processing with the one or more layers.
[0037] Hence, the missing samples in the input subset can be added by a padding process.
[0038] In a further example, the location and / or amount of samples to be padded is determined based on the side information.
[0039] Thus, the position and number of padded samples can be determined based on side information signaled by the encoding side.
[0040] According to one example implementation, the two or more input subsets (L1, L2) overlap by one or more samples.
[0041] Thus, the output subset Ri generated through a process involving a neural network becomes more accurate because samples of neighboring input subsets (corresponding to overlapping samples, usually located on the boundaries between adjacent subsets Li) are used. Thus, the overlapping of Li improves the overall quality of the generated output subset Ri. In particular, the distortion along the boundaries of the input subsets Li is mitigated.
[0042] In another example, processing each of the two or more input subsets includes cropping one or more samples after processing with the one or more layers.
[0043] For example, cropping may be performed after processing one or more of the two or more input subsets using a neural network to obtain one or more of the two or more output subsets (R1, R2).
[0044] Cropping allows making the size of the reconstructed picture smaller and / or changing the aspect ratio (length vs. width) of the picture so that the size of the picture can be adapted to the preferred size of the display, which improves the viewing reproduction of the picture on the display (adaptive picture size).
[0045] In some implementations, the side information is determined based on the position and / or amount of the sample to be cropped.
[0046] In this manner, the side information is quickly determined based on the position and / or amount of the sample to be cropped.
[0047] According to one implementation of the method, the location and / or amount of samples to be cropped are determined according to the size of the input subset indicated in the side information and a neural network resizing parameter of the neural network that specifies the relationship between the size of the input to the network and the size of the output from the network.
[0048] Thus, by taking into account both the size of the input subset and the characteristics of the neural network (i.e., its resizing parameters), the position and / or cropping amount can be determined more accurately. Thus, the cropping amount and / or position can be adapted to the attributes of the neural network, which further improves the quality of the reconstructed picture.
[0049] In one further implementation, the side information is: the number of said input subsets, the size of the input set, the size (h1, w1) of each of the two or more input subsets; The size (H,W) of the reconstructed picture (R), the size (H1, W1) of each of the two or more output subsets; The amount of overlap between the two or more input subsets (L1, L2) The amount of overlap between the two or more output subsets (R1, R2) The method includes one or more instructions for:
[0050] Thus, the signaling of various parameters through the side information can be performed in a flexible manner: thus, the signaling overhead may be adapted depending on which of the above parameters are signaled in the side information, while other parameters are derived from the signaled parameters.
[0051] For example, each of the two or more input subsets (L1, L2) is a rectangular region of a rectangular input set (L), and each of the two or more output subsets (R1, R2) is a rectangular region.
[0052] The rectangular shapes of the input and output subsets can be characterized by minimal parameters (e.g., width and height) because they are highly regular in shape. Thus, the number of parameters suitable for side information can be minimized, and thus signaling overhead can be reduced. Moreover, because both the input and output subsets are rectangular in shape, their respective sizes can be related (and determined from each other) through simple arithmetic.
[0053] In another example, the two or more input subsets (L1, L2) are processed independently.
[0054] Thus, the input subsets may be processed in parallel, which means that one input subset does not use any results (intermediate or final) of the processing of another subset, and thus the processing of the input subsets can be performed at high speed, further improving the performance of picture reconstruction in the encoder-decoder framework.
[0055] According to an implementation example, inserting the side information comprises inserting the side information into one or more of a sequence parameter set or a picture parameter set or a picture header, so that the side information can be inserted (and thus signaled) in a flexible manner, i.e. controlling parts of a sequence (pictures, groups of pictures, parts of pictures).
[0056] According to one aspect of the present disclosure, provided is a computer program stored on a non-transitory medium that includes code that, when executed on one or more processors, performs the steps of any of the preceding aspects of the present disclosure.
[0057] According to an aspect of the present disclosure, there is provided an apparatus for reconstructing a picture from a bitstream, the apparatus comprising: obtaining an input set (L) of samples representing a picture based on the bitstream; splitting the input set (L) into two or more input subsets (L1, L2); parsing side information from the bitstream; determining a size ((h1, w1); (h2, w2)) for each of the two or more input subsets (L1, L2) and / or a size ((H1, W1); (H2, W2)) for each of two or more output subsets (R1, R2) based on the side information; and processing each of the two or more input subsets (L1, L2), including processing with a neural network including one or more layers, the neural network processing the two or more input subsets (L1, L2) including processing the two or more input subsets (L1, L2) using a neural network including one or more layers. generating one sample of each of the two or more output subsets (R1, R2) using a plurality of samples of an input subset from among the above input subsets (L1, L2), thereby obtaining, for the two or more input subsets, the respective two or more output subsets (R1, R2); and reconstructing the picture (R) by combining the two or more output subsets, wherein a size of at least one of the input subsets is smaller than a size required to obtain the size of the respective output subset (R1, R2) after processing by the one or more layers.
[0058] According to one aspect of the disclosure, there is provided a processing device for encoding a picture into a bitstream, the processing device comprising: dividing an input set (L) of samples representing a picture into two or more input subsets (L1, L2); determining side information based on a size ((h1, w1); (h2, w2)) for each of the two or more input subsets (L1, L2) and / or a size ((H1, W1); (H2, W2)) for each of two or more output subsets (R1, R2); processing each of the two or more input subsets (L1, L2) including processing with a neural network including one or more layers, the neural network comprising: generating one sample of a respective one of the two or more output subsets (R1, R2) using a plurality of samples of an input subset of the two or more input subsets (L1, L2), thereby obtaining, for the two or more input subsets, the respective two or more output subsets (R1, R2), wherein a size of at least one of the input subsets is smaller than a size required to obtain the respective output subset (R1; R2) after processing by the one or more layers.
[0059] According to an aspect of the present disclosure, there is provided an apparatus for reconstructing a picture from a bitstream, the apparatus having: one or more processors; and a non-transitory computer-readable storage medium coupled to the one or more processors and storing programming for execution by the one or more processors, the programming, when executed by the one or more processors, configuring an encoder to perform a method according to any of the preceding aspects of the present disclosure relating to reconstructing a picture.
[0060] According to an aspect of the present disclosure, there is provided a processing apparatus for encoding a picture into a bitstream, the processing apparatus having one or more processors; and a non-transitory computer-readable storage medium coupled to the one or more processors and storing programming for execution by the one or more processors, the programming, when executed by the one or more processors, configuring a decoder to perform a method according to any of the preceding aspects of the present disclosure relating to encoding a picture.
[0061] The present disclosure is applicable to both end-to-end AI codecs and hybrid AI codecs. In hybrid AI codecs, for example, filtering operations (filtering of reconstructed pictures) can be performed by a neural network (NN). The present disclosure applies to such NN-based processing modules. In general, the present disclosure can be applied to all or part of a video compression and decompression process, where at least part of the processing includes a NN, and where such a NN includes a convolution or transposed convolution operation. For example, the present disclosure is applicable to individual processing tasks performed as part of the processing performed by an encoder and / or decoder, including in-loop filtering and / or post-filtering and / or pre-filtering.
[0062] It should be noted that the present disclosure is not limited to any particular framework, and furthermore, the present disclosure is not constrained to picture or video compression, but may also be applied to object detection, image generation, and recognition systems.
[0063] The present invention can be implemented in hardware (HW) and / or software (SW). Furthermore, HW-based implementations may be combined with SW-based implementations.
[0064] For clarity, any of the above-described embodiments can be combined with any one or more of the other above-described embodiments to create new embodiments within the scope of the present disclosure.
[0065] The details of one or more embodiments are set forth in the accompanying drawings and the description below. Other features, objects, and advantages will be apparent from the description, drawings, and claims. [Brief description of the drawings]
[0066] In the following, embodiments of the invention are explained in more detail with reference to the accompanying figures and drawings. [Figure 1A] 1 is a block diagram illustrating an example of a video coding system configured to implement embodiments of the present invention. [Figure 1B] FIG. 2 is a block diagram illustrating another example of a video coding system configured to implement embodiments of the present invention. [Diagram 2] FIG. 2 is a block diagram showing an example of an encoding device or a decoding device. [Diagram 3] FIG. 2 is a block diagram showing another example of an encoding device or a decoding device. [Figure 4] Schematic diagram showing a variational autoencoder architecture including a hyperprior model. [Diagram 5] FIG. 2 is a block diagram illustrating a portion of an example autoencoder. [Figure 6] 1 is a block diagram of an encoder and a decoder in accordance with the VAE framework. [Figure 7] FIG. 7 is a block diagram of an encoder with the respective components according to FIG. 6 according to an embodiment. [Figure 8] FIG. 7 is a block diagram of a decoder with the respective components according to FIG. 6 according to an embodiment. [Figure 9] It shows the compression of input data by an encoder and the decompression of the data by a decoder, where the compressed data is represented by a latent space. [Figure 10] FIG. 5 is a schematic diagram showing another example of a variational autoencoder architecture including a hyperprior model similar to that of Figure 4. [Figure 11] It shows the full receptive field, including all input samples required to generate an output sample. [Figure 12] It indicates a subset of the full receptive field, in which case the output samples are generated by a smaller number of samples (the subset) than the number of samples in the full receptive field. Sample padding may be required. [Figure 13] It shows downsampling input samples to one output sample using two convolutional layers. [Figure 14] This demonstrates the use of two convolutional layers with kernel size 3x3 to compute the total receptive field for a set of 2x2 output samples. [Figure 15] This shows an example of parallel processing where a picture is split into two tiles and both the decoding of each bitstream and the sample reconstruction are performed independently. [Figure 16] It shows an example of parallel processing where the coding tree block (CTB) is divided into slices (rows) and the bitstream of each slice is decoded (almost) independently, but the sample reconstruction of the slice is not. [Figure 17A] We show an example of dividing an input image into overlapping regions Li, the subsequent cropping of samples in the overlapping regions, and the concatenation of the cropped regions, where each Li contains the entire receptive field. [Figure 17B] 17B shows another example of dividing the input image into overlapping regions Li, similar to FIG. 17A, except that cropping is rejected. [Figure 18] We show an example of partitioning an input image into overlapping regions Li, subsequent cropping of samples in the overlapping regions, and concatenation of the cropped regions, where each Li contains a subset of the total receptive field. [Figure 19]We show an example of partitioning the input image into non-overlapping regions Li, the subsequent cropping of samples, and the concatenation of the cropped regions, where each Li contains a subset of the total receptive field. [Figure 20] It indicates various parameters that may be included in (and parsed from) the bitstream, such as the sizes of regions Li, Ri, and overlap regions. [Figure 21] 1 shows a flowchart of a processing method for reconstructing a picture. [Figure 22] 1 shows a flowchart of a processing method for encoding a picture. [Diagram 23] 1 shows a block diagram of an apparatus for reconstructing pictures, comprising a processing circuit, which may be configured such that it includes modules for carrying out the processes of a reconstruction method. [Figure 24] 1 shows a block diagram of an apparatus for encoding pictures, comprising a processing circuit, which may be configured such that it includes modules for carrying out the processes of the encoding method. [Diagram 25] FIG. 2 is a block diagram illustrating an exemplary hybrid encoder configured to implement embodiments of the present invention. [Figure 26] FIG. 2 is a block diagram illustrating an exemplary hybrid decoder configured to implement embodiments of the present invention. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0067] In the following, some embodiments of the present disclosure are described with reference to the drawings. Figures 1 to 3 refer to video coding systems and methods that may be used in conjunction with more specific embodiments of the present invention that are described in further figures. In particular, the embodiments described in conjunction with Figures 1 to 3 may be used in conjunction with encoding / decoding techniques described below that utilize neural networks for bitstream encoding and / or bitstream decoding.
[0068] In the following description, reference is made to the accompanying drawings, which form a part of the disclosure and show, by way of example, specific aspects of the disclosure or in which embodiments of the disclosure may be used. It is understood that these embodiments may be used in other aspects and may include structural or logical changes not shown in the drawings. Therefore, the following detailed description is not to be taken in a limiting sense, and the scope of the disclosure is defined by the appended claims.
[0069] For example, it is understood that disclosure related to a described method may also apply to a corresponding apparatus or system configured to perform the method, and vice versa. For example, when one or more specific method steps are described, the corresponding apparatus may include one or more units, e.g., functional units, for performing the described one or more method steps. On the other hand, for example, it may include one or more units, e.g., functional units (e.g., one unit performs the one or more steps, or multiple units each perform one or more of the multiple steps), even if such one or more units are not explicitly described or shown in the figures. On the other hand, for example, when a specific apparatus is described based on one or more units, e.g., functional units, the corresponding method may include one step for performing the function of the one or more units (e.g., one step performs the function of the one or more units, or multiple steps each perform the function of one or more units of the multiple units), even if such one or more steps are not explicitly described or shown in the figures. Furthermore, it is understood that features of various exemplary embodiments and / or aspects described herein can be combined with each other, unless specifically stated otherwise.
[0070] Video coding typically refers to the processing of a sequence of pictures forming a video or a video sequence. In the field of video coding, instead of the term "picture", the terms "frame" or "image" are sometimes used synonymously. Video coding (or coding in general) includes two parts: video encoding and video decoding. Video encoding is performed at the source side and typically involves processing the original video picture (e.g., by compression) to reduce the amount of data required to represent the video picture (for more efficient storage and / or transmission). Video decoding is performed at the destination side and typically involves the reverse processing compared to the encoder in order to reconstruct the video picture. Any embodiment referring to "coding" a video picture (or pictures in general) is understood to relate to "encoding" or "decoding" a video picture or a respective video sequence. The combination of the encoding and decoding parts is also called a codec (coding and decoding).
[0071] In the case of lossless video coding, the original video picture can be reconstructed, i.e. the reconstructed video picture has the same quality as the original video picture (assuming there are no transmission or other data losses during storage or transmission). In the case of lossy video coding, further compression is performed, e.g. by quantization, to reduce the amount of data representing the video picture, and the video picture cannot be perfectly reconstructed at the decoder, i.e. the quality of the reconstructed video picture is lower or worse than the quality of the original video picture.
[0072] Some video coding standards belong to the group of "lossy hybrid video codecs" (i.e., they combine spatial and temporal prediction in the sample domain with 2D transform coding to apply quantization in the transform domain). Each picture of a video sequence is typically partitioned into a set of non-overlapping blocks and coding is typically performed at the block level. That is, in an encoder, the video is typically processed at the block (video block) level, i.e., encoded. This is for example by generating a predictive block using spatial (intra-picture) and / or temporal (inter-picture) prediction, subtracting the predictive block from the current block (the block currently being / to be processed) to obtain a residual block, transforming the residual block and quantizing the residual block in the transform domain to reduce the amount of data transmitted (compression). On the other hand, in a decoder, the inverse process compared to the encoder is applied to the encoded or compressed block to reconstruct the current block for representation. Additionally, the encoder replicates the decoder processing loop so that both generate identical predictions (e.g., intra- and inter-predictions) and / or reconstructions for processing, i.e., coding, subsequent blocks. Recently, some parts or the entire encoding and decoding chains have been implemented using neural networks, or in general any machine learning or deep learning framework.
[0073] In the following, an embodiment of a video coding system 10, a video encoder 20 and a video decoder 30 will be described based on FIG.
[0074] 1A is a schematic block diagram illustrating an example coding system 10 that may employ techniques of the present application, such as video coding system 10 (or coding system 10 for short). A video encoder 20 (or encoder 20 for short) and a video decoder 30 (or decoder 30 for short) of video coding system 10 represent example devices that may be configured to perform techniques according to various examples described herein.
[0075] As shown in FIG. 1A, coding system 10 includes a source device 12 configured to provide encoded picture data 21 to, for example, a destination device 14 for decoding the encoded picture data 13.
[0076] The source device 12 comprises an encoder 20 and may additionally, i.e. optionally, comprise a picture source 16, a pre-processor (or pre-processing unit) 18, e.g., a picture pre-processor 18, and a communication interface or unit 22. Some embodiments of the present disclosure (e.g., those relating to initial rescaling or rescaling between two progressing layers) may be implemented by the encoder 20. Some embodiments (e.g., those relating to initial rescaling) may be implemented by the picture pre-processor 18.
[0077] The picture source 16 may include or be any kind of picture capture device, e.g. a camera for taking pictures of the real world, and / or any kind of picture generation device, e.g. a computer graphics processor for generating computer-animated pictures, or any kind of other device for obtaining and / or providing real-world pictures, computer-generated pictures (e.g. screen content, virtual reality (VR) pictures) and / or any combination thereof (e.g. augmented reality (AR) pictures). The picture source may also be any kind of memory or storage for storing any of the aforementioned pictures.
[0078] The picture or picture data 17 is sometimes referred to as the raw picture or raw picture data 17 to distinguish it from the preprocessor 18 and the processing performed by the preprocessing unit 18 .
[0079] The pre-processor 18 is configured to receive (raw) picture data 17 and perform pre-processing on the picture data 17 to obtain a pre-processed picture 19 or pre-processed picture data 19. The pre-processing performed by the pre-processor 18 may include, for example, cropping, color format conversion (e.g. from RGB to YCbCr), color correction, or noise removal. It will be understood that the pre-processing unit 18 is an optional component.
[0080] Video encoder 20 is configured to receive pre-processed picture data 19 and provide encoded picture data 21 (further details are described below, e.g., with reference to FIG. 25). Encoder 20 is implemented via processing circuitry 46 and may embody various modules as discussed with respect to encoder 20 of FIG. 25 and / or any other encoder system or subsystem described herein.
[0081] The communications interface 22 of the source device 12 may be configured to receive the encoded picture data 21 and to transmit the encoded picture data 21 (or a further processed version thereof) over the communications channel 13 to another device, such as the destination device 14 or any other device, for storage or direct reconstruction.
[0082] The destination device 14 comprises a decoder 30 (e.g. a video decoder 30) and may further, i.e. optionally, comprise a communications interface or unit 28, a post-processor 32 (or post-processing unit 32), and a display device 34.
[0083] The communications interface 28 of the destination device 14 is configured to receive the encoded picture data 21 (or a further processed version thereof), e.g. directly from the source device 12 or from any other source, e.g. a storage device, e.g. a storage device for the encoded picture data, and to provide the encoded picture data 21 to a decoder 30.
[0084] The communications interface 22 and the communications interface 28 may be configured to transmit or receive the encoded picture data 21 or the encoded data 13 via a direct communications link between the source device 12 and the destination device 14, such as a direct wired or wireless connection, or via any type of network, such as a wired or wireless network or any combination thereof, or any type of private and public network, or any type of combination thereof.
[0085] The communications interface 22 may be configured, for example, to package the encoded picture data 21 in a suitable format, e.g., packets, and / or process the encoded picture data using any type of transmission encoding or processing for transmission over a communications link or network.
[0086] The counterpart communication interface 28 of the communication interface 22 may be configured, for example, to receive the transmitted data and process the transmitted data using any type of corresponding transmission decoding or processing and / or unpackaging to obtain the encoded picture data 21.
[0087] Both communication interface 22 and communication interface 28 may be configured as unidirectional communication interfaces, as indicated by the arrow for communication channel 13 in FIG. 1A pointing from source device 12 to destination device 14, or may be configured as bidirectional communication interfaces, e.g., configured to send and receive messages, e.g., to set up a connection, acknowledge receipt, and exchange any other information related to the communication link and / or data transmission, e.g., encoded picture data transmissions.
[0088] The decoder 30 is configured to receive the encoded picture data 21 and provide decoded picture data 31 or a decoded picture 31 (described in further detail below, e.g., with reference to Figures 3 and 26). The decoder 30 is implemented via processing circuitry 46, which may embody various modules discussed with respect to the decoder 30 of Figure 26 and / or any other decoder system or subsystem described herein.
[0089] The post-processor 32 of the destination device 14 is configured to post-process the decoded picture data 31 (also called reconstructed picture data), e.g., a decoded picture 31, to obtain post-processed picture data 33, e.g., a post-processed picture 33. The post-processing performed by the post-processing unit 32 may include, for example, color format conversion (e.g., from YCbCr to RGB), color correction, cropping, or resampling, or any other processing, for example, to prepare the decoded picture data 31 for display, such as by a display device 34.
[0090] Some embodiments of the present disclosure may be implemented by the decoder 30 or the post-processor 32.
[0091] A display device 34 of the destination device 14 is configured to receive the post-processed picture data 33, e.g., for displaying the picture to a user or viewer. The display device 34 may be or include any type of display for presenting the reconstructed picture, e.g., an integrated or external display or monitor. The display may include, for example, a liquid crystal display (LCD), an organic light emitting diode (OLED) display, a plasma display, a projector, a micro LED display, a liquid crystal on silicon (LCoS), a digital light processor (DLP), or any type of other display.
[0092] 1A illustrates source device 12 and destination device 14 as separate devices, an embodiment of the devices may include both source device 12 or corresponding functionality and destination device 14 or corresponding functionality, or both. In such an embodiment, source device 12 or corresponding functionality and destination device 14 or corresponding functionality may be implemented using the same hardware and / or software, or by separate hardware and / or software, or any combination thereof.
[0093] As will be apparent to those skilled in the art based on this description, the presence and (exact) division of various units or functions within source device 12 and / or destination device 14, as shown in FIG. 1A, may vary depending on the actual device and application.
[0094] The encoder 20 (e.g., video encoder 20) or the decoder 30 (e.g., video decoder 30), or both the encoder 20 and the decoder 30, may be implemented via processing circuitry as shown in FIG. 1B, e.g., one or more microprocessors, digital signal processors (DSPs), application specific integrated circuits (ASICs), field programmable gate arrays (FPGAs), discrete logic, hardware, dedicated to video coding, or any combination thereof. The encoder 20 may be implemented via processing circuitry 46 that embodies various modules and / or other encoder systems or subsystems described herein. The decoder 30 may be implemented via processing circuitry 46 that embodies various modules and / or other decoder systems or subsystems described herein. The processing circuitry may be configured to perform various operations as described below. As shown in FIG. 3, if the techniques are implemented in part in software, the device may store instructions for the software in a suitable, non-transitory computer-readable storage medium and execute the instructions in hardware using one or more processors to perform the techniques of this disclosure. Either video encoder 20 or video decoder 30 may be integrated as part of a combined encoder / decoder (codec) within a single device, for example as shown in FIG. 1B.
[0095] The source device 12 and the destination device 14 may include any of a wide range of devices, including any type of handheld or stationary device, e.g., a notebook or laptop computer, a mobile phone, a smartphone, a tablet or tablet computer, a camera, a desktop computer, a set-top box, a television, a display device, a digital media player, a video game console, a video streaming device (e.g., a content service server or a content delivery server), a broadcast receiver device, a broadcast transmitter device, and the like, and may use no operating system or any type of operating system. In some cases, the source device 12 and the destination device 14 may be equipped for wireless communication. Thus, the source device 12 and the destination device 14 may be wireless communication devices.
[0096] In some cases, the video coding system 10 shown in FIG. 1A is merely an example, and the techniques of the present application may be applied to video coding scenarios (e.g., video encoding or video decoding) that do not necessarily include any data communication between an encoding device and a decoding device. In other examples, data may be retrieved from local memory, streamed over a network, etc. A video encoding device may encode data and store it in memory, and / or a video decoding device may retrieve data from memory and decode it. In some examples, encoding and decoding are performed by devices that do not communicate with each other, but simply encode data to memory and / or retrieve data from memory and decode it.
[0097] For ease of explanation, some embodiments are described herein with reference to, for example, High Efficiency Video Coding (HEVC) or with reference to Versatile Video Coding (VVC), a next-generation video coding standard developed by the ITU-T Video Coding Experts Group (VCEG) and the ISO / IEC Moving Picture Experts Group (MPEG) Joint Collaborative Team on Video Coding (JCT-VC). Those skilled in the art will appreciate that embodiments of the present invention are not limited to HEVC or VVC.
[0098] 2 is a schematic diagram of a video coding device 400 according to an embodiment of the present disclosure. The video coding device 400 is suitable for implementing the disclosed embodiments as described herein. In an embodiment, the video coding device 400 may be a decoder, such as the video decoder 30 of FIG. 1A, or an encoder, such as the video encoder 20 of FIG. 1A.
[0099] Video coding device 400 has an ingress port 410 (or input port 410) and a receiver unit (Rx) 420 for receiving data; a processor, logic unit, or central processing unit (CPU) 430 for processing data; a transmitter unit (Tx) 440 and an egress port 450 (or output port 450) for transmitting data; and a memory 460 for storing data. Video coding device 400 may also have optical-to-electrical (OE) and electrical-to-optical (EO) components coupled to ingress port 410, receiver unit 420, transmitter unit 440, and egress port 450 for the egress or ingress of optical or electrical signals.
[0100] The processor 430 is implemented by hardware and software. The processor 430 may be implemented as one or more CPU chips, cores (e.g., as a multi-core processor), FPGA, ASIC, DSP. The processor 430 is in communication with the ingress port 410, the receiver unit 420, the transmitter unit 440, the egress port 450, and the memory 460. The processor 430 has a coding module 470. The coding module 470 implements the disclosed embodiments described above. For example, the coding module 470 implements, processes, prepares, or provides various coding operations. Thus, the inclusion of the coding module 470 provides a substantial improvement to the functionality of the video coding device 400 and results in the transformation of the video coding device 400 into a different state. Alternatively, the coding module 470 is implemented as instructions stored in the memory 460 and executed by the processor 430.
[0101] Memory 460 may include one or more disks, tape drives, solid state drives, and may be used as an overflow data storage device to store programs when such programs are selected for execution and to store instructions and data read during program execution. Memory 460 may be, for example, volatile and / or non-volatile, and may be read-only memory (ROM), random access memory (RAM), ternary content-addressable memory (TCAM), and / or static random access memory (SRAM).
[0102] FIG. 3 is a simplified block diagram of an apparatus 500 that may be used as either or both of source device 12 and destination device 14 from FIG. 1 according to an example embodiment.
[0103] The processor 502 in the device 500 can be a central processing unit. Alternatively, the processor 502 can be any other type of device or devices, now existing or later developed, that can manipulate or process information. Although the disclosed implementations can be implemented using a single processor as shown, such as the processor 502, advantages in speed and efficiency can be achieved using multiple processors.
[0104] The memory 504 in the apparatus 500 may be a read-only memory (ROM) device or a random access memory (RAM) device in some implementations. Any other suitable type of storage device may be used as the memory 504. The memory 504 may include code and data 506 that is accessed by the processor 502 using a bus 512. The memory 504 may further include an operating system 508 and application programs 510, the application programs 510 including at least one program that enables the processor 502 to perform the methods described herein. For example, the application programs 510 may include applications 1 through N, further including a video coding application that performs the methods described herein.
[0105] The apparatus 500 may also include one or more output devices, such as a display 518. The display 518, in one example, may be a touch-sensitive display that combines a display with a touch-sensitive element operable to sense touch input. The display 518 may be coupled to the processor 502 via the bus 512.
[0106] Though depicted here as a single bus, bus 512 of device 500 may be comprised of multiple buses. Additionally, secondary storage 514 may be directly coupled to other components of device 500 or may be accessed over a network, and may include a single integrated unit such as a memory card or multiple units such as multiple memory cards. Thus, device 500 may be implemented in a wide variety of configurations.
[0107] FIG. 25 illustrates a schematic block diagram of an exemplary video encoder 20 configured to implement the techniques of the present application. In the example of FIG. 25, the video encoder 20 includes an input 201 (or an input interface 201), a residual calculation unit 204, a transform processing unit 206, a quantization unit 208, an inverse quantization unit 210, and an inverse transform processing unit 212, a reconstruction unit 214, a loop filter unit 220, a decoded picture buffer (DPB) 230, a mode selection unit 260, an entropy encoding unit 270, and an output 272 (or an output interface 272). The mode selection unit 260 may include an inter prediction unit 244, an intra prediction unit 254, and a partition division unit 262. The inter prediction unit 244 may include a motion estimation unit and a motion compensation unit (not shown). The video encoder 20 illustrated in FIG. 25 may also be referred to as a hybrid video encoder or a video encoder according to a hybrid video codec.
[0108] The encoder 20 may be configured to receive, for example via an input 201, a picture 17 (or picture data 17), e.g. a picture of a video or a sequence of pictures forming a video sequence. The received picture or picture data may be a preprocessed picture 19 (or preprocessed picture data 19). For simplicity, the following description refers to the picture 17. The picture 17 may also be called the current picture or the picture to be coded (particularly in video coding, to distinguish the current picture from other pictures, e.g. previously encoded and / or decoded pictures of the same video sequence, i.e. a video sequence which also includes the current picture).
[0109] A (digital) picture can be considered as a two-dimensional array or matrix of intensity-valued samples. The samples in the array are sometimes called pixels (short for picture element) or pels. The number of samples in the horizontal and vertical directions (or axes) of the array or picture defines the size and / or resolution of the picture. For color representation, typically three color components are used; that is, a picture may be represented by or may contain three sample arrays. In an RGB format or color space, a picture contains corresponding red, green and blue sample arrays. However, in video coding, each pixel is typically represented in a luminance and chrominance format or color space. For example, YCbCr contains a luminance component denoted by Y (sometimes L is used instead) and two chrominance components denoted by Cb and Cr. The luminance (or luma for short) component Y represents the brightness or gray level intensity (e.g. in a grayscale picture), and the two chrominance (or chroma for short) components Cb and Cr represent the chromaticity or color information components. Thus, a picture in YCbCr format contains a luminance sample array of luminance sample values (Y) and two chrominance sample arrays of chrominance values (Cb and Cr). A picture in RGB format may be converted or translated to YCbCr format and vice versa. This process is also known as color conversion or translation. If the picture is monochrome, the picture may contain only a luminance sample array. Thus, a picture may, for example, be an array of luma samples in monochrome formats, or an array of luma samples and two corresponding arrays of chroma samples in 4:2:0, 4:2:2, and 4:4:4 color formats.
[0110] An embodiment of the video encoder 20 may have a picture partitioning unit (not depicted in FIG. 2 ) configured to partition a picture 17 into multiple (typically non-overlapping) picture blocks 203. These blocks may also be called root blocks, macroblocks (H.264 / AVC) or coding tree blocks (CTBs) or coding tree units (CTUs) (H.265 / HEVC and VVC). The picture partitioning unit may be configured to use the same block size for all pictures of a video sequence and a corresponding grid defining the block size, or may be configured to vary the block size between pictures or subsets or groups of pictures and to divide each picture into corresponding blocks. The abbreviation AVC stands for Advanced Video Coding.
[0111] In a further embodiment, the video encoder may be configured to directly receive a block 203 of picture 17, e.g., one, some, or all of the blocks forming picture 17. Picture block 203 may also be referred to as a current picture block or a picture block to be coded.
[0112] Similar to picture 17, picture block 203 is or can be considered as a two-dimensional array or matrix of samples with intensity values (sample values), albeit with smaller dimensions than picture 17. That is, block 203 may contain, for example, one sample array (e.g., a luma array for a monochrome picture 17 or a luma or chroma array for a color picture) or three sample arrays (e.g., a luma and two chroma arrays for a color picture 17), or any other number and / or type of arrays, depending on the color format applied. The number of samples in the horizontal and vertical directions (or axes) of block 203 defines the size of block 203. Thus, a block may be, for example, an MxN (M columns and N rows) array of samples, or an MxN array of transform coefficients.
[0113] 25 may be configured to encode picture 17 block by block, for example, encoding and prediction is performed for each block 203.
[0114] An embodiment of video encoder 20 such as that shown in FIG. 25 may be further configured to partition and / or encode pictures using slices (also referred to as video slices), where a picture is partitioned into or encoded using one or more slices (typically non-overlapping), and each slice may include one or more blocks (e.g., CTUs).
[0115] 25 may be further configured to partition and / or encode a picture using tile groups (also referred to as video tile groups) and / or tiles (also referred to as video tiles), where a picture is partitioned into or encoded using one or more (typically non-overlapping) tile groups, each of which may include, for example, one or more blocks (e.g., CTUs) or one or more tiles, where each tile may be, for example, rectangular in shape and may include one or more blocks (e.g., CTUs), e.g., full or partial blocks.
[0116] 26 illustrates an example of a video decoder 30 configured to implement the techniques of the present application. The video decoder 30 is configured to receive encoded picture data 21 (e.g., encoded bitstream 21), e.g., encoded by encoder 20, to obtain a decoded picture 331. The encoded picture data or bitstream includes information for decoding the encoded picture data, e.g., data representing picture blocks of an encoded video slice (and / or tile group or tile) and associated syntax elements.
[0117] The entropy decoding unit 304 is configured to parse the bitstream 21 (or the encoded picture data 21 in general) and perform, for example, entropy decoding on the encoded picture data 21 to obtain, for example, quantized coefficients 309 and / or decoded coding parameters (not shown in FIG. 3 ), for example, inter-prediction parameters (e.g., reference picture indexes and motion vectors), intra-prediction parameters (e.g., intra-prediction modes or indices), transform parameters, quantization parameters, loop filter parameters, and / or other syntax elements. The entropy decoding unit 304 may be configured to apply a decoding algorithm or scheme corresponding to an encoding scheme as described with respect to the entropy encoding unit 270 of the encoder 20. The entropy decoding unit 304 may be further configured to provide the inter-prediction parameters, intra-prediction parameters and / or other syntax elements to the mode application unit 360 and to provide other parameters to other units of the decoder 30. Video decoder 30 may receive and / or use syntax elements at the video slice level and / or video block level. In addition to or as an alternative to slices and their respective syntax elements, tile groups and / or tiles and their respective syntax elements may be received and / or used.
[0118] The reconstruction unit 314 (e.g., an adder or summer 314) may be configured to add the reconstructed residual block 313 to the prediction block 365 to obtain a reconstructed block 315 in the sample domain, e.g., by adding sample values of the reconstructed residual block 313 and the prediction block 365.
[0119] 26 may be configured to divide and / or decode pictures using slices (also referred to as video slices), where a picture may be partitioned into or decoded using one or more slices (typically non-overlapping), each of which may include one or more blocks (e.g., CTUs).
[0120] 26 may be configured to partition and / or decode a picture using tile groups (also referred to as video tile groups) and / or tiles (also referred to as video tiles), where a picture may be partitioned into or decoded using one or more (typically non-overlapping) tile groups, where each tile group may include, for example, one or more blocks (e.g., CTUs) or one or more tiles, where each tile may be, for example, rectangular in shape and may include one or more blocks (e.g., CTUs), for example, full blocks or partial blocks.
[0121] Other variations of the video decoder 30 may be used to decode the encoded picture data 21. For example, the decoder 30 may generate an output video stream without a loop filtering unit 320. For example, a non-transform-based decoder 30 may inverse quantize the residual signal directly for certain blocks or frames without the inverse transform processing unit 312. In another implementation, the video decoder 30 may combine the inverse quantization unit 310 and the inverse transform processing unit 312 into a single unit.
[0122] It should be understood that in the encoder 20 and the decoder 30, the processing result of the current step may be further processed and output to the next step, for example, after the interpolation filtering, the motion vector derivation, or the loop filtering, further operations such as clipping or shifting may be performed on the processing result of the interpolation filtering, the motion vector derivation, or the loop filtering.
[0123] In the following, more specific, non-limiting, exemplary embodiments of the present invention will be described. Before that, some explanations are provided to aid in understanding the present disclosure.
[0124] Artificial Neural Networks An artificial neural network (ANN), or connectionist system, is a computing system loosely inspired by the biological neural networks that make up animal brains. Such systems "learn" to perform tasks by considering examples, generally without being programmed with task-specific rules. For example, in image recognition, a system may learn to identify images that contain cats by analyzing example images that have been manually labeled as "cat" or "not cat" and using the results to identify cats in other images. It does this without any prior knowledge of cats, e.g., that they have fur, tails, whiskers, or cat-like faces. Instead, the system automatically generates discriminatory features from the examples it processes.
[0125] ANNs are based on a collection of connected units or nodes called artificial neurons that loosely model neurons in a biological brain. Each connection can send a signal to other neurons, like a synapse in a biological brain. An artificial neuron that receives a signal can process it and send a signal to the neurons connected to it. In an ANN implementation, the "signals" in the connections are real numbers, and the output of each neuron can be calculated by some nonlinear function of the sum of its inputs. The connections are called edges. Neurons and edges typically have weights that are adjusted as learning progresses. The weights increase or decrease the strength of the signal in the connection. Neurons may have thresholds such that a signal is sent only if the aggregate signal exceeds that threshold. Typically, neurons are aggregated into layers. Different layers may perform different transformations on their inputs. The signal progresses from the first layer (input layer) to the last layer (output layer), possibly after traversing the layers multiple times.
[0126] The original goal of the ANN approach was to solve problems in the same way as the human brain. Over time, the focus shifted to performing specific tasks, resulting in a deviation from biology. ANNs have been used in a variety of tasks including computer vision, speech recognition, machine translation, social network filtering, playing board and video games, medical diagnosis, and even in activities traditionally considered to be exclusively human, such as painting.
[0127] Convolutional Neural Networks The name "convolutional neural network" (CNN) indicates that the network employs a mathematical operation called convolution, which is a special type of linear operation. A convolutional network is simply a neural network that uses convolution instead of general matrix multiplication in at least one of its layers. A convolutional neural network consists of an input layer, an output layer, and multiple hidden layers. The input layer is the layer to which the input is provided for processing.
[0128] For example, the neural network in Figure 4 is a CNN. The hidden layers of a CNN typically consist of a series of convolutional layers that convolve using multiplication or other dot products. The result of a layer is one or more feature maps, also called channels. There may be subsampling involving some or all layers. As a result, the feature maps may be smaller. The activation function in a CNN may be a RELU (Rectified Linear Unit) layer or a GDN layer, as already exemplified above, followed by additional convolutions such as pooling layers, fully connected layers, and normalization layers, which are called hidden layers because their inputs and outputs are masked by the activation function and the final convolution. These layers are colloquially called convolutions, but this is simply by convention. Mathematically, they are technically sliding dot products or cross-correlations. This is important to the index in the matrix in that it affects how the weights are determined at a particular index point.
[0129] When programming a CNN to process pictures or images, the input is a tensor with the shape (number of images) × (image width) × (image height) × (image depth). Then, after passing through a convolutional layer, the image is abstracted into a feature map with the shape (number of images) × (feature map width) × (feature map height) × (feature map channels). A convolutional layer in a neural network should have the following attributes: A convolution kernel defined by its width and height (hyperparameters); The number of input and output channels (hyperparameters); The depth of the convolutional filter (input channels) should be equal to the number of channels of the input feature map (depth).
[0130] In the past, traditional multilayer perceptron (MLP) models have been used for image recognition. However, due to the fully connected nature of the nodes, they suffer from high dimensionality and do not scale well with higher resolution images. A 1000x1000 pixel image with RGB color channels has 3 million weights, which is too high to be efficiently processed at a fully connected scale. Also, such network architectures do not take into account the spatial structure of the data, treating input pixels that are far apart the same as pixels that are close to each other. This ignores the locality of reference in the image data, both computationally and semantically. Thus, the fully connected nature of neurons is wasteful for purposes such as image recognition, which are dominated by spatially local input patterns.
[0131] Convolutional neural networks are biologically inspired variants of multi-layer perceptrons, specifically designed to emulate the behavior of the visual cortex. CNN models mitigate the challenges presented by MLP architectures by exploiting the strong spatial local correlations present in natural images. The convolutional layer is the core building block of a CNN. Its parameters consist of a collection of learnable filters (the aforementioned kernels). Those filters have small receptive fields but extend to the full depth of the input volume. During a forward pass, each filter is convolved across the width and height of the input volume, computing the dot products between the filter and the entries of the input, generating a two-dimensional activation map for that filter. As a result, the network learns filters that become active when it detects some particular type of feature at some spatial location in the input.
[0132] Stacking the activation maps for all filters along the depth dimension forms the complete output volume of the convolutional layer. Thus, every entry in the output volume can also be interpreted as the output of a neuron that sees a small region in the input and shares parameters with neurons in the same activation map. A feature map or activation map is the output activation for a given filter. Feature map and activation are synonymous. In some papers it is called an activation map because it is a mapping that corresponds to the activation of different parts of the image, and it is also called a feature map because it is a mapping of where certain features in the image are found. High activation means that certain features have been found.
[0133] Another important concept in CNNs is pooling, a form of nonlinear downsampling. There are several nonlinear functions to implement pooling, of which max pooling is the most common. Max pooling partitions the input image into a set of non-overlapping rectangles and outputs the maximum value for each such subregion. Intuitively, the exact location of a feature is less important than its rough location relative to other features. This is the idea behind using pooling in convolutional neural networks. Pooling layers serve to progressively reduce the spatial size of the representation, reducing the number of parameters, memory footprint, and computational effort in the network, and thus also controlling overfitting. It is common to insert pooling layers periodically between successive convolutional layers in CNN architectures. The pooling operation provides another form of translational invariance.
[0134] A pooling layer operates independently on every depth slice of the input, spatially resizing it. The most common form is a pooling layer with a filter of size 2x2, applied with a stride of 2 downsamples in every depth slice of the input by 2 along both width and height, discarding 75% of the activations. In this case, all max operations are on 4 numbers. The depth dimension is not changed.
[0135] In addition to max pooling, the pooling unit can use other functions such as average pooling and l2-norm pooling. Average pooling was often used historically but has fallen out of favor recently compared to max pooling, which performs better in practice. Due to the aggressive reduction in the size of the representation, there has been a recent trend towards using smaller filters or discarding the pooling layer altogether. "Region of Interest" pooling (also known as ROI pooling) is a variant of max pooling, where the output size is fixed and the input rectangle is a parameter. Pooling is a key component of convolutional neural networks for object detection based on the Faster R-CNN architecture.
[0136] The aforementioned ReLU stands for rectified linear unit, which applies a non-saturating activation function. It effectively removes negative values from the activation map by setting them to 0. This increases the nonlinearity of the decision function and the overall network without affecting the receptive fields of the convolutional layers. Other functions are also used to increase the nonlinearity, for example, the saturated hyperbolic tangent and sigmoid functions. ReLU is often preferred over other functions because it trains neural networks several times faster without a significant penalty in generalization accuracy.
[0137] After several convolutional and max pooling layers, high-level inference in neural networks is performed via fully connected layers. Neurons in fully connected layers have connections to all activations of the previous layer, as in regular (non-convolutional) artificial neural networks. Their activations can thus be computed as affine transformations followed by matrix multiplications followed by bias offsets (vector addition of learned or fixed bias terms).
[0138] The "loss layer" specifies how training penalizes deviations between predicted (output) labels and true labels, and is usually the final layer of a neural network. A variety of loss functions may be used that are appropriate for different tasks: softmax loss is used to predict a single class out of K mutually exclusive classes; sigmoid cross entropy loss is used to predict K independent probability values in [0,1]; Euclidean loss is used for regression to real-valued labels.
[0139] Picture Size Picture size refers to the width w or height h of a picture, or a width and height pair. Image width and height are typically measured in number of luma samples.
[0140] Downsampling Downsampling is the process in which the sampling rate (sampling interval) of a discrete input signal is reduced. For example, if the input signal is an image with size h and w, and the output of downsampling has size h2 and w2, then at least one of the following is true: h2 <h w2 <w In one example, downsampling may be implemented by retaining only every mth sample and discarding the rest of the input signal (eg, an image).
[0141] Upsampling: Upsampling is the process in which the sampling rate (sampling interval) of a discrete input signal is increased. For example, if the input image has size h and w, and the downsampled output has size h2 and w2, then at least one of the following holds: h2>h w2>w Resampling: The processes of downsampling and upsampling are both examples of resampling. Resampling is a process in which the sampling rate (sampling interval) of an input signal is changed. Resampling is an approach for resizing (or rescaling) an input signal.
[0142] During the upsampling or downsampling process, filtering may be applied to improve the accuracy of the resampled signal and reduce aliasing effects. Interpolation filtering typically involves a weighted combination of sample values at sample positions surrounding the resample position. This can be implemented as follows:
number
[0143] Cropping: To trim (cut) the outer edges of a digital image. Cropping can be used to make an image smaller (in terms of number of samples) and / or to change the aspect ratio (length vs. width) of the image. It can be understood as removing samples from a signal, usually the samples at the edges of the signal.
[0144] Padding: Padding refers to increasing the size of the input (i.e., the input image) by generating new samples (e.g., at the edges of the image) using predefined sample values or by using (e.g., copying or combining) sample values at existing locations in the input image. The generated samples are approximations of the actual sample values that do not exist.
[0145] Resize: Resizing is a general term where the size of the input picture is changed. Resizing may be performed using either padding or cropping methods. Alternatively, resizing may be performed by resampling.
[0146] Integer division: Integer division is division in which the fractional part (the remainder) is discarded.
[0147] Convolution: Convolution can be defined in one dimension for an input signal f() and a filter g() as follows:
number
[0148] Downsampling layer: A layer of a neural network that leads to a reduction in the dimensionality of the input by at least one. In general, the input has three or more dimensions, which may include the number of channels, width, and height. A downsampling layer usually refers to a reduction in the width and / or height dimensions. Downsampling layers can be implemented using operations such as convolution (possibly with a stride), averaging, and max pooling.
[0149] Feature Map: Feature maps are generated by applying filters (kernels) or feature detectors to the input images or feature map outputs of previous layers. Visualization of feature maps provides insight into the internal representation of a particular input for each convolutional layer in the model. In general terms, a feature map is the output of a neural network layer. A feature map typically contains one or more feature elements.
[0150] Latent space: The latent space refers to the feature map generated in the bottleneck layer of a NN. This is illustrated in the examples shown in Figures 5 and 9. In the case of a NN topology where the goal of the network is to reduce the dimensionality of the input signal (as in an autoencoder topology), the bottleneck layer usually refers to the layer where the dimensionality of the input signal is reduced to a minimum. The goal of the dimensionality reduction is usually to achieve a more compact representation of the input. Therefore, the bottleneck layer is a good layer for compression, and thus, in the case of video coding applications, a bitstream is generated based on the bottleneck layer.
[0151] An autoencoder topology typically consists of an encoder and a decoder interconnected by a bottleneck layer. The goal of the encoder is to reduce the dimensionality of the input, making it more compact (or more intuitive). The goal of the decoder is to undo the encoder's operations, thus reconstructing the input as best as possible based on the bottleneck layer.
[0152] Upsampling layer: A layer in a neural network increases at least one of the dimensions of the input. In general, the input may have more than two dimensions, which may include the number of channels, width, and height. An upsampling layer usually refers to an increase in the width and / or height dimensions. An upsampling layer can be implemented with operations such as deconvolution, duplication, etc.
[0153] Autoencoders and Unsupervised Learning An autoencoder is a type of artificial neural network used to learn efficient data coding in an unsupervised manner. Its schematic is shown in Figure 5, which can be considered as a simplified representation of the CNN-based VAE structure in Figure 4. The goal of an autoencoder is to learn a representation (encoding) of a set of data, typically for dimensionality reduction, by training the network to ignore signal "noise". Along with the reduction side, a reconstruction side is learned, where the autoencoder tries to generate a representation from the reduced encoding that is as close as possible to the original input, hence its name.
[0154] In the simplest case, given a single hidden layer, the encoder stage of an autoencoder takes an input x and maps it to h. h = σ(Wx + b). This image h is typically called the code, latent variable, or latent representation. Here, σ is an element-wise activation function such as the sigmoid function or the rectified linear unit. W is a weight matrix and b is a bias vector. The weights and biases are typically initialized randomly and then updated iteratively during training through backpropagation. The decoder stage of the autoencoder then maps h to a reconstruction x' that has the same shape as x. x'=σ'(W'h'+b') Here, σ', W', b' for the decoder may be unrelated to the corresponding σ, W, b for the encoder.
[0155] Variational autoencoder models make strong assumptions about the distribution of latent variables. They use a variational approach for learning latent representations, resulting in an additional loss component and a specific estimator for the training algorithm called the Stochastic Gradient Variational Bayes (SGVB) estimator. This is because the data is represented as a directed graphical model p θ (x|h), and the encoder estimates the posterior distribution p θ Approximation q for (h|x) φ Suppose we are trying to learn (h|x), where φ and θ represent the parameters of the encoder (recognition model) and decoder (generative model), respectively. The probability distribution of the latent vectors in a VAE typically matches the probability distribution of the training data much better than standard autoencoders. The objective function of a VAE has the form:
number
number
[0156] Recent advances in the field of artificial neural networks, and convolutional neural networks in particular, have enabled researchers to interest in applying neural network-based techniques to the task of image and video compression. For example, End-to-End Optimized Image Compression using networks based on variational autoencoders has been proposed. Thus, data compression is considered a fundamental and well-studied problem in engineering, and is typically formulated with the goal of designing a code with minimal entropy for a given discrete data ensemble. The solution relies heavily on knowledge of the probabilistic structure of the data, and thus the problem is closely related to probabilistic source modeling. However, since all practical codes must have finite entropy, continuous-valued data (such as a vector of image pixel intensities) must be quantized into a finite set of discrete values, which introduces error. In this context, known as the lossy compression problem, one must trade off two competing costs: the entropy of the discretized representation (rate) and the error (distortion) resulting from quantization. Different compression applications, such as data storage and transmission over limited capacity channels, require different rate-distortion tradeoffs. Joint optimization of rate and distortion is difficult. Without further constraints, the general problem of optimal quantization in high-dimensional spaces is intractable. For this reason, most existing image compression methods work by linearly transforming a data vector into a suitable continuous-valued representation, quantizing its elements independently, and then encoding the resulting discrete representation using a reversible entropy code. This scheme is called transform coding because of the central role of the transformation. For example, JPEG uses a discrete cosine transform on blocks of pixels, and JPEG2000 uses a multi-scale orthogonal wavelet decomposition. Typically, the three components of a transform coding method -- the transform, the quantizer, and the entropy code -- are optimized separately (often through manual parameter tuning).Modern video compression standards such as HEVC, VVC, EVC also use transform representations to code the residual signal after prediction. Several transforms such as the discrete cosine transform (DCT, DST) and the low frequency non-separable manually optimized transform (LFNST) are used for that purpose.
[0157] The VAE framework can be considered as a nonlinear transformation coding model. The transformation process can be divided into four main parts. This is illustrated in Figure 6, which shows the VAE framework.
[0158] The transformation process can be divided into four main parts: Figure 6 illustrates the VAE framework. In Figure 6, an encoder 601 maps an input image x to a latent representation (denoted by y) via a function y=f(x). This latent representation may also be referred to below as a part of the "latent space" or a point in the "latent space". The function f() is a transformation function that transforms the input signal x into a more compressible representation y. A quantizer 602 quantizes the latent representation y into
number
number
[0159] Latent space can be understood as a compressed data representation where similar data points are closer together in the latent space. Latent space is useful for learning data features and finding simpler representations of data for analysis.
[0160] The quantized latent representation,T,^y,and the side information,^z,of the hyperprior,3,are included (binarized) in the bitstream,2,using arithmetic coding (AE).
[0161] Additionally, a decoder 604 is provided that converts the quantized latent representation into a reconstructed image ̂x.
number
[0162] In Fig. 6, component AE 605 is an arithmetic encoding module, which converts samples of the quantized latent representation ^y and the side information ^z into a binary representation bitstream 1. The samples of ^y and ^z may comprise, for example, integer or floating-point numbers. One purpose of the arithmetic encoding module is to convert (through a process of binarization) the sample values into a string of binary digits, which are then included in a bitstream that may contain further portions corresponding to the encoded image or further side information.
[0163] Arithmetic decoding (AD) 606 is the process of reversing the binarization process, where the binary numbers are converted back to sample values. Arithmetic decoding is provided by arithmetic decoding module 606.
[0164] It should be noted that the present disclosure is not limited to this particular framework. Furthermore, the present disclosure is not constrained to image or video compression, but can also be applied to object detection, image generation, and recognition systems.
[0165] In Fig. 6 there are two sub-networks connected to each other. A sub-network in this context is a logical division between parts of the total network. For example, in Fig. 6 modules 601, 602, 604, 605 and 606 are called the "encoder / decoder" sub-network. The "encoder / decoder" sub-network is responsible for encoding (generating) and decoding (parsing) the first bitstream "Bitstream 1". The second network in Fig. 6 includes modules 603, 608, 609, 610 and 607 and is called the "hyperencoder / decoder" sub-network. The second sub-network is responsible for generating the second bitstream "Bitstream 2". The purpose of the two sub-networks is different.
[0166] The first sub-network is responsible for: Transformation 601 of an input image x into its latent representation y (which is easier to compress than x); quantizing 602 the latent representation y into a quantized latent representation ^y; · Compress the quantized latent representation ^y using AE via the Arithmetic Encoding module 605 to obtain a bitstream “Bitstream 1”. Parsing the bitstream 1 through AD using the arithmetic decoding module 606; · Reconstruct 604 a reconstructed image (^x) using the parsed data.
[0167] The purpose of the second sub-network is to obtain statistical properties of the samples of "Bitstream 1" (e.g., mean, variance, correlation between samples of Bitstream 1) so that the first sub-network can compress Bitstream 1 more efficiently. The second sub-network generates a second bitstream "Bitstream 2" that contains the aforementioned information (e.g., mean, variance, correlation between samples of Bitstream 1).
[0168] The second network includes an encoding section which includes converting 603 the quantized latent representation ^y to side information z, quantizing the side information z to quantized side information ^z, and encoding (e.g., binarizing) 609 the quantized side information ^z into the bitstream 2. In this example, the binarization is performed by arithmetic encoding (AE). The decoding section of the second network includes an arithmetic decoding (AD) 610, which converts the input bitstream 2 into decoded quantized side information ^z'. Since the arithmetic encoding and decoding operations are lossless compression methods, ^z' may be the same as ^z. The decoded quantized side information ^z' is then converted 607 into decoded side information ^y', which represents statistical properties of ^y (e.g., the mean value of the samples of ^y, or the variance of the sample values, etc.). The decoded latent representation ^y' is then provided to the aforementioned arithmetic encoder 605 and arithmetic decoder 606 to control a probability model of ^y.
[0169] FIG. 6 describes an example of a variational autoencoder (VAE), the details of which may vary in different implementations. For example, in one particular implementation, there may be additional components to obtain statistical properties of the samples of bitstream 1 more efficiently. In one such implementation, there may be a context modeler that aims to extract cross-correlation information of bitstream 1. The statistical information provided by the second sub-network may be used by the AE (Arithmetic Encoder) 605 and AD (Arithmetic Decoder) 606 components.
[0170] Figure 6 shows the encoder and decoder in a single diagram. As will be apparent to those skilled in the art, the encoder and decoder may, and very often are, integrated into different devices.
[0171] FIG. 7 illustrates an encoder and FIG. 8 illustrates the decoder component of the VAE framework in isolation. As input, the encoder receives a picture according to some embodiments. The input picture may include one or more channels, such as color channels or other types of channels, e.g., depth channels or motion information channels. The outputs of the encoder (as shown in FIG. 7) are Bitstream 1 and Bitstream 2. Bitstream 1 is the output of the first sub-network of the encoder and Bitstream 2 is the output of the second sub-network of the encoder.
[0172] Similarly, in FIG. 8, two bitstreams, Bitstream 1 and Bitstream 2, are received as input and a reconstructed (decoded) image, ̂z, is produced at the output.
[0173] As mentioned above, the VAE can be divided into different logical units performing different actions. This is illustrated in Fig. 7 and Fig. 8, where Fig. 7 shows components participating in the encoding of a signal such as a video and providing encoded information. This encoded information is then received by a decoder component shown in Fig. 8, for example for encoding. It is noted that the encoder and decoder components designated 9xx and 10xx may correspond in function to the components designated 6xx mentioned in Fig. 6.
[0174] Specifically, as seen in Figure 7, the encoder includes an encoder 901 that converts an input x into a signal y. The signal y is then provided to a quantizer 902. The quantizer 902 provides information to an arithmetic encoding module 905 and a hyperencoder 903. The hyperencoder 903 provides the bitstream 2 already discussed to a hyperdecoder 907 which in turn signals information to the arithmetic encoding module 605.
[0175] The output of the arithmetic encoding module is Bitstream 1. Bitstream 1 and Bitstream 2 are the outputs of the encoding of the signal, which are then provided (transmitted) to the decoding process.
[0176] The unit 901 is called an "encoder", but the complete sub-network described in FIG. 7 can also be called an "encoder". In general, the process of encoding refers to a unit (module) that converts an input into an encoded (e.g. compressed) output. As can be seen from FIG. 7, the unit 901 can actually be considered as the core of the entire sub-network, since it performs the conversion of an input x into a compressed version of x, y. The compression in the encoder 901 can be achieved, for example, by applying a neural network, or in general any processing network with one or more layers. In such a network, the compression can be performed by cascading processes including downsampling to reduce the size of the input and / or the number of channels. Thus, the encoder can be called, for example, a neural network (NN)-based encoder.
[0177] The remaining parts in the diagram (quantization unit, hyperencoder, hyperdecoder, arithmetic encoder / decoder) are all responsible for improving the efficiency of the encoding process or converting the compressed output y into a series of bits (bitstream). Quantization may be provided to further compress the output of the NN encoder 901 by lossy compression. The AE 905 may perform binarization, which in combination with the hyperencoder 903 and hyperdecoder 907 used to configure the AE 905, may further compress the quantized signal by lossless compression. Therefore, the entire sub-network of FIG. 7 can be called an "encoder".
[0178] Most Deep Learning (DL) based image / video compression systems reduce the dimensionality of a signal before converting it into binary digits (bits). For example, in the VAE framework, an encoder, which is a nonlinear transform, maps an input image x to y, where y has a smaller width and height than x. Because y has a smaller width and height and thus a smaller size, the dimensionality (size) of the signal is reduced, and thus it is easier to compress signal y. In general, an encoder does not necessarily need to reduce the size in both (or generally all) dimensions. Rather, some example implementations may provide an encoder that reduces the size only in one dimension (or generally in a subset of the dimensions).
[0179] The general principle of compression is illustrated in Figure 9. The latent space, which is the output of the encoder and the input of the decoder, represents the compressed data. Note that the size of the latent space may be much smaller than the size of the input signal. Here, the term size may refer to the resolution, e.g., the number of samples in the feature map(s) output by the encoder. The resolution may be given as the product of the number of samples per dimension (e.g., width x height x number of channels in the input picture or feature map).
[0180] The reduction in the size of the input signal is illustrated in Figure 9, which depicts a deep learning-based encoder and decoder. In Figure 9, the input image x corresponds to the input data that is the input of the encoder. The transformed signal y corresponds to a latent space that has smaller dimensionality or size in at least one dimension than the input signal. Each column of circles represents a layer in the processing chain of the encoder or decoder. The number of circles in each layer indicates the size or dimensionality of the signal at that layer.
[0181] From FIG. 9 it can be seen that the encoding operation corresponds to a reduction in the size of the input signal, while the decoding operation corresponds to the reconstruction of the original size of the image.
[0182] One method for signal size reduction is downsampling. Downsampling is a process in which the sampling rate of an input signal is reduced. For example, if an input image has size h and w, and the output of downsampling is h2 and w2, then at least one of the following is true: h2 <h w2 <w
[0183] Signal size reduction typically occurs incrementally along a chain of processing layers, not all at once. For example, if an input image x has dimensions (or dimensional sizes) of h and w (denoting height and width), and the latent space y has dimensions h / 16 and w / 16, then size reduction may occur in four layers during encoding, with each layer reducing the size of the signal by a factor of 2 in each dimension.
[0184] Some deep learning based video / image compression methods use multiple downsampling layers. As an example, the VAE framework in Figure 4 uses six downsampling layers marked 801 to 806. The layers with downsampling are indicated by a downward arrow in the layer description. The layer description “Conv Nx5x5 / 2↓” means that the layer is a convolutional layer with N channels and the size of the convolution kernel is 5x5. As mentioned before, the 2↓ means that downsampling by a factor of 2 is performed in this layer. Downsampling by a factor of 2 results in one of the dimensions of the input signal being reduced by half at the output. In Figure 4, the 2↓ indicates that both the width and height of the input image are reduced by a factor of 2. Since there are six downsampling layers, if the width and height of the input image 814 (also denoted by x) are given by w and h, the output signal ^z 813 has a width and height equal to w / 64 and h / 64, respectively. The modules denoted AE and AD are the arithmetic encoder and the arithmetic decoder, which have already been described with respect to Figs. 6 to 8. The arithmetic encoder and the decoder are concrete implementations of entropy coding. The AE and AD (as part of components 813 and 815) can be replaced by other means of entropy coding. In information theory, entropy encoding is a lossless data compression method used to convert the values of symbols into a binary representation, which is a lossless process. Also, the "Q" in the diagram corresponds to the quantization operation also mentioned above in relation to Fig. 6 and further described above in the "Quantization" section. Also, the quantization operation and the corresponding quantization unit as part of components 813 or 815 are not necessarily present and / or can be replaced by another unit.
[0185] Also shown in Figure 4 is a decoder including upsampling layers 807 to 812. In the input processing order, a further layer 820 is provided between upsampling layers 811 and 810, which is implemented as a convolutional layer but does not provide upsampling on the received input. A corresponding convolutional layer 830 is also shown for the decoder. Such a layer may be provided in a NN to perform operations on the input that do not change the size of the input but do change certain characteristics. However, it is not necessary that such a layer is provided.
[0186] In terms of the processing order of the bitstream 2 through the decoder, the upsampling layers are performed in reverse order, i.e., from upsampling layer 812 to upsampling layer 807. Here, each upsampling layer is shown to provide upsampling with an upsampling ratio of 2, denoted by ↑. Of course, not all upsampling layers have the same upsampling ratio, and other upsampling ratios such as 3, 4, 8, etc. may be used. Layers 807 to 812 are implemented as convolutional layers (conv). In particular, since the encoder may be intended to provide an inverse operation on the input, the upsampling layers may apply a deconvolution operation to the received input such that its size is increased by a factor corresponding to the upsampling ratio. However, the present disclosure is not generally limited to deconvolution, and upsampling may be performed in any other manner, such as bilinear interpolation between two neighboring samples or nearest neighbor sample copying.
[0187] In the first sub-network, several convolutional layers (801 to 803) are followed by generalized divisive normalization (GDN) on the encoder side and inverse GDN (IGDN) on the decoder side. In the second sub-network, the activation function applied is ReLu. It should be noted that the present disclosure is not limited to such an implementation and in general, other activation functions may be used instead of GDN or ReLu.
[0188] FIG. 10 shows another example of a VAE-based encoder-decoder structure similar to that of FIG. 4. In FIG. 10, it is shown that the encoder and decoder (together represented as 1200) may include several downsampling and upsampling layers. Each layer applies a factor 2 downsampling or a factor 2 upsampling. Furthermore, the encoder and decoder may include further components such as a generalized division normalization (GDN) 1201 on the encoder side and an inverse GDN (IGDN) 1202 on the decoder side. Furthermore, both the encoder and the decoder may include one or more ReLu, specifically a leaky ReLus 1203. Also, a factorized entropy model 1205 may be provided in the encoder and a Gaussian entropy model 1206 in the decoder. Furthermore, multiple convolution masks 1204 may be provided. Furthermore, in the embodiment of FIG. 10, the encoder includes a universal quantizer (UnivQuan) 1207 and the decoder includes an attention module 1208.
[0189] The total number of downsampling operations and the stride define conditions on the input channel size, i.e. the size of the input to the neural network.
[0190] Now, if the input channel size is an integer multiple of 64=2x2x2x2x2x2, then after all the ongoing downsampling operations the channel size remains an integer. By applying the corresponding upsampling operation in the decoder during upsampling, and applying the same rescaling at the end of processing the input through the upsampling layers, the output size will again be identical to the input size at the encoder.
[0191] This results in a reliable reconstruction of the original input.
[0192] Receptive field: Within the context of neural networks, the receptive field is defined as the size of the region in the input that produces a sample in the output feature map. Essentially, it is a measure of the association between the output feature (at any layer) and the input region (patch). Note that the concept of receptive field applies to local operations (i.e. convolution, pooling, etc.). For example, a convolution operation with a kernel of size 3x3 has a receptive field of 3x3 samples in the input layer. In this example, 9 input samples are used by the convolution node to obtain one output sample.
[0193] Total receptive fields: Total receptive field (TRF) refers to the set of input samples used to obtain a specified set of output samples, e.g., by applying one or more processing layers of a neural network.
[0194] The full receptive field can be illustrated by Figure 11. In Figure 11, the processing of a one-dimensional input (seven samples on the left side of the figure) with two successive transposed convolution (also called deconvolution) layers is illustrated. The input is processed from left to right, i.e., "deconv layer 1" processes the input first, and its output is processed by "deconv layer 2". In this example, the kernel has a size of three in both deconvolution layers. This means that three input samples are needed to obtain one output sample in each layer. In this example, the set of output samples is marked inside the dashed rectangle and contains three samples. Due to the size of the deconvolution kernel, seven samples are needed in the input to obtain an output set of samples that contains three output samples. Thus, the full receptive field of the three marked output samples is seven samples in the input.
[0195] In Figure 11, there are 7 input samples, 5 intermediate output samples, and 3 output samples. The reduction in the number of samples is due to the fact that the input signal is finite (does not extend to infinity in each direction) and therefore there are "missing samples" at the input boundaries. That is, if the number of input samples is 7, only 5 intermediate output samples can be generated, since the deconvolution operation requires 3 input samples corresponding to each output sample. In fact, the amount of output samples that can be generated is (k-1) samples less than the number of input samples, where k is the kernel size. Since the number of input samples is 7 in Figure 11, after the first deconvolution with kernel size 3, the number of intermediate samples will be 5. After the second deconvolution with kernel size 3, the number of output samples will be 3.
[0196] As can be observed in Figure 11, the total receptive field of three output samples is seven samples in the input. The size of the total receptive field increases with successive application of processing layers with kernel sizes greater than one. In general, the total receptive field of a set of output samples is calculated by following the connections of each node, starting from the output layer to the input layer, and finding the union of all samples in the input that are directly or indirectly (through one or more processing layers) connected to the set of output samples. For example, in Figure 11, each output sample is connected to three samples in the previous layer. The union includes five samples in the intermediate output layer, which are connected to seven samples in the input layer.
[0197] It may be desirable to keep the number of samples the same after each operation (convolution or deconvolution or other). In such cases, padding can be applied at the input boundaries to compensate for the "missing samples". Figure 12 illustrates this case where the number of samples is kept equal. Note that padding is not a required operation for convolution, deconvolution, or any other processing layer, so this disclosure is applicable to both cases.
[0198] This should not be confused with downsampling. In the process of downsampling, there are N samples in the output for every M samples, where N < M. The difference is that M is typically much smaller than the number of inputs. In Figure 11, there is no downsampling, and the reduction in the number of samples results from the fact that the input size is not infinite and there are "missing samples" in the input. For example, if the number of input samples is 100, and the kernel size is k = 3, then when two convolutional layers are used, the number of output samples is 100 - (k - 1) - (k - 1) = 96. In contrast, if both transposed convolutional layers were performing downsampling (at a ratio of M = 2, N = 1), the number of output samples would be
Number
[0199] Figure 13 illustrates downsampling using two convolutional layers with a downsampling ratio of 2 (N = 1, M = 2). In this example, due to the combined effect of downsampling and "missing samples" at the boundaries, 7 input samples are reduced to 3. The number of output samples can be calculated using the following formula
Number
[0200] The operations of convolution and deconvolution (i.e., transpose convolution) are identical from a mathematical standpoint. The difference comes from the fact that the deconvolution operation assumes that a previous convolution operation has taken place. In other words, deconvolution is the process of filtering a signal to compensate for a previously applied convolution. The goal of deconvolution is to recreate the signal as it existed before the convolution took place. This disclosure applies to both convolution and deconvolution operations (and in fact to other operations with kernel sizes greater than 1, as will be explained later).
[0201] Figure 14 shows another example to illustrate how to calculate the total receptive field. In Figure 14, a two-dimensional input sample array is processed by two convolutional layers, each with a kernel size of 3x3. After the application of two deconvolution layers, an output array is obtained. The set of output samples (array) is marked with a solid rectangle ("output samples") and contains 2x2=4 samples. The total receptive field of this set of output samples contains 6x6=36 samples. The total receptive field can be calculated as follows: Each output sample is connected to a 3x3 sample at the intermediate output. The union of all samples at the intermediate outputs connected to a set of output samples contains 4x4=16 samples. Each of the 16 samples in the intermediate output is connected to a 3x3 sample in the input. The union of all samples in the input connected to the 16 samples in the intermediate output contains 6x6=36 samples. Thus, the total receptive field of the 2x2 output samples is the 36 samples in the input.
[0202] In image and video compression systems, compression and decompression of very large sized input images is typically performed by dividing the input image into multiple parts. VVC and HEVC employ such a division method, for example, by partitioning the input image into tiles or wavefield processing units.
[0203] When tiles are used in traditional video coding systems, the input image is usually partitioned into rectangular parts. Figure 15 illustrates one such partitioning. In Figure 15, part 1 and part 2 may be processed independently of each other, and the bitstreams for decoding each part are encapsulated into independently decodable units. As a result, the decoder can parse each bitstream (corresponding to part 1 and part 2) independently (obtaining the syntax elements necessary for sample reconstruction), and the samples of each part can also be reconstructed independently.
[0204] In wavefront parallel processing shown in Figure 16, each part usually consists of one row of coding tree blocks (CTBs). The difference between wavefront parallel processing and tiling is that in wavefront parallel processing, the bitstreams corresponding to each part can be decoded almost independently of each other. However, the sample reconstructions of each part still have inter-part dependencies, so the sample reconstructions cannot be performed independently. That is, wavefront parallel processing makes the parsing process independent while keeping the sample reconstructions dependent.
[0205] Both wavefront and tiling are techniques that allow decoding operations to be performed wholly or partially independent of each other. The advantages of independent processing are: Multiple identical processing cores can be used to process the entire image, thus increasing processing speed. If a processing core does not have enough power to process a large image, the image can be divided into several parts, which require fewer resources to process. In this case, a less powerful processing unit can process each part, even if it cannot process the entire image due to resource limitations.
[0206] To meet the processing speed and memory requirements, HEVC / VVC uses a processing memory large enough to process the encoding / decoding of an entire frame. To achieve this, top-of-the-line GPU cards are used. For traditional codecs like HEVC / VVC, the entire frame is divided into blocks and each block is processed one by one, so the memory requirement to process an entire frame is usually not a major concern. However, processing speed is a major concern. Therefore, if one processing unit is used to process an entire frame, the speed of the processing unit needs to be very high, and therefore the processing unit is usually very expensive.
[0207] On the other hand, NN-based video compression algorithms consider the entire frame in encoding / decoding instead of block-based in traditional hybrid coders, and the memory requirements are too high to be processed through NN-based coding / decoding modules.
[0208] In traditional hybrid video encoders and decoders, the amount of memory required is proportional to the maximum allowed block size: for example, in VVC, the maximum block size is 128x128 samples.
[0209] However, the memory required for NN-based video compression is proportional to the size WxH, where W and H represent the width and height of the input / output images. As typical video resolutions include picture sizes of 3840x2160 (4K video), we can see that the memory requirements can be prohibitively high compared to hybrid video coders.
[0210] Another problem is that to process a large input with a single processing unit (e.g., a CPU or GPU), the processing unit needs to be very fast, since the unit needs to perform a large number of operations per unit time. This requires that the unit must have a high clock frequency and high memory bandwidth, which are expensive design criteria for chip manufacturers. In particular, it is not easy to increase memory bandwidth and clock frequency due to physical limitations.
[0211] NN-based video coding algorithms for encoding and / or decoding are in the early stages of development, and no consumer devices contain an implementation of the VAE shown in Figure 6. Also, the cost of consumer devices is very sensitive to the memory implemented.
[0212] Therefore, for NN-based video coding algorithms to be cost-effective to be implemented in consumer devices such as mobile phones, the memory footprint and the required operating frequency of the processing unit must be reduced. Such optimizations have not yet been achieved.
[0213] The present disclosure is applicable to both end-to-end AI codecs and hybrid AI codecs. In hybrid AI codecs, for example, filtering operations (filtering of reconstructed pictures) can be performed by a neural network (NN). The present disclosure applies to such NN-based processing modules. In general, the present disclosure can be applied to all or part of a video compression and decompression process, where at least a part of the process includes a NN, and where such a NN includes a convolution or transpose convolution operation. For example, the present disclosure is applicable to individual processing tasks performed as part of the processing by the encoder and / or decoder, including in-loop filtering, post-filtering, and / or pre-filtering.
[0214] Some embodiments of the present disclosure may provide a solution to the above problem in that they enable a trade-off between memory resources and computational complexity within a NN-based video encoding-decoding framework.
[0215] The present disclosure employs splitting the input into multiple parts and processing each part independently of each other and is summarized as follows: 1. Input space L i Determine N regions in L i The union of N>1 constitutes the complete input space. 2. Each L i are processed independently using a neural network, and the reconstructed region R i get. 3.R i to obtain the reconstructed picture, where R i The union of these constitutes the complete target output.
[0216] The target output is the output reconstructed picture. The size of the output reconstructed picture can be obtained according to an instruction in the bitstream. Alternatively, it can be explicitly coded in the bitstream.
[0217] In one example, the input space can be a latent space obtained according to the bitstream by parsing the bitstream. The input space can have a matrix form with width=w, height=h, and a third dimension (e.g., depth or number of channels) whose size is equal to D.
[0218] N regions L i is preferably obtained by grouping the input samples into overlapping or non-overlapping sets, which preferably contain samples that are adjacent (not separated) from one another.
[0219] In one example, L imay be obtained by partitioning the input space into N regions, where each region has size wi, hi, D, where Wi is the width, Hi is the height, and D is the depth of Li. Since it is desirable to partition the input space only in the width and height directions, the depth of Li is equal to the depth of the entire latent space.
[0220] The processing can be decoding or encoding.
[0221] The aforementioned neural network (NN) in the example implementation discussed below may be: A network including at least one processing layer in which two or more input samples are used to obtain an output sample (this is the general condition when the problems addressed by the present invention arise). A network that includes at least one convolutional (or transposed convolutional) layer. In one example, the convolution kernel is greater than 1. A network that contains at least one pooling layer (max pooling, average pooling, etc.). Decoding network, hyperdecoder network, or encoding network. · Part of the above (sub-network).
[0222] The inputs may be: · Feature maps. - The output of the hidden layer. Latent space feature map. The latent space may be obtained according to the bitstream. Input image. EXAMPLES
[0223] First embodiment In this exemplary and non-limiting embodiment, a method for reconstructing a picture from a bitstream is provided. The method may include obtaining an input set (L shown in FIG. 17) of samples representing a picture based on the bitstream. The method may include splitting the input set L into two or more input subsets (e.g., L1, L2 shown in FIG. 17). The method may then include determining a size ((h1, w1); (h2, w2)) for each of the two or more input subsets (L1, L2) and / or a size ((H1, W1); (H2, W2)) for each of the two or more output subsets (R1, R2).
[0224] This decision may be based on side information from the bitstream. However, in this embodiment, such signaling may not be necessary in some implementations. For example, it may be assumed that the input subsets include the full receptive field of the respective output subset. If it is further assumed that the output subsets are combined in a predetermined manner (e.g., without overlap or with a known pre-set overlap), and if the input / output size relationship and the full receptive field are known features of the neural network, then no signaling is necessary.
[0225] The method may further include processing each of the two or more input subsets (L1, L2) including processing with a neural network including one or more layers, where the neural network uses a plurality of samples of an input subset of the two or more input subsets (L1, L2) to generate one sample of a respective output subset of the two or more output subsets (R1, R2), thereby obtaining the respective two or more output subsets (R1, R2) for the two or more input subsets.
[0226] Below is the step of reconstructing a picture (R) by combining the two or more output subsets. The size of the input subsets in this embodiment is equal to the size required to obtain the size of each output subset (R1; R2) after processing by the one or more layers. That is, the regions L1, L2 contain the entire receptive field.
[0227] One example implementation may include the following steps: 1. Input space (L i ) to determine N overlapping regions, where each region L i is R i contains one complete (i.e., full) receptive field of R i The union of these constitutes the complete target picture. 2. Use NN to find each L i are processed independently and the reconstructed region R i get. 3.R i to obtain the reconstructed output (i.e., the reconstructed picture).
[0228] In the above exemplary implementation, the division of the input space is done by dividing each region L i are R i The receptive field of R i The union of these constitutes the entire target picture R.
[0229] Figure 17A shows an example implementation. First, the input is partitioned into four overlapping regions: L1, L2, L3, and L4. L1 and L2 are shown in the figure. We can see that L1 and L2 overlap. In the figure, the indices of L and R are the same for the corresponding partitions in the input and output. For example, L4 corresponds to R4. The placement of Ri follows the same pattern as Li. That is, if L1 corresponds to the top left of the input space, then R1 corresponds to the top left of the output space. If L2 is to the right of L1, then R2 is to the right of R1.
[0230] The determination of the total receptive field depends on the kernel size of each processing layer. It can be determined by tracing the input samples backwards through the processing. The total receptive field consists of the union of all input samples used in computing a set of output samples. Thus, the total receptive field depends on the connections between each layer and can be determined by starting from the output and tracing all connections in the direction of the input.
[0231] In the example of convolutional layers shown in Figure 14, the kernel sizes of convolutional layers 1 and 2 are K1xK1 and K2xK2, respectively, and the downsampling ratios are R1 and R2, respectively. Convolutional layers typically use regular input-output connections (i.e., there are always KxK input samples for each output). In this example, the calculation of the total receptive field size can be done as follows: W = ((w × R2) + K2-1) × R1 + (K1-1), H = ((h × R2) + K2-1) × R1 + (K1-1), where H and W represent the size of the entire receptive field, and h and w are the height and width of the output sample set, respectively.
[0232] In the above example, the convolution operation is described in a two-dimensional space. If the dimensionality of the space in which the convolution is applied is higher, then a 3D convolution operation may be applied. A 3D convolution operation is a straight extension of a 2D convolution operation, with an additional dimension added to all of the operations. For example, the kernel size can be expressed as K1×K1×N and K2×K2×N, and based on the previous example, the total receptive field can be expressed as W×H×N, where N represents the size of the third dimension. Since the extension from 2D and 3D convolution operations is straight forward, the present invention applies to both 2D and 3D convolution operations. In other words, the size of the third dimension (or even the fourth dimension) can be greater than 1, and the present invention applies in the same way.
[0233] The above formula is an example of how to determine the size of the total receptive field, which depends on the actual input / output connections of each layer.
[0234] Next, for each L i are processed independently. In this example, the processing unit is a decoder. Thus, the processing of L1 depends only on samples in L1, and not on any other samples outside L1. As a result, for example, a set of Li may be processed in parallel. The output of the decoding process is R i R i The union of these forms the target reconstructed image. In this example, R i Since R-crop has overlapping regions, the cropping operation is applied first to obtain R-crop without overlapping regions. i Finally, we obtain R-crop i are concatenated to obtain the complete output reconstructed picture.
[0235] In this example, L i is R i Includes the entire receptive field of
[0236] R i and L i The determination can be made as follows. First, R-crop N non-overlapping regions i For example, R-crop i may be N×M regions of equal size, where N×M is determined by the decoder according to memory limitations. R-crop i Determine the total receptive field of L i is each R-crop i are set equal to the entire receptive field of each ·Each L i Process it and use R i This is R i This means that L is the size of the set of output samples generated by the NN. Note that no actual processing may be required. Once L i Once the size of R is determined, i It may be possible to determine the size and position of according to the function. Since the structure of the NN is already known, we can use the size L i and R iThe relationship between L and L is already known, so that the above process can be performed without actually performing the above process. i According to the function R i can be calculated. Size R i R-crop i If not equal to R i R-crop i get. R-crop, where a padding operation is applied to the input or intermediate output samples during the processing by the NN i The size of R i For example, padding may be applied to the NN if some size requirements need to be met for the input and intermediate output samples. For example, it may be required by the NN (e.g., due to certain structures) that the input size must be a multiple of 16 samples. In this case, L i If L is not a multiple of 16 samples in a direction, padding may be applied in that direction to make it a multiple of 16. That is, the padded samples are dummy samples to ensure integer multiplicity of each L with the size requirements of the respective NN layers. The samples removed by cropping can be obtained by determining the output samples that include padded samples in their calculation. This option may be applicable to the example implementation discussed.
[0237] R i and L i The determination can be made as follows and may be called the "simple" no-cropping case, which is shown in Figure 17B. First, N non-overlapping regions R i For example, R i may be N×M regions of equal size, where N×M is determined by the decoder according to memory limitations. ·R i Determine the total receptive field of L i are the respective R iThe total receptive field is set equal to the total receptive field of R i Each output sample in L i It is calculated by tracing backwards to L i is R i It consists of all samples used in the calculation of at least one of the samples in ·Each L i Process it and use R i This is R i This means that is the size of the output sample set generated by the NN.
[0238] This exemplary implementation solves the full-peak memory problem by partitioning the input space into multiple smaller, independently processable regions.
[0239] In the above example implementation, L i Overlapping regions of R require additional processing compared to not splitting the input into regions. The larger the overlapping regions, the more extra processing is required. In particular, in some cases, i It is possible that the total receptive field of is too large, in which case the total number of computations to obtain the entire reconstructed picture may become too large.
[0240] NOTE 1: The exemplary implementation does not require that additional instructions be included in the bitstream. This is different from the present disclosure and its related implementations (see the second embodiment below). In the present disclosure, why additional instructions need to be included in the bitstream will be explained later. On the other hand, in the exemplary implementation here, no additional instructions are needed because the processing of all output samples uses all of the samples in the respective full receptive fields. This means that all samples required for the reconstruction of each output sample are already available. As a result, any division of the input space that follows the rules of the exemplary implementation leads to the same output. That is, the decoder may, for example, divide the input space into equal-sized regions of M×N (e.g., due to the fact that the implemented memory can only allow the processing of M×N samples at a time). The output can be the same as the result when the input is divided into K×L samples when following the rules of the exemplary implementation. Therefore, no instructions need to be included in the bitstream from the encoder to the decoder, because the decoder has the freedom to choose its own division pattern and size.
[0241] All embodiments and / or example implementations described herein may be applied in the same way to an encoder, where the input space is x (as in FIG. 6) and the reconstructed output is ̂x (as in FIG. 6).
[0242] The example implementations discussed above may provide the following advantages: The exemplary implementation allows obtaining a reconstructed output by application of multiple NN processing steps, which are independent so that multiple processing units with lower capabilities (e.g. smaller memory) can be used for processing. Alternatively, the NN processing can be performed multiple times using the same processing unit. Since the partitioning is performed to include the entire receptive field, it is possible to obtain the same reconstructed output as would be obtained if no partitioning was performed. As a result, there is no need to include information about the partitioning in the bitstream, thus reducing the signaling overhead. Since the results are the same with or without partitioning, the number and size of Li can be determined by the decoder based on its capabilities. Also, there is no need for the encoder to include an indication in the bitstream: "Each region is R i Since the condition that "all receptive fields of either one of the inputs are included" is satisfied, the encoder and decoder can obtain the same results. EXAMPLES
[0243] Second embodiment In the example implementations discussed above, each input picture portion Li uses its entire receptive field, which may increase the number of input samples to be processed. Thus, using the entire receptive field may impose higher demands on the storage and / or speed of the processing unit in order to process a larger number of samples.
[0244] This problem is addressed in this embodiment in that the input space is divided into multiple Li, where each Li, where i is the integer number of a subset of the input space, contains only a subset of the total receptive field of Ri.
[0245] According to an embodiment of the present disclosure, there is provided a method for reconstructing pictures from a bitstream, the pictures being either still images or video pictures, e.g.
[0246] The method is shown in the flow chart of FIG. 21 and includes a step S2110 for obtaining an input set of samples (L) representing a picture based on the bitstream. The input set of samples may include samples of the picture. Obtaining the input set of samples may be performed by reconstruction using a hybrid codec, for example HEVC or VVC or another codec. For example, reconstruction may be performed in a decoder (see reconstruction 314) as shown in FIG. 26 or in an encoder (see reconstruction 214) as shown in FIG. 25. Alternatively, the input sample set may be obtained by parsing an input feature map from the bitstream. Parsing may include decoding, since the feature map may be encoded using, for example, an entropy code, such as an arithmetic code, or another type of variable length code.
[0247] Furthermore, the method includes a step S2120 of splitting the input set L into two or more input subsets L1 and L2. Each input subset may contain one or more samples. The input subsets (L1, L2) may cover part or the whole of the input space. In the present example, L1 and L2 shown in Figure 18 cover a subset of the input space on the left side of the picture L, but two further input sets L3 and L4 may be provided in a similar manner on the right side of the input picture L.
[0248] In one exemplary implementation, two or more input subsets (L1, L2) overlap by one or more samples. Thus, the output subset Ri generated through a process involving a neural network is more accurate because samples of neighboring input subsets (corresponding to overlapping samples) are used. Thus, the overlap of Li improves the overall quality of the reconstructed picture, which is the union of the output subsets Ri. In particular, distortions along the boundaries of the input subsets Li are reduced.
[0249] Overlapping means that the input subsets, each of which includes one or more samples of the input set, share the same one or more samples. Thus, the union of the input subsets covers the entire input set of samples, and thus the entire picture. The subsets may correspond to regions of samples that are adjacent to each other. As shown in FIG. 18, L1 is a subset of adjacent samples that has a rectangular shape. However, the present disclosure is not limited to such input subsets. Rather, Li may be a set of non-contiguous samples. The non-contiguous sample set may be interlaced, checkerboard, tiled, etc.
[0250] The method also includes a step S2130 for parsing side information from the bitstream. In one example implementation, parsing the side information includes parsing one or more of a sequence parameter set (SPS) or a picture parameter set (PPS) or a picture header (PH). In general, the side information may belong to a header associated with a sequence or a picture or a slice or tile of the picture. Thus, the side information may be parsed in a flexible manner, meaning that it can control the processing of a part of a sequence (a picture, a group of pictures, a part of a picture). The terms SPS, PPS, PH are known from some current hybrid codecs such as HEVC or VVC. In general, this disclosure is not limited to the bitstream syntax / semantics of these codecs. The term "side information" typically refers to any information that accompanies the encoded picture data in the bitstream, apart from the encoded picture data. Such side information may have a syntax defined by a convention such as a standard, so that both encoders and decoders may parse and interpret the side information in the same way. The side information may be structured into syntax elements that convey settings that apply to the entire video sequence or to a subset of the pictures of the sequence. There may be settings (parameters) that apply to one particular picture, or even to a part of a picture (such as a slice or tile or coding unit). The side information of the present disclosure may be signaled at any level (sequence, group of pictures, picture, part of a picture) where segmentation occurs before / after processing by a neural network. As mentioned above, the sequence level, the picture group level, or the picture may apply for signaling of side information related to the present disclosure. The signaling may be at any of these levels. Alternatively, the level may be selectable (e.g., by a presence flag signaling at each level whether such side information is present or not).
[0251] The method further includes a step S2140 of determining a size ((h1,w1);(h2,w2)) for each of the two or more input subsets (L1,L2) and / or a size ((H1,W1);(H2,W2)) for each of the two or more output subsets (R1,R2) based on the side information. Determining the sizes of the input subsets and / or output subsets may include parsing the respective parameters including any of (h1,w1), (h2,w2), (H1,W1), and / or (H2,W2) directly from the bitstream. Alternatively, determining the sizes may include deriving parameters not included as side information in the bitstream from one or more other parameters included as side information in the bitstream. The derivation may thereby utilize properties of the network, such as a neural network. Such properties may include, for example, the number of layers, the kernel size K of each processing layer, and / or the number of available input samples or the number of output samples of the first and last processing layers of the NN. The sizes ((h1,w1);(h2,w2)) may be the same or different for different regions Li. Similarly, the sizes ((H1,W1);(H2,W2)) may be the same or different for different regions Ri.
[0252] That is, the sizes of the input and / or output subsets may be parsed and / or derived as they may be interrelated. As a result, all or part of those parameters may be signaled through side information included in the bitstream. Some examples of signaling are described further below.
[0253] The method further includes a step S2150 for processing each of the two or more input subsets (L1, L2), including processing S2152 with a neural network including one or more layers. The processing of each input subset may include end-to-end encoding or in-loop filtering, such as filtering 220, 230 in Figures 25 and 26. Alternatively or additionally, the processing may be post-filtering of the output signal 332 from the decoder 30.
[0254] In one exemplary implementation, the two or more input subsets (L1, L2) are processed independently. Thus, the input subsets may be processed in parallel, meaning that one input subset does not use any (intermediate or final) results of the processing of another subset. Thus, the processing of the input subsets may be performed faster, which may further improve the performance of the picture reconstruction. Alternatively, even if there is no dependency between the processing of L1 and L2, each of the input subsets may be processed sequentially, i.e., one at a time according to a predefined sequence order, for example. Both the serial and parallel approaches reduce memory requirements due to the independence in processing.
[0255] In one example implementation, the neural network uses a number of samples of an input subset of the two or more input subsets (L1, L2) to generate a sample of each of the two or more output subsets (R1, R2), thereby obtaining the two or more respective output subsets (R1, R2) for the two or more input subsets.
[0256] For example, the plurality of samples used by a neural network (NN) may depend on a kernel size of a first input layer of the NN. The one or more layers of a neural network (NN) may include one or more pooling layers and / or one or more subsampling layers. The NN may generate the one sample of an output subset by pooling the plurality of samples through the one or more pooling layers. Alternatively or additionally, the one output sample may be generated by the NN through subsampling (i.e., downsampling) by one or more downsampling convolutional layers. Pooling and downsampling may be combined to generate the one output sample.
[0257] The method further includes a step S2160 of reconstructing a picture (R) by combining the two or more output subsets. According to an implementation example of the method, combining the two or more output subsets (R1, R2) includes overlapping the two or more output subsets (R1, R2) by one or more combined samples, as shown in FIG. 20. In the example of FIG. 20, the decoder obtains four output subsets R1 to R4 after processing input subsets L1 to L4, each having an overlap corresponding to a region x marked in FIG. 20. After each sample is combined, it can be seen that their region Ri overlaps in the region x. Thus, the combined sample is a sample obtained as a combination of a sample from the first output subset (R1) and a sample from the second output subset (R2). Thus, by overlapping the samples of the output subsets Ri, the quality of the reconstructed picture is further improved. In particular, the quality of the reconstructed picture along the borders may be improved, so that picture degradation and distortion are reduced.
[0258] Combining the two or more output subsets may further include cropping, (weighted) averaging or merging the output subsets. Cropping means removing samples of the output subsets that belong to overlapping regions of the respective regions Ri. Averaging (weighting) means summing samples of both regions R1 and R2 and multiplying each sum by a weight. The weights can be integer or real numbers. Merging means combining the output subsets in such a way that the output samples of the respective regions R1 and R2 are adjacent.
[0259] According to one implementation example, the size of at least one of the input subsets is smaller than the size required to obtain the size of the respective output subset (R1; R2) after processing by the one or more layers.
[0260] The one or more layers may include one or more layers for padding and / or resizing. For these one or more layers, the smaller size of the one or more input subsets means that the number of input samples of each input subset may not cover all samples (full receptive field) provided by, for example, the first layer of the neural network. That is, the size of the input subset only covers a subset of the full receptive field.
[0261] As a result of the above picture processing, a picture can be efficiently reconstructed from the input sample set L by splitting the input samples L into multiple subsets L1 and L2 and leveraging side information parsed from the bitstream. Each input subset Li is processed using a neural network. Furthermore, since the size of the processed input subsets is smaller than the size of the respective output subsets, picture reconstruction can be performed with lower memory requirements.
[0262] The meaning of the above sample coverage with respect to the full receptive field (and its subsets) can be explained with reference to Figure 11. As mentioned before, the full receptive field refers to the set of input samples used to obtain a specified set of output samples, for example by applying one or more processing layers of a neural network. Figure 11 illustrates the processing of an input (seven samples on the left side of the figure) with two successive transposed convolutional layers.
[0263] In the above example, the input layer supports a maximum of seven samples. These maximum input samples are actually required to generate the three output samples. Thus, the number of samples supported by the first layer of the neural network defines the total receptive field (TRF). However, the size of an input subset (i.e., the number of samples in the subset) may be smaller than the size of the TRF. That is, the input subset does not cover the entire TRF, but rather a subset of the TRF.
[0264] An exemplary implementation of the above method (called Implementation 2) can be summarized as follows: 1. Input space (L i ) and determine N overlapping regions in at least one of them. i The union of Ri constitutes the complete target picture. 2. Use NN to find each L i are processed independently and the reconstructed region R i get. 3. R i are merged to obtain the reconstructed picture.
[0265] According to an implementation example of the method, each of the two or more input subsets (L1, L2) is a rectangular region of a rectangular input set (L). Similarly, each of the two or more output subsets (R1, R2) is a rectangular region of a rectangular reconstructed picture (R). Thus, combining the output subsets Ri may be performed quickly due to their rectangular shapes, which further improves the efficiency of the picture reconstruction. Furthermore, the rectangular shapes of the input and output subsets may be characterized by minimal parameters (such as width and height) since the shapes are very regular. Thus, the number of parameters suitable for side information may be kept to a minimum, and thus the signaling overhead may be reduced. Furthermore, since the shapes of both the input and output subsets are rectangular, their respective sizes are related (and determined from each other) through simple operations. Figures 18 to 20 show examples of rectangular regions of the input subsets Li and output subsets Ri, respectively. Using rectangular shapes for the input and output subsets allows for seamless combining of the output subsets generated from the rectangular input subsets.
[0266] FIG. 18 illustrates an exemplary implementation of the present disclosure. Compared to FIG. 17, the input area L i are the respective R i 18. Each region Li is processed independently by the decoder, which results in two regions R1 and R2 (i.e., the output subsets).
[0267] Since a subset of the total receptive field is used to obtain the set of output samples, padding operations may be required to generate missing samples.
[0268] In an exemplary implementation, the processing of each of the two or more input subsets includes padding before processing in the one or more layers, such that missing samples in the input subsets may be added by the padding process, which improves the quality of the reconstructed output subsets Ri, and thus improves the quality of the reconstructed picture after combining the output subsets Ri.
[0269] Padding refers to increasing the size of the input (i.e., input image) by generating new samples at the borders of the image (or picture) by using predefined sample values or by using sample values of locations in the input image. The generated samples are approximations of actual sample values that do not exist. Thus, for example, a padded sample may be obtained based on one or more nearest samples of the sample to be padded. For example, a sample is padded by copying the nearest sample. In case there are further neighboring samples at the same distance, the neighboring samples to be used therein may be specified by convention (for example by a standard). Another possibility is to interpolate the padding sample from several neighboring samples. Alternatively, padding may include using zero-valued samples. Intermediate samples generated by the processing may also need to be padded. Intermediate samples may be generated based on samples of an input subset that includes the one or more padded samples. The padding may be performed before the input of the neural network or within the neural network. However, the padding is performed before the processing of the one or more layers.
[0270] According to an implementation example, the location and / or amount of padded samples are determined based on side information. In this way, the location and number of padded samples can be quickly determined by the decoding side based on the signaled side information. For example, the number of padded samples may be determined from the size (wi,hi) of each input region Li by comparing the size with the size of the total receptive field. Also, the type of padding may be signaled by including the padding type in the side information.
[0271] Figure 12 illustrates the application of padding operations for implementation 2. In the example shown in Figure 12, the set of output samples contains 5 samples. Two transposed convolution (deconvolution) operations are applied to the input, and each deconvolution operation involves the application of a kernel of size 3. Since the kernel size is 3, one padded sample is required on each side of the input before applying each deconvolution operation. The padded samples are represented by empty circles. As can be seen in Figure 12, padding is typically done at sample boundaries.
[0272] The padding operation serves two purposes: Generation of missing samples due to the use of a subset of the full receptive field, i.e. the size of the input subset is smaller than the size of the full receptive field as explained above. To generate the desired output samples from the "missing" samples, it is necessary to apply padding at the input and / or intermediate output samples (in implementation 2). This is illustrated in Figure 12. "Padded sample 1" is used in the computation of output sample 1. Thus, padded sample 1 is used to complete the "missing" samples in the full receptive field. · The padding operation helps to keep the number of samples constant or at a desired number after applying convolution / deconvolution operations with kernel size larger than 1. For example, when the kernel size is larger than 1, padding operations may need to be applied at the boundaries of the input space to compensate for the reduction in size after each application of conv / deconv operations. This is illustrated in Fig. 12. The "padded sample 2" is not used to calculate any output samples, but has the purpose of making the output size of the NN subject to certain constraints. In the example of Fig. 12, the size of the output should be the same size as the input size. Note that padding may also be required when each input subset Li includes the entire receptive field, as in the first embodiment. As Fig. 11 shows, when each Li includes the entire receptive field (TRF), padding of those samples at the boundaries of the TRF may be required if the size of the input subset Li is smaller than the TRF.
[0273] In Figure 12, output samples affected by padded samples are depicted with dot filling. In the output stage, 4 out of 7 samples used at least one padded sample in the calculation of the output value. Since padded samples are not real samples but approximations of real samples, output samples that use padded samples have less accuracy. That is, the quality of the reconstruction is reduced because at least one padded sample is used in the calculation of the output sample.
[0274] On the other hand, the degradation of the reconstruction quality is not uniform for all output samples that use at least one padded sample in their calculation. For example, in FIG. 12, the calculation of output sample 2 requires more padded samples than output sample 1. Therefore, output sample 1 is expected to be more accurate than output sample 2. However, output sample 1 is less accurate than a sample that did not use padded samples in its calculation.
[0275] In an exemplary implementation of the method, the processing of each of the two or more input subsets includes cropping one or more samples after processing in the one or more layers. Cropping means removing samples of the output subset that belong to overlapping regions of the respective regions Ri. The cropping of the output subsets Ri may be performed before the Ri are combined. In one example, cropping is performed after processing one or more of the two or more input subsets with a neural network to obtain one or more of the two or more output subsets (R1, R2). Cropping can reduce the size of the reconstructed picture and / or change the aspect ratio (length vs. width) of the picture. Thus, the size of the reconstructed picture can be adapted to the preferred size of the display, which improves the viewing reproduction of the picture on the display (adaptive picture size).
[0276] Therefore, before merging into the reconstructed output, i A cropping operation may be performed on L i (i.e., a third step may be added to the above process). Figures 18 and 19 show that after the input subset L i is processed by the decoder, the decoder provides as output an output subset R i that still has overlapping regions. In this case, cropping is performed after the neural network. Alternatively, cropping may be performed within the network, in which case the provided output subset R i no longer has overlapping regions as a result of the network internal cropping. Cropping allows to match the picture size.
[0277] According to one example, combining the two or more output subsets is a merge without overlap, which is illustrated in Figures 18 and 19. These figures show that after the output subsets Ri are subjected to cropping, each cropped region Ri-crop is seamlessly merged without overlapping of the cropped regions.
[0278] In the above example implementation, the regions Li of the input space overlap. The implementation may be adapted so that L does not overlap. An alternative implementation of each may be as follows: 1. Input space (L i ) and determine N non-overlapping regions in R. i , which constitutes a subset of the total receptive fields of one of R i The union of these constitutes the complete target picture. 2. Process each Li independently using a NN to obtain the reconstructed region R i get. 3. R i are merged to obtain the reconstructed picture.
[0279] Figure 19 shows this case where Li is selected as the non-overlapping region. This is a special case where the total amount of computation required to obtain the entire reconstructed output (i.e., output picture) is minimized, although the reconstruction quality may be compromised.
[0280] As discussed above, the input subset (L1, L2) may not include the entire receptive field (TRF), as opposed to the processing of the first embodiment. As a result of using a subfield of the TRF, the decode side may not know how the picture was partitioned at the encoder side. Therefore, in some exemplary implementations, information (e.g., regarding parameters) may be signaled to the decoder side to determine how the picture was partitioned.
[0281] Thus, in the example implementation of the second embodiment, the size and coordinates of each Ri and Li need to be known in order to infer how the partitioning is performed in the input and output spaces. The partitioning of the input and output spaces applies not only to the encoder but also to the decoder. Also, cropping may need to be applied to Ri, so the cropping amount for each Ri may need to be known. This is discussed below.
[0282] According to one example implementation of the method, the position and / or amount of samples to be cropped are determined based on the side information, so that the position and / or number of cropped samples can be quickly determined by the decoding side based on the signaled side information.
[0283] As mentioned above, the side information is included in the bitstream. The side information is parsed from the bitstream so that all parameters required for the decision can be signaled in the side information. Alternatively, some of the parameters can be included in the bitstream, and the remaining required parameters can then be derived from the signaled parameters.
[0284] For example, the side information may include one or more of the following indications: · the number of input subsets, The size of the input set, the size (h1, w1) of each of the two or more input subsets; The size (H,W) of the reconstructed picture (R), the size (H1, W1) of each of the two or more output subsets; the amount of overlap between the two or more input subsets (L1, L2); The amount of overlap between said two or more output subsets (R1, R2).
[0285] Thus, the signaling of various parameters through side information can be performed in a flexible manner. Thus, the signaling overhead can be adapted depending on which of the above parameters are signaled in the side information, while other parameters are derived from the signaled parameters. The size of each of the two or more input subsets may be different. Alternatively, the input subsets may have a common size.
[0286] In one example, the location and / or amount of the cropped samples are determined according to the size of the input subset indicated in the side information and the neural network resizing parameters of the neural network that specify the relationship between the size of the input to the network and the size of the output from the network. Thus, the location and / or cropping amount can be more accurately determined by considering both the size of the input subset and the characteristics of the neural network (i.e., its resizing parameters). Thus, the cropping amount and / or location can be adapted to the attributes of the neural network, which further improves the quality of the reconstructed picture.
[0287] The resizing parameter may be an additive term, subtracted from the input size to obtain the output size, i.e., the output size of an output subset is related to its corresponding input subset by just an integer. Alternatively, the resizing parameter may be a ratio, in which case the size of the output subset is related to the size of the input subset by multiplying the size of the input subset by the ratio to obtain the size of the output subset.
[0288] As discussed above, the determination of Li, Ri and the cropping amount can be obtained from the bitstream, according to predefined rules, or a combination of both. An indicator of the amount of cropping can be included in (and parsed from) the bitstream. In this case, the amount of cropping (i.e. the amount of overlap) is included in the side information. The amount of cropping may be a fixed number. For example, such a number may be predefined by a standard or may be fixed once the relationship between the input and output sizes is known. The amount of cropping can relate to cropping in the horizontal direction, the vertical direction, or both directions.
[0289] The cropping can be done according to pre-configured rules. After the cropping amount is obtained, the cropping rules may be: Depending on the position of Ri in the output space (top-left, center, etc.). Cropping can be applied at a certain edge (top, left, bottom, or right), if that edge of Ri does not coincide with the output bounds.
[0290] The size and / or coordinates of Li can be included in the bitstream. Alternatively, the number of partitions can be indicated in the bitstream, and the size of each Li can be calculated based on the size of the input and the number of partitions.
[0291] The overlap amount of each input subset Li can be: An indicator can be included in (and parsed or derived from) the bitstream that indicates the amount of overlap. The amount of overlap can be a fixed number. As mentioned above, "fixed" in this context means that it is known, e.g. by convention, such as a standard, or by a proprietary configuration, or is pre-configured as part of the encoding parameters or parameters of the neural network. The amount of overlap can be relative to cropping in the horizontal direction, vertical direction, or both directions. The amount of overlap can be calculated based on the amount of cropping.
[0292] In the following, some numerical examples are provided to show which parameters can be signaled via side information included in (and parsed from) the bitstream, and how these signaled parameters are then used to derive the remaining parameters. These examples are merely illustrative and do not limit the present disclosure.
[0293] For example, in the bitstream the following information related to the signaling of Li may be included: Number of partitions on the vertical axis = 2. This corresponds to the example in the figures where the space L is divided vertically by 2. Number of partitions on the horizontal axis = 2. This corresponds to the example in the figures where the space L is divided horizontally by 2. Equal Sized Partitions Flag = True. This is illustrated in the diagrams by showing L1, L2, L3, L4 as the same size. The size of the input space L (wL=200,hL=200). In these examples, the width w and height h are measured in samples. Overlap = 10. In this example, overlap is measured in units of sample size.
[0294] The above information indicates that the amount of overlap is 10 and the partitions are of equal size, so the partition sizes are obtained as w = (200 / 2 + 10) = 110, h = (200 / 2 + 10) = 110.
[0295] Furthermore, the size of the partition is (110,110) and the number of partitions on each axis is 2, so the top-left coordinate of the partition is given as: Top left coordinate (x=0, y=0) for the first partition L1, Top left coordinate (x=90, y=0) for the second partition L2, Top left coordinate (x=0, y=90) for the third partition L3, ·Top left coordinate (x=90, y=90) for the fourth partition, L4.
[0296] The following examples illustrate different options for signaling all or some of the above parameters, which are illustrated with reference to Fig. 20. Fig. 20 shows how various parameters related to the input subsets Li, the output subsets Ri, the input pictures and the reconstructed pictures are linked.
[0297] It should be noted that the above signaled parameters are not limiting of the present disclosure. As explained below, there are many possible ways to signal the size of the input and output spaces, as well as the information from which the subspace, cropping or padding may be derived. Some further examples are given below.
[0298] First signaling example: Figure 20 shows a first example in which the following information is included in the bitstream: The number of regions in the latent space (corresponding to the input space on the decoder side). This is equal to 4. The total size (height and width) of the latent space. This is equal to (h,w). (Called wL,hL above.) · The regions (here the sizes of the four Li), i.e. h1 and w1, used to derive the sizes of the input subsets. · The total size (H,W) of the reconstructed output R. · H1 and W1. H1 and W1 represent the sizes of the output subsets.
[0299] Next, the following information is predefined or predetermined: The amount of overlap X between regions Ri. For example, X also determines the cropping amount. · The amount of overlap y between the regions Li.
[0300] Depending on the information contained in the bitstream and the information that has been determined in advance, the sizes of Li and Ri can be determined as follows: L1=(h1+y,w1+y) L2=((h-h1)+y,w1+y) L3=(h1+y,(w-w1)+y) L4=((h-h1)+y,(w-w1)+y) R1 = (H1 + X, W1 + X) R2=((H-H1)+X,W1+X) R3=(H1+X,(W-W1)+X) R4=((H-H1)+X,(W-W1)+X)
[0301] As can be seen from the first signaling example, the size (h1,w1) of input subset L1 is used to derive the respective sizes of all remaining input subsets L2-L4. This is possible because the same overlap amount y is used for input subsets L1-L4 as shown in FIG. 20. In this case, only a few parameters need to be signaled. A similar argument applies to output subsets R1-R4, where only the signaling of the size (H1,W1) of output subset R1 is required to derive the sizes of output subsets R2-R4.
[0302] Above, h1 and w1, H1 and W1 are coordinates midway between the input and output spaces, respectively. Thus, in this first signaling example, single coordinates (h1,w1) and (H1,W1) are used to compute the four-partition division of the input and output spaces. Alternatively, the sizes of more than one input subset and / or output subset may be signaled.
[0303] In another example, it may be possible to compute Ri from Li if one knows the structure of the NN that processes Li, i.e., what the size of the output will be when the input has size Li. In this case, the size (Hi, Wi) of the output subset Ri may not need to be signaled through side information. However, in some other implementations, it may be desirable to signal the size Ri in the bitstream (as in this case), since determining the size Ri may sometimes not be possible before actually performing the NN operations.
[0304] Second signaling example: A second example of signaling involves determining H1 and W1 based on h1 and w1 according to a formula. For example, the formula may be: H1=(h1+y)×scalar-X W1=(w1+y)×scalar-X Here, the scalars are positive numbers. The scalars are related to the resizing ratios of the encoder and / or decoder networks. For example, the scalars can be integers, such as 16, for the decoder, or fractions, such as 1 / 16, for the encoder. Thus, in the second signaling example, H1 and W1 are not signaled in the bitstream, but are derived from the signaled sizes of the respective input subsets L1. Additionally, the scalars are examples of resizing parameters.
[0305] Third signaling example: In a third example of signaling, the amount of overlap y between regions Li is not pre-determined but is signaled in the bitstream, where the crop amount X of the output subset is determined based on the crop amount y of the input subset according to the following formula: X=y×scalar where the scalar is a positive number. The scalar is related to the resizing ratio of the encoder and / or decoder network. For example, the scalar can be an integer, such as 16, for the decoder, or a fraction, such as 1 / 16, for the encoder.
[0306] So far, the methods described above relate to reconstructing a picture as well as signaling, via side information, various parameters that enable a device (e.g., a decoder) to perform processing corresponding to the reconstruction method. As mentioned above, the same or similar processing may be performed by a processing device that encodes information representing the picture into a bitstream as well as preparing the side information to be included in the bitstream. In the following, the encoding processing that may be performed by an encoding device is detailed.
[0307] According to an embodiment of the present disclosure, a processing method is provided for encoding pictures into a bitstream, where the pictures may be still images or video pictures, e.g., corresponding to frames of a video sequence.
[0308] The method is illustrated in the flow chart of Figure 22 and includes a step 2210 of dividing an input set (L) of samples representing a picture into two or more input subsets (L1, L2). An input set of samples may include one or more samples of a picture. An input subset may include one or more samples. The input subsets (L1, L2) may cover part or the entire input space.
[0309] It should be noted that on the encoder side, the input space L may represent the channels of an image, and the output space R may represent the channels of a latent space after processing by one or more layers of a NN. The output spatial channels may then be encoded into a bitstream, which may be the same bitstream as the bitstream carrying the side information, or a different bitstream. The bitstream generation (e.g., binarization) may be considered as part of the NN (e.g., a layer), or may be implemented by a binarization (e.g., entropy coding) module following the NN. On the other hand, on the decode side, the input space L represents the channels of a latent space derived (e.g., parsed and interpreted) from the bitstream, and the output space R represents the reconstructed picture. In this disclosure, the term "sample" is used to refer not only to picture samples, but also to feature map samples (elements). In summary, L represents the input, and R represents the output of the NN.
[0310] The method further includes a step 2220 of determining side information based on a size ((h1,w1);(h2,w2)) for each of the two or more input subsets (L1,L2) and / or a size ((H1,W2);(H2,W2)) for each of the two or more output subsets (R1,R2). Note that on the encoder side, the size of the input subsets (and / or the output subsets and / or the amount of padding / cropping) may be optimizable, i.e. configurable by a user or application using the encoder, or by performing some kind of optimization, such as rate-distortion optimization or optimization that also takes memory cost into account.
[0311] The method further comprises a step 2230 of processing each of the two or more input subsets (L1, L2), including a processing step 2232 with a neural network including one or more layers. The processing of each input subset may comprise end-to-end coding or in-loop / post-filtering / pre-filtering, and may further comprise post-processing.
[0312] In an exemplary implementation, the two or more input subsets (L1, L2) overlap by one or more samples. Overlapping means that the input subsets L1 and L2, each containing one or more samples of the input set, share the same one or more samples. Thus, the union of the input subsets (L1, L2) covers the entire input set of samples and thus the entire picture. The subsets (L1, L2) may correspond to regions of samples adjacent to each other and / or discontinuous sets of samples. The discontinuous sets of samples may be interlaced, checkerboard, etc. Thus, the output subsets Ri generated through the process including the neural network are more accurate since samples of neighboring input subsets (corresponding to overlapping samples, usually commonly located on the boundaries between adjacent subsets Li) are used. Thus, the overlap of Li improves the overall quality of the generated output subsets Ri. In particular, distortions along the boundaries of the input subsets Li are mitigated.
[0313] In one exemplary implementation, the two or more input subsets (L1, L2) are processed independently. Thus, the input subsets may be processed in parallel, meaning that one input subset does not use any (intermediate or final) results of the processing of another input subset. Thus, the processing of the input subsets can be performed fast, further improving the performance of the picture reconstruction in the encoder-decoder framework. Alternatively, even if no dependency exists between the processing of L1 and L2, each of the input subsets may be processed sequentially, i.e., one at a time according to a predefined sequence order, for example.
[0314] In an exemplary implementation of the method, a neural network uses a plurality of samples of an input subset of the two or more input subsets (L1, L2) to generate one sample of each of the two or more output subsets (R1, R2), thereby obtaining two or more output subsets (R1, R2) for each of the two or more input subsets. As a result, a picture may be efficiently encoded from an input set L of samples by splitting the input samples L into a plurality of subsets L1 and L2 using side information and processing each input subset Li with the neural network. Furthermore, picture encoding may be performed with lower memory requirements since the size of the processed input subset Li is smaller than the size of each output subset Ri.
[0315] For example, the plurality of samples used by a neural network (NN) may depend on a kernel size of a first input layer of the NN. The one or more layers of a neural network (NN) may include one or more pooling layers and / or one or more subsampling layers. The NN may generate the one sample of an output subset by pooling the plurality of samples through the one or more pooling layers. Alternatively or additionally, the one output sample may be generated by the NN through subsampling (i.e., downsampling) by one or more downsampling convolutional layers. Pooling and downsampling may be combined to generate the one output sample.
[0316] The method also includes a step S2240 of inserting side information into the bitstream. According to an exemplary implementation, an indication of the two or more output subsets (R1, R2) is inserted into the bitstream. In other words, the (coded) input subset and / or the (coded) output subset may be inserted into the bitstream. The indication of the output subset into the bitstream may improve the division of the input set L into input subsets at the decoding side. In one implementation example, the insertion of the side information includes inserting the side information into one or more of a sequence parameter set or a picture parameter set or a picture header. Thus, the side information can be inserted (and signaled) in a flexible manner, which means that parts of a sequence (pictures, picture groups, parts of pictures) can be controlled.
[0317] According to one implementation example, the size of at least one of the input subsets is smaller than the size required to obtain the size of the respective output subset (R1; R2) after processing by the one or more layers.
[0318] As a result of the above process, a picture can be efficiently encoded from an input set L of samples by splitting the input samples L into multiple subsets L1 and L2 using side information and processing each input subset Li with a neural network. Furthermore, picture encoding can be performed with lower memory requirements since the size of the processed input subset Li is smaller than the size of each output subset Ri.
[0319] The one or more layers may include one or more layers for padding and / or resizing. For these one or more layers, the smaller size of the one or more input subsets means that the number of input samples in each input subset may not cover all samples (full receptive field) provided by, for example, the first layer of the neural network. That is, the size of the input subset only covers a subset of the full receptive field.
[0320] The meaning of the above sample coverage with respect to the full receptive field (and its subsets) has already been explained above in the context of the reconstruction method with reference to Fig. 11. For completeness, as previously described with respect to the decoder side, the full receptive field TRF refers to the set of input samples used to obtain a specified set of output samples by applying one or more processing layers (such as NN layers). The layers may be convolutional layers (similar to what was previously described for deconvolution layers) that process the input with one or more kernels. Due to the processing of applying kernels (or polling layers, etc.), the full receptive field of output samples may be larger than the number of input samples. That is, in some cases, the input subset does not cover the whole TRF, but covers a subset of the TRF.
[0321] According to an implementation example of the method, each of the two or more input subsets (L1, L2) is a rectangular region of a rectangular input set (L), and each of the two or more output subsets (R1, R2) is a rectangular region. Figures 18 to 20 show examples of rectangular regions of input subsets Li and output subsets Ri, respectively. Thus, the rectangular shapes of the input and output subsets may be characterized by minimal parameters (such as width and height) since the shapes are very regular. Thus, the number of suitable parameters for side information can be kept to a minimum, and thus signaling overhead can be reduced. Furthermore, since the shapes of both the input and output subsets are rectangular, their respective sizes are related (and determined from each other) through simple operations. Using rectangular shapes for the input and output subsets allows for seamless combination of output subsets generated from rectangular input subsets. Each region Li may be processed independently by the encoder, resulting in two regions R1 and R2 (i.e., output subsets).
[0322] Similar to the reconstruction methods discussed above, since a subset of the total receptive field is used to obtain the set of output samples, padding operations may also be required on the encoding side to generate missing samples.
[0323] In an example implementation, the processing of each of the two or more input subsets includes padding prior to processing in the one or more layers, such that missing samples in an input subset may be added by a padding process.
[0324] As mentioned before, padding refers to increasing the size of the input (i.e., the input image) by inserting new samples, for example at the border of the picture or picture region. The padding samples may be samples with a predefined value (e.g., 0) or samples with values derived from existing picture (region) values (since a picture is the input in this case). The padding samples may also be derived by copying values from the nearest samples of the picture (region), for example the value of a sample at a predefined relative position to the padding sample (e.g. the sample to the left or above the padding sample).
[0325] According to one example, the position and / or amount of padded samples is determined based on side information. In this manner, the position and number of padded samples may be determined based on side information signaled by the encoding side.
[0326] As explained earlier, padding is illustrated in a non-limiting manner with reference to Figure 12. That example also applies here.
[0327] In an implementation example, the processing of each of the two or more input subsets includes cropping one or more samples after processing in the one or more layers. Cropping means removing samples of the output subset that belong to overlapping areas of the respective regions Ri. In one example, cropping is performed to obtain one or more of the two or more output subsets (R1, R2) respectively after processing one or more of the two or more input subsets with a neural network. Cropping can reduce the size of the picture to be reconstructed and / or change the aspect ratio (length vs. width) of the picture. Thus, the size of the picture can be adapted to the preferred size of the display, which improves the observed reproduction of the picture on the display (adaptive picture size). Cropping can match the picture size. Furthermore, cropping helps to remove overlapping sections of the output when the output subsets (R1 and R2) have overlapping areas.
[0328] Thus, a cropping operation (i.e., a third step may be added to the above process) may be performed on Ri before merging into the reconstructed output. Figures 18 and 19 show that after the input subset Li is processed by the decoder, the decoder provides as output an output subset Ri that still has overlapping regions. In this case, cropping is performed after the neural network. Alternatively, cropping may be performed in the network, in which case the provided output subset Ri no longer has overlapping regions as a result of the cropping inside the network.
[0329] As mentioned above for picture reconstruction, the input subset (L1, L2) may not include the entire receptive field (TRF) in contrast to the processing of the first embodiment, which is also true for the processing on the encoder side. As a result of using sub-fields of the TRF, the encoding side does not know by itself how to partition the picture. Therefore, the encoding side may need to determine side information indicating how to partition the picture. The respective side information may for example include parameters related to the picture or other parameters. The side information may then be signaled to the decoder side, for example in the bitstream.
[0330] In particular, the encoder may determine acceptable choices of overlap parameters in the input and output spaces to control the reconstruction quality. For example, the encoder may use the size (h,w) of the input picture to determine the overlap amount y of the input subset Li and / or the overlap amount X of the output subset Ri based on the input-output characteristics of the neural network. Such characteristics may be the ratio of the input size to the output size (in one or more dimensions), etc. In general, the characteristics may be one or more parameters from the input / output size relationship of specific layers of the network or the entire network, the size of the kernel(s) applied in the one or more layers of the NN, or the size of other operations including subsampling, upsampling, polling, etc. performed in the layers of the NN. The present disclosure is not limited to any particular parameters.
[0331] According to one exemplary implementation of the method, the side information is determined based on the position and / or amount of the samples to be cropped. Thus, based on the side information signaled by the decoding side, the position and / or number of the samples to be cropped can be quickly determined. In one example, the position and / or amount of the samples to be cropped is determined depending on the size of the input subset indicated in the side information and the neural network resizing parameters of the neural network that specify the relationship between the size of the input to the network and the size of the output from the network. Thus, by considering both the size of the input subset and the characteristics of the neural network (i.e., its resizing parameters), the position and / or cropping amount can be determined more accurately. Thus, the cropping amount and / or position can be adapted to the attributes of the neural network, which further improves the quality of the reconstructed picture.
[0332] The resizing parameter may be an additive term, subtracted from the input size to obtain the output size, i.e., the output size of an output subset is related to its corresponding input subset by just an integer. Alternatively, the resizing parameter may be a ratio, in which case the size of the output subset is related to the size of the input subset by multiplying the size of the input subset by the ratio to obtain the size of the output subset.
[0333] In one exemplary implementation of the method, the side information includes: the number of said input subsets, the size of the input set, the size (h1, w1) of each of the two or more input subsets; The size (H,W) of the reconstructed picture (R), the size (H1, W1) of each of the two or more output subsets; The amount of overlap between the two or more input subsets (L1, L2) The amount of overlap between the two or more output subsets (R1, R2) The method includes one or more instructions for:
[0334] Thus, the signaling of various parameters through the side information can be performed in a flexible manner. Thus, the signaling overhead may be adapted depending on which of the above parameters are signaled in the side information while other parameters are derived from the signaled parameters. The respective sizes of the two or more input subsets may be different. Alternatively, the input subsets may have a common size.
[0335] Additionally, the encoder may further use information about available memory and / or processing speed (e.g., CPU clock frequency) to determine the amount of overlap y and / or X (i.e., the amount of cropping) to achieve an acceptable trade-off. The acceptable trade-off point may depend on the type of application. For example, for video streaming to mobile devices, one may choose a small overlap parameter and a large number of partitions since memory and computational resources are limited in this case. In other applications, quality may be a greater concern, in which case the amount of overlap may be increased.
[0336] Thus, the encoding side may include various types of the above parameters in the side information in order to signal the parameters to the decoding side. Some examples of different signaling scenarios are discussed in the context of the decoding side. Although Fig. 20 shows the decoder side, a similar process applies to the encoder side by simply changing the name of the arrow from "decoder" to "encoder". This is because in the encoder, L represents the picture space (input space) and R represents the latent space, as mentioned before.
[0337] The first, second and third signalling examples described above with reference to the decoder side are also applicable for the encoder side, where a bitstream is generated and where the decoder side parses the bitstream. However, the signalling parameters contained in the bitstream and described in the first, second and third signalling examples apply to both sides. The parameters provided as side information as described above are thus inserted into the bitstream in the encoder side embodiment and parsed from the bitstream in the decoder side embodiment.
[0338] According to an embodiment of the present disclosure, an apparatus for reconstructing a picture from a bitstream is provided. Figure 23 shows a block diagram of an apparatus 2300 for reconstructing a picture. The apparatus includes the steps of: obtaining an input set (L) of samples representing a picture based on the bitstream; splitting the input set (L) into two or more input subsets (L1, L2); parsing side information from the bitstream; determining a size ((h1, w1); (h2, w2)) for each of the two or more input subsets (L1, L2) and / or a size ((H1, W1); (H2, W2)) for each of two or more output subsets (R1, R2) based on the side information; and processing each of the two or more input subsets (L1, L2), including processing with a neural network including one or more layers, the neural network processing the two or more input subsets (L1, L2). generating one sample of each of the two or more output subsets (R1, R2) using a plurality of samples of an input subset of the input subsets (L1, L2), thereby obtaining, for the two or more input subsets, the respective two or more output subsets (R1, R2); and reconstructing the picture (R) by combining the two or more output subsets, wherein a size of at least one of the input subsets is smaller than a size required to obtain the size of the respective output subset (R1, R2) after processing by the one or more layers.
[0339] In one example implementation of the apparatus 2300, the configuration of the processing circuitry 2310 may include that the circuitry includes respective modules for the processing, which may include an acquisition module 2312, a segmentation module 2314, a parsing module 2316, a determination module 2318, a processing module 2320, and a reconstruction module 2322, as shown in FIG.
[0340] According to an embodiment of the present disclosure, there is provided an apparatus for reconstructing a picture from a bitstream, the apparatus having one or more processors; and a non-transitory computer-readable storage medium coupled to the one or more processors and storing programming for execution by the one or more processors, the programming, when executed by the one or more processors, configuring the apparatus to perform the picture reconstruction related method referred to above.
[0341] In one implementation, an apparatus for reconstructing a picture from a bitstream may have processing circuitry configured to perform steps of a method according to any aspect of the reconstruction method referred to above.
[0342] According to an aspect of the present disclosure, a processing device for encoding a picture into a bitstream is provided. FIG. 24 shows a block diagram of a processing device 2400 for encoding a picture. The processing device includes the steps of: dividing an input set (L) of samples representing a picture into two or more input subsets (L1, L2); determining side information based on a size ((h1, w1); (h2, w2)) for each of the two or more input subsets (L1, L2) and / or a size ((H1, W1); (H2, W2)) for each of two or more output subsets (R1, R2); processing each of the two or more input subsets (L1, L2) including processing with a neural network including one or more layers, the neural network determining the size of ... generating one sample of a respective output subset of the two or more output subsets (R1, R2) using a plurality of samples of an input subset among the plurality of input subsets, thereby obtaining, for the two or more input subsets, the respective two or more output subsets (R1, R2); and inserting the side information into the bitstream, wherein a size of at least one of the input subsets is smaller than a size required to obtain the respective output subset (R1; R2) after processing by the one or more layers.
[0343] In one example implementation of the device 2400, the configuration of the processing circuit 2410 may include that the circuit includes respective modules for the processing, which may include a segmentation module 2412, a determination module 2414, a processing module 2416, and an insertion module 2418, as shown in FIG.
[0344] According to an aspect of the present disclosure, there is provided a processing apparatus for encoding a picture into a bitstream, the processing apparatus having: one or more processors; and a non-transitory computer-readable storage medium coupled to the one or more processors and storing programming for execution by the one or more processors, the programming, when executed by the one or more processors, configuring the apparatus to perform the methods related to encoding pictures referred to above.
[0345] In one implementation example, a processing device for encoding a picture into a bitstream may include processing circuitry configured to perform the steps of a method according to any aspect of the encoding method referred to above.
[0346] The example implementations of the present disclosure discussed above may provide the following advantages: An exemplary implementation of the second embodiment allows tuning the sizes of the output domains Ri and input domains Li to obtain a desired trade-off between reconstruction quality and computational complexity, while reducing the required memory demands. Compared to the exemplary implementation of the first embodiment, the exemplary implementation of the second embodiment may provide the advantage of providing flexibility to tune the reconstruction quality and computational complexity: in this exemplary implementation, a subset of the total receptive field is used as input, but the encoder may make decisions about acceptable choices of overlapping parameters in the input and output spaces to control the reconstruction quality. For example, the encoder can use the size (h,w) of the input picture to determine the amount of overlap y for the input subset Li and / or the amount of overlap X for the output subset Ri based on the input-output characteristics of the neural network. Additionally, the encoder may further use information about available memory and / or processing speed (e.g., CPU clock frequency) to determine the amount of overlap y and / or X. The acceptable trade-off depends on the type of application. For example, for video streaming to mobile devices, it may be desirable to select a small overlap parameter and a large number of partitions since memory and computational resources are limited in this case. In other applications, quality may be a concern, in which case the amount of overlap can be increased.
[0347] For example, if the entire receptive field and a subset of it are Total receptive field size: (H,W) Subset size: (HX,WX) Let it be given by
[0348] The reduction in peak memory and computational requirements (by moving from the full receptive field to a subset) is (X(H+W)+X 2 ) / (W*H). For example, for H=W=20, the reduction in computational complexity is 10.25% when X is equal to only 1. This example calculation shows that a reduction of just one line in the size of the input space corresponds to a reduction in memory and total number of computations of about 25%. This is due to the fact that memory and total number of computations are proportional to the width and height of the input.
[0349] The memory requirements and computational complexity are proportional to the number of samples processed, which is proportional to the width times the height of the input. In the example above, if the entire receptive field is used as input, the input size is W × H. If a subset of the entire receptive field is used, the input size is reduced to (WX) × (HX), where X is an integer greater than 0. Thus, the percentage reduction in computational complexity and memory requirements is:
number
[0350] However, the degradation of the reconstruction quality is much less than the reduction in the amount of computation, especially when X is small. When X is small, this means that only samples in the outer section of the entire receptive field are not included in the input. Figure 12 shows that samples at the border of the input (in this case, the padded samples, since they are missing) only affect a small number of output samples. For example, padded sample 1 in Figure 12 only affects two samples in the output (output sample 1 and output sample 2), one of which is not even included in the output sample set (output sample 2). On the other hand, available sample 1 in the center affects five output samples. Thus, it can be seen from Figure 12 that removing padded sample 1 (i.e., using the padded version instead of the missing actual value) only has a small effect on the reconstruction quality.
[0351] In summary, when X is small, the reduction in complexity is weighted more heavily than the reduction in quality of the reconstruction. The present disclosure allows for choosing X (adaptively or in a pre-determined manner) so that a desired trade-off can be achieved. The acceptable trade-off point depends on the type of application. For example, for a video stream to a mobile device, it may be desirable to choose a small overlap parameter and a large number of partitions, since memory and computational resources are limited in this case. In other applications, quality may be of more concern, and the amount of overlap X can be increased.
[0352] The embodiments of the present disclosure provide the possibility to process parts of the input independently of the rest of the input samples. This means that the amount of samples processed at a time is reduced, thus reducing memory requirements. The present disclosure further makes it possible to implement processing of the entire input by: Use less powerful processing units (i.e. units with less memory), or · Using a single, less capable processing unit for multiple processing rounds.
[0353] Especially the first option is expected to be cheaper to implement, since there are physical limitations on processing speed that can often be difficult to overcome. On the other hand, the state of the processing units (e.g. CPUs and GPUs) consists of multiple identical processing cores with less power, operating at a lower operating frequency.
[0354] It should be noted that the present disclosure is not limited to any particular framework, and furthermore, the present disclosure is not limited to image or video compression, but may also be applied to object detection, image generation, and recognition systems.
[0355] The present invention can be implemented in hardware (HW) and / or software (SW). Furthermore, HW-based implementations can be combined with SW-based implementations.
[0356] For clarity, any of the above described embodiments may be combined with any one or more of the other above described embodiments to create new embodiments within the scope of the present disclosure.
[0357] In summary, the present disclosure relates to neural network-based bitstream picture decoding and encoding, where the picture is represented by an input set L of samples obtained from the bitstream. The picture is reconstructed from output subsets Ri generated as a result of processing the input set L. Specifically, the input set L is divided into multiple input subsets Li, and side information parsed from the bitstream is used to determine the size of the input and output subsets. Each of the input subsets is subjected to a process including processing by a neural network with one or more layers. The neural network uses multiple samples of the input subsets as inputs and generates one sample of the output subset, thereby obtaining a respective output subset for each input subset. The picture is reconstructed by combining the output subsets. In particular, the size of at least one input subset is smaller than the size required to obtain the size of the respective output subset (R1; R2) after being processed by one or more layers of the neural network. A similar process may be performed on the encoding side. This process allows efficient reconstruction of the entire picture within a neural network-based framework, with a trade-off between requirements and limitations on memory and computational resources.
Claims
1. 1. A method for reconstructing a picture from a bitstream, the method comprising: obtaining an input set (L) of samples representing the picture based on the bitstream; dividing the input set (L) into two or more input subsets (L1, L2); parsing side information from the bitstream; determining a size ((h1,w1);(h2,w2)) for each of the two or more input subsets (L1,L2) and / or a size ((H1,W1);(H2,W2)) for each of the two or more output subsets (R1,R2) based on the side information; processing each of the two or more input subsets (L1, L2) including with a neural network including one or more layers, the neural network using a plurality of samples of an input subset of the two or more input subsets (L1, L2) to generate a sample of each of the two or more output subsets (R1, R2), thereby obtaining the two or more respective output subsets (R1, R2) for the two or more input subsets; and reconstructing the picture (R) by combining the two or more output subsets; a size of at least one of the input subsets is smaller than a size required to obtain the size of the respective output subset (R1, R2) after processing by the one or more layers; method.
2. The method of claim 1 , wherein processing each of the two or more input subsets comprises padding before processing with the one or more layers.
3. The method of claim 2 , wherein based on the side information a position and / or an amount of samples to be padded is determined.
4. 4. The method according to claim 1, wherein the two or more input subsets (L1, L2) overlap by one or more samples.
5. combining the two or more output subsets (R1, R2) includes overlapping the two or more output subsets (R1, R2) by one or more combined samples; A combined sample is a sample obtained by combining a sample from the first output subset (R1) with a sample from the second output subset (R2).
5. The method according to any one of claims 1 to 4.
6. processing each of the two or more input subsets includes cropping one or more samples after processing with the one or more layers.
6. The method according to any one of claims 1 to 5.
7. said cropping being performed after said processing of one or more of said two or more input subsets with said neural network to obtain a respective one or more of said two or more output subsets (R1, R2); combining the two or more output subsets is a non-overlapping merge. The method according to claim 6.
8. The method according to claim 6 or 7, wherein the position and / or amount of samples to be cropped is determined based on the side information.
9. 9. The method of claim 8, wherein the position and / or the amount of cropped samples is determined according to a size of the input subset indicated in the side information and a neural network sizing parameter of the neural network that specifies a relationship between the size of the input to the neural network and the size of the output from the neural network.
10. The side information is: the number of said input subsets; the size of the input set; - the size (h1, w1) of each of the two or more input subsets; the size (H,W) of the reconstructed picture (R); - the size (H1, W1) of each of the two or more output subsets; The amount of overlap between the two or more input subsets (L1, L2) The amount of overlap between the two or more output subsets (R1, R2) The method of claim 9 , further comprising one or more instructions of:
11. each of the two or more input subsets (L1, L2) being a rectangular region of a rectangular input set (L); each of the two or more output subsets (R1, R2) being a rectangular region of a rectangular reconstructed picture (R); 11. The method according to any one of claims 1 to 10.
12. 12. The method according to claim 1, wherein the two or more input subsets (L1, L2) are processed independently.
13. The method of claim 1 , wherein the parsing of the side information comprises parsing one or more of a sequence parameter set or a picture parameter set or a picture header.
14. 1. A processing method for encoding a picture into a bitstream, the method comprising: dividing an input set (L) of samples representing said picture into two or more input subsets (L1, L2); determining side information based on a size ((h1,w1);(h2,w2)) for each of the two or more input subsets (L1,L2) and / or a size ((H1,W1);(H2,W2)) for each of the two or more output subsets (R1,R2); processing each of the two or more input subsets (L1, L2) including with a neural network including one or more layers, the neural network using a plurality of samples of an input subset of the two or more input subsets (L1, L2) to generate a sample of each of the two or more output subsets (R1, R2), thereby obtaining the two or more respective output subsets (R1, R2) for the two or more input subsets; and inserting the side information into the bitstream; the size of at least one of the input subsets is smaller than the size required to obtain the size of the respective output subset (R1; R2) after processing by the one or more layers; method.
15. The method of claim 14 , further comprising inserting an indication of the two or more output subsets (R1, R2) into the bitstream.
16. 16. The method of claim 14 or 15, wherein processing each of the two or more input subsets comprises padding before processing with the one or more layers.
17. The method of claim 16 , wherein the position and / or amount of padded samples is determined based on the side information.
18. 18. The method according to any one of claims 14 to 17, wherein the two or more input subsets (L1, L2) overlap by one or more samples.
19. 19. The method of claim 14, wherein processing each of the two or more input subsets comprises cropping one or more samples after processing with the one or more layers.
20. said cropping being performed after said processing of one or more of said two or more input subsets with said neural network to obtain a respective one or more of said two or more output subsets (R1, R2); 20. The method of claim 19.
21. The method according to claim 19 or 20, wherein the side information is determined based on the position and / or amount of samples to be cropped.
22. 22. The method of claim 21 , wherein the position and / or the amount of cropped samples is determined according to a size of the input subset indicated in the side information and a neural network sizing parameter of the neural network that specifies a relationship between the size of the input to the neural network and the size of the output from the neural network.
23. The side information is: the number of said input subsets; the size of the input set; - the size (h1, w1) of each of the two or more input subsets; the size (H,W) of the picture (R) reconstructed from said bitstream; - the size (H1, W1) of each of the two or more output subsets; The amount of overlap between the two or more input subsets (L1, L2) The amount of overlap between the two or more output subsets (R1, R2) 23. The method of claim 22, comprising one or more instructions of:
24. each of the two or more input subsets (L1, L2) being a rectangular region of a rectangular input set (L); Each of the two or more output subsets (R1, R2) is a rectangular region.
24. The method according to any one of claims 14 to 23.
25. 25. The method according to any one of claims 14 to 24, wherein the two or more input subsets (L1, L2) are processed independently.
26. 26. The method of any one of claims 14 to 25, wherein inserting the side information comprises inserting the side information into one or more of a sequence parameter set or a picture parameter set or a picture header.
27. 27. A computer program stored on a non-transitory medium comprising code which, when executed on one or more processors, causes the one or more processors to perform the method of any one of claims 1 to 26.
28. 1. An apparatus for reconstructing a picture from a bitstream, the apparatus comprising: obtaining an input set (L) of samples representing the picture based on the bitstream; dividing the input set (L) into two or more input subsets (L1, L2); parsing side information from the bitstream; determining a size ((h1,w1);(h2,w2)) for each of the two or more input subsets (L1,L2) and / or a size ((H1,W1);(H2,W2)) for each of the two or more output subsets (R1,R2) based on the side information; processing each of the two or more input subsets (L1, L2) including with a neural network including one or more layers, the neural network using a plurality of samples of an input subset of the two or more input subsets (L1, L2) to generate a sample of each of the two or more output subsets (R1, R2), thereby obtaining the two or more respective output subsets (R1, R2) for the two or more input subsets; and reconstructing the picture (R) by combining the two or more output subsets. a size of at least one of the input subsets is smaller than a size required to obtain the size of the respective output subset (R1, R2) after processing by the one or more layers; Device.
29. 1. A processing device for encoding a picture into a bitstream, the processing device comprising: dividing an input set (L) of samples representing said picture into two or more input subsets (L1, L2); determining side information based on a size ((h1,w1);(h2,w2)) for each of the two or more input subsets (L1,L2) and / or a size ((H1,W1);(H2,W2)) for each of the two or more output subsets (R1,R2); processing each of the two or more input subsets (L1, L2) including with a neural network including one or more layers, the neural network using a plurality of samples of an input subset of the two or more input subsets (L1, L2) to generate a sample of each of the two or more output subsets (R1, R2), thereby obtaining the two or more respective output subsets (R1, R2) for the two or more input subsets; and inserting the side information into the bitstream; the size of at least one of the input subsets is smaller than the size required to obtain the size of the respective output subset (R1; R2) after processing by the one or more layers; Processing unit.
30. 1. An apparatus for reconstructing a picture from a bitstream, the apparatus comprising: one or more processors; a non-transitory computer-readable storage medium coupled to the one or more processors and storing programming for execution by the one or more processors; The programming, when executed by the one or more processors, configures the one or more processors to perform the method of any one of claims 1 to 13. Device.
31. 1. A processing device for encoding a picture into a bitstream, the processing device comprising: one or more processors; a non-transitory computer-readable storage medium coupled to the one or more processors and storing programming for execution by the one or more processors; The programming, when executed by the one or more processors, configures the one or more processors to perform the method of any one of claims 14 to 26. Processing unit.
