Reshapers for learning-based image / video coding.
A learning-based image/video codec with adaptive reshaping techniques addresses the challenge of dynamic range mismatches by enhancing coding efficiency and adaptability, ensuring effective performance across HDR and SDR images/videos.
Patent Information
- Application Number
- JP2024513349
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2021-08-30
- Filing Date
- 2022-08-05
- Publication Date
- 2024-09-18
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Existing image/video coding technologies struggle to adapt effectively to images/videos with different dynamic ranges (HDR vs. SDR) due to training dataset mismatches, leading to inefficiencies and poor performance.
Implementing a learning-based image/video codec with a reshaping technique that uses ML models in conjunction with embedded coding, allowing for adaptive reshaping operations to accommodate various image/video characteristics, including explicit and implicit mapping methods.
Enhances coding efficiency and adaptability to diverse image/video characteristics, improving performance across different dynamic ranges without the need for extensive parameter signaling.
Smart Images

Figure 2024534183000023 
Figure 2024534183000017 
Figure 2024534183000021
Abstract
Description
[Technical field]
[0001] The present disclosure relates generally to image processing operations. More specifically, embodiments of the present disclosure relate to video codecs. [Background technology]
[0002] As used herein, the term "dynamic range" (DR) can refer to the ability of the human visual system (HVS) to perceive a range of intensities (e.g., luminance, luma) within an image, e.g., from darkest black (dark) to brightest white (highlight). In this sense, DR relates to "scene-referred" intensities. DR can also relate to the ability of a display device to properly or approximately render a particular range of intensity ranges. In this sense, DR relates to "display-referred" intensities. It should be presumed that terms may be used in either sense, e.g., synonymously, unless a particular meaning is expressly designated as having particular importance at any point in the specification of this application.
[0003] As used herein, the term high dynamic range (HDR) refers to a DR range that spans 14-15 or more orders of magnitude of the human visual system (HVS). In fact, the DR that humans can simultaneously perceive a large range in the intensity range may be somewhat truncated compared to HDE. As used herein, the term extended dynamic range (EDR) or visual dynamic range (VDR) may individually or synonymously refer to the DR that is perceivable in a scene or image by the human visual system (HVS) including eye movements while allowing for some light adaptation changes across the scene or image. As used herein, EDR may refer to a DR that spans 5-6 orders of magnitude. Although it may be somewhat narrower compared to the actual scene-referred HDR, EDR still represents a wide DR range and may also be referred to as HDR.
[0004] In practice, an image comprises one or more color components of a color space (e.g., luma Y and chroma Cb and Cr), each color component being represented with n bits of precision per pixel (e.g., n=8). With non-linear luminance coding (e.g., gamma coding), images with n≦8 (e.g., color 24-bit JPEG images) can be considered as standard dynamic range images, while images with n>8 can be considered as extended dynamic range images.
[0005] The reference electro-optical transfer function (EOTF) of a given display characteristic characterizes the relationship between the color values (e.g., luminance) of the input video signal to the output screen color values (e.g., screen luminance) produced by the display. For example, ITU Rec. ITU-R BT. 1886, “Reference electro-optical transfer function for flat panel displays used in HDTV studio production”, March 2011, which is incorporated herein by reference in its entirety, defines the reference EOTF for flat panel displays. Given a video stream, information about its EOTF may be embedded in the bitstream as (image) metadata. The term “metadata” in this specification relates to any auxiliary information transmitted as part of the coded bitstream to help a decoder render the decoded image. Such metadata may include, but is not limited to, color space or gamut information, reference display parameters, and auxiliary signal parameters, such as those described herein.
[0006] The term "PQ" as used herein refers to perceptual luminance amplitude quantization. The human visual system responds to increasing light levels in a highly nonlinear manner. A person's ability to view a stimulus is affected by the luminance of the stimulus, the size of the stimulus, the spatial frequencies that make up the stimulus, and the luminance level to which the eye is adapted at the particular moment the stimulus is viewed. In some embodiments, a perceptual quantizer function maps linear input gray levels to output gray levels that better match the contrast sensitivity thresholds in the human visual system. Examples of PQ mapping functions are described in SMPTE ST 2084:2014, "High Dynamic Range EOTF of Mastering Reference Displays" (hereinafter "SMPTE"), which is incorporated herein by reference in its entirety. Assuming a fixed stimulus size, for each luminance level (e.g., a stimulus level), the maximum visual contrast step at that luminance level is selected (according to the HVS model) according to the most sensitive adaptation level and the most sensitive spatial frequency.
[0007] 200 to 1,000 cd / m 2Displays supporting 1,000 nits of luminance, as compared to EDR (or HDR), exhibit the characteristics of low dynamic range (LDR), also referred to as standard dynamic range (SDR). EDR content may be displayed on EDR displays supporting a higher dynamic range (e.g., 1,000 nits to 5,000 nits or more). Such displays may be defined using an alternative EOTF supporting light luminance capabilities (e.g., 0 to 10,000 nits or more). Examples of such EOTFs are defined in SMPTE 2084 and Rec. ITU-R BT.2100, “Image parameter values for high dynamic range television for use in production and international programme exchange” (June 2017). As recognized by the inventors herein, improved techniques for synthesizing video content data that can be used to efficiently support the display capabilities of a wide variety of display devices are desired.
[0008] The approaches described in this section are approaches that could be pursued, but not necessarily approaches that have been previously conceived or pursued. Thus, unless otherwise indicated, it should not be assumed that any of the approaches described in this section qualify as prior art merely by virtue of their inclusion in this section. Similarly, it should not be assumed that problems identified with one or more approaches have been recognized in the prior art based on this section, unless specifically indicated. [Prior art documents] [Non-patent literature]
[0009] [Non-Patent Document 1] ITU Rec. ITU-R BT. 1886, “Reference electro-optical transfer function for flat panel displays used in HDTV studio production” (March 2011) [Non-Patent Document 2] SMPTE ST 2084:2014, “High Dynamic Range EOTF of Mastering Reference Displays” [Non-Patent Document 3] Rec.ITU-R BT.2100, “Image parameter values for high dynamic range television for use in production and international program exchange” (June 2017) [Brief description of the drawings]
[0010] Embodiments of the present invention are illustrated by way of example, and not by way of limitation, in the figures of the accompanying drawings, in which like reference numbers refer to similar elements and in which:
[0011] [Figure 1A] 1 illustrates an exemplary codec architecture within which an image / video reshaper (or reshaping module) operates in conjunction with a learning-based image / video codec. [Figure 1B] 1 illustrates an exemplary codec architecture within which an image / video reshaper (or reshaping module) operates in conjunction with a learning-based image / video codec. [Figure 1C] 1 illustrates an exemplary codec architecture within which an image / video reshaper (or reshaping module) operates in conjunction with a learning-based image / video codec. [Figure 1D]1 illustrates an exemplary codec architecture within which an image / video reshaper (or reshaping module) operates in conjunction with a learning-based image / video codec. [Figure 1E] 1 illustrates an exemplary codec architecture within which an image / video reshaper (or reshaping module) operates in conjunction with a learning-based image / video codec. [Figure 2A] 1 illustrates an example workflow in which a reshaping operation may be performed. [Figure 2B] 1 illustrates an exemplary process for training a model based on reshaping and non-reshaping ML. [Figure 2C] 1 illustrates exemplary forward and inverse / backward reshaper nets. [Figure 3A] 1 illustrates an exemplary process flow for encoding reshaping parameters. [Figure 3B] 1 illustrates an exemplary process flow for parsing or decoding reshaping parameters. [Figure 4A] 1 illustrates an exemplary process flow. [Figure 4B] 1 illustrates an exemplary process flow. [Diagram 5] 1 represents a simplified block diagram of an exemplary hardware platform on which the computers or computing devices described herein may be implemented. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0012] In the following description, for purposes of explanation, numerous specific details are set forth in order to provide a thorough understanding of the present disclosure. However, it will be apparent that the present disclosure may be practiced without these specific details. In other instances, well-known structures and devices have not been described in exhaustive detail in order to avoid unnecessarily obscuring the present disclosure.
[0013] [overview] Under some approaches, the performance of learning-based image / video coding may be highly dependent on the training dataset. For example, a machine learning (ML) model is trained using a training dataset or database of SDR images / videos. Image / video coding incorporating inferences from the training model may not perform well for HDR images / videos compared to the same model trained using a training dataset or database of HDR images / videos. Even when both training and non-training images are images / videos of the same or similar color grade (e.g., SDR, etc.), the training images may still differ from the non-training images in certain image / video characteristics (e.g., visually perceptible characteristics, non-visual characteristics, etc.). For example, the non-training images / videos in the application or inference phase of the model may be composite images / videos including text and image regions, such as screen content (SCC) images / videos, while the training images / videos in the training phase of the model may be non-SCC images / videos. As a result, image / video coding incorporating inferences from the trained model may not perform well for SCC images / videos.
[0014] In contrast, the reshaping techniques described herein may be implemented in image / video codecs (based on deep learning) in conjunction with image / video coding that incorporates inference from trained ML models to improve coding efficiency and provide adaptability with respect to non-training images / videos that may or may not have the same (or similar) image / video characteristics as the training images / videos.
[0015] These techniques may be implemented in a variety of standard-based and / or proprietary system configurations in a video codec. Some or all of the reshaping operations described herein may be implemented as in-loop operations (as part of the image / video encoding / decoding operations) or as out-of-loop operations (as part of pre-processing or post-processing operations / tools before or after the image / video encoding / decoding). Operation parameters used in the reshaping operations may be signaled to an upstream encoding device to a recipient device in a video signal that has been encoded using syntax or syntax elements according to an applicable image / video coding syntax standard. Exemplary reshaping operations are described in International Patent Application No. PCT / US2019 / 031620, filed May 9, 2019 (U.S. Patent No. 10,080,026), the entire contents of which are incorporated herein by reference as if fully set forth herein.
[0016] Exemplary image / video coding syntax standards include, but are not limited to, the Dolby Vision coding syntax standard, the Versatile Video Coding or VVC standard, etc. Exemplary syntax or syntax elements include, but are not limited to, any related to one or more of supplemental enhanced information or SEI messages, coding data unit header fields, Luma Mapping Chroma Scaling or LMCS data fields, data fields related to in-loop operations, data fields related to out-of-loop operations, etc. Exemplary image processing operations related to LMCS are described in U.S. Patent Application Publication No. 2021 / 0076079, which is incorporated herein by reference in its entirety.
[0017] In some operating scenarios, the reshaping operation described herein can be a global reshaping operation that applies the same reshaping mapping to some or all images received in the video signal to generate a corresponding reshaped or reconstructed image. Reshaping operation parameters specifying individual reshaping mappings / functions for individual images / pictures do not need to be transmitted from an upstream device to a downstream receiving device in the encoded video signal. The upstream device may simply signal to the downstream receiving device an identifier by way of one or more relatively advanced reshaping parameters or flags that specify a pre-configured, pre-stored or fixed global reshaping mapping / function, such as a multi-part polynomial, look-up table, etc., for the downstream receiving device to use in the reshaping operation.
[0018] In some operating scenarios, the reshaping operations described herein may be image adaptive reshaping operations that apply individual reshaping mappings / functions (e.g., possibly different, etc.) to each individual image among some or all images received in the video signal to generate a reshaped or reconstructed image. Reshaping operation parameters that can be used to derive the individual reshaping mappings / functions may be encoded in the encoded video signal and signaled from an upstream device to a downstream recipient device, for example, in addition to relatively advanced reshaping parameters or flags, etc.
[0019] Under other approaches that do not implement the reshaping techniques described herein, as discussed above, ML models may not perform well in inference for images / videos that differ in some characteristics from the training images / videos (e.g., different dynamic ranges, different visual perception characteristics, etc.). To overcome this problem, some or all of these ML models may need to be trained with a wide variety of training images / videos in the model training phase. Moreover, many model parameters used in the ML models (e.g., model parameters used in neural networks, etc.) may need to be adaptively optimized and signaled with different input images in the model deployment or inference phase.
[0020] In contrast, under the techniques described herein, rather than training and adaptively optimizing / adjusting / signaling / transmitting a large number of model parameters used in the ML model, a relatively small number of reshaping operation parameters, such as polynomial coefficients (e.g., specifying piecewise linear or nonlinear reshaping functions / mappings, etc.), MMR coefficients (e.g., specifying or defining MMR-based cross-channel reshaping functions / mappings), TPB coefficients (e.g., specifying or defining Tensor-Product-B-Spline-based reshaping functions / mappings), etc., may be adaptively optimized / adjusted / signaled / transmitted by an upstream encoding device to a recipient device. An exemplary multiple color channel multiple regression (MMR) based operation is described in U.S. Pat. No. 8,811,490, which is incorporated herein by reference in its entirety as if fully set forth herein. Exemplary TPB-based operations are described in U.S. Provisional Patent Application No. 62 / 908,770, entitled "TENSOR-PRODUCT B-SPLINE PREDICTOR," filed on October 1, 2019 (Attorney Docket No. 60175-0417), which is incorporated herein by reference in its entirety as if fully set forth herein.
[0021] The reshaping operations specified by these reshaping operation parameters can be individually adjusted or generated for each input image, even if there are no images similar to the input image in the training images / video used to train the ML model, thereby providing better adaptability to different characteristics of the input images.
[0022] Image / video reshaping in learning-based image / video coding (e.g., encoding, decoding, compression, decompression, etc.) may be implemented or performed by explicit mapping (or parametric mapping) or implicit mapping (non-parametric mapping).
[0023] In the case of explicit mapping, the image / video reshaping may reshape the input image into a reshaped image using a reshaping function / mapping that is explicitly specified or represented by reshaping operation parameters, such as operation parameters of a polynomial, MMR, or B-spline or tensor product of B-spline functions, etc. The reshaping operation parameters may be obtained or generated by an ML model, such as one based on a neural network, or by other optimal techniques, such as solving an optimization problem that minimizes an estimation / prediction error.
[0024] In the case of implicit mapping, the image / video reshaping may reshape the image to be reshaped into a reshaped image using an ML-based reshaping model such as a neural network with a relatively high dimensional transformation, without a reshaping function / mapping explicitly specified or expressed by reshaping operation parameters such as operation parameters of a polynomial, MMR, or B-spline or tensor product of B-spline functions, etc. The ML-based reshaping model may have trained operation parameters such as trained weights / biases of the neural network, and may perform an implicit reshaping mapping on the image to be reshaped using these trained operation parameters or trained weights / biases of the neural network.
[0025] The relatively large number of motion parameters in the relatively high dimensional transform or weights / biases may be trained, optimized, or generated by supervised or unsupervised learning. After training, the relatively high dimensional transform or neural network including the relatively large number of trained motion parameters therein may be pre-stored or fixed in a codec, such as an upstream image / video encoder and / or a downstream image / video decoder.
[0026] As a result, when an input image is encoded by an upstream image / video encoder, these multiple operational parameters for the neural network or ML-based reshaping model do not need to be included as part of the output or encoded video signal encoded with the image reshaped by the upstream image / video encoder. When the reshaped image is decoded from the output or encoded video signal by the downstream recipient's image / video decoder, the multiple operational parameters for the neural network or ML-based reshaping model are already stored in the downstream recipient's image / video decoder, and the decoder can generate a reconstructed image from the reshaped image using the neural network or ML-based reshaping model. In other words, with implicit mapping, the ML reshaping transform or model described herein for implicit mapping does not need to include any image metadata in the video signal to signal the transform or model, since the transform or model and / or operational parameters therefor can be pre-stored to enable the codec device to perform the image reshaping operation according to the transform or model at runtime during the actual deployment or inference stage.
[0027] An example of a relatively high dimensional transformation may be implemented in whole or in part as a convolutional neural network, or CNN, or a data transformation operation involving a CNN (e.g., one or more data transformation layers, etc.). A CNN or a layer therein may operate with a relatively large number of output channels (e.g., depending on the type of filter used in the CNN to generate the output channels, depending on the total number of pixels in the image to which the filter is applied, etc.) and a relatively large number of operating parameters used in the CNN (e.g., weights, biases, number of nodes, number of strides, type of layer, type of filter, size of the filter kernel, type of activation function, etc.).
[0028] Two CNNs or transforms implemented therein or therewith form a reshaper pair and can be used in the forward and inverse / backward reshaping operations described herein, respectively. One of the two CNNs / transforms is for forward reshaping, and the other of the two CNNs / transforms is for backward reshaping. The two CNNs / transforms in the same pair can be trained such that they are reversible. Throughout this specification, the terms "inverse reshaping" and "backward reshaping" can be used synonymously.
[0029] As used herein, the term "reversible" may mean that a reconstructed image (that is the same as or very close to the input image) may be produced by backward reshaping, with an explicit or implicit backward reshaping mapping, a forward reshape image that was produced by forward reshaping the input image with a corresponding explicit or implicit forward reshaping mapping.
[0030] Exemplary embodiments described herein relate to encoding image data. An input image represented in an input domain is received from an input video signal. Forward reshaping is performed on the input image to generate a forward reshaped image represented in a reshaped image domain. Non-reshaping encoding operations are performed to encode the reshaped image into an encoded video signal. At least one of the non-reshaping encoding operations is performed using an ML model that has been previously trained with training images in one or more training datasets in a previous training phase. A recipient device of the encoded video signal is caused to generate a reconstructed image from the forward reshaped image. The reconstructed image is used to derive a display image that is rendered on an image display operating with the recipient device.
[0031] Exemplary embodiments described herein relate to decoding image data. A forward reshaped image represented in a reshaped image domain is decoded from an encoded video signal. The forward reshaped image was generated by an upstream device by forward reshaping an input image represented in an input image domain. Inverse reshaping and non-reshaping decoding operations are performed on and relative to the forward reshape image to generate a reconstructed image represented in a reconstructed image domain. The inverse reshaping and forward reshaping form a reshaping operation pair. At least one of the non-reshaping decoding operations is performed using an ML model that has been previously trained with training images in one or more training datasets in a previous training phase. A display image derived from the reconstructed image is rendered on an image display.
[0032] [An example learning-based image / video codec architecture] The ML-based or non-ML-based reshaping techniques described herein may be implemented or incorporated within a variety of learning-based image / video codec architectures. Some of these architectures support reshaping operations performed in an explicit mapping mode of operation, in which the reshaping operations apply an explicitly specified reshaping mapping to an input image to generate a reshaped image. Others of the architectures support reshaping operations in which the reshaping operations apply the reshaping operations implicitly (e.g., through an ML model having optimized operating parameters trained (e.g., a number of unsignaled, pre-stored, pre-deployed, etc.) with training images) to an input image to generate a reshaped image. However, in some operating scenarios, some or all of the optimized operating parameters of the ML model trained with training images may be signaled in the encoded video signal described herein, especially when the total number of these parameters and the total data capacity to carry these parameters is relatively small (e.g., below a certain data capacity threshold, weight / bias signaling overhead is relatively small, etc.).
[0033] 1A illustrates an exemplary codec architecture in which an out-of-loop image / video reshaper (or reshaping module) operates in conjunction with a learning-based image / video codec. Part or all of the architecture may be implemented in hardware, software, or a combination of hardware and software with computer processors, ASICs, FPGAs, DSPs, ICs, video codec chips, etc.
[0034] As shown, the forward reshaper is implemented as a pre-processor with respect to (or out-of-loop with respect to) a learning-based image / video encoder at an upstream image / video encoding device, while the backward reshaper is implemented as a post-processor with respect to (or out-of-loop with respect to) a learning-based image / video decoder at a downstream recipient image / video decoding device.
[0035] More specifically, a forward reshaper of an upstream image / video encoding device receives an input (image / video signal) including an input image, performs out-of-loop reshaping to apply a forward reshaping mapping to the input image, and generates a reshaped image and reshape image metadata that specifies or defines the (e.g., backward) reshaping mapping.
[0036] A learning-based image / video encoder receives an input reshaped image, performs learning-based encoding operations on the reshaped image to generate compressed image and non-reshaped image metadata, and encodes / compresses the compressed image into a compressed bitstream. The learning-based encoding and decoding operations depicted in Figure 1A may be the same as or similar to some or all of the non-reshaped image / video encoding and decoding operations depicted in Figure 1B or 1C. Exemplary forward and backward reshaping using forward reshaping metadata parameters (or simply, reshaping metadata or reshaping parameters) and backward reshaping metadata parameters (or composer metadata), respectively, are described in U.S. Provisional Patent Application No. 63 / 013063, entitled "Reshaping functions for HDR imaging with continuity and reversibility constraints," filed on April 21, 2020 by GM. Su, and U.S. Provisional Patent Application No. 63 / 013807, entitled "Iterative optimization of reshaping functions in single layer HDR image codec," filed on April 22, 2020 by GM. Su and H. Kadu, the contents of which are hereby incorporated by reference in their entireties as if fully set forth herein. Exemplary non-reshape image / video encoding and decoding operations are described in Guo Lu et al., “DVC: An End-to-End Deep Video Compression Framework”, Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR 2019), which is incorporated herein by reference in its entirety.
[0037] The reshaped image metadata generated by the forward reshaper and the non-reshaped image metadata generated by the learning-based encoder may be included in the encoded video signal by an upstream encoding device (e.g., by one or both of an out-of-loop forward reshaper or an in-loop learning-based image / video encoder, etc.) along with the compressed bitstream.
[0038] The learning-based image / video decoder of the downstream image video decoding device of Figure 1A receives the encoded video signal and performs a learning-based decoding operation to decode / decompress the compressed image data of the encoded video signal into a reshaped image (which may have had quantization or coding errors during compression and decompression). The learning-based decoding operation depicted in Figure 1A may be the same as or similar to some or all of the image / video decoding operations depicted in Figure 1B or Figure 1C.
[0039] Referring to FIG. 1A, the reshaped image metadata generated by the forward reshaper and the non-reshaped image metadata generated by the learning-based encoder may be decoded or received by a downstream decoding device (e.g., by an out-of-loop backward reshaper or a learning-based image / video decoder, etc.) using the encoded video signal.
[0040] The backward reshaper receives as input a (forward) reshaped image from a learning-based image / video decoder and performs out-of-loop reshaping to apply a backward reshaping mapping specified in (or derived from) the reshaped image metadata to the reshaped image to generate a reconstructed image.
[0041] 1B illustrates a first exemplary codec architecture in which an in-loop image / video reshaper (or reshaping module) operates in conjunction with a learning-based image / video codec. Part or all of the architecture may be implemented in hardware, software, or a combination of hardware and software with computer processors, ASICs, FPGAs, DSPs, ICs, video codec chips, etc.
[0042] A learning-based image / video encoder that includes or is combined with an in-loop (eg, ML, non-ML, etc.) reshaper may implement some or all of the modules or operations identified in FIG. 1B.
[0043] As shown, a first instance of the in-loop forward reshaper 104-1 receives an input image 102 (e.g., a series of consecutive input images in an input video signal, etc.) and performs in-loop forward reshaping on the input image (102) to generate a corresponding forward reshaped image that exhibits the same visual semantic content as the input image (102).
[0044] The residual generation operation 106 generates a residual forward reshaped image, in which a residual forward reshaped pixel or codeword value R at sample location (x,y) is calculated by the mathematical formula R(x,y)=f(I(x,y),P(x,y)), where f(···) represents a residual generation function or operation, I(x,y) represents the forward reshaped image (from the first instance of the in-loop forward reshaper (104-1)) or forward reshaped codeword at sample location (x,y) thereof to the residual generation operation (106), and P(x,y) represents the forward reshaped predicted image (from the second instance of the in-loop forward reshaper 104-2) or forward reshaped predicted codeword at sample location (x,y) thereof to the residual generation operation (106). In a first example, the residual generation operation (106) is defined or specified by a mathematical formula using a subtraction operation f(x,y)=I(x,y)-P(x,y), where the residual image comprises the difference in pixel or codeword values. In a second example, the residual generation operation (106) is defined or specified by a mathematical formula using a ratio or division operation f(x,y)=I(x,y) / P(x,y), where the residual image comprises the ratio of pixel or codeword values. In a third example, the residual generation operation (106) is defined or specified by a mathematical formula using a more general operation f(x,y)=A×I(x,y)-B×P(x,y)+O, where A, B, and O are configurable values, where the residual image comprises pixel or codeword values generated by applying the more general operation to the forward reshaped image and the forward reshaped predicted image output by the second instance of the in-loop forward reshaper (104-2).
[0045] A neural network, such as the residual encoder net 108, may apply a residual encoding operation to the residual forward reshaped image to generate a residual encoded forward reshaped image.
[0046] A first instance of a quantizer 110-1 (eg, linear, non-linear, perceptual, or non-perceptual) is applied to the residual-coded forward reshaped image to generate quantized residual-coded forward reshaped image data.
[0047] A neural network, such as residual decoder net 112, may apply a residual decoding operation to the quantized residual-encoded forward reshaped image data to generate a reconstructed residual forward reshaped image.
[0048] The residual encoder net (108) and the residual decoder net (112) form a residual coding network that can encode and decode residual image data (which may have a different value range or distribution compared to non-residual image data) relatively efficiently with relatively small quantization error.
[0049] The image generation operation 114 generates a reconstructed forward reshaped image, in which a reconstructed forward reshaped pixel or codeword value Q at a sample location (x,y) is calculated by a second mathematical formula Q(x,y)=g(R(x,y),P(x,y)), where g(···) represents an image generation operation, which may be an inverse operation on the residual generating function or operation (106). In a first example, in which the image generation operation (114) is defined or specified by a second mathematical formula with an addition operation g(x,y)=R(x,y)+P(x,y), the reconstructed image includes the sum of pixel or codeword values of the residual pixel or codeword value and the predicted pixel or codeword value. In a second example, where the image generation operation (114) is defined or specified by a second mathematical formula using a multiplication operation g(x,y)=R(x,y)×P(x,y), the reconstructed image includes pixel or codeword value products of the residual pixel or codeword values and the predicted pixel or codeword values. In a third example, where the image generation operation (114) is defined or specified by a second mathematical formula using a second, more general operation that is the mathematical inverse of f(x,y)=A×I(x,y)-B×P(x,y)+O described above, the reconstructed image includes pixel or codeword values generated by applying the second, more general operation to the forward reshaped image and the residual forward reshaped image.
[0050] The in-loop backward or inverse reshaper 118 performs in-loop backward (inverse) reshaping on the reconstructed forward reshaped image output by the image generation operation (114) to generate a corresponding reconstructed image (which is an inverse or backward reshaped image) that exhibits the same visual semantic content as the input image (102) or closely resembles it.
[0051] As shown in FIG. 1B, the reconstructed image is generated by the in-loop forward and backward reshaping mapping / operations performed by the forward reshaper (104) and the inverse reshaper (118) and non-reshaping operations other than the in-loop forward and backward reshaping mapping / operations.
[0052] The reconstructed image may be identified with a distinct reference image index value (e.g., uniquely among all buffered reference images), stored in the reference image buffer 120, and then used to generate motion information for the next input following the input image (102).
[0053] By way of example, and not by way of limitation, a neural network such as the optical flow net 124 receives an input image 102 and one or more reference images, each of which is a reconstructed image read from a reference image buffer 120. These reference images may each correspond to zero, one or more particular frame indexes representing one or more particular time instances of the play time covered by a series of consecutive input images in the input video signal, and are generated from previously processed input images and stored in the reference image buffer 120 before a reconstructed image of the input image 102 is generated. The optical flow net 124 (e.g., a particular optical flow CNN, etc.) uses the input image 102 and the reference images to begin generating (raw) optical flow information detected in these images.
[0054] A neural network, such as a motion vector (MV) encoder net 126, may perform a MV encoding operation on the input image (102) and the detected optical flow information in the retrieved reference image to generate MV encoded information.
[0055] A second instance of a quantizer 110-2 (eg, linear, non-linear, perceptual, non-perceptual, etc.) is applied to the MV encoded information to generate quantized MV encoded information.
[0056] A neural network, such as the MV decoder net 130, may apply an MV decoding operation to the quantized MV encoded information to generate reconstructed MV information.
[0057] The MV encoder net (126) and the MV decoder net (130) form an MV information coding network that can encode and decode MV information (which may have a different value range or distribution compared to non-MV data) relatively efficiently with relatively small quantization error.
[0058] A neural network, such as the motion compensation net 122, may use the reconstructed MV information to perform a motion compensation operation on image data in one or more reference images (which may be the same as the reference images used to determine the MV information) to generate a motion compensated image that represents a predicted image of a next input image following the input image (102). The motion compensated image generated by the motion compensation net (122) may be forward reshaped by a second instance of the forward reshaper (104-2) into a (next) forward reshaped predicted image of the next input image.
[0059] During the training phase, the operations, or operation parameters used therein, including but not limited to in-loop forward and backward reshaping mapping / operations, may be optimized by a bitrate estimation net 116 (e.g., a bitrate estimation model based on ML, a bitrate estimation model based on artificial neural networks or ANNs, etc.) to minimize one or both of (a) the difference between the reconstructed image and the corresponding input image that produces the reconstructed image, and / or (b) the bitrate used to transmit the encoded (training) video signal encoded with a representation of the corresponding input image (or training image). The input image during the training phase may be a training image, e.g., in a training sequence of consecutive training images from a training dataset. The representation of the input image (or training image) encoded in the (training) encoded video signal may include a quantized residual forward reshape image and motion information derived from a (training) reference image derived from the training image and stored in a reference image buffer (120).
[0060] In some operating scenarios, a bitrate estimation net (116) (e.g., a particular bitrate estimation CNN, etc.) uses the corresponding quantized residual-coded forward reshaped image data generated from the first instance of the quantization operation (110-1) and the corresponding quantized MV information generated from the second instance of the quantization operation (110-2) as some or all of the inputs to estimate (a) the difference between the reconstructed image and the corresponding input image, and / or (b) the bitrate that will be used to transmit a coded (training) video signal coded with a representation of the input image (or training image).
[0061] Further, optionally or alternatively, in order to optimize the reshaping and non-reshaping operations or operation parameters used therein in the learning-based image / video encoder, the bitrate estimation net (116) may use other (training) image data, such as input, output and / or intermediate image data, and / or MV information and non-MV information, generated by the learning-based image / video encoder, in addition to or in place of the corresponding quantized residual-coded forward reshaped image data generated from the first instance of the quantization operation (110-1) and the quantized MV information generated from the second instance of the quantization operation (110-2).
[0062] In some operating scenarios, an image / video encoder (or upstream encoding device) based on learning in the inferential or actual deployment phase (after the training phase) may be implemented to incorporate some or all of the components and data flows of the codec architecture of FIG. 1B, excluding the bitrate estimation net (116) and associated data flows used for training.
[0063] In some operating scenarios, a learning-based image / video decoder (or downstream recipient decoding device) at the inferential or actual deployment stage may be implemented to incorporate some or all of the components and data flows of the codec architecture of FIG. 1B , except for the bitrate estimation net (116) used for training and associated data flows, except for the encoding-specific image processing blocks / instances / components such as (104-1), (106), (108), (110-1), (124), (126), and (110-1), and except for the encoding-specific data flows / adapted for decoding operations.
[0064] More specifically, as shown in Figure 1B, instead of receiving as input an input image (102), the (downstream recipient) learning-based image / video decoder receives quantized residual-coded forward reshaped image data 102-1 from an encoded video signal output by an (upstream) learning-based image / video encoder. The quantized residual-coded forward reshaped image data (102-1) was generated from the input image (102) and encoded into the encoded video signal by the (upstream) learning-based image / video encoder or a first instance (110-1) of a quantizer therein.
[0065] Further, instead of generating the quantized MV coding information using processing blocks (124), (126) and (110) as depicted in Figure 1B, the (downstream recipient) learning-based image / video decoder receives quantized MV coding information 102-2 from the coded video signal output by the (upstream) learning-based image / video encoder. The quantized MV coding information (102-2) was generated from the input image (102) in combination with one or more reference images and coded into the coded video signal by the (upstream) learning-based image / video encoder or a second instance (110-2) of a quantizer therein.
[0066] 1C illustrates a second exemplary codec architecture in which an in-loop image / video reshaper (or reshaping module) operates in conjunction with a learning-based image / video codec. Part or all of the architecture may be implemented in hardware, software, or a combination of hardware and software with computer processors, ASICs, FPGAs, DSPs, ICs, video codec chips, etc.
[0067] A learning-based image / video encoder that includes or is combined with an in-loop (eg, ML, non-ML, etc.) reshaper may implement some or all of the modules or operations identified in FIG. 1B.
[0068] As shown, compared to the first exemplary architecture of Fig. 1B, the second exemplary architecture of Fig. 1C includes a number of modifications or differences. More specifically, instead of performing optical flow analysis by the optical flow net (124) of Fig. 1B using an input image (102) from the input video signal and a reference image from a reference image buffer (120), the optical flow net (124) of Fig. 1C performs optical flow analysis using a forward reshaped image generated by a first instance of the in-loop forward reshaper (104-1) by forward reshaping of the input image (102) and a forward reshaped reference image generated by a second instance of the in-loop forward reshaper (104-2) by forward reshaping of the reference image to generate (raw) optical flow information.
[0069] Also, instead of using the forward reshaped image generated by forward reshaping the input image (102) and the forward reshaped predicted image output by the second instance of the in-loop forward reshaper (104-2) as inputs to the residual generation operation (106) of FIG. 1B, the residual generation operation (106) of FIG. 1C performs optical flow analysis using the forward reshaped image generated by the first instance of the in-loop forward reshaper (104-1) by forward reshaping the input image (102) and the forward reshaped predicted image generated by the motion compensation net (122) to generate a residual forward reshaped image.
[0070] Further, instead of constructing a motion compensated image or predicted image by performing a motion compensation operation on image data in one or more reference images based on reconstructed MV information using the motion compensation net (122) as depicted in FIG. 1B, and then using the second instance of the forward reshaper (104-2) to generate a forward reshaped predicted image from the motion compensated image or predicted image, the second exemplary codec architecture depicted in FIG. 1C first generates one or more forward reshaped reference images using the second instance of the forward reshaper (104-2), and then constructs a forward reshaped motion compensated image or a forward reshaped predicted image by performing a motion compensation operation on image data in the one or more forward reshaped reference images based on reconstructed MV information using the motion compensation net (122).
[0071] Similar to the bitrate estimation net (116) of FIG. 1B, in some operating scenarios, the bitrate estimation net (116) of FIG. 1C (e.g., a particular bitrate estimation CNN, etc.) uses as some or all of the corresponding quantized residual-coded forward reshaped image data generated from a first instance of a quantization operation (110-1) and the corresponding quantized MV information generated from a second instance of a quantization operation (110-2) as inputs to estimate (a) the difference between the reconstructed image and the corresponding input image, and / or (b) the bitrate that will be used to transmit a coded (training) video signal coded with a representation of the input image (or training image).
[0072] Further, optionally or alternatively, in order to optimize the reshaping and non-reshaping operations or operation parameters used therein in the learning-based image / video encoder, the bitrate estimation net (116) of FIG. 1C may use other (training) image data, such as input, output and / or intermediate image data, and / or MV information and non-MV information, generated by the learning-based image / video encoder, in addition to or in place of the quantized residual-coded forward reshaped image data generated from the first instance of the quantization operation (110-1) and the quantized MV information generated from the second instance of the quantization operation (110-2).
[0073] In some operating scenarios, an image / video encoder (or upstream encoding device) based on learning in the inferential or actual deployment phase (after the training phase) may be implemented to incorporate some or all of the components and data flows of the codec architecture of FIG. 1C , with the exception of the bitrate estimation net (116) and associated data flows used for training.
[0074] In some operating scenarios, a learning-based image / video decoder (or downstream recipient decoding device) at the inferential or actual deployment stage may be implemented to incorporate some or all of the components and data flows of the codec architecture of FIG. 1C , except for the bitrate estimation net (116) used for training and associated data flows, except for the encoding-specific image processing blocks / instances / components such as (104-1), (106), (108), (110-1), (124), (126), and (110-1), and except for the encoding-specific data flows / adapted for decoding operations.
[0075] More specifically, as shown in Figure 1C, instead of receiving as input an input image (102), the (downstream recipient) learning-based image / video decoder receives quantized residual-coded forward reshaped image data 102-1 from an encoded video signal output by an (upstream) learning-based image / video encoder. The quantized residual-coded forward reshaped image data (102-1) was generated from the input image (102) and encoded into the encoded video signal by the (upstream) learning-based image / video encoder or a first instance (110-1) of a quantizer therein.
[0076] Further, as shown in Fig. 1C, instead of generating the quantized MV coding information using processing blocks (124), (126) and (110), the (downstream recipient) learning-based image / video decoder receives the quantized MV coding information 102-2 from the coded video signal output by the (upstream) learning-based image / video encoder. The quantized MV coding information (102-2) is generated from a forward reshaped image (generated by forward reshaping the input image (102) at the encoder side) in combination with one or more reference images and coded into the coded video signal by the (upstream) learning-based image / video encoder or a second instance (110-2) of a quantizer therein.
[0077] In the codec architecture depicted in Figure 1B, motion estimation and motion compensation are performed in the original (picture) domain (or the codeword space in which the input image is coded or represented), or with respect to the input image and reference images to which forward reshaping is yet to be applied. In contrast, in the codec architecture depicted in Figure 1C, motion estimation and motion compensation are performed in the forward reshape (picture) domain (or the codeword space in which the forward reshape image is coded or represented).
[0078] [Global reshaping and image adaptive reshaping] 2A illustrates two example workflows (e.g., process flows, approaches, etc.) by which a reshaping operation may be performed. The first workflow or approach illustrated in FIG. 2A(a) may be used to perform a global reshaping. The second workflow or approach illustrated in FIG. 2A(b) may be used to perform an image / picture adaptive reshaping operation.
[0079] In the first workflow / approach of FIG. 2A(a), operational parameters such as weights and biases (e.g., in FIG. 1A or FIG. 1B, etc.) in the neural network implementing the (deep) learning-based codec framework / architecture may be defined first. These operational parameters may be optimized, learned, and used in non-reshaping operations (e.g., motion estimation, motion compensation, non-linear encoder-decoder quantization network, etc.) in addition to reshaping operations (e.g., performed by forward and inverse reshapers, etc.). For example, these operational parameters may include a subset of operational parameters (which may be referred to as reshaper or reshaping parameters) that explicitly or implicitly specify the reshaping functions / mappings applied or used in the forward and inverse reshapers or reshaping operations. The remaining operational parameters (which may be referred to as image model parameters or non-reshaping operations) in the learning-based codec framework / architecture may include, but are not necessarily limited to, non-reshaping ML model parameters, operational parameters used to specify the ANN (e.g., CNN, etc.), etc.
[0080] In the model training stage, the non-reshaping and reshaping model parameters may be jointly trained using the training images in the training dataset to obtain an overall trained model for both the reshaping and non-reshaping operations.
[0081] In the model inference or deployment stage (labeled "inference" in FIG. 2A), non-trained images may be encoded or decoded at run-time using an overall trained model that includes all trained operation parameters for both reshaping and non-reshaping operations. In some operation scenarios, some or all of the trained models (e.g., explicitly or implicitly specifying (1) the reshaping mappings / functions applied by the reshaper or reshaping operations, and (2) the operation parameters used in non-reshaping operations) used by a codec (e.g., encoder, decoder, transcoder, etc.) implementing a learning-based codec framework / architecture may be pre-stored in the codec before non-training images, such as input images or forward reshape images, are received by the codec for encoding or decoding at run-time. The trained models with trained operation parameters for both reshaping and non-reshaping operations may be applied to encode or decode these non-trained images. In some operation scenarios, the decoder already has the trained operation parameters pre-stored. Thus, additional video signal coding syntax parameters that specify individual reshaping mappings / functions for each image do not need to be encoded with the individual images and transmitted within the coded video signal, as these operational parameters are not required.
[0082] In a second workflow / approach of Figure 2A(b), operational parameters such as weights and biases in neural networks used to perform non-reshaping operations (e.g., motion estimation, motion compensation, non-linear encoder-decoder quantization networks, etc.) in a (deep) learning-based codec framework / architecture (e.g., in Figure 1A or Figure 1B, etc.) may be defined first. These operational parameters (which may be referred to as image model or non-reshaping parameters) may include, but are not necessarily limited to, non-reshaping ML model parameters, operational parameters used to specify an ANN (e.g., CNN, etc.), etc.
[0083] In a model training stage, the image model parameters may be trained using training images in the training dataset to obtain a trained model for the non-reshaping operation.
[0084] In the model inference or deployment stage, the non-training images may be encoded or decoded at run-time using a trained model including trained motion parameters for the non-reshaping operations. In some operation scenarios, some or all of the trained models used by a codec (e.g., encoder, decoder, transcoder, etc.) implementing a non-reshaping operation in a learning-based codec framework / architecture may be pre-stored in the codec before the non-training images are received by the codec for encoding or decoding at run-time. The trained model with the trained motion parameters for the non-reshaping operations may be applied to encode or decode the non-training images. In such operation scenarios, additional video signal coding syntax parameters for the motion parameters used in the non-reshaping operations do not need to be transmitted to the decoder at run-time in the encoded video signal encoded by the compressed image corresponding to the non-training images, since the decoder already pre-stores the trained motion parameters.
[0085] The image or picture adaptive reshaper or reshaping operation may be implemented or supported in a workflow / approach including but not necessarily limited to the second workflow / approach. For example, as shown in FIG. 2A(b), the trained model for the non-reshaping operation may not include trained operation or reshaping parameters for the reshaper or reshaping operation. At the inference or deployment stage, at the encoder side, operation parameters (or reshaping parameters) specifying an image-specific reshaping mapping / function for the reshaper or reshaping operation are received and encoded into the coded video signal (e.g., coded bitstream, etc.). These reshaping parameters may be included in the coded video signal and signaled to a downstream recipient decoder. The reshaping parameters may be used by the decoder to derive an image-specific reshaping mapping / function used in the reshaper or reshaping operation.
[0086] By comparison, in the first workflow / approach, a subset of motion parameters (or reshaper parameters) for a reshaper or reshaping operation is trained or optimized using all training images from the training set along with motion parameters for non-reshaping operations in the overall model. Thus, if the non-training images have different characteristics than the training images, the reshaper or reshaping operation may not be optimal in achieving coding efficiency compared to images with the same characteristics as the training images.
[0087] On the other hand, in the second workflow / approach, the reshaper parameters may be adaptively estimated (e.g., dynamically, based on the actual codework or pixel values or their distributions in the pre-reshaped images, etc.) based on the respective characteristics of the non-training images. Thus, even if the training images in the training dataset have different characteristics than the non-training images, a reshaper or reshaping operation may be implemented or applied to modify or reshape the non-training images into reshaped images that fit the trained model better than the non-training images. As a result, better coding efficiency may be achieved or improved compared to the first workflow / approach, where the entire model is pre-trained with training images with different characteristics than the non-training images.
[0088] Reshaping operations may be used to achieve coding efficiencies, such as minimizing the bit rate used to transport or encode the image, improving the reversibility of the mapping between the input image and the reshaped image and between the reshaped image and the reconstructed image, reducing quantization / coding errors, and allowing other image processing operations to further adapt the forward reshaped image or the top image to support various image representations.
[0089] In some operating scenarios, the reshaping operations described herein may be used to perform a conversion to SDR, such as HDRak, or vice versa. However, the HDR or SDR reshaped or reconstructed image may or may not be optimized for viewing on one or several image displays without further display adaptation. In these operating scenarios, the reshaping operations may be implemented to perform together with other image processing operations, including but not limited to those related to target display adaptation. For example, display management (DM) operations may be performed by the recipient device as described herein to adapt the reconstructed image to a display image rendered on the image display. The DM operations may be based on DM metadata included as part of the image metadata carried in the encoded video signal. This is for coding efficiency.
[0090] The trade-off is that additional signaling overhead and encoder complexity may occur in the second workflow / approach that implements an image or picture adaptive reshaper or reshaping operation.
[0091] In some operating scenarios, a forward reshaper performing a forward reshaping operation and an inverse / backward reshaper performing an inverse / backward reshaping operation (e.g., as depicted in FIG. 1A, FIG. 1B, or FIG. 1C) form a reshaper pair. The forward reshaper performs a forward reshaping operation to map codewords or pixel values from an original sample domain to a mapped sample domain, while the inverse / backward reshaper performs an inverse / backward reshaping operation to map mapped codewords or mapped pixel values back from the mapped sample domain to the original sample domain.
[0092] The operational parameters of the reshaping operation (or reshaper parameters) are used differently during the inference or deployment phase depending on the implemented codec architecture.
[0093] In the operating scenario depicted in Figure 1A, a forward reshaper (e.g., only, etc.) is used on the encoder side, while an inverse / backward reshaper (e.g., only, etc.) is used on the decoder side. The operating parameters of the forward reshaping operation are used on the encoder side for the forward reshaper to drive or perform the forward reshaping operation. Similarly, the operating parameters of the inverse / backward reshaping operation are used on the decoder side for the inverse / backward reshaper to drive or perform the inverse / backward reshaping operation.
[0094] In the operational scenarios depicted in Figure 1B or 1C, both the forward reshaper and the inverse / backward reshaper are used in the inference or deployment phase at the encoder or decoder side, respectively. Operational parameters of both the forward reshaping operation and the inverse / backward reshaping operation are used at the encoder or decoder side, respectively, for the forward reshaper and the inverse / backward reshaper to drive or perform the forward reshaping operation and the inverse / backward reshaping operation.
[0095] In the operation scenario depicted in Fig. 2A(a), the operation parameters used in the global reshaping operation may be defined and trained together with the operation parameters of the non-reshaping operation (non-reshaping parameters) in the global model. These operation parameters may be pre-stored, pre-set, or fixed at the decoder at run-time.
[0096] During the training phase, both reshaping and non-reshaping parameters may be optimized or trained using some or all of the same training images in the same training dataset. The reshaping parameters may include forward reshaping parameters used in forward reshaping operations and inverse / backward reshaping parameters used in inverse / backward reshaping operations.
[0097] At the inference or deployment stage (in the case of real-world use applications), the overall model can be divided into an encoder model and a decoder model. Accordingly, the reshaping parameters may be divided or partitioned into forward reshaping parameters and inverse / backward reshaping parameters. When the encoder model only needs to perform forward reshaping operations, only the forward reshaping parameters need to be used or stored in the encoder model. When the decoder model only needs to perform inverse / backward reshaping operations, only the inverse / backward reshaping parameters need to be used or stored in the decoder model.
[0098] Furthermore, in cases where a decoder model including a decoder that uses reshaping parameters (e.g., inverse / backward reshaping parameters, etc.) may be stored or pre-stored at the decoder to support a global reshaping operation before an encoded video signal encoded with a forward reshaped image is received, additional reshaping parameters (other than those stored or pre-stored at the decoder) may not be transmitted or included in the encoded video signal.
[0099] In contrast, for codec architectures used to perform image / picture adaptive reshaping operations, the reshaping parameters may need to be transmitted or included in the encoded video signal, since these reshaping parameters are adaptively determined for each individual image.
[0100] As shown in FIG. 1B or 1C, the non-reshaping operations in the coding pipeline of the learning-based image / video encoder or decoder may be implemented or performed using loop filters or in-loop filters, and some or all of the filters may be ML models such as neural networks. For example, some neural networks, such as the optical flow net (124), the MV encoder net (126), the MV decoder net (130), the motion compensation net (122), etc. in the coding pipeline may be trained to generate or predict a motion compensated image. Some neural networks, such as the residual encoder net (108), the residual decoder net (112), etc. in the coding pipeline may be trained to generate or predict a residual image. The neural network that generates or predicts the motion compensated image does not function as an inverse or reversible operation to the neural network that generates or predicts the residual image, but complements the neural network that generates or predicts the residual image. In other words, the predicted motion compensated image complements the predicted residual image rather than acting as an inversion to the predicted residual image in a common image / picture domain (e.g., a reshaped image / picture domain, a non-reshaped image / picture domain, etc.).
[0101] In contrast to non-reshaping operations, a forward reshaping operation in a coding pipeline improves coding efficiency by converting / reshaping a previously reshaped image into a forward reshaped image in the reshape image / picture domain. A backward reshaping operation in a coding pipeline operates with an encoded video signal whose coding efficiency has been improved or enhanced by the reshaping operation, and generates a reconstructed image in the reconstructed image / picture domain by backward reshaping the forward reshaped image. In some operating scenarios, the reconstructed image / picture domain is the same as the original image / picture domain. Thus, the backward reshaping function functions to be inverse or reversible (e.g., logically, mathematically, etc.) to the forward reshaping operation, forming a reshaper pair with the forward reshaping operation.
[0102] As stated, image / video reshaping in learning-based image / video coding may be implemented or performed by explicit mapping (or parametric mapping) or implicit mapping (non-parametric mapping). A reshaping mapping / function is explicit if some or all of the motion parameters that specify the reshaping mapping / function are generated, estimated, and / or signaled in the encoded video signal from an upstream encoding device to a downstream recipient decoding device. A reshaping mapping / function is implicit if some or all of the motion parameters that specify the reshaping mapping / function are implied in an ML model, such as a neural network, which may or may not be signaled in the encoded video signal.
[0103] In operational scenarios where reshaping operations are implemented or performed in neural networks, these neural networks may use a relatively small total number of layers, relatively simple neural network building blocks, and relatively few neural network parameters (e.g., model parameters, neural network operating parameters, etc.) compared to neural networks used to implement or perform non-reshaping operations. For example, in some operational scenarios, a neural network for non-reshaping operations may use neural network building blocks such as resBlock / resNet, while a neural network for reshaping operations may not use such relatively complex neural network building blocks, and may not have resBlock / resNet building blocks. A neural network for reshaping operations may not need to perform objective image analysis on motion depicted in an image, due to a relatively large total number of layers, relatively complex neural network filters, etc. As a result, a neural network for reshaping operations may achieve signal transformation or image reshaping using shallower and simpler structures and building blocks than a neural network implementing loop or in-loop filtering or other non-reshaping operations in a coding pipeline.
[0104] An example reshaping operation performed using a neural network is described in U.S. Patent Application Publication No. 2021 / 0150812, filed May 20, 2021 by Guan-Ming Su et al., which is incorporated by reference into this application as if fully set forth herein.
[0105] [Example Image Adaptive Reshaping Method] In the case of an image / picture adaptive reshaper or reshaping operation, various methods may be applied under the techniques described herein at the encoder side to generate or estimate operation parameters (or reshaping parameters) that specify an image-specific reshaping mapping / function for the reshaping operation.
[0106] In some operational scenarios, in the exemplary process flow depicted in Figure 2B, block 202 includes loading and using training images in the training dataset to train or optimize a trained model (or its model parameters) without relying on learned reshaping parameters during the training or learning phase into a pre-trained model for encoding operations. During the training or learning phase, the pre-trained model or trained model may be used to perform only non-reshaping operations, or alternatively, to perform reshaping operations using an initial, default, or static reshaping mapping.
[0107] Block 204 includes copying the learned model parameters of the pre-trained model to the trained model specified by the trained model reshaping parameters. The copied learned model parameters from the pre-trained model may be frozen for further training.
[0108] Block 206 includes loading and using a training image in the training dataset (which may or may not be the same as the training image used in block 202, or may be exactly the image encoded in block 208) to train or optimize only the trained reshaping parameters in the trained model to the trained reshaping parameters in the trained model, without further training or optimizing the copied learned model parameters from the pre-trained model and the now frozen learned model parameters.
[0109] Block 208 involves encoding the (e.g., untrained, input) image using both the copied learned pre-trained model parameters and the learned reshaping parameters from the trained model during the testing, inference, or deployment phase.
[0110] As shown in the process flow of Figure 2A, similar to model fine-tuning, a trained model that includes reshaping operations does not need to be trained from scratch. Rather, the trained model can utilize trained model parameters for non-reshaping operations in a pre-trained model.
[0111] Further, optionally or alternatively, in some operating scenarios, the reshaping parameters may be learned, tuned, calculated or converged relatively efficiently (e.g., using relatively few iterations or data points, etc.) using a gradient descent method such as an iterative stochastic gradient method. For example, neural network operating parameters such as weights / biases in a neural network used for a reshaping operation may be iteratively and relatively frequently updated by backpropagation using an iterative stochastic gradient method that minimizes an error or cost as measured by a rate-distortion error / cost function.
[0112] The trained model, including the learned reshaping parameters and the learned non-reshaping parameters, can be used to generate (e.g., run-time, dynamic, image-adaptive, etc.) operational parameters that specify (e.g., explicitly, or in whole or in part, etc.) reshaping functions / mappings that are specifically optimized for each input image depending on the actual codewords or their distribution in each input image. These reshaping functions / mappings can be used to perform reshaping operations on the input images.
[0113] Further, optionally or alternatively, some or all of these run-time generated operational parameters that define (e.g., explicitly, etc.) the reshaping function / mapping or equivalent / approximation curve or look-up table may be included as reshaping metadata as part of the overall image metadata carried in the encoded video signal encoded with the reshaped image, such that a receiving device can perform the reshaping operation as necessary in generating a reconstructed image.
[0114] In some operational scenarios, an exhaustive search may be performed or executed to select (e.g., best, etc.) a particular (e.g., forward, inverse, or reverse, etc.) reshaping function / mapping from among multiple candidate reshaping functions / mappings for reshaping an image (e.g., input image, forward reshaped image, etc.). Each of the candidate reshaping functions / mappings may be a curve such as a multi-part polynomial (e.g., multiple piecewise linear or first-order straight line segments, multiple piecewise quadratic polynomial segments, etc.) used by a luma mapping (LM) module to perform image processing operations compliant with an applicable video coding standard, such as the Versatile Video Coding (VVC) standard. The operational parameters used to specify or define each of some or all of these candidate reshaping functions / mappings / curves may be pre-formed, pre-set, or dynamically determined.
[0115] Candidate reshaping functions / mappings may be identified, labeled, or otherwise represented by a particular parameter set, combination, or pair of two parameters, denoted as "ADP" and "CW," respectively. The ADP parameter may be used to specify or represent the slice type and bitrate (adaptive) options / settings (e.g., high, etc.). The parameter CW may be used to specify or represent the total number of codewords (e.g., valid codewords, unreserved codewords, unclipped codewords, etc.) assigned to all parts in the multi-part polynomial reshaping function to be covered.
[0116] By way of example and not limitation, in the case of image slices for all-intra (AI) coding, the parameter ADP can be set to 0 or 1, with ADP equal to zero (0) indicating that the corresponding (image adaptive) reshaping function / mapping / curve is applied to all quantization parameters (QPs) and ADP equal to one (1) indicating that the reshaping function / mapping / curve is applied to a first QP value range (e.g., QP>22, a specified normal QP range, etc.) and a static reshaping function / mapping / curve is applied to a second QP range (e.g., a specified low QP range, QP<=22, etc.). The static reshaping function / mapping / curve may be selected based on the image or its codeword / distribution, but the operational parameters specifying the static reshaping function / mapping / curve may be fixed, predetermined, pre-set, or non-image adaptive.
[0117] The parameter CW, which represents the total number of codewords of image adaptive reshaping functions / mappings / curves to be covered, may depend on the bit depth of the codeword space that contains the available codewords (for the luma channel / component of the color space, for the chroma channel / component of the color space, for R, G, or B in the RGB color space, etc.) for encoding or representing the reshaped image. Examples of the value range of the parameter CW include, but are not limited to, the relative value range of [8,511] for each part of a multi-part polynomial, some or all possible 8-bit values, some or all possible 10-bit values (e.g., 890, 980, etc.), etc. In order to reduce or limit the total number of candidate reshaping functions / mappings / curves in the exhaustive search, in some operating scenarios, the value of the parameter CW may be selected from one of a number of values, such as {1022, 980, 952, 924, 896, 868, 840, 812}.
[0118] Therefore, in the current example of AI coding, for i = 0, 1, . . . , 15, {ADP i ,CP i There are a total of 2 (number of ADPs) x 8 (number of CWs) = 16 candidate reshaping functions / mappings / curves, which can each be represented as}.
[0119] A rate-distortion optimization (RDO) method may be applied to the image to identify / determine a particular reshaping function / mapping / curve by calculating the error / cost associated with reshaping the image with some or all of these candidate reshaping functions / mappings / curves and selecting the candidate reshaping function / mapping / curve (e.g., optimal, best, has the smallest error / cost, etc.) from among some or all of these 16 variations / candidates. An example RDO cost function may be defined in terms of a Lagrangian rate-distortion function as follows: J = D + λR (1)
[0120] The RDO error / cost may be estimated or evaluated in whole or in part using any, some, or all distortion models, including but not limited to sum of squared differences (SSD), mean squared error (MSE), peak signal-to-noise ratio (PSNR), etc. Additionally, optionally or alternatively, the RDO error / cost may be estimated or evaluated in whole or in part using any, some, or all perceptual-based models, including but not limited to structural similarity index (SSIM), feature similarity index (FSIM), visual information fidelity (VIF), additive distortion metric (ADM), contrast sensitivity function (CSF), etc. In some operating scenarios, the average or weighted average distortion / error / cost may be used to select a particular reshaping mapping of luma or chroma components / channels.
[0121] A particular reshaping function / mapping / curve for each individual input image, selected based on the individual input image, can be used to perform a reshaping operation on the input image.
[0122] Additionally, optionally or alternatively, operational parameters defining (e.g., explicitly, etc.) a particular reshaping function / mapping / curve or equivalent or approximation lookup table may be included as reshaping metadata as part of the overall image metadata carried in the encoded video signal encoded with the reshaped image, such that a receiving device can perform the reshaping operation as necessary in generating a reconstructed image.
[0123] In some operating scenarios, the ML-based approach may be implemented or performed to classify an image into a particular image category among a plurality of image categories. The plurality of image categories corresponds to a plurality of sets of forward and / or inverse / reverse reshaping functions / mappings / curves. Each image category among the plurality of categories corresponds to a respective set of reshaping functions / mappings / curves among the plurality of sets of forward and / or inverse / reverse reshaping. Each set of reshaping functions / mappings / curves may be specifically specified, specifically optimized, or customized for a reshaped image (e.g., input image, forward reshaped image, etc.) within that (corresponding) image category.
[0124] Based on this ML-based approach, an ML model, such as a neural network, may be trained with a training dataset that includes training images and labels that represent a ground truth for each of the training images. The ground truth for a training image identifies a particular image category to which the training image belongs among multiple image categories. As a result, the ground truth can be used to identify a particular set of reshaping functions / mappings / curves or operating parameters that define or specify (e.g., explicitly) a particular set of reshaping functions / mappings / curves.
[0125] During the training phase, the ML model can be used to classify or predict categories for some or all of the training images in the training dataset. The predicted categories may be compared to ground truth categories indicated or identified by the labels of the training images. Errors in category predictions may be measured, calculated (e.g., as L1 or L2 distance values, etc.), and / or backpropagated to update or optimize operating parameters used in the ML model, such as weights / biases in a neural network. The ML model may be iteratively or repeatedly optimized, for example, using gradient descent or stochastic gradient descent.
[0126] Further, optionally or alternatively, during a validation or testing phase, the trained ML model and the trained / optimized operational parameters used therein may be validated and / or further optimized / fine-tuned using training / validation images in a training / validation dataset that includes the training / validation images and labels representing the ground truth identifying the corresponding image category of each of the training / validation images. Prediction accuracy or error of the category prediction may be measured, calculated (e.g., as an L1 or L2 distance value, etc.), and / or used to further optimize or fine-tune the operational parameters used in the ML model.
[0127] At the inference or actual deployment stage, the trained ML can be used to classify images into a particular image category. A particular set of forward and / or backward / inverse reshaping functions / mappings / curves can be selected or specified for the image.
[0128] By way of example and not limitation, in the case of all-intra (AI) coding with a specified QP value range, such as the normal QP range, then, for QP=22, 27, 32, 37, 16 possible or sets of reshaping functions / mappings / curves labeled with indices 0-16 may correspond to 16 categories into which an image may be classified, respectively. The training and / or validation data sets may include training / validation images that have been classified into these categories based on the labels specified for the training / validation images. As a result, the reshaping parameter selection / determination (or identifying the corresponding set of forward and / or backward / inverse reshaping functions / mappings / curves for an image) problem may be treated as an image / video classification problem.
[0129] Examples of training datasets described herein may include, but are not necessarily limited to, one or more of an RGB training image dataset, an SDR training image dataset, an HRD training image dataset, an HDR P3 PQ image dataset, an SCC image dataset, DIV2K, Flicker2K (e.g., images having 2K spatial resolution, etc.), a subset of the ImageNet database (e.g., images having a variety of different resolutions, etc.), combinations of the above, and the like.
[0130] Neural networks used as ML models described herein for image reshaping parameter prediction training / validation / testing may include one or more of CNN and / or residual learning neural networks such as ResNet. For training / validation / testing / prediction / inference, inputs to the ML model may include transformed image patches obtained from original images by image transformation operations such as resizing, cropping, flipping, rotating, etc. Additionally, optionally or alternatively, inputs to the ML model may include extracted features (e.g., histograms, bin variances, standard deviations, slopes, etc.) from images available in one or more training datasets. Outputs generated by the ML model may include predicted target image category (or class) labels, which may be compared, measured, or validated with ground truth during training and validation / testing phases. The batch size (e.g., of input image patches), the batch size (e.g., of each iteration or epoch of weight / bias update or optimization), the learning rate, the number of epochs, etc. can be adjusted for different training image databases or data sets.
[0131] A particular reshaping function / mapping / curve for each input image, selected based on the individual input image's classified image category, can be used to perform a reshaping operation on the input image.
[0132] Additionally, optionally or alternatively, operational parameters defining (e.g., explicitly, etc.) a particular reshaping function / mapping / curve or equivalent or approximation lookup table may be included as reshaping metadata as part of the overall image metadata carried in the encoded video signal encoded with the reshaped image, such that a receiving device can perform the reshaping operation as necessary in generating the reconstructed image.
[0133] [Reshaping Function / Mapping Expression and Coding Syntax] The reshaping functions / mappings described herein may be expressed in a variety of forms or reshaping models, including, but not limited to, using piecewise linear segments, piecewise polynomial segments, B-spline functions or tensor products thereof as basis functions, one or more power functions, one or more look-up tables (LTUs), etc.
[0134] In operating scenarios where the input image has more than one color component / channel to be reshaped, each reshaping function may be designed, selected, or generated individually for each color component / channel, whether or not cross-channel prediction is performed in each reshaping function. For example, a reshaping function / mapping may be applied to codewords or pixel values (e.g., components, etc.) in one color component / channel or multiple color components / channels.
[0135] The domain in which the reshaping function / mapping operates, e.g. the original or input image / picture domain in which the input image is represented, or the reshaped image / picture domain in which the reshaped image obtained by reshaping the input image is represented, may be one of the RGB domain, the YCbCr domain, the ICtCp domain, etc.
[0136] The forward and inverse reshaping functions / mappings may have different representations and different sets of operating parameters. In some operating scenarios, in the case of global reshaping depicted in FIG. 2A(a), both the forward and inverse reshaping parameters are included in the global reshaping model (e.g., a polynomial-based global reshaping model, a LUT-based global reshaping model, etc.).
[0137] In some operating scenarios, in the case of image / picture adaptive reshaping, such as that implemented by the codec architecture of FIG. 1B or FIG. 1C incorporating an in-loop reshaping operation, both forward and inverse reshaping parameters are transmitted / signaled within the encoded video signal or corresponding coded bitstream.
[0138] In some operating scenarios, such as in-loop and out-loop reshaping for intra-coded images (or image slices) only, or out-loop reshaping for both intra-coded images (or image slices) and inter-coded images (or image slices), only the inverse reshaping function / mapping or the operating parameters used therefor are included and transmitted / signaled in the encoded video signal or corresponding coded bitstream.
[0139] In some operating scenarios, such as luma mapping chroma scaling (LMCS) according to an applicable video coding standard, such as the VVC standard, only the forward reshaping function / mapping or the operating parameters used therefor are transmitted / signaled in the encoded video signal or corresponding coded bitstream. The inverse / backward reshaping function / mapping or the operating parameters used therefor can be derived from the signaled forward reshaping function / mapping or the signaled operating parameters for the forward reshaping function / mapping.
[0140] Training an ML model, such as a NN, may utilize a gradient descent model to calculate or update ML model parameters. By definition, gradient descent is a first-order iterative optimization algorithm used to search for a local minimum of a differentiable function, such as a reshaping function. Thus, the reshaping function needs to be differentiable (e.g., first order) to avoid discontinuities, singularities, or instabilities in the search algorithm.
[0141] This differentiability condition can be easily satisfied by reshaping models based on a set of spline functions, a single polynomial of first order or higher (degree >= 1), or multiple partial polynomials of second order or higher (degree >= 2) as basis functions.
[0142] For reshaping functions constructed based on reshaping models such as LUTs (with discretized values) or piecewise linear segments, violation of first-order differentiability by the reshaping function can cause problems such as failure to identify a minimum, failure to converge, slow convergence, numerical instability, etc. during training of the ML-based reshaping model or estimation of reshaping parameters at the encoder side.
[0143] One of many ways to solve or avoid these problems under the techniques described in this specification is to first estimate or predict (e.g., during a training phase, etc.) the reshaping parameters of a reshaping function / mapping (such as in relation to image reshaping) using any ML-based reshaping model, such as one based on differentiable functions such as B-spline functions, single polynomials, etc., and then (e.g., during an inference or deployment phase, etc.) to use piecewise linear segments or other configurations such as LUTs (which may or may not support first-order differentiability) to approximate the reshaping function / mapping specified or defined by the estimated reshaping parameters, or to estimate the operating parameters of configurations used to approximate it.
[0144] The reshaping parameters may be conveyed in the encoded video signal from an upstream device, such as a video encoder, to a downstream receiving device, such as a video decoder, using coding syntax or syntax elements according to an applicable image / video coding standard, such as the VVC standard. In some operating scenarios, specific reshaping parameters are signaled for an image adaptive reshaping operation (or reshaper). In some operating scenarios, a reshaping model identification (denoted as "reshaper_model_idc") as part of a relatively high-level reshaping parameter is signaled for a global reshaping operation (or reshaper), since the detailed reshaping parameters specifying the global reshaping mapping / function are already included in a pre-configured reshaping model at the decoder side.
[0145] Table 1 below shows an example of a syntax including syntax elements for encoding high-level reshaping parameters in a high-level syntax (HLS) for encoding a video signal according to an applicable image / video coding standard. The HLS can be a VPS, SPS, PPS, PH, SH, and SEI message in a video coding standard, etc. [Table 1]
[0146] In Table 1, a syntax element denoted as "reshaper_enabled_flag" equal to one (1) specifies that a reshaping operation (or reshaper) is used in a video (e.g., encoding, decoding, transcoding, etc.) codec. A syntax element "reshaper_enabled_flag" equal to zero (0) specifies that a reshaping operation (or reshaper) is not used in a video (e.g., encoding, decoding, transcoding, etc.) codec.
[0147] A syntax element denoted "reshaper_inloop_flag" equal to one (1) specifies that the reshaping operation (or reshaper) is used as part of (or in-loop) a coding operation in a coding loop. A syntax element "reshaper_inloop_flag" equal to zero (0) specifies that the reshaping operation (or reshaper) is used as a pre- or post-processing operation (or out-of-loop) to a coding operation in a coding loop.
[0148] In some operating scenarios, the syntax element "reshaper_inloop_flag" only needs to be signaled or transmitted if inter (frame) coding is applied. In some operating scenarios where frames are intra-coded, the syntax element "reshaper_inloop_flag" can be used to signal where the inverse / backward reshaping operation (or reshaper) is applied. If the syntax element "reshaper_inloop_flag" is equal to one (1), the inverse reshaper is applied before in-loop filtering. On the other hand, if the syntax element "reshaper_inloop_flag" is equal to zero (0), the inverse reshaper is applied after in-loop filtering.
[0149] A syntax element denoted as "reshaper_adaptive_model_flag" equal to one (1) specifies that picture / image adaptive reshaping is used in the codec. A syntax element "reshaper_adaptive_model_flag" equal to zero (0) specifies that the corresponding global reshaping mapping / function is already stored or fixed in the codec.
[0150] The syntax element denoted "reshaper_model_idc[cmp]" can be used to indicate the reshaping model (e.g., linear polynomial, non-linear polynomial, LUT, etc.) to be used in the reshaping operation (or reshaper) on the codeword in the color component or channel (of the color space) identified by the value denoted "cmp". In some operating scenarios, this syntax element can be used when the reshaping operation is performed based on multiple mapping functions / mappings to generate reshaped codewords in multiple color components / channels. Based on this syntax element, a downstream receiving device or video decoder can determine which reshaping function / mapping is applied to which input or previously reshaped codeword in one or more input color components / channels to generate a reshaped codeword in the output or reshaped color component / channel.
[0151] In global reshaping, some or all of the reshaping parameters, such as those conveyed in the syntax or syntax elements described above to specify or define the global reshaping mapping / function, may already be pre-stored or fixed in a downstream recipient device of the encoded video signal, and as a result, these reshaping parameters do not need to be conveyed, included or signaled in the encoded video signal.
[0152] Table 2 below illustrates example reshaping model identification values (denoted as "model_idc" or "reshaper_model_idc[cmp]"). In some operating scenarios where both forward reshaping and reverse / reverse reshaping are performed, the same reshaping model identification value may be used to identify the same reshaping model in which the forward and reverse / reverse reshaping mappings / functions are expressed. In some operating scenarios where both forward reshaping and reverse / reverse reshaping are performed, different reshaping model identification values may be used to identify different reshaping models in which the forward reshaping mappings / functions and the reverse / reverse reshaping mappings / functions are expressed, respectively. For example, a syntax element "reshaper_model_idc" having multiple data field values may be used to indicate a reshaping function / mapping pair formed by a forward and a reverse / reverse reshaping mappings / functions. Further, optionally or alternatively, the syntax element "reshaper_model_idc" may be replaced with or split into syntax elements "forward_reshaper_model_idc" and "inverse_reshaper_model_idc" used to indicate forward and inverse / reverse reshaping mappings / functions, respectively. [Table 2]
[0153] In some operating scenarios, it is not necessary to include or signal both forward and reverse / backward reshaping parameters. In an example, only reverse / backward reshaping is performed at the decoder side. Thus, the forward reshaping parameters may not need to be included or signaled in the coded video signal in this example. In other examples, the forward reshaping parameters are included or signaled in the coded video signal, as in VVC. Thus, downstream recipient devices that need to perform reverse / backward reshaping can derive the reverse reshaping parameters from the signaled forward reshaping parameters.
[0154] In a first example, in addition to the high-level reshaping parameters, some or all of the remaining reshaping parameters may be conveyed or encapsulated in a visual dynamic range (VDR) coding syntax such as that depicted as "reshaper_mapping_data()" in Table 3 below, in which the parameters "num_y_partitions_minus1" and "num_x_partitions_minus1" are each set to zero (0), as described in U.S. Patent No. 10,136,162, which is incorporated herein by reference in its entirety. [Table 3-1] [Table 3-2] [Table 3-3]
[0155] In a second example, in addition to the high-level reshaping parameters, some or all of the remaining reshaping parameters may be conveyed in an applicable coding syntax, such as that represented as "reshaper_mapping_data()" in Table 4 below, as described in the Luma Mapping Chroma Scaling (LMCS) syntax in Versatile Video Coding, Recommendation ITU-T H.266 (August 2020), which is incorporated herein by reference in its entirety. [Table 4]
[0156] Further, optionally or alternatively, in some operating scenarios, channel-specific reshaping parameters for some or all (e.g., three, etc.) color components / channels may be conveyed or included in the applicable coding syntax, such as that represented as "inv_reshaper_mapping_data()" in Table 5 below, as part of the LMCS syntax in VVC coding. [Table 5]
[0157] In some operating scenarios, the reshaping operation (or reshaper) may be implemented using a B-spline function, as described in U.S. Provisional Patent Application No. 62 / 908,770, entitled "TENSOR-PRODUCT B-SPLINE PREDICTOR," filed on October 1, 2019 by Guan-Ming Su et al., the entire contents of which are incorporated herein by reference as if fully set forth herein.
[0158] A B-spline is a set of knots t that satisfy the following constraints: i t nHere is a spline (or spline function) with a sequence of:
number
[0159] Knot value t i , ,t n Given a sequence of , a spline or B-spline can be uniquely identified.
[0160] B-spline functions have certain properties that make them well suited for training / optimizing models (e.g. ML, non-ML, reshaping, etc.). The derivative of a B-spline of degree k is simply a function of the B-spline of degree k-1. B-splines can be continuous across knots up to certain degrees. For example, B-splines can provide the first derivatives used in many backpropagation techniques for training / optimizing ML models, neural networks, etc., as long as one distinct knot is provided.
[0161] B-splines are non-zero only on relatively compact supports, combined with their sum property, means that linear combinations of B-splines (e.g. ML, non-ML, reshaping, etc.) are unlikely to cause numerical instabilities in model training / optimization, since their maximum can be entirely defined or controlled by the weight values used to generate the linear combination.
[0162] The expressive power of B-splines (functions) is relatively large: for example, a (e.g., linear, tensor product, etc.) combination of B-splines of degree n can be used to form or provide basis functions for other functions, including but not limited to all other splines of the same degree n.
[0163] In a third example, in addition to the high-level reshaping parameters, some or all of the remaining reshaping parameters may be conveyed in the applicable coding syntax for cross-channel reshaping operations, as described in U.S. Provisional Patent Application No. 62 / 908,770, such as those shown in Table 6 below. [Table 6]
[0164] Further, optionally or alternatively, in addition to the high-level reshaping parameters, some or all of the remaining reshaping parameters may be conveyed in the applicable coding syntax for single channel reshaping operations, such as those shown in Table 7 below. [Table 7]
[0165] 3A illustrates an example of a process flow for encoding reshaping parameters for a reshaping operation (denoted as a "reshaper") into an encoded video signal using coding syntax in accordance with an applicable video coding standard. These reshaping parameters may enable or cause a recipient device of the encoded video signal to perform a reshaping operation at the decoder side on images contained in and decoded from the encoded video signal.
[0166] Block 302 involves starting or initializing an encoding operation to encode operation parameters for a reshaping operation in one or more data units carried by the encoded video signal or in designated data fields therein (e.g., header data field, non-header data field, image sequence level, image / picture level, slice label, etc.).
[0167] Block 304 involves determining whether reshaping operations are enabled.
[0168] Block 306 includes, in response to determining that the reshaping operation is disabled, a reshaping parameter "reshaper_enabled_flag" in the operational parameters for the reshaping operation is set to false or zero (0). Process flow proceeds to block 326 to end or complete the encoding operation of the reshaping parameters.
[0169] Block 308 includes, in response to determining that the reshaping operation is enabled, a reshaping parameter "reshaper_enabled_flag" among the operational parameters for the reshaping operation is set to true or one (1). Block 310 includes determining whether the reshaping operation is to be implemented or performed as an in-loop operation.
[0170] Block 312 includes, in response to determining that the reshaping operation is an in-loop operation, a reshaping parameter "reshaper_inloop_flag" among the operation parameters for the reshaping operation is set to true or one (1).
[0171] Block 314 includes, in response to determining that the reshaping operation is not an in-loop operation, a reshaping parameter "reshaper_inloop_flag" in the operation parameters for the reshaping operation is set to false or zero (0).
[0172] Block 316 includes determining whether the reshaping operation is implemented or performed as an image or picture adaptive operation. Block 318 includes setting a reshaping parameter "reshaper_adaptive_model_flag" among the operation parameters for the reshaping operation to true or one (1) in response to determining that the reshaping operation is image or picture adaptive. Block 320 includes encoding some or all of the remaining reshaping parameters (or reshaper mapping data) using the applicable coding syntax as represented in Tables 3-7 above (e.g., with image-specific values) for each image / picture that is subject to the image / picture adaptive reshaping operation.
[0173] Block 322 includes setting a reshaping parameter "reshaper_adaptive_model_flag" among the operation parameters for the reshaping operation to false or zero (0) in response to determining that the reshaping operation is not image or picture adaptive. Block 324 includes encoding the parameter "reshaper_model_idc" as set forth in Table 2 above for some or all images / pictures in some or all color components / channels that are subject to the global reshaping operation.
[0174] Process flow then proceeds from blocks 320 or 324 to block 326 to end or complete the encoding operation of the reshaping parameters.
[0175] 3B illustrates an example of a process flow for decoding or parsing reshaping parameters for a reshaping operation (denoted as a "reshaper") from an encoded video signal using coding syntax according to an applicable video coding standard. These reshaping parameters may be used by a recipient device of the encoded video signal to perform a reshaping operation at the decoder side on images contained in and decoded from the encoded video signal.
[0176] Block 332 involves starting or initializing a parsing or decoding operation to parse or decode operation parameters for the reshaping operation (or reshaper) from one or more data units carried in the encoded video signal or from specified data fields therein (e.g., header data field, non-header data field, image sequence level, image / picture level, slice label, etc.).
[0177] Block 334 involves parsing or decoding the reshaping parameter "reshaper_enabled_flag." Block 336 involves determining whether the reshaping parameter "reshaper_enabled_flag" has a value of true or one (1).
[0178] In response to determining that the reshaping parameter "reshaper_enabled_flag" does not have a value of true or one (1), process flow proceeds to block 348, which terminates or completes the reshaping parameter parsing or decoding process. On the other hand, in response to determining that the reshaping parameter "reshaper_enabled_flag" does have a value of true or one (1), process flow proceeds to block 338.
[0179] Block 338 includes parsing or decoding the reshaping parameter "reshaper_inloop_flag." Block 340 includes parsing or decoding the reshaping parameter "reshaper_adaptive_model_flag." Block 342 includes determining whether the reshaping parameter "reshaper_adaptive_model_flag" has a value of true or one (1).
[0180] Block 344 includes, in response to determining that the reshaping parameter "reshaper_adaptive_model_flag" has a value of true or one (1), parsing or decoding the remaining reshaping parameters (or reshaper mapping data) using the applicable coding syntax as represented in Tables 3-7 above (e.g., with image-specific values) for each image / picture that is subject to the image / picture adaptive reshaping operation.
[0181] Block 346 includes, in response to determining that the reshaping parameter "reshaper_adaptive_model_flag" does not have a value of true or one (1), parsing or decoding the parameter "reshaper_model_idc" as represented in Table 2 above for some or all images / pictures in some or all color components / channels that are subject to the global reshaping operation.
[0182] Process flow then proceeds from blocks 344 or 346 to block 348 to finish or complete the reshaping parameter parsing / decoding operation.
[0183] [Learning-based reshapers for explicit or implicit mappings] The ML-based reshaping operation (or reshaper) may be implemented or performed to support explicit or implicit mapping.
[0184] As discussed herein, the reshaping mapping may be explicitly generated, represented, and signaled from an upstream device to a downstream recipient device, for example, using the coding syntax depicted in Tables 1-7 above, to encode, parse, or decode the reshaping parameters in the encoded video signal. Additionally, optionally or alternatively, the reshaping mapping may not be explicitly generated, represented, and signaled from an upstream device to a downstream recipient device. Instead, the reshaping model may implement or perform an implicit (reshaping) mapping in the reshaping operation.
[0185] FIG. 1D illustrates an example of a codec architecture that supports explicit mapping for learning-based reshaping operations.
[0186] Explicit mapping means that the reshaping parameters explicitly specify at least one of the forward and reverse / backward reshaping mappings in the coding syntax used to code the encoded video signal as described herein. In contrast, implicit mapping means that the reshaping parameters do not explicitly specify either the forward or reverse / backward reshaping mappings in the coding syntax used to code the encoded video signal as described herein.
[0187] During the training phase, an ML-based model (which may be implemented by a neural network such as a learning-based reshaper estimation net as shown in FIG. 1D) may be trained / optimized with the training data in the training dataset to predict (explicit) operating parameters (e.g., those represented in Tables 1-7 above) that specify or define the forward reshaping mapping / function used in the forward reshaping operation, and to predict (explicit) operating parameters that specify or define the reverse or backward reshaping mapping / function used in the reverse or backward reshaping operation.
[0188] At the inference or actual deployment stage, on the encoder side, the ML-based model or learning-based reshaper estimation net shown in FIG. 1D receives and uses as input an input image (102) to predict (explicit) operation or reshaping parameters (e.g., those represented in Tables 1-7 above, etc.) that specify or define the forward and inverse / backward reshaping mappings / functions to be used in the forward and inverse / backward reshaping operations on the input image (102).
[0189] Some or all of these reshaping parameters may be received by operation 134 and used to derive a forward reshaping mapping / function that may then be applied by the first instance (104-1) and second instance (104-2) of the forward reshaper to forward reshape the previously reshaped image into a forward reshaped image.
[0190] Some or all of these reshaping parameters may be received by operation 136 and used to derive an inverse / reverse reshaping mapping / function that may then be applied by an inverse / reverse reshaper (118) to inverse / reverse reshape the forward reshaped image into a reconstructed image (e.g., approximating the input image (102)).
[0191] The predicted reshaping parameters may be encoded into the encoded video signal along with a forward reshaped image produced by forward reshaping of the input image (102). These predicted reshaping parameters are specific to the input image (102) and may be adaptive thereto.
[0192] At the inference or actual deployment stage, on the decoder side, a downstream recipient device implementing the decoder side codec architecture as depicted in FIG. 1D (with similar decoder side processing blocks as in FIG. 1B) receives as input the forward reshaped image (102-1) and the reshaping parameters in the image metadata (102-2) and decodes them.
[0193] The downstream device may perform an operation (134) of deriving a forward reshaping mapping / function using some or all of these reshaping parameters, which may then be applied by a second instance of the forward reshaper (104-2) to forward reshape the previously reshaped image into a forward reshaped image.
[0194] A downstream device may perform an operation (136) using some or all of these reshaping parameters to derive an inverse / reverse reshaping mapping / function, which may then be applied by an inverse / reverse reshaper (118) to inverse / reverse reshape the forward reshaped image w reconstructed image (e.g., to approximate the input image (102)).
[0195] 1E illustrates an example of a codec architecture that supports implicit mapping for learning-based reshaping operations. As stated, implicit mapping means that the reshaping mapping is not expressed in the coding syntax used to encode or decode the encoded signal. Implicit mapping may be used or implemented by pre-storing or pre-configuring a trained ML-based reshaper model in a video coding device (e.g., encoder, decoder, etc.) when the operation parameters included in the ML-based reshaper model are too numerous to be efficiently signaled at run-time with a relatively limited bit rate (e.g., when there are millions of parameters such as weights / biases used in a neural network such as a CNN). However, in some operating scenarios, some or all of the optimized operating parameters of the ML-based reshaper model (e.g., weights / bias in an ML neural network, ML net, etc.) may be signaled or transmitted in the encoded video signal as described herein in accordance with coding syntax or syntax elements (in addition to those represented in Tables 1-7 above) of the applicable video coding standard described herein, particularly when the total number of these parameters and the total data capacity for carrying these parameters is relatively small (e.g., below a certain data capacity threshold, there are relatively few weight / bias parameters, the bitrate used to carry these ML model parameters is relatively small compared to a bitrate overhead threshold, etc.).
[0196] During the training phase, an ML-based forward reshaping model (which may be implemented by a neural network such as the learning-based forward reshaper nets 138-1 and 138-2 depicted in FIG. 1E) may be trained / optimized with training images in the training dataset to perform a forward reshaping operation on the training images to generate corresponding forward reshaped images without generating (explicit) operational parameters (e.g., those depicted in Tables 1-7 above) that specify or define the forward reshaping mapping / function used in the forward reshaping operation.
[0197] During the training phase, an ML-based inverse / backward reshaping model (which may be implemented by a neural network such as the learning-based inverse / backward reshaper network 140 depicted in FIG. 1E) may be trained / optimized with training images in the training dataset to perform inverse / backward reshaping operations on the training images to generate corresponding inverse / backward reshaped images without generating (explicit) operating parameters (e.g., those depicted in Tables 1-7 above) that specify or define the inverse / backward reshaping mapping / function used in the inverse / backward reshaping operation.
[0198] At the inference or actual deployment stage, on the encoder side, the ML-based forward reshaping model or learning-based forward reshaper estimation net (138-1 or 138-2) shown in FIG. 1E receives and uses the input image (102) as input to perform the forward reshaping operation without using any explicitly expressed forward reshaping mapping or function to forward reshape a previously reshaped image into a forward reshaped image.
[0199] Similarly, on the encoder side, the ML-based backward reshaping model or learning-based inverse / backward reshaper estimation net (140) shown in FIG. 1E receives and uses the forward reshaped image as input to perform the inverse / backward reshaping operation without using any explicitly expressed inverse / backward reshaping mapping or function to inverse / backward reshape the forward reshaped image to a reconstructed image.
[0200] Some or all of the reshaping parameters (except for one or two flags indicating implicit reshaping, etc.) may be omitted from being encoded into the encoded video signal that is encoded with the forward reshaped image produced by forward reshaping of the input image (102). In other words, the encoded video signal may not carry reshaping parameters that define or specify a reshaping mapping / function for a reshaping operation to be performed by a recipient device of the encoded video signal.
[0201] At the inference or actual deployment stage, on the decoder side, a downstream recipient device (pre-configured or deployed with ML-based forward and inverse / backward reshaping models such as a training-based forward reshaper net (138-1 or 138-2) and / or a learning-based inverse / backward reshaper net (140) with their respective trained neural network operating parameters) implementing the decoder-side codec architecture as depicted in Fig. 1E (with similar decoder-side processing blocks as in Fig. 1B) receives and decodes the forward reshaped image (102-1) and image metadata (102-2) as input. The image metadata (102-2) does not include reshaping parameters that explicitly define or specify the reshaping mapping / function of the reshaping operation performed by the downstream device.
[0202] The downstream device can use a forward reshaper net (138-1 or 138-2) based on training or pre-established learning to forward reshape a previously reshaped image into a forward reshaped image. Similarly, the downstream device can use an inverse / backward reshaper net (140) based on training or pre-established learning to inverse / backward reshape a forward reshaped image into an inverse / backward reshaped image. can be used.
[0203] Either or both of the forward and inverse / backward reshaper nets (138 or 140) may be implemented by neural networks performing machine learning to reshape a reshaped image or signal represented in an input domain by a relatively high dimensional transformation into a reshaped image or signal represented in an output domain. Either or both of the forward and inverse / backward reshaper nets (138 or 140) may be trained by supervised learning (e.g., using a training data set including ground truth or labels, using a model training / validation phase, etc.), or by unsupervised learning (e.g., using a metric function, error function, objective function, cost function, or using a filter that convolves with the image data to determine objective image features, motion, segments, luminance, chromaticity, structure, characteristics, etc. of the image data), or by a combination of supervised and unsupervised learning.
[0204] The learning-based reshaping net described herein may be implemented as a CNN. A CNN may be written as (Cin, Cout, KxK conv), where Cin represents the total number of input color channels / components into which the input image data to the CNN is represented. Cout represents the total number of output color channels / components into which the output image data from the CNN is represented. KxK conv refers to a convolution filter of kernel size K (pixels) x K (pixels) used to convolve the input image data in the CNN.
[0205] FIG. 2C depicts examples of forward and inverse / backward reshaper nets (eg, 138 in FIG. 1E, 140 in FIG. 1E, etc.) implemented at least in part as CNNs.
[0206] As shown, the forward reshaper net uses a (forward reshaping) CNN described as (3,N,1x1 conv). (3,N,1x1 conv) means that a CNN with a convolution filter of kernel size 1 (pixels)×1 (pixels) should reshape input image data represented in three color channels / components (e.g., RGB channels or components in RGB color space, YUV channels / components in YUV color space, etc.) in the input domain into output image data represented in a relatively high dimension of N channels in the output domain. By comparison, in non-reshaping applications, a CNN with a convolution filter of kernel size other than 1×1 can be used to perform spatial filtering that detects or reacts to the underlying spatial structure or image features of the input image and extract features from the input image. In contrast, a (reshaping) CNN with a kernel filter of 1×1 kernel size here should reshape the input signal / image or individual codewords encoded therein. The kernel size 1×1 is specified to ensure that no spatial filtering is performed on the input image. A cross-channel matrix may be used to convert the codewords represented by the three input channels / components of the input domain into terms of different orders (e.g., first-order terms corresponding to color channels, and second-order or higher terms corresponding to the products of color channels, etc.), and the different-order terms may be arranged in a design matrix or column containing N channels. As a result, the output domain may not be a color space that can be directly seen. In other words, the newly reshaped signal or newly reshaped image from the (forward reshaping) CNN may not have a codeword in a color space and may not be directly visible. In comparison, the reshaped signal or reshaped image from a non-CNN reshaper that does not implement the technology described herein may be expressed in a color space and may be directly visible.
[0207] Conversely, the inverse / backward reshaper network uses a (inverse / backward reshaping) CNN described as (N,3,1x1 conv). (N,3,1x1 conv) means that a CNN with a deconvolution filter of kernel size 1 (pixel)×1 (pixel) should (inverse / backward) reshape received image data represented in a relatively high dimension of N channels in the output domain into reconstructed image data represented in three color channels / components (e.g., RGB channels or components in RGB color space, YUV channels / components in YUV color space, etc.) in the reconstructed image / picture domain (which may or may not be the same as the input domain). In these operating scenarios, the CNN uses a 1×1 kernel to reshape pixel or codeword signal values, rather than to derive a filtered value based on multiple pixel or codeword / signal values corresponding to multiple spatial neighboring pixels. As in the case of forward reshaping, the (inverse reshaping) CNN with a kernel filter of 1×1 kernel size here should inverse reshape the reshaped signal / image or the individual reshaped codewords encoded therein. The kernel size 1×1 is specified to ensure that no spatial filtering is performed on the reshaped image. A cross channel matrix may be used to convert the codewords represented by the N channels in the output domain (which cannot be directly seen) to the reconstructed codewords represented by the three input channels / components in the reconstruction domain / color space (which may be the same as the input domain or color space). As a result, the reconstruction domain can be a color space that can be directly seen. In other words, the newly reconstructed signal or the newly reconstructed image from the (backward or inverse reshaping) CNN can have codewords in a color space that can be directly seen.
[0208] In some operating scenarios, as shown in FIG. 2C, a learning-based reshaper may be implemented to provide or introduce nonlinear characteristics in mapping, reshaping, or transforming received image data to output image data using a CNN network having one or more modules such as convolutional unit (conv) ReLU (rectifier linear unit), leaky ReLU (leaky ReLU), parametric ReLU (PReLU), generalized divisive normalization (GDN) or inverse GDN (IGDN). In some operating scenarios, the reshaper of FIG. 2C(a) may be used to implement a forward reshaper net represented by blocks 138-1 and / or 138-2 of FIG. 1E, while the reshaper of FIG. 2C(b) may be used to implement a backward or inverse reshaper net represented by block 140 of FIG. 1E.
[0209] [Example process flow] 4A illustrates an example of a process flow according to an embodiment. In some embodiments, one or more computing devices or components (e.g., an encoding device / module, a transcoding device / module, a decoding device / module, an inverse tone mapping device / module, a tone mapping device / module, a media device / module, an inverse mapping generation and application system, etc.) may perform this process flow. At block 402, an image processing system receives an input image represented in an input domain from an input video signal.
[0210] At block 404, the image processing system performs forward reshaping on the input image to generate a forward reshaped image represented in the reshaped image domain.
[0211] At block 406, the image processing system performs non-reshaping encoding operations to encode the reshaped images into an encoded video signal, at least one of the non-reshaping encoding operations being performed using a machine learning (ML) model that has been previously trained with training images in one or more training datasets in a prior training stage.
[0212] At block 408, the image processing system causes a recipient device of the encoded video signal to generate a reconstructed image from the forward reshaped image. The reconstructed image is used to derive a display image that is rendered on an image display operating in conjunction with the recipient device.
[0213] In an embodiment, the non-reshaping encoding operations include one or more of optical flow analysis, motion vector encoding, motion vector decoding, motion vector quantization, motion compensation, residual encoding, residual decoding, or residual quantization, and the like.
[0214] In an embodiment, the input domain corresponds to a color space that is one of the following: RGB color space, YUV color space, IPT color space, other different color space, and the like.
[0215] In an embodiment, forward reshaping is performed as an out-of-loop image processing operation that is performed before any non-reshaping encoding operations.
[0216] In an embodiment, forward reshaping is performed as part of an overall in-loop image processing operation that includes non-reshaping encoding operations.
[0217] In an embodiment, the image metadata portion of the forward reshape image is part of the image metadata carried by the encoded video signal, and the image metadata portion includes one or more of forward reshaping parameters for forward reshaping or backward reshaping parameters for reverse reshaping.
[0218] In an embodiment, the image metadata portion includes reshaping parameters that explicitly specify a reshaping mapping for one of forward reshaping or reverse reshaping.
[0219] In an embodiment, the reshaping parameters that explicitly specify the reshaping mapping are generated by one of an ML-based reshaping mapping prediction method or a non-ML-based reshaping mapping generation method.
[0220] In an embodiment, the image metadata portion includes reshaping parameters that specify the forward reshaping as one of a global mapping or an image adaptive mapping.
[0221] In an embodiment, forward reshaping is performed using an implicit reshaping mapping embodied in the biases and weights of a neural network that has been pre-trained with training images in one or more training datasets, and the biases and weights of the neural network are not signaled to the recipient device.
[0222] In an embodiment, forward reshaping is performed using an implicit reshaping mapping embodied in biases and weights of a neural network that has been pre-trained with training images in one or more training datasets, and at least one of the biases and weights of the neural network are signaled to the recipient device.
[0223] 4B illustrates an example of a process flow according to an embodiment of the present invention. In some embodiments, one or more computing devices or components (e.g., an encoding device / module, a transcoding device / module, a decoding device / module, an inverse tone mapping device / module, a tone mapping device / module, a media device / module, an inverse mapping generation and application system, etc.) may perform this process flow. At block 452, the video decoding system decodes a forward reshaped image represented in a reshaped image domain from the encoded video signal. The forward reshaped image was generated by an upstream device by forward reshaping an input image represented in an input image domain.
[0224] At block 454, the video decoding system performs inverse reshaping on the forward reshape image along with a non-reshaping decoding operation associated with the forward reshape image to generate a reconstructed image represented in the reconstructed image domain. The inverse reshaping and the forward reshaping form a reshaping operation pair. At least one of the non-reshaping decoding operations is performed using a machine learning (ML) model that has been previously trained with training images in one or more training datasets in a previous training stage.
[0225] At block 456, the video decoding system causes a representation image derived from the reconstructed image to be rendered on the image display.
[0226] In an embodiment, the inverse reshaping is performed using an implicit reshaping mapping embodied in the biases and weights of a neural network that has been previously trained with training images in one or more training datasets, and the biases and weights of the neural network are not signaled to the recipient device.
[0227] In an embodiment, the inverse reshaping is performed using an implicit reshaping mapping embodied in biases and weights of a neural network that has been pre-trained with training images in one or more training datasets, and at least one of the biases and weights of the neural network are signaled to the recipient device.
[0228] In an embodiment, the inverse reshaping is performed using a reshaping mapping that is signaled within the image metadata portion of the forward reshape image that is carried in the encoded video signal as part of the image metadata.
[0229] In an embodiment, a computing device, such as a display device, a mobile device, a set-top box, a multimedia device, etc., is configured to perform any of the above methods. In an embodiment, an apparatus has a processor and is configured to perform any of the above methods. In an embodiment, a non-transitory computer-readable storage medium stores software instructions that, when executed by one or more processors, cause the execution of any of the above methods.
[0230] In an embodiment, a computing device has one or more processors and one or more storage media storing a set of instructions that, when executed by the one or more processors, cause the execution of any of the methods described above.
[0231] It should be noted that although separate embodiments are discussed herein, any combination of the embodiments and / or sub-embodiments discussed herein may be combined to form further embodiments.
[0232] [Example Computer System Implementation] Embodiments of the invention may be implemented by a computer system, a system of electronic circuits and components, an integrated circuit (IC) device such as a microcontroller, a field programmable gate array (FPGA) or other configurable or programmable logic device (PLD), a discrete time or digital signal processor (DSP), an application specific IC (ASIC), and / or an apparatus including one or more of such systems, devices, or components. The computer and / or IC may execute, control, or carry out instructions related to adaptive perceptual quantization of images having extended dynamic range, such as those described herein. The computer and / or IC may calculate any of the various parameters or values related to the process of adaptive perceptual quantization described herein. Image and video embodiments may be implemented in hardware, software, firmware, and various combinations thereof.
[0233] A particular implementation of the present invention has a computer processor executing software instructions that cause the processor to perform the method of the present disclosure. For example, one or more processors in a display, an encoder, a set-top box, a transcoder, etc., may perform the method of adaptive perceptual quantization of HDR images described above by executing software instructions in a program memory accessible to the processor. An embodiment of the present invention may also be provided in the form of a program product. The program product may include any non-transitory medium that carries a set of computer-readable signals that include instructions that, when executed by a data processor, cause the data processor to perform the method of an embodiment of the present invention. A program product according to an embodiment of the present invention may take a wide variety of forms. The program product may include a physical medium, such as, for example, a magnetic data storage medium, including a floppy diskette or a hard disk drive, an optical data storage medium, including a CD ROM or a DVD, an electronic data storage medium, including a ROM or a flash RAM, etc. The computer-readable signals on the program product may optionally be compressed or encrypted.
[0234] When a component (e.g., a software module, a processor, an assembly, a device, a circuit, etc.) is referred to above, unless otherwise indicated, the reference to that component (including the reference to a "means") should be interpreted as including any component that performs the function of the described component (e.g., is functionally equivalent) as an equivalent of that component, including components that are not structurally equivalent to the disclosed structures that perform that function in the represented embodiments of the invention.
[0235] According to one embodiment, the techniques described herein are implemented by one or more special purpose computing devices. The special purpose computing devices may be hardwired to execute the techniques, or may include digital electronic devices such as one or more application specific integrated circuits (ASICs) or field programmable gate arrays (FPGAs) that are persistently programmed to execute the techniques, or may include one or more general purpose hardware processors that are programmed to execute the techniques according to program instructions in firmware, memory, other storage, or a combination. Such special purpose computing devices may combine custom hardwired logic, ASICs, or FPGAs with custom programming to accomplish the techniques. The special purpose computing devices may be desktop computer systems, portable computer systems, handheld devices, networking devices, or any other devices that incorporate hardwired and / or program logic to execute the techniques.
[0236] For example, Figure 5 is a block diagram that represents a computer system 500 upon which embodiments of the present invention may be implemented. Computer system 500 includes a bus 502 or other communication mechanism for communicating information, and a hardware processor 504 coupled with bus 502 for processing information. Hardware processor 504 may be, for example, a general-purpose microprocessor.
[0237] Computer system 500 also includes a main memory 506, such as a random access memory (RAM) or other dynamic storage device, coupled to bus 502 for storing information and instructions executed by processor 504. Main memory 506 may also be used for storing temporary variables or other intermediate information during execution of instructions to be executed by processor 504. Such instructions, when stored in non-transitory storage media accessible to processor 504, cause computer system 500 to become a special purpose machine that is customized to perform operations specified in the instructions.
[0238] Computer system 500 further includes a read only memory (ROM) 508 or other static storage device coupled to bus 502 for storing static information and instructions for processor 504. A storage device 510, such as a magnetic disk or optical disk, is provided and coupled to bus 502 for storing information and instructions.
[0239] Computer system 500 may be coupled via bus 502 to a display 512, such as a liquid crystal display, for displaying information to a computer user. An input device 514, including alphanumeric or other keys, is coupled to bus 502 for sending information and command selections to processor 504. Another type of user input device is a cursor control 516, such as a mouse, trackball, or cursor direction keys, for sending directional information and command selections to processor 504 and for controlling cursor movement on display 512. These input devices typically have two degrees of freedom in two axes, a first axis (e.g., x) and a second axis (e.g., y) that allow the device to specify a position in a plane.
[0240] Computer system 500 may implement the techniques described herein using customized hardwired logic, one or more ASICs or FPGAs, firmware and / or program logic that in combination with the computer system causes or programs computer system 500 to be a special purpose machine. According to one embodiment, the techniques described herein are performed by computer system 500 in response to processor 504 executing one or more sequences of one or more instructions contained in main memory 506. Such instructions may be read into main memory 506 from another storage medium, such as storage device 510. Execution of the sequences of instructions contained in main memory 506 causes processor 504 to perform the process steps described herein. In alternative embodiments, hardwired circuitry may be used in place of or in combination with software instructions.
[0241] The term "storage media" as used herein refers to any non-transitory medium that stores data and / or instructions that cause a machine to operate in a specific manner. Such storage media may include non-volatile media and / or volatile media. Non-volatile media include, for example, optical or magnetic disks, such as storage device 510. Volatile media include dynamic memory, such as main memory 506. Common forms of storage media include, for example, floppy disks, flexible disks, hard disks, solid state drives, magnetic tape, or any other magnetic data storage medium, CD-ROMs, any other optical data storage medium, any physical medium with a pattern of holes, RAM, PROM, and EPROM, FLASH-EPROM, NVRAM, any other memory chip or cartridge.
[0242] Storage media may be distinct from or used in conjunction with transmission media, which participate in transferring information between storage media. For example, transmission media include coaxial cables, copper wire and fiber optics, including the wires that comprise bus 502. Transmission media can also take the form of acoustic or light waves, such as those generated during radio wave or infrared data communications.
[0243] Various forms of media may be involved in carrying one or more sequences of one or more instructions to the processor 504 for execution. For example, the instructions may initially be stored on a magnetic disk or solid state drive of a remote computer. The remote computer can load the instructions into its dynamic memory and send the instructions over a telephone line using a modem. A modem local to the computer system 500 can receive the data on the telephone line and use an infrared transmitter to convert the data to an infrared signal. An infrared detector can receive the data carried in the infrared signal and appropriate circuitry can place the data on the bus 502. The bus 502 carries the data to the main memory 506, from which the processor 504 retrieves and executes the instructions. The instructions received by the main memory 506 may optionally be stored on a storage device 510 either before or after execution by the processor 504.
[0244] Computer system 500 also includes a communication interface 518 coupled to bus 502. The communication interface 518 provides a two-way data communication coupling to a network link 520 that is connected to a local network 522. For example, the communication interface 518 may be an Integrated Services Digital Network (ISDN) card, cable modem, satellite modem, or a modem providing a data communication connection to a corresponding type of telephone line. As another example, the communication interface 518 may be a Local Area Network (LAN) card providing a data communication connection to a compatible LAN. Wireless links may also be implemented. In such implementations, the communication interface 518 sends and receives electrical, electromagnetic or optical signals that carry digital data streams representing various types of information.
[0245] The network link 520 typically provides data communication through one or more networks to other data devices. For example, the network link 520 may provide a connection through a local network 522 to a host computer 524 or to data equipment operated by an Internet Service Provider (ISP) 526. The ISP 526 in turn provides data communication services through the world-wide packet data communication network now commonly referred to as the "Internet" 528. Both the local network 522 and the Internet 528 use electrical, electromagnetic or optical signals that carry digital data streams. The signals through the various networks and the signals on the network link 520 and through the communication interface 518, which carry the digital data to and from the computer system 500, are exemplary forms of transmission media.
[0246] Computer system 500 can send messages and receive data, including program code, through the network(s), network link 520 and communication interface 518. In the Internet example, a server 530 might transmit a requested code for an application program through Internet 528, ISP 526, local network 522 and communication interface 518.
[0247] The received code may be executed by processor 504 as it is received, and / or stored in storage device 510, or other non-volatile storage for later execution.
[0248] [Equivalents, Extensions, Substitutes, and Others] In the foregoing specification, embodiments of the invention have been described with reference to many specific details that may vary from implementation to implementation. Thus, it is the set of claims issued from this application, and the specific form in which such claims are issued, including any subsequent amendments, that are the sole and exclusive indication of the claimed embodiments of the invention that the applicant intends to be the claimed embodiments of the invention. The definitions expressly set forth herein for the terms contained in such claims shall govern the meaning of the terms used in the claims. Thus, any limitations, elements, characteristics, features, advantages, or attributes not expressly set forth in the claims shall not limit the scope of such claims in any manner. Thus, the specification and drawings are to be regarded in an illustrative sense, and not in a restrictive sense.
[0249] [List of exemplary embodiments] The present invention may be embodied in any of the forms described herein, including, but not limited to, the following enumerated example embodiments (EEE) that describe the structure, features, and functions of some portions of the embodiments of the present invention.
[0250] EEE1. receiving an input image represented in an input domain from an input video signal; performing a forward reshaping on the input image to generate a forward reshaped image represented in a reshaped image domain; performing non-reshaping encoding operations to encode the reshaped images into an encoded video signal, at least one of the non-reshaping encoding operations being performed using a machine learning (ML) model that has been previously trained with training images in one or more training datasets in a prior training stage; causing a recipient device of the encoded video signal to generate a reconstructed image from the forward reshaped image, the reconstructed image being used to derive a display image to be rendered on an image display operatively associated with the recipient device; The method according to claim 1,
[0251] EEE2. the forward reshaped image is generated by the forward reshaping performed using a first convolutional neural network that forward reshapes each input codeword in the input image in three color channels into a respective forward reshaped codeword in N channels using a convolution filter with a spatial kernel size of 1 pixel by 1 pixel, where N represents an integer greater than or equal to 3; the reconstructed image is generated by inverse reshaping performed using a second convolutional neural network that inversely reshapes each forward reshaped codeword in the input image in the N channels into a respective reconstructed codeword in the three color channels using a second convolutional filter with a spatial kernel size of 1 pixel by 1 pixel. The method described in EEE1.
[0252] EEE3. the first convolutional neural network includes a nonlinear mapping of input codewords in the input image to forward reshape codewords in the N channels. The method described in EEE2.
[0253] EEE4. the non-reshaping coding operations include one or more of optical flow analysis, motion vector coding, motion vector decoding, motion vector quantization, motion compensation, residual coding, residual decoding, or residual quantization; A method according to any one of EEE1 to 3.
[0254] EEE5. the input domain corresponds to a color space that is one of an RGB color space, a YUV color space, an IPT color space, or another different color space; A method according to any one of EEE1 to 4.
[0255] EEE6. the forward reshaping is performed as an out-of-loop image processing operation performed before the non-reshaping encoding operations. A method according to any one of EEE1 to EEE5.
[0256] EEE7. the forward reshaping is performed as part of an overall in-loop image processing operation which includes the non-reshaping encoding operation. A method according to any one of EEE1 to EEE5.
[0257] EEE8. the image metadata portion of the forward reshaped image is part of the image metadata carried by the encoded video signal; the image metadata portion includes one or more of forward reshaping parameters for the forward reshaping, or backward reshaping parameters for the reverse reshaping; A method according to any one of EEE1 to 7.
[0258] EEE9. the image metadata portion includes reshaping parameters that explicitly specify a reshaping mapping for one of the forward reshaping or the reverse reshaping. Method as described in EEE8.
[0259] EEE10. the reshaping parameters that explicitly specify a reshaping mapping are generated by one of an ML-based reshaping mapping prediction method or a non-ML-based reshaping mapping generation method; The method described in EEE9.
[0260] EEE11. the image metadata portion includes reshaping parameters that specify the forward reshaping as one of a global mapping or an image adaptive mapping; A method according to any one of EEE1 to 10.
[0261] EEE12. The forward reshaping is performed using an implicit reshaping mapping embodied in biases and weights of a neural network that has been pre-trained with training images in one or more training datasets, and the biases and weights of the neural network are not signaled to the recipient device. A method according to any one of EEE1 to 11.
[0262] EEE13. The forward reshaping is performed using an implicit reshaping mapping embodied in biases and weights of a neural network that has been pre-trained with training images in one or more training datasets, and at least one of the biases and weights of the neural network is signaled to the recipient device. A method according to any one of EEE1 to 12.
[0263] EEE14. decoding from the encoded video signal a forward reshaped image represented in a reshaped image domain, said forward reshaped image having been generated by an upstream device by forward reshaping an input image represented in an input image domain; performing an inverse reshaping on the forward reshape image together with a non-reshaping decoding operation associated with the forward reshape image to generate a reconstructed image represented in a reconstructed image domain, the inverse reshaping and the forward reshaping forming a reshaping operation pair, and at least one of the non-reshaping decoding operations being performed using a machine learning (ML) model that has been previously trained with training images in one or more training datasets in a previous training stage; rendering on an image display a display image derived from the reconstructed image; and The method according to claim 1,
[0264] EEE15. the inverse reshaping is performed using an implicit reshaping mapping embodied in biases and weights of a neural network that has been pre-trained with training images in one or more training datasets, and the biases and weights of the neural network are not signaled to the recipient device. Method according to EEE14.
[0265] EEE16. The inverse reshaping is performed using an implicit reshaping mapping embodied in biases and weights of a neural network that has been previously trained with training images in one or more training datasets, and at least one of the biases and weights of the neural network is signaled to the recipient device. The method according to claim EEE14 or 15.
[0266] EEE17. the inverse reshaping is performed using a reshaping mapping signaled within an image metadata portion of the forward reshape image that is carried in the encoded video signal as part of image metadata. The method according to claim EEE14 or 15.
[0267] EEE18. At least one of the non-reshaping encoding operations is performed by a machine learning (ML) model that is pre-trained with training images represented in the reshape image domain. A method according to any one of EEE1 to 17.
[0268] EEE19. the in-loop operations being performed as part of encoding and / or decoding operations; The method described in EEE7.
[0269] EEE20. 20. An apparatus having a processor and configured to perform a method according to any one of claims 1 to 19.
[0270] EEE21. storing computer executable instructions; The computer-executable instructions, when executed by one or more processors, cause the one or more processors to perform a method according to any one of claims 8 to 11. A non-transitory computer-readable storage medium.
[0271] [CROSS-REFERENCE TO RELATED APPLICATIONS] This application claims priority to European Patent Application No. 21193790.9, filed August 30, 2021, and U.S. Provisional Patent Application No. 63 / 238529, filed August 30, 2021, each of which is incorporated herein by reference in its entirety.
Claims
1. receiving an input image represented in an input domain from an input video signal; performing a forward reshaping on the input image to generate a forward reshaped image represented in a reshaped image domain; performing non-reshaping encoding operations to encode the forward reshaped image into an encoded video signal, at least one of the non-reshaping encoding operations being performed using a machine learning (ML) model that has been previously trained with training images in one or more training datasets in a previous training stage; causing a recipient device of the encoded video signal to generate a reconstructed image from the forward reshaped image, the reconstructed image being used to derive a display image to be rendered on an image display operatively associated with the recipient device; The method according to claim 1,
2. the forward reshaped image is generated by the forward reshaping performed using a first convolutional neural network that forward reshapes each input codeword in the input image in three color channels into a respective forward reshaped codeword in N channels using a convolution filter with a spatial kernel size of 1 pixel by 1 pixel, where N represents an integer greater than or equal to 3; the reconstructed image is produced by inverse reshaping performed using a second convolutional neural network that inversely reshapes each forward reshaped codeword in the input image in the N channels into a respective reconstructed codeword in the three color channels using a second convolution filter with a spatial kernel size of 1 pixel by 1 pixel; the first convolutional neural network includes a nonlinear mapping of input codewords in the input image to forward reshape codewords in the N channels. The method of claim 1.
3. the non-reshaping coding operations include one or more of optical flow analysis, motion vector coding, motion vector decoding, motion vector quantization, motion compensation, residual coding, residual decoding, or residual quantization; The method of claim 1.
4. the forward reshaping is performed as an out-of-loop image processing operation performed before the non-reshaping encoding operations. The method of claim 1.
5. the forward reshaping is performed as part of an overall in-loop image processing operation which includes the non-reshaping encoding operation. The method of claim 1.
6. the overall in-loop image processing operation is an encoding operation; The method according to claim 5.
7. the image metadata portion of the forward reshaped image is part of the image metadata carried by the encoded video signal; the image metadata portion includes one or more of forward reshaping parameters for the forward reshaping, or backward reshaping parameters for the reverse reshaping; The method of claim 1.
8. the image metadata portion includes reshaping parameters that explicitly specify a reshaping mapping for one of the forward reshaping or the reverse reshaping. The method of claim 7.
9. the reshaping parameters that explicitly specify a reshaping mapping are generated by one of an ML-based reshaping mapping prediction method or a non-ML-based reshaping mapping generation method; The method according to claim 8.
10. the image metadata portion includes reshaping parameters that specify the forward reshaping as one of a global mapping or an image adaptive mapping; The method of claim 7.
11. the forward reshaping is performed using an implicit reshaping mapping embodied in the biases and weights of a neural network that has been pre-trained with training images in one or more training datasets; The method of claim 1.
12. decoding from the encoded video signal a forward reshaped image represented in a reshaped image domain, said forward reshaped image having been generated by an upstream device by forward reshaping an input image represented in an input image domain; performing an inverse reshaping on the forward reshape image together with a non-reshaping decoding operation associated with the forward reshape image to generate a reconstructed image represented in a reconstructed image domain, the inverse reshaping and the forward reshaping forming a reshaping operation pair, and at least one of the non-reshaping decoding operations being performed using a machine learning (ML) model that has been previously trained with training images in one or more training datasets in a previous training stage; rendering on an image display a display image derived from the reconstructed image; and The method according to claim 1,
13. the inverse reshaping is performed using an implicit reshaping mapping embodied in the biases and weights of a neural network that has been pre-trained with training images in one or more training datasets. The method of claim 12.
14. the inverse reshaping is performed using a reshaping mapping signaled within an image metadata portion of the forward reshape image that is carried in the encoded video signal as part of image metadata. The method of claim 12.
15. Apparatus comprising a processor and configured to perform the method of any one of claims 1 to 14.
16. storing computer executable instructions; The computer executable instructions, when executed by one or more processors, cause the one or more processors to perform the method of any one of claims 1 to 14. A non-transitory computer-readable storage medium.
Citation Information
Patent Citations
Integrated image reconstruction and video coding
JP2020526942A
HDR Image Representation Using Neural Network Mapping
JP2021521517A
Luma and chroma reshaping of HDR video encoding
US20200120345A1
Joint forward and backward neural network optimization in image processing
WO2021168001A1
ITRBT.2100,
