Image Processing Method

The Neural Image Compression (NIC) framework addresses the inefficiencies in existing compression tools by using ANN-based optimization to enhance compression and decoding, enabling efficient computer vision tasks in the compressed domain with reduced complexity and latency.

JP7540829B2Active Publication Date: 2024-08-27TENCENT AMERICA LLC
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
JP2023566983
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Priority Date
2023-03-22
Filing Date
2023-03-24
Publication Date
2024-08-27
Estimated Expiration
2043-03-24

AI Technical Summary

Technical Problem

Existing image/video compression tools require significant expertise and time for improvement, and optimizing individual modules in video codecs may not lead to overall performance gains, while machine learning techniques can simplify and accelerate these improvements.

Method used

An artificial neural network (ANN)-based video/image coding framework, known as Neural Image Compression (NIC), is trained end-to-end to optimize various modules jointly for improved rate-distortion performance, utilizing online and offline training processes to adjust parameters and layers for enhanced compression and decoding efficiency.

Benefits of technology

The NIC framework achieves optimized compression and decoding processes, reducing computational complexity and latency in computer vision tasks by performing image processing directly in the compressed domain, thereby improving overall performance and efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007540829000030
    Figure 0007540829000030
  • Figure 0007540829000018
    Figure 0007540829000018
  • Figure 0007540829000022
    Figure 0007540829000022
Patent Text Reader

Abstract

The processing circuit performs online training of a compressed domain computer vision task framework (CDCVTF) based on an input image and a guideline image with the result of an image-based computer vision task on the input image. The CDCVTF includes an encoding portion and a decoding portion. The encoding portion compresses the input image into a compressed domain, and the decoding portion performs the image-based computer vision task in the compressed domain. The online training determines updates to the neural network in the decoding portion that at least reduce the loss between the result of the image-based computer vision task in the compressed domain and the guideline image. The processing circuit encodes the input image into a coded image and forms a bitstream carrying the coded image and additional bits. The additional bits indicate updates to the neural network in the decoding portion.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001]

[0001] INCORPORATION BY REFERENCE This application claims the benefit of priority to U.S. Patent Application No. 18 / 125,008, entitled "Online Training of Computer Vision Task Models in a Compressed Domain," filed March 22, 2023, which claims the benefit of priority to U.S. Provisional Application No. 63 / 331,162, entitled "Online Training of Computer Vision Task Models in a Compressed Domain," filed April 14, 2022. The entire disclosures of the prior applications are incorporated herein by reference.

[0002]

[0002] TECHNICAL FIELD This disclosure describes embodiments generally relating to image / video processing. [Background technology]

[0003] The background discussion provided herein is intended to generally present the context of the present disclosure. Work undertaken by the current inventors is not admitted, expressly or impliedly, as prior art to the present disclosure to the extent that such work is described in this background section or in a descriptive manner that may not otherwise qualify as prior art as of the filing date of this case.

[0004]

[0004] Image / video compression can help transmit image / video files with minimal quality degradation across various devices, storages, and networks. Improving image / video compression tools can require a lot of expertise, effort, and time. Machine learning techniques can be applied to image / video compression to simplify and accelerate the improvement of compression tools. Summary of the Invention

[0005]

[0005] Aspects of the disclosure provide a method and apparatus for image / video processing (e.g., encoding and decoding). In some examples, the apparatus for image / video processing includes a processing circuit. According to some aspects of the disclosure, the processing circuit performs online training of a compression domain computer vision task framework (CDCVTF) based on an input image and a guideline image that is a result of an image-based computer vision task on the input image. The CDCVTF includes an encoding portion and a decoding portion. The encoding portion compresses the input image into a compressed domain, and the decoding portion performs an image-based computer vision task in the compressed domain. The online training determines at least updates to a neural network in the decoding portion that reduce loss between the result of the image-based computer vision task in the compressed domain and the guideline image. The processing circuit encodes the input image into an encoded image and forms a bitstream carrying the encoded image and additional bits. The additional bits represent updates to the neural network in the decoding part that reduce the loss between the results of the image-based computer vision task in the compressed domain and the guideline image.

[0006]

[0006] In some examples, the processing circuitry performs an image-based computer vision task on an input image in an uncompressed domain to generate a guideline image corresponding to the input image.

[0007] In some examples, the additional bits indicate one or more updated values ​​for one or more respective adjustable parameters of the decoded portion.

[0008] In some examples, the additional bits indicate an additional layer in a neural network of the decoding portion, and the additional bits indicate parameter values ​​of the additional layer. In one example, the additional layer is a convolutional layer.

[0009]

[0009] In some examples, the encoding portion is configured to compress an input image into an encoded image, the decoding portion is configured to perform an image-based computer vision task on the encoded image to generate a reconstructed image, and the online training determines updates based on the reconstructed image and a guideline image.

[0010]

[0010] In some examples, the online training determines updates for the decoding portion and encoder updates for the neural network in the encoding portion.

[0011]

[0011] It should be noted that the image-based computer vision tasks include at least one of image denoising, image deblocking, and super-resolution.

[0012]

[0012] According to some aspects of the disclosure, a processing circuit of the device is capable of receiving a bitstream including a first bit carrying an encoded image corresponding to an image and a second bit indicating an update of a neural network in a decoder for an image-based computer vision task in a compressed domain. The decoder corresponds to a decoding portion in a compressed domain computer vision task framework (CDCVTF). The update is determined by online training of the CDCVTF according to the image and a guideline image according to the result of the image-based computer vision task for the image. The online training determines at least an update that reduces a loss between the result of the image-based computer vision task in the compressed domain and the guideline image. The processing circuit updates the neural network of the decoder according to the second bit, and utilizes the decoder together with the update in the neural network to generate a reconstructed image according to the first bit of the bitstream.

[0013]

[0013] In some examples, the second bit indicates one or more updated values ​​for each of one or more parameters in the neural network.

[0014] In some examples, the second bit indicates an additional layer in the neural network, and the second bit indicates a parameter value of the additional layer. In one example, the additional layer is a convolutional layer.

[0015]

[0015] It should be noted that the image-based computer vision tasks include at least one of image denoising, image deblocking, and super-resolution.

[0016]

[0016] According to some aspects of the disclosure, a processing circuit of the device determines a substitute image for an input image according to online training of a Compressed Domain Computer Vision Task Framework (CDCVTF). The CDCVTF includes an encoding portion and a decoding portion. The encoding portion compresses the input image into a compressed domain using a current iterative update, and the decoding portion performs an image-based computer vision task in the compressed domain. The online training determines a substitute image that reduces the loss between a result of the image-based computer vision task in the compressed domain and a guideline image resulting from the image-based computer vision task for the input image (in the uncompressed domain). The processing circuit encodes the substitute image into a bitstream by the encoding portion.

[0017]

[0017] In some examples, the processing circuitry performs an image-based computer vision task on the input image in an uncompressed domain to generate a guideline image corresponding to the input image.

[0018]

[0018] In some examples, during online training, the encoding portion is configured to compress an input image into a current encoded update image using a current iterative update, and the decoding portion is configured to perform an image-based computer vision task on the current encoded update image to generate a current reconstructed image, and a next iterative update is determined based on the current reconstructed image and a guideline image.

[0019]

[0019] It should be noted that the image-based computer vision tasks include at least one of image denoising, image deblocking, and super-resolution. The parameters of the neural networks in the encoding and decoding parts are fixed to pre-trained values.

[0020]

[0020] An aspect of the present disclosure also provides a non-transitory computer-readable storage medium storing a program executable by at least one processor to perform a method for image / video encoding and / or decoding. [Brief description of the drawings]

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

[0022] FIG. 1 illustrates a Neural Image Compression (NIC) framework in some examples. [Diagram 2]

[0023] Figure 2 shows an example of the main encoder network in some examples. [Diagram 3]

[0024] FIG. 3 shows an example of a main decoder network in some embodiments. [Figure 4]

[0025] FIG. 4 shows an example of a hyper-encoder network in some examples. [Diagram 5]

[0026] FIG. 5 shows an example of a hyper-decoder network in some embodiments. [Figure 6]

[0027] Figure 6 shows an example of a context model neural network in some examples. [Figure 7]

[0028] Figure 7 shows an example of an entropy parameter neural network in some examples. [Figure 8]

[0029] FIG. 8 illustrates an image encoder in some examples. [Figure 9]

[0030] FIG. 9 illustrates an image decoder in some examples. [Figure 10]

[0031] 10-11 show an image encoder and a corresponding image decoder in some examples. [Figure 11] 10-11 show an image encoder and a corresponding image decoder in some examples. [Figure 12]

[0032] FIG. 12 illustrates a system for performing computer vision (CV) tasks in a compressed domain in some examples. [Figure 13]

[0033] FIG. 13 illustrates a system for performing CV tasks in the compressed domain in some examples. [Figure 14]

[0034] FIG. 14 illustrates an online training based compressed domain computer vision task framework (CDCVTF) according to some embodiments of the present disclosure. [Figure 15]

[0035] FIG. 15 illustrates a system for performing online training-based post-processing in a CDCVTF in some examples. [Figure 16]

[0036] FIG. 16 illustrates a system for performing online training-based pre-processing in CDCVTF in some examples. [Figure 17]

[0037] FIG. 17 shows a flow chart outlining a process in some examples. [Figure 18]

[0038] FIG. 18 shows a flow chart outlining a process in some examples. [Figure 19]

[0039] FIG. 19 shows a flow chart outlining a process in some examples. [Figure 20]

[0040] FIG. 20 is a schematic diagram of a computer system in some examples. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0022]

[0041] According to aspects of the disclosure, some video codecs may be difficult to be optimized as a whole. For example, improvement of a single module (e.g., an encoder) in a video codec may not result in a coding gain in overall performance. In contrast, in an artificial neural network (ANN)-based video / image coding framework, a machine learning process may be performed, and thus, various modules of the ANN-based video / image coding framework may be jointly optimized from input to output to improve the end objective (e.g., rate-distortion performance, such as the rate-distortion loss L described in this disclosure). For example, a learning or training process (e.g., a machine learning process) may be performed in the ANN-based video / image coding framework, and the modules of the ANN-based video / image coding framework may be jointly optimized to achieve an overall optimized rate-distortion performance, and thus, the result of the optimization may be an end-to-end (E2E) optimized neural image compression (NIC).

[0023]

[0042] In the following description, the ANN-based video / image coding framework is illustrated by the Neural Image Compression (NIC) framework. It should be noted that although image compression (e.g., encoding and decoding) is exemplified in the following description, the techniques for image compression can also be suitably applied to video compression.

[0024]

[0043] According to some aspects of the present disclosure, the NIC framework can be trained in an offline training process and / or an online training process. In the offline training process, a set of previously collected training images can be used to train the NIC framework and optimize the NIC framework. In some examples, the parameters of the NIC framework determined by the offline training process can be referred to as pre-trained parameters, and the NIC framework using the pre-trained parameters can be referred to as a pre-trained NIC framework. The pre-trained NIC framework can be used for image compression processing.

[0025]

[0044] In some examples, when one or more images (also referred to as one or more target images) are available for image compression processing, the pre-trained NIC framework is further trained based on the one or more target images in an online training process to adjust parameters of the NIC framework. The parameters of the NIC framework adjusted by the online training process may be referred to as online trained parameters, and the NIC framework using the online trained parameters may be referred to as an online trained NIC framework. The online trained NIC framework may then perform image compression processing on the one or more target images. Some aspects of the disclosure provide techniques for online training-based encoder tuning in neural image compression.

[0026]

[0045] Neural networks refer to a computational architecture that models the biological brain. A neural network can be a software or hardware implemented model that emulates the computational capabilities of biological systems by using a large number of artificial neurons connected through connection lines. The artificial neurons, called nodes, are connected to each other and work together to process input data. Neural networks (NN) are also known as artificial neural networks (ANN).

[0027]

[0046] The nodes in an ANN can be organized in any suitable architecture. In some embodiments, the nodes in an ANN are organized in layers including an input layer that receives input signals to the ANN and an output layer that outputs output signals from the ANN. In embodiments, the ANN further includes a layer, which may be referred to as a hidden layer, between the input layer and the output layer. Different layers can perform different types of transformations on their respective inputs. Signals can travel from the input layer to the output layer.

[0028]

[0047] An ANN with multiple layers between the input layer and the output layer may be called a deep neural network (DNN). A DNN may have any suitable structure. In some examples, a DNN is configured with a feed-forward network structure, in which data flows from the input layer to the output layer without looping back. In some examples, a DNN is configured with a fully connected network structure, in which each node in one layer is connected to every node in the next layer. In some examples, a DNN is configured with a recurrent neural network (RNN) structure, in which data can flow in any direction.

[0029]

[0048] An ANN having at least one convolution layer performing a convolution operation may be referred to as a convolution neural network (CNN). The CNN may include an input layer, an output layer, and a hidden layer between the input layer and the output layer. The hidden layer may include a convolution layer (e.g., used in an encoder) performing a convolution such as a two-dimensional (2D) convolution. In an embodiment, the 2D convolution performed in the convolution layer is between a convolution kernel (also called a filter or channel, such as a 5x5 matrix) and an input signal to the convolution layer (a 2D block, a 2D matrix such as a 256x256 matrix). The dimension of the convolution kernel (e.g., 5x5) is smaller than the dimension of the input signal (e.g., 256x256). During the convolution operation, a dot product operation is performed on the convolution kernel and a patch (e.g., 5x5 area) of the same size as the convolution kernel in the input signal (e.g., 256x256 matrix) to generate an output signal for input to the next layer. The patch (e.g., 5x5 area) of the size of the convolution kernel in the input signal (e.g., 256x256 matrix) can be called the receptive field for each node in the next layer.

[0030]

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

[0031]

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

[0032]

[0051] In some examples, multiple convolution kernels may be applied to an input signal in the same convolution layer to generate multiple feature maps, each of which may represent a particular feature of the input signal. In some examples, the convolution kernels may correspond to the feature maps. A convolution layer with N convolution kernels (or N channels), each of which has MxM samples and a stride of S, may be specified as Conv:MxM cN sS. For example, a convolution layer with 192 convolution kernels (or 192 channels), each of which has 5x5 samples and a stride of 2, may be specified as Conv:5x5 c192 s2. The hidden layer may include a deconvolution layer (e.g., used in a decoder) that performs deconvolutions, such as 2D deconvolution. Deconvolution is the inverse of convolution. A deconvolution layer with 192 deconvolution kernels (or 192 channels), each with 5x5 samples, and a stride of 2, is specified as DeConv:5x5 c192 s2.

[0033]

[0052] In a CNN, a relatively large number of nodes can share the same filters (e.g., the same weights) and biases (if biases are used), and the memory footprint can be reduced because a single bias and a single weight vector can be used across all receptive fields that share the same filter. For example, for an input signal with 100x100 samples, a convolutional layer using a convolutional kernel with 5x5 samples has 25 learnable parameters (e.g., weights). If biases are used, one channel uses 26 learnable parameters (e.g., 25 weights and one bias). If a convolutional layer has N convolutional kernels, the total number of learnable parameters is 26xN. The number of learnable parameters is relatively small compared to a fully connected feedforward neural network layer. For example, for a fully connected feedforward layer, 100x100 (i.e., 10,000) weights are used to generate a result signal for input to each node in the next layer. If the next layer has L nodes, then the total number of learnable parameters is 10000xL.

[0034]

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

[0035]

[0054] Pooling layers can be used to reduce the dimensionality of data by combining the outputs from multiple nodes in one layer into a single node in the next layer. Below, we describe the pooling operation for a pooling layer with a feature map as input. The description can be applied to other input signals as well, as appropriate. The feature map can be divided into subregions (e.g., rectangular subregions), and the features in each subregion can be independently downsampled (or pooled) to a single value, for example, by taking the average value in average pooling, or the maximum value in max pooling.

[0036]

[0055] The pooling layer can perform pooling such as local pooling, global pooling, max pooling, average pooling, and / or the like. Pooling is a form of nonlinear down-sampling. Local pooling combines a small number of nodes in the feature map (e.g., a local cluster of nodes, such as a 2x2 node). Global pooling can, for example, combine all the nodes in the feature map.

[0037]

[0056] Pooling layers can reduce the size of the representation, and therefore the number of parameters, memory footprint, and amount of computation in a CNN. In one example, a pooling layer is inserted between successive convolutional layers in a CNN. In one example, a pooling layer is followed by an activation function, such as a rectified linear unit (ReLU) layer. In one example, a pooling layer is omitted between successive convolutional layers in a CNN.

[0038]

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

[0039]

[0058] The NIC framework can support a compression model for image compression. The NIC framework receives an input image x and generates a reconstructed image corresponding to the input image x.

[0040]

number

[0041]

number

[0042]

[0059] In some examples, the NIC framework may use a variational autoencoder (VAE) structure. In the VAE structure, the entire input image x may be fed into a neural network encoder. The entire input image x may be passed through a set of neural network layers (of the neural network encoder) that act as a black box that computes a compressed representation x^. The compressed representation x^ is the output of the neural network encoder. The neural network decoder may take the entire compressed representation x^ as input. The compressed representation x^ may be passed through another set of neural network layers (of the neural network decoder) that act as another black box that computes a reconstructed image x-. The rate-distortion (RD) loss L(x,x-,x^) may optimally achieve a trade-off between the distortion loss D(x,x-) of the reconstructed image x- and the bit consumption R of the compact representation x^ with a trade-off hyperparameter λ as in Eq. 1:

[0043]

number

[0060] A neural network (e.g., an ANN) can learn to perform a task from examples, without task-specific programming. An ANN can be constructed with connected nodes or artificial neurons. A connection between the nodes can transmit a signal from a first node to a second node (e.g., a receiving node), and the signal can be modified by a weight, which can be specified by a weight coefficient for the connection. The receiving node can process a signal from a node transmitting the signal to the receiving node (i.e., an input signal to the receiving node) and then generate an output signal by applying a function to the input signal. The function can be a linear function. In one example, the output signal is a weighted sum of the input signals. In one example, the output signal is further modified by a bias, which can be denoted by a bias term, such that the output signal is the sum of the bias and the weighted sum of the input signals. The function can include, for example, a nonlinear operation on the weighted sum or the sum of the bias and the weighted sum of the input signals. The output signal can be transmitted to a node connected to the receiving node (a downstream node). The ANN can be represented or configured by parameters (e.g., weights of connections and / or biases). The weights and / or biases can be obtained by training the ANN with examples (e.g., offline training, online training, etc.), where the weights and / or biases can be iteratively adjusted. The trained ANN configured with the determined weights and / or determined biases can be used to perform a task.

[0044]

[0061] 1 illustrates a NIC framework (100) (e.g., a NIC system) in some examples. The NIC framework (100) can be based on neural networks such as DNNs and / or CNNs. The NIC framework (100) can be used to compress (e.g., encode) images and to decompress (e.g., decompress, decode, or reconstruct) compressed images (e.g., encoded images).

[0045]

[0062] Specifically, in Fig. 1, the compressed model in the NIC framework (100) includes two levels, called the main level of the compressed model and the hyper level of the compressed model. The main level of the compressed model and the hyper level of the compressed model can be implemented using neural networks. In Fig. 1, the neural network for the main level of the compressed model is shown as the first sub-NN (151), and the hyper level of the compressed model is shown as the second sub-NN (152).

[0046]

[0063] The first sub-NN (151) may be similar to an autoencoder and may be trained to generate a compressed image x̂ of an input image x and to decompress the compressed image (e.g., encoded image) x̂ to obtain a reconstructed image x-. The first sub-NN (151) may include multiple components (or modules) such as a main encoder neural network (or main encoder network) (111), a quantizer (112), an entropy encoder (113), an entropy decoder (114), and a main decoder neural network (or main encoder network) (115).

[0047]

[0064] Referring to FIG. 1, the main encoder network (111) can generate a latent representation y from an input image x (e.g., an image to be compressed or encoded). In one example, the main encoder network (111) is implemented using a CNN. The relationship between the latent representation y and the input image x can be described using Eq. 2:

[0048]

number

[0049]

[0065] The latent representation y may be quantized using a quantizer (112) to generate a quantized latent representation y^. The quantized latent representation y^ may be compressed, e.g., using lossless compression, by an entropy encoder (113) to generate a compressed image (e.g., encoded image) x^ (131), which is a compressed representation x^ of the input image x. The entropy encoder (113) may use an entropy coding technique, such as Huffman coding, arithmetic coding, etc. In one example, the entropy encoder (113) uses arithmetic coding and is an arithmetic encoder. In one example, the encoded image (131) is transmitted in a coded bitstream.

[0050]

[0066] The encoded image (131) may be decompressed (e.g., entropy decoded) by an entropy decoder (114) to generate an output. The entropy decoder (114) may use an entropy coding technique, such as Huffman coding, arithmetic coding, etc., that corresponds to the entropy coding technique used in the entropy encoder (113). In one example, the entropy decoder (114) uses arithmetic decoding and is an arithmetic decoder. In one example, lossless compression is used in the entropy encoder (113) and lossless decompression is used in the entropy decoder (114), where noise resulting from transmission of the encoded image (131) etc. may be omitted, and the output from the entropy decoder (114) is the quantized potential y^.

[0051]

[0067] The main decoder network (115) can decode the quantized latent y^ to generate a reconstructed image x-. In one example, the main decoder network (115) is implemented using a CNN. The reconstructed image x- (i.e., the output of the main decoder network (115)) and the quantized latent y^ (i.e., the input of the main decoder network (115)) can be described using Eq. 3:

[0052]

number

[0053]

[0068] In some examples, the second sub-NN (152) can learn an entropy model (e.g., a prior probabilistic model) on the quantized latent ŷ used for entropy coding. Thus, the entropy model can be a conditioned entropy model, e.g., a Gaussian mixture model (GMM), a Gaussian scale model (GSM), that depends on the input image x.

[0054]

[0069] In some examples, the second sub-NN (152) may include a context model NN (116), an entropy parameter NN (117), a hyper-encoder network (121), a quantizer (122), an entropy encoder (123), an entropy decoder (124), and a hyper-decoder network (125). The entropy model used in the context model NN (116) may be an autoregressive model for the latent (e.g., the quantized latent y^). In one example, the hyper-encoder network (121), the quantizer (122), the entropy encoder (123), the entropy decoder (124), and the hyper-decoder network (125) form a hyper-prior model that may be implemented using a neural network (e.g., a hyper-prior NN) at the hyper level. The prior model can represent information that is useful for correcting the context-based prediction. Data from the context model NN (116) and the hyper-prior model can be combined by an entropy parameter NN (117), which can generate parameters such as the mean and scale parameters of an entropy model, such as a conditional Gaussian entropy model (e.g., GMM).

[0055]

[0070] Referring to FIG. 1, on the encoder side, the quantized latent y^ from the quantizer (112) is supplied to the context model NN (116). On the decoder side, the quantized latent y^ from the entropy decoder (114) is supplied to the context model NN (116). The context model NN (116) can be implemented using a neural network such as a CNN. The context model NN (116) can generate an output ocm,i based on the context y^<i which is the quantized latent available to the context model NN (116). The context y^<i can include the latent quantized previously on the encoder side, or the latent quantized entropy-decoded previously on the encoder side. The relationship between the output ocm,i of the context model NN (116) and the input (e.g., y^<i) can be described using Eq. 4:

[0056]

Number

[0057]

[0071] The output ocm,i from the context model NN (116) and the output ohc from the hyper decoder network (125) are supplied to the entropy parameter NN (117) to generate an output oep. The entropy parameter NN (117) can be implemented using a neural network such as a CNN. The relationship between the output oep of the entropy parameter NN (117) and the input (e.g., ocm,i and ohc) can be described using Eq. 5:

[0058]

Number

[0059]

[0072] The second sub-NN (152) can be described as follows: The latent y can be fed into a hyper-encoder network (121) to generate a hyper-latent z. In one example, the hyper-encoder network (121) can be implemented using a neural network such as a CNN. The relationship between the hyper-latent z and the latent y can be described using Eq. 6:

[0060]

number

[0061]

[0073] The hyper-latencies z are quantized by a quantizer (122) to generate quantized latents z^. The quantized latents z^ can be losslessly compressed by an entropy encoder (123) to generate side information, such as coded bits (132) from the hyper-neural network. The entropy encoder (123) can use an entropy coding technique, such as Huffman coding, arithmetic coding, or the like. In one example, the entropy encoder (123) uses arithmetic coding and is an arithmetic encoder. In one example, the side information, such as coded bits (132), can be transmitted in a coded bitstream, such as with the coded image (131).

[0062]

[0074] The side information, such as the coded bits (132), may be decompressed (e.g., entropy decoded) by an entropy decoder (124) to generate an output. The entropy decoder (124) may use an entropy coding technique, such as Huffman coding, arithmetic coding, etc. In one example, the entropy decoder (124) uses arithmetic decoding and is an arithmetic decoder. In one example, lossless compression is used in the entropy encoder (123) and lossless decompression is used in the entropy decoder (124), where noise due to transmission of the side information, etc., may be omitted, and the output from the entropy decoder (124) may be the quantized latent ẑ. The hyper-decoder network (125) may decode the quantized latent ẑ to generate an output ohc. The relationship between the output ohc and the quantized latent ẑ may be described using Eq. 7:

[0063]

number

[0064]

[0075] As explained above, the compressed or encoded bits (132) can be added to the coded bitstream as side information that allows the entropy decoder (114) to use a conditional entropy model, which can thus be image-dependent and spatially adaptive, and therefore potentially more accurate than a fixed entropy model.

[0065]

[0076] The NIC framework (100) may be suitably adapted, for example, to omit one or more components shown in Figure 1, to modify one or more components shown in Figure 1, and / or to include one or more components not shown in Figure 1. In one example, a NIC framework using a fixed entropy model includes a first sub-NN (151) and does not include a second sub-NN (152). In one example, the NIC framework subsumes the components in the NIC framework (100) except for the entropy encoder (123) and the entropy decoder (124).

[0066]

[0077] In an embodiment, one or more components in the NIC framework (100) shown in Figure 1 are implemented using a neural network, such as a CNN. Each NN-based component in the NIC framework (e.g., the NIC framework (100)) (e.g., the main encoder network (111), the main decoder network (115), the context model NN (116), the entropy parameter NN (117), the hyper encoder network (121), or the hyper decoder network (125)) may include any suitable architecture (e.g., have any suitable combination of layers), include any suitable type of parameters (e.g., weights, biases, combinations of weights and biases, etc.), and include any suitable number of parameters.

[0067]

[0078] In an embodiment, the main encoder network (111), the main decoder network (115), the context model NN (116), the entropy parameter NN (117), the hyper encoder network (121), and the hyper decoder network (125) are implemented using respective CNNs.

[0068]

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

[0069]

[0080] FIG. 3 illustrates an exemplary CNN of the main decoder network (115) according to an embodiment of the present disclosure. For example, the main decoder network (115) includes three sets of layers, where each set of layers includes a deconvolution layer 5x5 c192 s2 followed by an IGDN layer. Further, the three sets of layers are followed by a deconvolution layer 5x5 c3 s2 followed by an IGDN layer. One or more layers illustrated in FIG. 3 may be modified and / or omitted. Additional layers may be added to the main decoder network (115).

[0070]

[0081] FIG. 4 illustrates an exemplary CNN of a hyper-encoder network (121) according to an embodiment of the present disclosure. For example, the hyper-encoder network (121) includes a convolutional layer 3x3 c192 s1 followed by a leaky ReLU, a convolutional layer 5x5 c192 s2 followed by a leaky ReLU, and a convolutional layer 5x5 c192 s2. One or more layers illustrated in FIG. 4 may be modified and / or omitted. Additional layers may be added to the hyper-encoder network (121).

[0071]

[0082] FIG. 5 illustrates an exemplary CNN of a hyper-decoder network (125) according to an embodiment of the present disclosure. For example, the hyper-decoder network (125) includes a deconvolution layer 5x5 c192 s2 followed by a leaky ReLU, a deconvolution layer 5x5 c288 s2 followed by a leaky ReLU, and a deconvolution layer 3x3 c384 s1. One or more layers illustrated in FIG. 5 may be modified and / or omitted. Additional layers may be added to the hyper-decoder network (125).

[0072]

[0083] Figure 6 shows an exemplary CNN of the context model NN (116) according to an embodiment of the present disclosure. For example, the context model NN (116) includes a masked convolution 5x5 c384 s1 for context prediction, and thus, the context y^<i in Eq. 4 includes a limited context (e.g., a 5x5 convolution kernel). The convolution layer in Figure 6 can be modified. Additional layers can be added to the context model NN (1016).

[0073]

[0084] Figure 7 shows an exemplary CNN of the entropy parameter NN (117) according to an embodiment of the present disclosure. For example, the entropy parameter NN (117) includes a convolution layer 1x1 c640 s1, a subsequent leaky ReLU, a convolution layer 1x1 c512 s1, a subsequent leaky ReLU, and a convolution layer 1x1 c384 s1. One or more of the layers shown in Figure 7 can be modified and / or omitted. Additional layers can be added to the entropy parameter NN (117).

[0074]

[0085] The NIC framework (100) can be implemented using a CNN as described in connection with Figures 2-7. The NIC framework (100) can be appropriately adapted such that one or more components within the NIC framework (100) (e.g., (111), (115), (116), (117), (121), and / or (125)) are implemented using any suitable type of neural network (e.g., a CNN or a non-CNN based neural network). One or more other components of the NIC framework (100) can be implemented using a neural network.

[0075]

[0086] The NIC framework (100) including a neural network (e.g., a CNN) can be trained to learn the parameters used in the neural network. For example, when a CNN is used, the parameters represented by θ1-θ6, e.g., The weights and biases used in the convolution kernels in the main encoder network (111) (if biases are used in the main encoder network (111)), The weights and biases used in the convolution kernels in the main decoder network (115) (if biases are used in the main decoder network (115)), The weights and biases used in the convolution kernels in the hyper-encoder network (121) (if biases are used in the hyper-encoder network (121)); the weights and biases used in the convolution kernels in the hyper-decoder network (125) (if biases are used in the hyper-decoder network (125)); the weights and biases used in the convolution kernels in the context model NN (116) (if biases are used in the context model NN (116)); and The weights and biases (if biases are used in the entropy parameter NN (117)) used in the convolution kernels in the entropy parameter NN (117) can each be learned during a training process (e.g., an offline training process, an online training process, etc.).

[0076]

[0087] In one example, referring to FIG. 2, the main encoder network (111) includes four convolution layers, where each convolution layer has a convolution kernel of 5x5 and 192 channels. Thus, the number of weights used in the convolution kernels in the main encoder network (111) is 19200 (i.e., 4x5x5x192). The parameters used in the main encoder network (111) include the 19200 weights and an optional bias. Additional parameters can be included if biases and / or additional NNs are used in the main encoder network (111).

[0077]

[0088] Referring to FIG. 1, the NIC framework (100) includes at least one component or module built on a neural network. The at least one component may include one or more of a main encoder network (111), a main decoder network (115), a hyper encoder network (121), a hyper decoder network (125), a context model NN (116), and an entropy parameter NN (117). At least one component may be trained individually. In one example, a training process is used to learn parameters of each component separately. At least one component may be trained together as a group. In one example, a training process is used to learn parameters of a subset of at least one component together. In one example, a training process is used to learn parameters for all of the at least one component, thus referred to as E2E optimization.

[0078]

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

[0079]

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

[0080]

[0091] For simplicity, the training process (e.g., offline training process, online training process, etc.) in the following is described using training images as an example. This description can be appropriately adapted to training blocks. A training image t of a set of training images can be passed through the encoding process of FIG. 1 to generate a compressed representation (e.g., for coded information, e.g., a bitstream). The coded information can be passed through the decoding process described in FIG. 1 to calculate and reconstruct a reconstructed image t-.

[0081]

[0092] For the NIC framework (100), two competing targets are balanced, e.g., reconstruction quality and bit consumption. A quality loss function (e.g., distortion or distortion loss) D(t,t-) can be used to indicate the reconstruction quality, such as the difference between the reconstruction (e.g., reconstructed image t-) and the original image (e.g., training image t). A rate (or rate loss) R can be used to indicate the bit consumption of the compressed representation. In one example, the rate loss R further includes side information, e.g., used in determining the context model.

[0082]

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

[0083]

number

[0084]

[0094] Various models can be used to determine the distortion loss D and the rate loss R, and therefore the joint RD loss L in Eq. 1. In one example, the distortion loss D(t,t-) is expressed as a Peak Signal-to-Noise Ratio (PSNR), which is a metric based on mean squared error, a Multiscale Structural Similarity (MS-SSIM) quality index, a weighted combination of PSNR and MS-SSIM, etc.

[0085]

[0095] In one example, the target of the training process is to train an encoding neural network (e.g., encoding DNN) such as a video encoder to be used on the encoder side, and a decoding neural network (e.g., decoding DNN) such as a video decoder to be used on the decoder side. In one example, referring to FIG. 1, the encoding neural network may include a main encoder network (111), a hyper encoder network (121), a hyper decoder network (125), a context model NN (116), and an entropy parameter NN (117). The decoding neural network may include a main decoder network (115), a hyper decoder network (125), a context model NN (116), and an entropy parameter NN (117). The video encoder and / or the video decoder may include other components based on NNs and / or not based on NNs.

[0086]

[0096] A NIC framework (e.g., the NIC framework (100)) can be trained in an E2E manner. In one example, the encoding neural network and the decoding neural network are updated together in a training process based on gradients that are backpropagated in an E2E manner, for example, using a gradient descent algorithm. The gradient descent algorithm can iteratively optimize parameters of the NIC framework to find a local minimum (e.g., a local minimum of rate-distortion loss) of a differentiable function of the NIC framework. For example, the gradient descent algorithm can employ iterative steps in the opposite direction of the gradient (or approximate gradient) at a current point of the differentiable function.

[0087]

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

[0088]

[0098] It should be noted that an image encoder and an image decoder according to the NIC framework may have corresponding structures.

[0089]

[0099] 8 illustrates an exemplary image encoder (800) according to an embodiment of the present disclosure. The image encoder (800) includes a main encoder network (811), a quantizer (812), an entropy encoder (813), and a second sub-NN (852). The main encoder network (811) is configured similarly to the main encoder network (111), the quantizer (812) is configured similarly to the quantizer (112), the entropy encoder (813) is configured similarly to the entropy encoder (113), and the second sub-NN (852) is configured similarly to the second sub-NN (152). Descriptions of these components are given above in connection with FIG. 1 and are omitted here for clarity.

[0090]

[0100] 9 illustrates an exemplary image decoder (900) according to an embodiment of the present disclosure. The image decoder (900) may correspond to the image encoder (800). The image decoder (900) may include a main decoder network (915), an entropy decoder (914), a context model NN (916), an entropy parameter NN (917), an entropy decoder (924), and a hyper decoder network (925). The main decoder network (915) is configured similarly to the main decoder network (115), the entropy decoder (914) is configured similarly to the entropy decoder (114), the context model NN (916) is configured similarly to the context model NN (116), the entropy parameter NN (917) is configured similarly to the entropy parameter NN (117), the entropy decoder (924) is configured similarly to the entropy decoder (124), and the hyper decoder network (925) is configured similarly to the hyper decoder network (125), a description of which has been given above in relation to FIG. 1 and will be omitted here for clarity.

[0091]

[0101] 8-9, on the encoder side, an image encoder (800) can generate an encoded image (831) and encoded bits (832) to be transmitted in a bitstream. On the decoder side, an image decoder (900) can receive and decode the encoded image (931) and encoded bits (932). The encoded image (931) and encoded bits (932) can be parsed from the received bitstream.

[0092]

[0102] 10-11 show an exemplary image encoder (1000) and corresponding image decoder (1100), respectively, according to an embodiment of the present disclosure. Referring to FIG. 10, the image encoder (1000) includes a main encoder network (1011), a quantizer (1012), and an entropy encoder (1013). The main encoder network (1011) is configured similarly to the main encoder network (111), the quantizer (1012) is configured similarly to the quantizer (112), and the entropy encoder (1013) is configured similarly to the entropy encoder (113). Descriptions are given above in connection with FIG. 1 and are omitted here for clarity.

[0093]

[0103] Referring to Figure 11, the image decoder (1100) includes a main decoder network (1115) and an entropy decoder (1114). The main decoder network (1115) is configured similarly to the main decoder network (115), and the entropy decoder (1114) is configured similarly to the entropy decoder (114). A description of these is given above in relation to Figure 1 and is omitted here for clarity.

[0094]

[0104] 10 and 11, an image encoder (1000) is capable of generating an encoded image (1031) to be included in a bitstream. An image decoder (1100) is capable of receiving the bitstream and decoding the encoded image (1131) carried in the bitstream.

[0095]

[0105] According to some aspects of the present disclosure, image compression can remove redundancy in an image, and thus can represent the compressed image using a much smaller number of bits. Image compression can be useful for image transmission and storage. The compressed image can be referred to as an image in a compressed domain. Image processing on the compressed image can be referred to as image processing in a compressed domain. In some examples, image compression can be performed at different compression rates, and the compressed domain can be referred to as a multi-rate compression domain in some examples.

[0096]

[0106] Computer vision (CV) is a branch of artificial intelligence (AI) that uses computers with neural networks to detect, understand, and process image content. CV tasks may include (but are not limited to) image classification, object detection, super-resolution (generating a high-resolution image from one or more lower-resolution images), image denoising, and the like. In some relevant examples, CV tasks are performed on uncompressed images (e.g., in the uncompressed domain), such as an original image without compression, an image reconstructed from a compressed image, and so on. In some examples, the compressed image is decompressed to generate a reconstructed image, and CV tasks are performed on the reconstructed image. Reconstruction can be computationally intensive. Performing CV tasks in the compressed domain without image reconstruction can reduce computational complexity and reduce latency of the CV tasks.

[0097]

[0107] Some aspects of the present disclosure provide techniques for computer vision task neural networks in compressed domain. In some examples, the techniques can be used in an end-to-end (E2E) optimization framework that includes a model of a compressed domain CV task framework (CDCVTF). The E2E optimization framework includes an encoder (also called an encoding part) and a decoder (also called a decoding part). The encoder can generate a coded bitstream of an input image, and the decoder decodes the coded bitstream to generate a CV task-based result. The end-to-end (E2E) optimization framework can be a pre-trained artificial neural network (ANN)-based framework.

[0098]

[0108] In some examples, the CV task on the compressed image may be performed by two parts of a neural network. In some examples, the two parts of the neural network form an E2E framework that may be trained end-to-end. The two parts of the neural network include a first part of an image coding neural network and a second part of a CV task neural network. In some examples, the image coding neural network may also be referred to as an image compression encoder, and the CV task neural network may also be referred to as a CV task decoder. The image compression encoder may encode the image into a coded bitstream. The CV task decoder may decode the coded bitstream to generate a CV task result in the compressed domain. The CV task decoder performs a CV task based on the compressed image (e.g., in the compressed domain).

[0099]

[0109] In some examples, the image is compressed by an encoder of the NIC framework to generate a coded bitstream carrying the compressed image or the compressed feature map, which can then be provided to a CV task neural network to generate a CV task result.

[0100]

[0110] FIG. 12 illustrates a system (1200) for performing CV tasks in a compressed domain in some examples. The system (1200) includes an image compression encoder (1220), an image compression decoder (1250), and a CV task decoder (1270). The image compression decoder (1250) may correspond to the image compression encoder (1220). For example, the image compression encoder (1220) may be configured similar to the image encoder (800), and the image compression decoder (1250) may be configured similar to the image decoder (900). In another example, the image compression encoder (1220) may be configured similar to the image encoder (1000), and the image compression decoder (1250) may be configured similar to the image decoder (1100). In some examples, the image compression encoder (1220) is configured as an encoding portion (having an encoder model) of a NIC framework, and the image compression decoder (1250) is configured as a decoding portion (having a decoder model) of the NIC framework. The NIC framework can be trained end-to-end to determine pre-trained parameters for the encoder model and the decoder model of the E2E optimization framework. The image compression encoder (1220) and the image compression decoder (1250) are configured according to the encoder model and the decoder model having the pre-trained parameters. The image compression encoder (1220) can receive an input image, compress the input image, and generate a coded bitstream carrying a compressed image corresponding to the input image. The image compression decoder (1250) can receive the coded bitstream, decompress the compressed image, and generate a reconstructed image.

[0101]

[0111] The CV task decoder (1270) is configured to decode a coded bitstream carrying a compressed image and generate a CV task result corresponding to an input image. The CV task decoder (1270) may be a single task decoder or may be a multi-task decoder. The CV tasks may include, but are not limited to, super-resolution, object detection, image denoising, image classification, etc.

[0102]

[0112] The CV task decoder (1270) includes a neural network (e.g., a CV task decoder model) that is trained based on training data. For example, the training data can include training images, compressed training images (e.g., by the image compression encoder (1220)), and guideline CV task results for the training images. For example, the CV task decoder (1270) can take the compressed training images as input and generate trained CV task results. The CV task decoder (1270) (e.g., having an adjustable neural network structure and adjustable parameters) is then trained to minimize the loss between the guideline CV task results and the trained CV task results. The training determines the structure and pre-trained parameters of the CV task decoder (1270).

[0103]

[0113] It should be noted that the CV task decoder (1270) can have any suitable neural network structure to generate the CV task result. In some embodiments, the CV task decoder (1270) decodes the coded bitstream to generate the CV task result directly without image reconstruction. In some embodiments, the CV task decoder (1270) first decodes the coded bitstream to generate a decompressed image (also called a reconstructed image), and then applies the CV task model to the decompressed image to generate the CV task result.

[0104]

[0114] In some examples, the image compression encoder (1220), the image compression decoder (1250), and the CV task decoder (1270) are in different electronic devices. For example, the image compression encoder (1220) is in a first device (1210), the image compression decoder (1250) is in a second device (1240), and the CV task decoder (1270) is in a third device (1260). In some examples, the image compression decoder (1250) and the CV task decoder (1270) can be in the same device. In some examples, the image compression encoder (1220) and the image compression decoder (1250) can be in the same device. In some examples, the image compression encoder (1220) and the CV task decoder (1270) can be in the same device. In some examples, the image compression encoder (1220), the image compression decoder (1250), and the CV task decoder (1270) may be in the same device.

[0105]

[0115] FIG. 13 illustrates a system (1300) for performing a CV task in a compressed domain in some examples. The system (1300) includes an image compression encoder (1320) and a CV task decoder (1370). In some examples, the image compression encoder (1320) is configured as an encoding portion (having an encoder model) of the NIC framework, and the CV task decoder (1370) is configured as a decoding portion (having a decoder model) of the NIC framework. The NIC framework can be trained end-to-end based on training data to determine pre-trained parameters of the encoder and decoder models of the E2E optimization framework. For example, the training data can include training images (uncompressed), guideline CV task results of the training images. For example, the NIC framework can take the training images as input and generate training CV task results. The NIC framework is then trained (with adjustable neural network structure and adjustable parameters) to minimize the loss between the guideline CV task results and the training CV task results. The image compression encoder (1320) and the CV task decoder (1370) are configured according to the pre-trained parameters.

[0106]

[0116] An image compression encoder (1320) can then receive the input image and generate a coded bitstream carrying the compressed image or compressed feature map. A CV task decoder (1370) can receive the coded bitstream, decompress the compressed image or compressed feature map, and generate a CV task result.

[0107]

[0117] The CV task decoder (1370) may be a single task decoder or may be a multi-task decoder. The CV tasks may include, but are not limited to, super-resolution, object detection, image denoising, image classification, etc.

[0108]

[0118] It should be noted that the CV task decoder (1370) can be any suitable neural network structure. In some embodiments, the CV task decoder (1370) decodes the coded bitstream to generate a CV task result directly without image reconstruction. In some embodiments, the CV task decoder (1370) first decodes the coded bitstream to generate a decompressed image (also called a reconstructed image), and then applies the CV task model to the decompressed image to generate a CV task result.

[0109]

[0119] In some examples, the image compression encoder (1320) and the CV task decoder (1370) are in different electronic devices, for example, the image compression encoder (1320) is in a first device (1310) and the CV task decoder (1370) is in a second device (1360), or in some examples, the image compression encoder (1320) and the CV task decoder (1370) can be in the same device.

[0110]

[0120] In some examples, online training can be used in image processing using neural networks, such as artificial intelligence (AI)-based neural image compression (NIC). In some examples, the techniques for online training-based image compression can be applied to a compression model in an end-to-end (E2E) optimization framework. The E2E optimization framework includes an encoding portion (also referred to as an encoder) and a decoding portion (also referred to as a decoder). In some examples, the encoding portion includes one or more pre-trained neural networks (referred to as one or more first pre-trained neural networks) capable of encoding one or more images into a bitstream. The decoding portion includes one or more pre-trained neural networks (referred to as one or more second pre-trained neural networks) capable of decoding the bitstream to generate one or more reconstructed images.

[0111]

[0121] In some examples, online training can be applied on both the encoder side (referred to as NIC-encoder online training) and the decoder side (referred to as NIC-decoder online training). In some examples, for NIC-encoder online training, the input image, the encoder parameters, and / or the encoder network structure can be adjusted to achieve a better compression rate. In some examples, for NIC-decoder online training, the decoder parameters can be adjusted and updated to achieve a better performance. In some examples, for NIC-decoder online training, additional network layers / modules can be added on the NIC-decoder side during online training to achieve better performance. Note that in one example, the added module parameters are encoded into the bitstream along with the compressed image for the decoder side to use. For example, a 3x3 convolutional layer can be added to the decoder part as an additional layer, and the parameters of the convolutional layer are adjusted during online training to achieve better performance. The parameters are signaled in the bitstream so that the decoder side can set up the convolutional layer and apply the convolutional layer to the reconstructed image.

[0112]

[0122] According to some aspects of the present disclosure, when the computer vision task is a reconstructed image-based task such as denoising or super-resolution (e.g., the output of the computer vision task is an image), online training-based processing can be used in a compressed domain computer vision task framework (CDCVTF) to enhance the performance of the CDCVTF. In some examples, the online training processing can adjust the CDCVTF on the encoder side, such as the input images, the encoder parameters, and / or the encoder network structure. In one example, the online training processing can determine an optimal substitute image to replace the original input image as the input image to the CDCVTF, and such online training processing can be referred to as online training-based preprocessing.

[0113]

[0123] In some cases, the online training process can adjust the CDCVTF on the decoder side, such as the decoder parameters and / or the decoder network structure, and such an online training process can be called online training-based postprocessing. CDCVTF is an end-to-end (E2E) optimization framework that is a pre-trained artificial neural network (ANN)-based framework.

[0114]

[0124] 14 illustrates an online training-based CDCVTF (1400) according to some embodiments of the present disclosure. The online training-based CDCVTF (1400) can be used for image-based CV tasks such as denoising, deblocking, super-resolution, etc. Note that the output of an image-based CV task is an image.

[0115]

[0125] In the example of FIG. 14, the online training based CDCVTF (1400) includes an image compression encoder (1420), a CV task decoder (1440), a CV task module (1430), and an online training controller (1450) coupled together. It should be noted that the image compression encoder (1420), the CV task decoder (1440), the CV task module (1430), and the online training controller (1450) can each be implemented as a software module, a hardware module, or a combination thereof. The software modules (e.g., computer programs) can be developed using a computer programming language. The hardware modules can be implemented using processing circuits and / or memory. Each module can be implemented using one or more processors (or a processor and memory). Similarly, a processor (or a processor and memory) can be used to implement one or more modules. Furthermore, each module can be a part of an overall module that includes the functionality of the module.

[0116]

[0126] In some examples, the image compression encoder (1420) is configured as an encoding portion (having an encoder model) of the NIC framework, and the CV task decoder (1440) is configured as a decoding portion (having a decoder model) of the NIC framework. The NIC framework can be trained end-to-end based on training data to determine pre-trained parameters for the encoder model and the decoder model of the E2E optimization framework. For example, the training data can include training images (uncompressed), guideline CV task results for the training images. For example, the NIC framework can take the training images as input and generate training CV task results. The NIC framework is then trained (with adjustable neural network structure and adjustable parameters) to minimize the loss between the guideline CV task results and the training CV task results. The image compression encoder (1420) and the CV task decoder (1440) are configured according to the pre-trained parameters.

[0117]

[0127] The CV task decoder (1440) may be a single task decoder or may be a multi-task decoder. The CV task decoder (1440) is configured to perform one or more image-based CV tasks whose output is an image. The image-based CV tasks performed by the CV task decoder (1440) may include, but are not limited to, super-resolution, object detection, image denoising, image deblocking, etc. It is noted that the CV task decoder (1440) may have any suitable neural network structure.

[0118]

[0128] In some examples, the CV task module (1430) includes a neural network configured to perform one or more image-based CV tasks in the uncompressed domain. The neural network is trained (e.g., pre-trained) based on training data to determine pre-trained parameters. For example, the training data can include training images (uncompressed) and corresponding guideline CV task images (e.g., super-resolution images, low-noise images, etc.). For example, the neural network can take the training images as input and generate training CV task images. The neural network is then trained (with adjustable neural network structure and adjustable parameters) to minimize loss between the training CV task images and the corresponding guideline CV task images. It should be noted that in some examples, the CV task module (1430) can perform one or more image-based CV tasks in the uncompressed domain using other suitable techniques.

[0119]

[0129] In some examples, an image compression encoder (1420) can receive an input image and generate an encoded image (e.g., a compressed image or a compressed feature map). A CV task decoder (1440) can receive the encoded image, decompress the compressed image or the compressed feature map, and generate a CV task-based reconstructed image.

[0120]

[0130] Further, the input image is input to a CV task module (1430) that performs a CV task in the uncompressed domain to generate a CV task-based processed image that corresponds to the input image.

[0121]

[0131] The online training controller (1450) receives the CV task-based reconstructed image and the CV task-based processed image and determines tunings such as input image tuning, encoder parameter tuning, encoder structure tuning, decoder parameter tuning, decoder structure tuning, etc. in the online training based CDCVTF (1400).

[0122]

[0132] In some examples, the online training controller (1450) determines tuning updates for the CV task decoder (1440), and such an online training process may be referred to as online post-training processing. In some examples, the online training controller (1450) determines optimal substitute images to replace input images, and such an online training process may be referred to as online pre-training processing.

[0123]

[0133] 15 illustrates a system (1500) for performing online training-based post-processing in some examples. The system (1500) includes a first electronic device (1501) and a second electronic device (1502) coupled to each other via any suitable communication channel.

[0124]

[0134] The first electronic device (1501) includes an online training based CDCVTF (1510). Specifically, the online training based CDCVTF (1510) includes an image compression encoder (1520), a CV task decoder (1540), a CV task module (1530), and an online training controller (1550) coupled together. The image compression encoder (1520) is configured similarly to the image compression encoder (1420); the CV task decoder (1540) is configured similarly to the CV task decoder (1440); the CV task module (1530) is configured similarly to the CV task module (1430); and the online training controller (1550) is configured similarly to the online training controller (1450). Descriptions of these components have been provided above in connection with FIG. 14 and will be omitted here for clarity.

[0125]

[0135] In the example of FIG. 15, during online training, an image compression encoder (1520) receives an input image and generates an encoded image (e.g., a compressed image or a compressed feature map). A CV task decoder (1540) receives the encoded image, decompresses the compressed image or the compressed feature map, and generates a CV task-based reconstructed image. Furthermore, the input image is input to a CV task module (1530) that performs a CV task in the uncompressed domain to generate a CV task-based processed image that corresponds to the input image.

[0126]

[0136] Further, in the example of FIG. 15, the online training controller (1550) is configured to determine updates to the CV task decoder (1540) based on the CV task-based processed image and the CV task-based reconstructed image. For example, the online training controller (1550) can determine updates to the CV task decoder (1540) that optimize rate-distortion performance for the reconstructed CV image and the processed CV image. In one example, during online training, the online training controller (1550) can determine updates to the CV task decoder (1540) based on gradients backpropagated in an E2E manner, for example, using a gradient descent algorithm. The gradient descent algorithm can iteratively optimize parameters of the CV task decoder (1540) to find a local minimum (e.g., a local minimum of rate-distortion loss) of a differentiable function of the online training-based CDCVTF (1510). For example, the gradient descent algorithm can take iterative steps in the opposite direction of the gradient (or an approximate gradient) of the differentiable function.

[0127]

[0137] In some examples, a portion of the parameters in the CV task decoder (1540) may be tunable and updated. In some examples, the entire parameters of the CV task decoder (1540) may be tunable and updated. In some examples, the neural network structure of the CV task decoder (1540) may be updated. In one example, additional layers / modules are added to the CV task decoder (1540). The online training controller (1550) may tune the parameters of the additional layers / modules.

[0128]

[0138] In the example of FIG. 15, the online training based CDCVTF (1510) may generate a bitstream carrying images encoded by the image compression encoder (1520) and updates to the CV task decoder (1540). In one example, some of the parameters of the CV task decoder (1540) are updated and the bitstream may include additional bits indicating the update of some of the parameters in the CV task decoder (1540). In another example, the entire parameters of the CV task decoder (1540) are updated and the bitstream may include additional bits indicating the update of the entire parameters in the CV task decoder (1540). In one example, an additional convolutional layer (e.g., a 3x3 convolutional layer) is added in the CV task decoder (1540), for example, as the last layer of the neural network of the CV task decoder (1540). The bitstream may include additional bits indicating the additional convolutional layer.

[0129]

[0139] Note that in some examples, online training may be performed based on multiple input images to determine updates to the CV task decoder (1540).

[0130]

[0140] The second electronic device (1502) includes a parser (1560) and a CV task decoder (1570). The parser (1560) is capable of receiving the bitstream and extracting a first bit indicative of an encoded image and a second bit indicative of an update.

[0131]

[0141] In some examples, the CV task decoder (1570) corresponds to the CV task decoder (1540) before online training. For example, the CV task decoder (1570) has the same neural network structure and the same parameter values ​​as the CV task decoder (1540) before online training. Based on the second bit indicating the update, the CV task decoder (1570) can be updated to correspond to the CV task decoder (1540) after online training. After applying the update to the CV task decoder (1570), the CV task decoder (1570) decodes the encoded image and generates a CV task-based reconstructed image that has better performance (compared to without the update).

[0132]

[0142] 16 illustrates a system (1600) for performing online training-based pre-processing in some examples. The system (1600) includes a first electronic device (1601) and a second electronic device (1602) coupled to each other via any suitable communication channel.

[0133]

[0143] The first electronic device (1601) includes an online training based CDCVTF (1610). Specifically, the online training based CDCVTF (1610) includes an image compression encoder (1620), a CV task decoder (1640), a CV task module (1630), an online training controller (1650), and an image update module (1660) coupled together. The image compression encoder (1620) is configured similarly to the image compression encoder (1420); the CV task decoder (1640) is configured similarly to the CV task decoder (1440); the CV task module (1630) is configured similarly to the CV task module (1430); and the online training controller (1650) is configured similarly to the online training controller (1450). Descriptions of these components have been provided above in connection with FIG. 14 and will not be repeated here for clarity. The image update module (1660) may be implemented as a software module, a hardware module, or a combination thereof.

[0134]

[0144] In the example of FIG. 16, the image update module (1660) is configured to receive an input image and apply updates to the input image to generate an updated input image. During online training, the image update module (1660) first applies an initial update (e.g., no update) to the input image to generate an updated input image. The image compression encoder (1620) receives the updated input image and generates an encoded updated image (e.g., a compressed image or a compressed feature map). The CV task decoder (1640) receives the encoded updated image, decompresses the compressed image or the compressed feature map, and generates a CV task-based reconstructed image. Furthermore, the CV task module (1630) performs a CV task on the input image in the uncompressed domain to generate a CV task-based processed image (also called a guideline image) corresponding to the input image.

[0135]

[0145] 16, the online training controller (1650) is further configured to determine updates (also referred to as iterative updates) to the input image based on the CV task-based processed image and the CV task-based reconstructed image. For example, the online training controller (1650) may determine an optimal substitute image (for the input image) using the changes (iterative updates) to the input image and replace the input image with the optimal substitute image for image compression.

[0136]

[0146] In one example, during online training, the online training controller (1650) can determine updates to the input image based on gradients backpropagated in an E2E manner, for example using a gradient descent algorithm. Model parameters, such as parameters of the image compression encoder (1620) and parameters of the CV task module (1630), are fixed (e.g., non-tunable) during online training. The online training controller (1650) can calculate a loss (e.g., rate-distortion loss) based on the CV task-based processed image and the CV task-based reconstructed image. The loss can be a differentiable function, and the online training controller (1650) can calculate a gradient based on the loss. The online training controller (1650) can use a gradient descent algorithm that can iteratively optimize the input image to find a local minimum of the differentiable function of the online training-based CDCVTF (1610) (e.g., a local minimum of the rate-distortion loss). For example, a gradient descent algorithm can take iterative steps in the opposite direction of the gradient (or an approximate gradient) of a differentiable function to determine updates (also called iterative updates) to an input image.

[0137]

[0147] Note that the entire model of the online training-based CDCVTF (1610) can be made differentiable (so that gradients can be backpropagated) by replacing the non-differentiable parts with differentiable ones (e.g., replacing quantization with noise injection). Therefore, the above optimization can be solved iteratively by gradient descent.

[0138]

[0148] In the example of Figure 16, after online training, the image compression encoder (1620) can compress the updated image, such as the optimal alternative image determined by online training, to generate an encoded updated image. The online training-based CDCVTF (1610) then generates a bitstream carrying the encoded updated image.

[0139]

[0149] The second electronic device (1602) includes a CV task decoder (1670). In some examples, the CV task decoder (1670) corresponds to the CV task decoder (1640). For example, the CV task decoder (1670) has the same neural network structure and the same parameter values ​​as the CV task decoder (1640), such as a pre-trained neural network. The CV task decoder (1670) decodes the coded updated image and generates a CV task-based reconstructed image with better performance (compared to the coded image corresponding to the original input image).

[0140]

[0150] 17 shows a flow chart outlining a process (1700) according to an embodiment of the present disclosure. The process (1700) is an encoding process. The process (1700) can be performed in an electronic device, such as the electronic device (1501). In some embodiments, the process (1700) is implemented with software instructions, such that the processing circuitry executes the software instructions, causing the processing circuitry to perform the process (1700). The process begins at (S1701) and proceeds to (S1710).

[0141]

[0151] In (S1710), online training of a compressed domain computer vision task framework (CDCVTF) is performed based on an input image and a guideline image resulting from an image-based computer vision task for the input image. The CDCVTF includes an encoding part and a decoding part, where the encoding part compresses the input image into a compressed domain, and the decoding part performs an image-based computer vision task in the compressed domain. The online training determines updates to the neural network in the decoding part that at least reduce the loss between the result of the image-based computer vision task in the compressed domain and the guideline image.

[0142]

[0152] At (1720), the input image is encoded into an encoded image by an encoding portion of the CDCVTF. In some examples, if the online training does not determine an update for the encoding portion, the input image is encoded into an encoded image by the encoding portion during online training. In some examples, if the online training determines an encoder update for the encoding portion, the input image is encoded into an encoded image by the encoding portion using the encoder update.

[0143]

[0153] At 1730, a bitstream is formed that carries the encoded image and additional bits that represent updates to the neural network in the decoding portion.

[0144]

[0154] In some examples, an image-based computer vision task is performed on an input image in an uncompressed domain to generate a guideline image that corresponds to the input image.

[0145]

[0155] In some examples, the additional bits indicate one or more updated values ​​for each of the one or more adjustable parameters of the decoded portion. In one example, the additional bits indicate an update to all of the parameters in the decoded portion.

[0146]

[0156] In some examples, the additional bits indicate additional layers in the neural network of the decoding portion. The additional bits indicate parameter values ​​of the additional layers. In one example, the additional layers are convolutional layers.

[0147]

[0157] In some examples, the encoding portion is configured to compress an input image into an encoded image, the decoding portion is configured to perform an image-based computer vision task on the encoded image to generate a reconstructed image, and the online training determines updates based on the reconstructed image and the guideline image.

[0148]

[0158] In some examples, the online training determines updates for the decoding portion and encoder updates for the neural network in the encoding portion.

[0149]

[0159] Note that the output of an image-based computer vision task is an image, which may include at least one of image denoising, image deblocking, and super-resolution.

[0150]

[0160] The process (1700) then proceeds to (S1799) and ends.

[0151]

[0161] Process (1700) may be adapted appropriately for various scenarios, and the steps in process (1700) may be adjusted accordingly. One or more of the steps in process (1700) may be adapted, omitted, repeated, and / or combined. Any suitable order may be used to perform process (1700). Additional steps may be added.

[0152]

[0162] 18 shows a flow chart outlining a process (1800) according to an embodiment of the present disclosure. The process (1800) is a decoding process. The process (1800) can be performed in an electronic device, such as the electronic device (1502). In some embodiments, the process (1800) is implemented in software instructions, such that the processing circuitry executes the software instructions, causing the processing circuitry to perform the process (1800). The process begins at (S1801) and proceeds to (S1810).

[0153]

[0163] At (1810), a bitstream is received. The bitstream includes a first bit carrying an encoded image corresponding to the image, and a second bit indicating an update of a neural network in a decoder for an image-based computer vision task in a compressed domain. The decoder corresponds to a decoding portion in a Compressed Domain Computer Vision Task Framework (CDCVTF). The update is determined by online training of the CDCVTF according to the image and a guideline image according to the result of the image-based computer vision task for the image (in the uncompressed domain). The online training determines an update that reduces loss between the result of the image-based computer vision task in the compressed domain and the guideline image.

[0154]

[0164] At (1820), the decoder's neural network is updated according to the second bit.

[0155]

[0165] In (1830), a decoder is used together with updates in a neural network to generate a reconstructed image according to the first bit of the bitstream.

[0156]

[0166] In some examples, the second bit indicates one or more updated values ​​for each of the one or more parameters in the neural network. In one example, the second bit indicates value changes for all parameters in the neural network.

[0157]

[0167] In some examples, the second bit indicates an additional layer in the neural network and indicates a parameter value of the additional layer. In one example, the additional layer is a convolutional layer.

[0158]

[0168] Note that the output of an image-based computer vision task is an image, which may include at least one of image denoising, image deblocking, and super-resolution.

[0159]

[0169] The process (1800) then proceeds to (S1899) and ends.

[0160]

[0170] Process (1800) may be adapted appropriately for various scenarios, and the steps in process (1800) may be adjusted accordingly. One or more of the steps in process (1800) may be adapted, omitted, repeated, and / or combined. Any suitable order may be used to perform process (1800). Additional steps may be added.

[0161]

[0171] 19 shows a flow chart outlining a process (1900) according to an embodiment of the present disclosure. The process (1900) is an encoding process. The process (1900) can be performed in an electronic device, such as the electronic device (1601). In some embodiments, the process (1900) is implemented in software instructions, such that the processing circuitry executes the software instructions, causing the processing circuitry to perform the process (1900). The process begins at (S1901) and proceeds to (S1910).

[0162]

[0172] In (1910), a substitute image for an input image is determined according to online training of a compressed domain computer vision task framework (CDCVTF). CDCVTF includes an encoding part and a decoding part. The encoding part compresses the input image into the compressed domain using the current iterative update, and the decoding part performs an image-based computer vision task in the compressed domain. The online training determines a substitute image that reduces the loss between the result of the image-based computer vision task in the compressed domain and a guideline image resulting from the image-based computer vision task for the input image.

[0163]

[0173] At (1920), the alternative image is encoded into the bitstream by the encoding portion.

[0164]

[0174] In some examples, an image-based computer vision task is performed in the uncompressed domain to generate a guideline image.

[0165]

[0175] Further, in some examples, the encoding portion is configured to compress the input image into a current encoded updated image using a current iterative update, and the decoding portion is configured to perform an image-based computer vision task on the current encoded updated image to generate a current reconstructed image, and a next iterative update is determined based on the current reconstructed image and the guideline image.

[0166]

[0176] Note that the output of an image-based computer vision task is an image, which may include at least one of image denoising, image deblocking, and super-resolution.

[0167]

[0177] Note that in some cases the parameters of the neural networks in the encoding and decoding parts are fixed to pre-trained values.

[0168]

[0178] Next, the process (1900) proceeds to (S1999) and ends.

[0169]

[0179] The process (1900) may be adapted appropriately for various scenarios, and the steps in the process (1900) may be adjusted accordingly. One or more of the steps in the process (1900) may be adapted, omitted, repeated, and / or combined. Any suitable order may be used to perform the process (1900). Additional steps may be added.

[0170]

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

[0171]

[0181] Computer software may be coded using any suitable machine code or computer language that may be subject to assembly, compilation, linking, or similar mechanisms to produce code that contains instructions that may be executed directly by one or more computer central processing units (CPUs), graphics processing units (GPUs), etc., or instructions that may be executed via interpretation, microcode execution, etc.

[0172]

[0182] The instructions may be executed in various types of computers or components thereof, including, for example, personal computers, tablet computers, servers, smartphones, gaming devices, Internet of Things devices, etc.

[0173]

[0183] The components illustrated in Figure 20 for the computer system (2000) are exemplary in nature and are not intended to suggest any limitations on the scope of use or functionality of the computer software implementing the embodiments of the present disclosure, nor should the arrangement of components be interpreted as having any dependency or requirement regarding any one or combination of components illustrated in the exemplary embodiment of the computer system (2000).

[0174]

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

[0175]

[0185] The input human interface devices may include one or more of the following (only one of each is depicted): a keyboard (2001), a mouse (2002), a trackpad (2003), a touch screen (2010), a data glove (not shown), a joystick (2005), a microphone (2006), a scanner (2007), and a camera (2008).

[0176]

[0186] The computer system (2000) may also include certain human interface output devices that may stimulate one or more of the human user's senses, for example, through tactile output, sound, light, and smell / taste. Such human interface output devices may include haptic output devices (e.g., haptic feedback via touch screens (2010), data gloves (not shown), joysticks (2005), although there may be haptic feedback devices that do not function as input devices), auditory output devices (e.g., speakers (2009), headphones (not shown)), visual output devices (e.g., screens including CRT screens, LCD screens, plasma screens, OLED screens (2010), each with or without touch screen input capability, each with or without haptic feedback capability, some of which may be capable of outputting two-dimensional visual output, three or more dimensional output by means such as stereoscopic output; virtual reality glasses (not shown), holographic displays, and smoke tanks (not shown)), and printers (not shown).

[0177]

[0187] The computer system (2000) may also include human accessible storage devices and their associated media, such as optical media, including CD / DVD ROM / RW (2020), using media such as CD / DVD (2021), thumb drives (2022), removable hard drives or solid state drives (2023), legacy magnetic media (not shown), such as tapes and floppy disks (not shown), and specialized ROM / ASIC / PLD based devices, such as security dongles (not shown).

[0178]

[0188] Those skilled in the art will also understand that the term "computer-readable medium" as used in connection with the subject matter disclosed herein does not encompass transmission media, carrier waves, or other transitional signals.

[0179]

[0189] The computer system (2000) may also include interfaces (2054) to one or more communication networks (2055). The networks may be, for example, wireless, wired, or optical. The networks may further be local, wide area, metropolitan, vehicular and industrial, real-time, delay tolerant, etc. Examples of networks include Ethernet, wireless LANs, cellular networks (including GSM, 3G, 4G, 5G, LTE, etc.), TV wired or wireless wide area digital networks (including cable TV, satellite TV, and terrestrial TV), vehicular and industrial including CANBus, etc. Particular networks typically require an external network interface adapter that is attached to a particular general-purpose data port or peripheral bus (2049) (e.g., a USB port on the computer system (2000)); others are commonly integrated into the core of the computer system (2000) by attachment to a system bus as described below (e.g., an Ethernet interface is integrated in a PC computer system, a cellular network interface is integrated in a smartphone computer system). Using any of these networks, the computer system (2000) can communicate with other entities. Such communications can be one-way receive only (e.g., broadcast television), one-way transmit only (e.g., CANbus to certain CANbus devices), or bi-directional, such as to other computer systems using local or wide area digital networks. Specific protocols and protocol stacks can be used with each of these networks and network interfaces, as described above.

[0180]

[0190] The aforementioned human interface devices, human accessible storage devices, and network interfaces may be attached to a core (2040) of the computer system (2000).

[0181]

[0191] The cores (2040) may include one or more central processing units (CPUs) (2041), graphics processing units (GPUs) (2042), specialized programmable processing devices in the form of field programmable gate arrays (FPGAs) (2043), hardware accelerators for specific tasks (2044), graphics adapters (2050), etc. These devices may be connected via a system bus (2048), along with read-only memory (ROM) (2045), random access memory (2046), and internal mass storage devices (e.g., internal non-user accessible hard drives, SSDs, etc.) (2047). In some computer systems, the system bus (2048) may be accessible in the form of one or more physical plugs to allow expansion with additional CPUs, GPUs, etc. Peripheral devices may be attached directly to the core's system bus (2048) or via a peripheral bus (2049). In one example, a screen (2010) may be connected to a graphics adapter (2050). Peripheral bus architectures include PCI, USB, and the like.

[0182]

[0192] The CPU (2041), GPU (2042), FPGA (2043), and accelerator (2044) may combine to execute certain instructions that may constitute the aforementioned computer code. The computer code may be stored in a ROM (2045) or a RAM (2046). Temporary data may be stored in the RAM (2046), while persistent data may be stored, for example, in an internal mass storage (2047). Fast storage and retrieval from any memory device may be performed by utilizing a cache memory, which may be closely associated with one or more of the CPU (2041), GPU (2042), mass storage (2047), ROM (2045), RAM (2046), etc.

[0183]

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

[0184]

[0194] As a non-limiting example, a computer system having the architecture (2000), specifically the core (2040), as a result of a processor (including a CPU, GPU, FPGA, accelerator, etc.), can provide the functionality to execute software embodied in one or more tangible computer-readable media. Such computer-readable media can be media associated with user-accessible mass storage as described above, as well as specific storage of the core (2040) of a non-transitory nature, such as mass storage (2047) within the core or ROM (2045). Software implementing various embodiments of the present disclosure can be stored in such devices and executed by the core (2040). The computer-readable media can include one or more memory devices or chips, depending on the particular needs. The software can cause the core (2040), specifically the processor (including a CPU, GPU, FPGA, etc.) therein, to execute certain processes or certain parts of certain processes described herein, including defining data structures stored in RAM (2046) and modifying such data structures according to processes defined by the software. Additionally or alternatively, a computer system may provide functionality as a result of logic hardwired or otherwise embodied in circuitry (e.g., accelerator (2044)) that may execute in place of or in conjunction with software to perform particular processes or portions of particular processes described herein. References to software include logic, and vice versa, as appropriate. References to computer-readable media may include circuitry (such as an integrated circuit (IC)) that stores software for execution, circuitry embodying logic for execution, or both, as appropriate. The present disclosure encompasses any appropriate combination of hardware and software.

[0185]

[0195] While this disclosure has described several exemplary embodiments, there are substitutions, permutations, and various alternative equivalents that fall within the scope of this disclosure. Thus, it will be appreciated that those skilled in the art will be able to devise numerous systems and methods that, although not explicitly shown or described herein, embody the principles of the present disclosure and are therefore within the spirit and scope of the present disclosure.

Claims

1. 1. A method of image processing comprising: performing online training of a Compressed Domain Computer Vision Task Framework (CDCVTF) based on an input image and a guideline image resulting from an image-based computer vision task on the input image, the CDCVTF including an encoding portion and a decoding portion, the encoding portion compressing the input image into a compressed domain, the decoding portion performing the image-based computer vision task in the compressed domain, the online training determining at least updates to a neural network in the decoding portion that reduce loss between the result of the image-based computer vision task in the compressed domain and the guideline image; encoding the input image into an encoded image; and forming a bitstream carrying the encoded image and additional bits, the additional bits indicating updates to a neural network in the decoding portion that reduce loss between results of the image-based computer vision task in the compressed domain and the guideline image; The method includes:

2. 13. The method of claim 1 further comprising: performing an image-based computer vision task on the input image in an uncompressed domain to generate the guideline image corresponding to the input image; The method includes:

3. 2. The method of claim 1, wherein the additional bits indicate one or more updated values ​​for one or more respective tunable parameters of the decoded portion.

4. 2. The method of claim 1, wherein the additional bits indicate an additional layer in a neural network of the decoding portion.

5. The method of claim 4 , wherein the additional bits indicate parameter values ​​of the additional layer.

6. 5. The method of claim 4, wherein the additional layer is a convolutional layer.

7. 2. The method of claim 1, wherein the encoding portion is configured to compress the input image into the encoded image, the decoding portion is configured to perform an image-based computer vision task on the encoded image to generate a reconstructed image, and the online training determines the updates based on the reconstructed image and the guideline image.

8. 2. The method of claim 1, wherein the online training determines the updates for the decoding portion and encoder updates for a neural network in the encoding portion.

9. 2. The method of claim 1, wherein the image-based computer vision task includes at least one of image denoising, image deblocking, and super-resolution.

10. 1. A method of image processing comprising: receiving a bitstream including first bits carrying an encoded image corresponding to an image and second bits indicating an update of a neural network in a decoder for an image-based computer vision task in a compressed domain, the decoder corresponding to a decoding portion in a Compressed Domain Computer Vision Task Framework (CDCVTF), the update being determined by online training of the CDCVTF according to the image and a guideline image according to a result of an image-based computer vision task for the image, the online training determining at least the update reducing a loss between a result of the image-based computer vision task in the compressed domain and the guideline image; updating a neural network of the decoder according to the second bits; and utilizing the decoder together with updates in the neural network to generate a reconstructed image according to a first bit of the bitstream; The method includes:

11. 11. The method of claim 10, wherein the second bits indicate one or more updated values ​​for one or more respective parameters in the neural network.

12. 11. The method of claim 10, wherein the second bit indicates an additional layer in the neural network.

13. The method of claim 12 , wherein the second bit indicates a parameter value of the additional layer.

14. 14. The method of claim 13, wherein the additional layer is a convolutional layer.

15. 11. The method of claim 10, wherein the image-based computer vision task includes at least one of image denoising, image deblocking, and super-resolution.

16. 1. A method of image processing comprising: determining a substitute image for an input image according to online training of a Compressed Domain Computer Vision Task Framework (CDCVTF), the CDCVTF including an encoding portion and a decoding portion, the encoding portion compressing the input image to a compressed domain using a current iterative update, the decoding portion performing an image-based computer vision task in the compressed domain, the online training determining a substitute image that reduces loss between a result of the image-based computer vision task in the compressed domain and a guideline image resulting from the image-based computer vision task for the input image; and said encoding portion encoding said alternative image into a bitstream; The method includes:

17. 17. The method of claim 16, further comprising: performing the image-based computer vision task in an uncompressed domain to generate the guideline image; The method includes:

18. 18. The method of claim 17, wherein during the online training, the encoding portion is configured to compress the input image into a current encoded update image using the current iterative update, and the decoding portion is configured to perform the image-based computer vision task on the current encoded update image to generate a current reconstructed image, and a next iterative update is determined based on the current reconstructed image and the guideline image.

19. 17. The method of claim 16, wherein the image-based computer vision task includes at least one of image denoising, image deblocking, and super-resolution.

20. 17. The method of claim 16, wherein parameters of neural networks in the encoding and decoding portions are fixed to pre-trained values.

21. A computer program product causing a computer to carry out the method according to any one of claims 1 to 20.

Citation Information

Patent Citations

  • Decoding with signaling of segmentation information

    WO2022139618A1

  • Configurable positions for auxiliary information input into a picture data processing neural network

    WO2022211657A1

  • Method and apparatus for video coding for machine vision

    WO2023086164A1