Login| Sign Up| Help| Contact|

Patent Searching and Data


Title:
A NEURAL NETWORK-BASED IMAGE AND VIDEO COMPRESSION METHOD WITH CONDITIONAL CODING
Document Type and Number:
WIPO Patent Application WO/2024/015638
Kind Code:
A9
Abstract:
An image or video processing method, comprising the steps of obtaining a sample of a quantized residual latent ŵ using a bitstream and the output of a first subnetwork, wherein the first subnetwork is not autoregressive; obtaining a prediction value mean using a second subnetwork and already reconstructed samples of a quantized latent ŷ; and reconstructing the next sample of the quantized latent ŷ using the quantized residual sample ŵ and the prediction mean.

Inventors:
ESENLIK SEMIH (US)
ZHANG ZHAOBIN (US)
LI YUE (US)
ZHANG KAI (US)
ZHANG LI (US)
Application Number:
PCT/US2023/027931
Publication Date:
April 25, 2024
Filing Date:
July 17, 2023
Export Citation:
Click for automatic bibliography generation   Help
Assignee:
BYTEDANCE INC (US)
International Classes:
H04N19/12; G06N3/02; G06T9/00; G06V10/422; H04N19/124; H04N19/13; G06N3/08; H04N19/42
Attorney, Agent or Firm:
D. HOWELL, Brandt et al. (US)
Download PDF:
Claims:
ByteDance P22071538401WO1; C23W4793 (4824-10401) CLAIMS What is claimed is: 1. An image or video processing method, comprising the steps of: obtaining a sample of a quantized residual latent ^^ using a bitstream and the output of a first subnetwork, wherein the first subnetwork is not autoregressive; obtaining a prediction value ^^^^ using a second subnetwork and already reconstructed samples of a quantized latent ^^; and reconstructing the next sample of the quantized latent ^^ using the quantized residual sample ^^ and the prediction ^^^^. 2. An image or video processing method, comprising the steps of: first transforming an input image using an analysis transform to obtain a latent ^; obtaining a prediction value ^^^^ using a second subnetwork and already reconstructed samples of a quantized latent ^^ when available; subtracting the prediction value from a sample of the latent to obtain a residual latent sample ^; quantizing the residual latent sample (^^ ) and adding to the prediction value to obtain a sample of the quantized latent ^^; and obtaining the bitstream using a first subnetwork and the samples of quantized residual latent samples ^^, wherein the first subnetwork is not autoregressive. 3. The method of any of claims 1-2, wherein a context model is applied on the quantized latent samples ^^. 4. The method of any of claims 1-3, wherein an output of the context model is an input to a prediction fusion module. 5. The method of any of claim 1-4, wherein a context submodule comprises a convolution layer with a kernel size (4x3), a number of input channels is 192, a number of output channels is 384, and ByteDance P22071538401WO1; C23W4793 (4824-10401) wherein an input of the context submodule is ^^ and the output is fed to the prediction fusion submodule. 6. The method of any of claim 1-5, wherein an output of the context submodule and a prediction fusion submodule is a mean value ^, which comprises a prediction or an estimation of ^^. 7. The method of any of claims 1-6, wherein the context submodule and prediction fusion submodules are collectively used to generate the prediction ^. 8. The method of any of claims 1-7, wherein an amount of samples considered as input are proportional to the following: a size of the context submodule kernel, and a number of input channels of the context submodule kernel. 9. The method of any of claims 1-8, wherein a number kernel size is 4x3, which is 4 samples in a horizontal direction by 3 samples in a vertical direction, and wherein a number of input channels is 192. 10. The method of any of claims 1-9, wherein increasing the input channel numbers or the kernel size, which comprises a multiplication of size in horizontal and vertical directions, increases the number of samples used for the prediction of following samples of ^^. 11. The method of any of claims 1-10, wherein increasing the number of output channels of the context submodule increases information obtained from the input samples, which increases prediction performance. 12. The method of any of claims 1-11, wherein a number of output channels of the kernel of the context submodule is 384, and wherein increasing the number of output channels results in the prediction ^ being closer to ^^. ByteDance P22071538401WO1; C23W4793 (4824-10401) 13. The method of any of claims 1-12, wherein a kernel size is given by KxL and the input/output channels are given by A and B, respectively, and wherein increasing any one of A, B, K or L results in a proportional increase in the complexity of the context module. 14. The method of any of claims 1-13, wherein the context submodule is split into two parallel convolution kernels. 15. The method of any of claims 1-14, wherein the kernel size of the first convolution layer is 3x2, and the size of the second convolution layer is 4x3, and wherein a number of input channels and a number of output channels is 192 for both convolution layers. 16. The method of any of claims 1-15, wherein the output of the two convolutions are concatenated by a concatenate (concat) block to generate an output of 384 layers. 17. The method of any of claims 1-16, wherein the concat block is configured to stack the two input channels on top of each other, and wherein the number of channels at the output of the concat block is the sum of the numbers of channels in the input of the concat block. 18. The method of any of claims 1-17, wherein the prediction network comprises the context submodule and the prediction fusion network. 19. The method of any of claims 1-18, wherein input latent samples are processed by at least two convolution layers whose kernel sizes are OxP and MxN, respectively, and wherein the kernel sizes are different at least in one direction such that either O is not equal to M or P is not equal to N. 20. The method of any of claims 1-19, wherein the output of the two convolution layers is concatenated and input to a prediction fusion network, and wherein the prediction fusion network outputs a prediction value ^ which is an estimation of a latent sample. ByteDance P22071538401WO1; C23W4793 (4824-10401) 21. The method of any of claims 1-20, wherein the input latent samples are processed by a first convolution layer with kernel size MxN, and the output of the first convolution layer is processed by at least a second convolution layer with kernel size KxL. 22. The method of any of claims 1-21, wherein the output of the first convolution layer and the output of the second convolution layer are concatenated, wherein the output is fed to the prediction fusion module, and wherein the output of the prediction fusion submodule is the ^ which is an estimation of a latent sample. 23. The method of any of claims 1-22, wherein a number of samples considered by a second convolution layer is greater than the number of samples considered by a first convolution layer, and wherein the number of samples considered by a convolution layer is referred to as a receptive field. 24. The method of any of claims 1-23, wherein a complexity of the context model is proportional to (KxL + MxN) instead of (K + M) x (L+N). 25. The method of any of claims 1-24, wherein the latent samples ^^ are fed to a first convolution layer, wherein the residual latent samples ^^ are fed to a second convolution layer, wherein the output of the first and the second convolution layers is concatenated using the concat block and fed to the prediction fusion module, and wherein the output of the prediction fusion submodule is the ^ which is an estimation of a latent sample. 26. The method of any of claims 1-25, wherein the latent samples and the residual latent samples are both correlated with the latent sample to be predicted, and wherein the latent samples and the residual latent samples are both included as input to the predictor. 27. The method of any of claims 1-26, wherein the output of the prediction fusion module is a latent sample to be predicted ^^ instead of the ^, which is an estimation of a latent sample, and wherein the latent sample to be predicted is obtained by adding prediction ^ and the residual sample ^^ , or directly as output of the prediction fusion module. ByteDance P22071538401WO1; C23W4793 (4824-10401) 28. The method of any of claims 1-27, wherein ^^ is a matrix or a tensor comprising multiple latent samples, and wherein the input comprises samples that are already obtained by prediction. 29. The method of any of claims 1-28, wherein the prediction module comprises the context and the prediction fusion modules, and wherein the prediction module is an auto-regressive neural network that processes samples of the latent ^^ sequentially according to an order. 30. The method of any of claims 1-29, wherein a fusion method comprises addition. 31. The method of any of claims 1-30, wherein arithmetic encoding and decoding is performed independently of a first subnetwork, and wherein the first subnetwork is an autoregressive subnetwork. 32. The method of any of claims 1-31, wherein a fully sequential arithmetic encoding and/or decoding process is performed by a central processing unit. 33. The method of any of claims 1-32, wherein the second subnetwork is configured to estimate probability parameters used by the arithmetic encoding and/or decoding process. 34. The method of any of claims 1-33, wherein the arithmetic encoding and/or decoding process is used to encode and/or decode the quantized latent residual instead of the quantized latent. 35. The method of any of claims 1-34, wherein an autoregressive subnetwork is used only to estimate the mean of the latent instead of to estimate the mean and variance of a gaussian distribution, and wherein the mean of the latent alone is then used by the arithmetic encoder and decoder to encode and decode the samples of quantized latent. 36. The method of any of claims 1-35, wherein an entropy decoding and/or arithmetic decoding process is performed independently, and wherein the decoding process is performed by a central processing unit. ByteDance P22071538401WO1; C23W4793 (4824-10401) 37. The method of any of claims 1-36, wherein a quantized residual latent is transferred to a graphics processing unit after entropy decoding is complete. 38. The method of any of claims 1-37, wherein context and entropy parameters modules perform independently of arithmetic encoding and decoding, and wherein the context and entropy parameters modules use a graphics processing unit. 39. The method of any of claims 1-38, wherein idle processing times are eliminated. 40. The method of any of claims 1-39, wherein a central processing unit and a graphics processing unit are used in tandem. 41. The method of any of claims 1-40, wherein a decoding process is performed as follows: perform an entropy decoding process to obtain all samples of the quantized latent residual; transfer the obtained data to a graphics processing unit, wherein the transfer is performed only once; perform context and entropy parameters modules by the graphics processing unit, wherein no idle waiting happens in the graphics processing unit, and wherein the quantized latent is obtained; and perform the synthesis transform at the decoder to obtain the reconstructed image. 42. The method of any of claims 1-41, wherein more than one subnetwork is utilized as hyper encoders or hyper decoders for hyper information. 43. The method of any of claims 1-42, wherein at least one subnetwork is utilized to generate hyper information, and wherein the hyper information is depended by the parsing process for the latent information. 44. The method of any of claims 1-43, wherein at least one subnetwork is utilized to generate hyper information, and wherein the hyper information is not depended by the parsing process for the latent information. ByteDance P22071538401WO1; C23W4793 (4824-10401) 45. The method of any of claims 1-44, wherein at least one subnetwork is utilized to generate hyper information, and wherein the hyper information is used to predict the latent signal. 46. The method of any of claims 1-45, wherein the hyper information comprises statistical information or probability distribution information for the latent signal, and wherein the latent signal is quantized. 47. The method of any of claims 1-46, wherein the statistical information or probability distribution information comprises the mean value of the latent signal. 48. The method of any of claims 1-46, wherein the statistical information or probability distribution information comprises the variance of the latent signal. 49. The method of any of claims 1-48 wherein the latent signal may be coded in a predictive way. 50. The method of any of claims 1-49, wherein y’= y – p is coded at the encoder, wherein y is a latent sample and p is the prediction. 51. The method of any of claims 1-50, wherein y*= y’ + p is reconstructed at the decoder. 52. The method of any of claims 1-51, wherein y is quantized before the prediction procedure. 53. The method of any of claims 1-51, wherein y is not quantized before the prediction procedure. 54. The method of any of claims 1-53, wherein p is quantized before the prediction procedure. 55. The method of any of claims 1-53, wherein p is not quantized before the prediction procedure. ByteDance P22071538401WO1; C23W4793 (4824-10401) 56. The method of any of claims 1-55, wherein y’ is quantized after the prediction procedure. 57. The method of any of claims 1-55, wherein y’ is not quantized after the prediction procedure. 58. The method of any of claims 1-57, wherein at least one subnetwork may be utilized to generate the prediction p. 59. The method of any of claims 1-58, wherein at least one previously decoded y* or y’ may be utilized to generate the prediction p for the current y or y*. 60. The method of any of claims 159 further comprising obtaining the reconstructed image using the quantized latent ^^ and a synthesis transform. 61. The method of any of claims 1-60, wherein the first subnetwork and the second subnetwork are utilized as a hyper decoder for hyper information. 62. The method of any of claim 1-61, wherein at least one of the first subnetwork and the second subnetwork is utilized to generate hyper information, and wherein the hyper information is depended by a parsing process for latent information. 63. The method of any of claim 1-61, wherein at least one of the first subnetwork and the second subnetwork is utilized to generate hyper information, and wherein the hyper information is not depended by a parsing process for latent information. 64. The method of any of claims 1-63, wherein at least one of the first subnetwork and the second subnetwork is utilized to generate hyper information, and wherein the hyper information is used to predict a latent signal. 65. The method of claim 64, wherein the hyper information comprises statistical information or probability distribution information for the latent signal, and wherein the latent signal is quantized. ByteDance P22071538401WO1; C23W4793 (4824-10401) 66. The method of claim 65, wherein the statistical information or the probability distribution information comprises a mean value of the latent signal. 67. The method of claim 65, wherein the statistical information or the probability distribution information comprises a variance of the latent signal. 68. The method of any of claim 1-67, wherein the latent signal was coded in a predictive way, and wherein the latent sample coded in the predictive way is represented as y’. 69. The method of claim 68, wherein the latent signal was coded according to y’= y – p, where y is a latent sample and p is a prediction. 70. The method of claim 68, wherein the latent signal is reconstructed according to y*= y’ + p, wherein y* represents a reconstructed latent signal. 71. The method of any of claims 1-70, wherein the latent sample is quantized before the prediction. 72. The method of any of claims 1-71, wherein the latent sample is not quantized before the prediction. 73. The method of any of claims 1-72, wherein the prediction is performed before quantization. 74. The method of any of claims 1-73, wherein the prediction is not performed before quantization. 75. The method of any of claims 1-74, wherein the latent sample coded in the predictive way is quantization after the prediction. 76. The method of any of claims 1-75, wherein the latent sample coded in the predictive way is not quantization after the prediction. ByteDance P22071538401WO1; C23W4793 (4824-10401) 77. The method of any of claims 1-76, wherein at least one subnetwork, including the first subnetwork and the second subnetwork, is utilized to generate the prediction. 78. The method of any of claims 1-77, wherein at least one of the reconstructed latent signal or the latent sample coded in the predictive way is utilized to generate the prediction for a current reconstructed latent signal or a current latent sample coded in the predictive way. 79. The method of claim 78, wherein the first subnetwork takes a first quantized hyper latent as input and generates probability parameters. 80. The method of any of claims 1-79, wherein obtaining of the sample of a quantized residual latent comprises entropy decoding, wherein the probability parameters and a bitstream are used as input. 81. The method of any of claims 1-80, wherein obtaining of the bitstream comprises entropy encoding, wherein the probability parameters and quantized residual latent are inputs. 82. The method of any of claims 1-81, wherein the probability parameters do not include a mean value. 83. The method of any of claims 1-82, wherein a zero mean probability distribution is used in entropy encoding or entropy decoding. 84. The method of any of claims 1-83, wherein the second subnetwork takes a second quantized hyper latent as input, in addition to the already reconstructed samples of quantized latent. 85. The method of any of claims 1-84, wherein the first and the second quantized hyper latent are same. 86. The method of any of claims 1-85, wherein the quantized hyper latent are obtained from a bitstream in the decoder. ByteDance P22071538401WO1; C23W4793 (4824-10401) 87. The method of any of claims 1-86, wherein the quantized hyper latent are obtained from the latent ^ or quantized latent ^^ using a subnetwork. 88. The method of any of claims 1-87, wherein the second subnetwork is autoregressive. 89. The method of any of claims 1-88, wherein the second subnetwork comprises a context module. 90. The method of any of claims 1-89, wherein the second subnetwork comprises a hyper decoder module. 91. An apparatus for processing video data comprising: a processor; and a non-transitory memory with instructions thereon, wherein the instructions upon execution by the processor, cause the processor to perform the method of any of claims 1-89. 92. A non-transitory computer readable medium comprising a computer program product for use by a video coding device, the computer program product comprising computer executable instructions stored on the non-transitory computer readable medium such that when executed by a processor cause the video coding device to perform the method of any of claims 1-89. 93. A non-transitory computer-readable recording medium storing a bitstream of a video which is generated by a method performed by a video processing apparatus, wherein the method comprises the method of any of claims 1-89. 94. A method for storing bitstream of a video comprising the method of any of claims 1-89. 95. A method, apparatus, or system described in the present document.
Description:
ByteDance P22071538401WO1; C23W4793 (4824-10401) A Neural Network-Based Image And Video Compression Method With Conditional Coding CROSS-REFERENCE TO RELATED PATENT APPLICATIONS [0001] This patent application claims the benefit of U.S. Provisional Patent Application No. 63/389,784, filed July 15, 2022, the teachings and disclosure of which are hereby incorporated in their entireties by reference thereto. TECHNICAL FIELD [0002] This patent application relates to generation, storage, and consumption of digital audio video media information in a file format. BACKGROUND [0003] Digital video accounts for the largest bandwidth used on the Internet and other digital communication networks. As the number of connected user devices capable of receiving and displaying video increases, the bandwidth demand for digital video usage is likely to continue to grow. SUMMARY [0004] The disclosed aspects/embodiments provide techniques related to a neural network based image and video compression method comprising an auto-regressive subnetwork and an entropy coding engine, wherein entropy coding is performed independently of the auto-regressive subnetwork. [0005] A first aspect relates to an image or video processing method, comprising the steps of: obtaining a sample of a quantized residual latent ^^ using a bitstream and the output of a first subnetwork, wherein the first subnetwork is not autoregressive; obtaining a prediction value ^^^^ using a second subnetwork and already reconstructed samples of a quantized latent ^^ ; and reconstructing the next sample of the quantized latent ^^ using the quantized residual sample ^^ and the prediction ^^^^. [0006] A second aspect relates to an or video processing method, comprising the steps of: first transforming an input image using an analysis transform to obtain a latent ^; obtaining a prediction value ^^^^, using a second subnetwork and already reconstructed samples of a quantized latent ^^ when available; subtracting the prediction value from a sample of the latent to obtain a residual latent ByteDance P22071538401WO1; C23W4793 (4824-10401) sample ^; quantizing the residual latent sample (^^) and adding to the prediction value to obtain a sample of the quantized latent ^^ ; and obtaining the bitstream using a first subnetwork and the samples of quantized residual latent samples ^^, wherein the first subnetwork is not auto-regressive. [0007] Optionally, in any of the preceding aspects, another implementation of the aspect provides that a context model is applied on the quantized latent samples ^ ^ . [0008] Optionally, in any of the preceding aspects, another implementation of the aspect provides that an output of the context model is an input to a prediction fusion module. [0009] Optionally, in any of the preceding aspects, another implementation of the aspect provides that a context submodule comprises a convolution layer with a kernel size (4x3), a number of input channels is 192, a number of output channels is 384, and wherein an input of the context submodule is ^^ and the output is fed to the prediction fusion submodule. [0010] Optionally, in any of the preceding aspects, another implementation of the aspect provides that an output of the context submodule and a prediction fusion submodule is a mean value ^, which comprises a prediction or an estimation of ^ ^ . [0011] Optionally, in any of the preceding aspects, another implementation of the aspect provides that the context submodule and prediction fusion submodules are collectively used to generate the prediction ^. [0012] Optionally, in any of the preceding aspects, another implementation of the aspect provides that an amount of samples considered as input are proportional to the following: a size of the context submodule kernel, and a number of input channels of the context submodule kernel. [0013] Optionally, in any of the preceding aspects, another implementation of the aspect provides that a number kernel size is 4x3, which is 4 samples in a horizontal direction by 3 samples in a vertical direction, and wherein a number of input channels is 192. [0014] Optionally, in any of the preceding aspects, another implementation of the aspect provides increasing the input channel numbers or the kernel size, which comprises a multiplication of size in horizontal and vertical directions, increases the number of samples used for the prediction of following samples of ^^. [0015] Optionally, in any of the preceding aspects, another implementation of the aspect provides increasing the number of output channels of the context submodule increases information obtained from the input samples, which increases prediction performance. ByteDance P22071538401WO1; C23W4793 (4824-10401) [0016] Optionally, in any of the preceding aspects, another implementation of the aspect provides that a number of output channels of the kernel of the context submodule is 384, and wherein increasing the number of output channels results in the prediction ^ being closer to ^^. [0017] Optionally, in any of the preceding aspects, another implementation of the aspect provides that a kernel size is given by KxL and the input/output channels are given by A and B, respectively, and wherein increasing any one of A, B, K or L results in a proportional increase in the complexity of the context module. [0018] Optionally, in any of the preceding aspects, another implementation of the aspect provides that the context submodule is split into two parallel convolution kernels. [0019] Optionally, in any of the preceding aspects, another implementation of the aspect provides that the kernel size of the first convolution layer is 3x2, and the size of the second convolution layer is 4x3, and wherein a number of input channels and a number of output channels is 192 for both convolution layers. [0020] Optionally, in any of the preceding aspects, another implementation of the aspect provides that the output of the two convolutions are concatenated by a concat block to generate an output of 384 layers. [0021] Optionally, in any of the preceding aspects, another implementation of the aspect provides that the concat block is configured to stack the two input channels on top of each other, and wherein the number of channels at the output of the concat block is the sum of the numbers of channels in the input of the concat block. [0022] Optionally, in any of the preceding aspects, another implementation of the aspect provides that the prediction network comprises the context submodule and the prediction fusion network. [0023] Optionally, in any of the preceding aspects, another implementation of the aspect provides that input latent samples are processed by at least two convolution layers whose kernel sizes are OxP and MxN, respectively, and wherein the kernel sizes are different at least in one direction such that either O is not equal to M or P is not equal to N. [0024] Optionally, in any of the preceding aspects, another implementation of the aspect provides that the output of the two convolution layers is concatenated and input to a prediction fusion network, and wherein the prediction fusion network outputs a prediction value ^ which is an estimation of a latent sample. ByteDance P22071538401WO1; C23W4793 (4824-10401) [0025] Optionally, in any of the preceding aspects, another implementation of the aspect provides that the input latent samples are processed by a first convolution layer with kernel size MxN, and the output of the first convolution layer is processed by at least a second convolution layer with kernel size KxL. [0026] Optionally, in any of the preceding aspects, another implementation of the aspect provides that the output of the first convolution layer and the output of the second convolution layer are concatenated, wherein the output is fed to the prediction fusion module, and wherein the output of the prediction fusion submodule is the ^ which is an estimation of a latent sample. [0027] Optionally, in any of the preceding aspects, another implementation of the aspect provides that a number of samples considered by a second convolution layer is greater than the number of samples considered by a first convolution layer, and wherein the number of samples considered by a convolution layer is referred to as a receptive field. [0028] Optionally, in any of the preceding aspects, another implementation of the aspect provides that a complexity of the context model is proportional to (KxL + MxN) instead of (K + M) x (L+N). [0029] Optionally, in any of the preceding aspects, another implementation of the aspect provides that the latent samples ^^ are fed to a first convolution layer, wherein the residual latent samples ^^ are fed to a second convolution layer, wherein the output of the first and the second convolution layers is concatenated using the concat block and fed to the prediction fusion module, and wherein the output of the prediction fusion submodule is the ^ which is an estimation of a latent sample. [0030] Optionally, in any of the preceding aspects, another implementation of the aspect provides that the latent samples and the residual latent samples are both correlated with the latent sample to be predicted, and wherein the latent samples and the residual latent samples are both included as input to the predictor. [0031] Optionally, in any of the preceding aspects, another implementation of the aspect provides that the output of the prediction fusion module is a latent sample to be predicted ^^ instead of the ^, which is an estimation of a latent sample, and wherein the latent sample to be predicted is obtained by adding prediction ^ and the residual sample ^ ^ , or directly as output of the prediction fusion module. ByteDance P22071538401WO1; C23W4793 (4824-10401) [0032] Optionally, in any of the preceding aspects, another implementation of the aspect provides that ^^ is a matrix or a tensor comprising multiple latent samples, and wherein the input comprises samples that are already obtained by prediction. [0033] Optionally, in any of the preceding aspects, another implementation of the aspect provides that the prediction module comprises the context and the prediction fusion modules, and wherein the prediction module is an auto-regressive neural network that processes samples of the latent ^^ sequentially according to an order. [0034] Optionally, in any of the preceding aspects, another implementation of the aspect provides that a fusion method comprises addition. [0035] Optionally, in any of the preceding aspects, another implementation of the aspect provides that arithmetic encoding and decoding is performed independently of a first subnetwork, and wherein the first subnetwork is an autoregressive subnetwork. [0036] Optionally, in any of the preceding aspects, another implementation of the aspect provides that a fully sequential arithmetic encoding and/or decoding process is performed by a central processing unit. [0037] Optionally, in any of the preceding aspects, another implementation of the aspect provides that the second subnetwork is configured to estimate probability parameters used by the arithmetic encoding and/or decoding process. [0038] Optionally, in any of the preceding aspects, another implementation of the aspect provides that the arithmetic encoding and/or decoding process is used to encode and/or decode the quantized latent residual instead of the quantized latent. [0039] Optionally, in any of the preceding aspects, another implementation of the aspect provides that an autoregressive subnetwork is used only to estimate the mean of the latent instead of to estimate the mean and variance of a gaussian distribution, and wherein the mean of the latent alone is then used by the arithmetic encoder and decoder to encode and decode the samples of quantized latent. [0040] Optionally, in any of the preceding aspects, another implementation of the aspect provides that an entropy decoding and/or arithmetic decoding process is performed independently, and wherein the decoding process is performed by a central processing unit. ByteDance P22071538401WO1; C23W4793 (4824-10401) [0041] Optionally, in any of the preceding aspects, another implementation of the aspect provides that a quantized residual latent is transferred to a graphics processing unit after entropy decoding is complete. [0042] Optionally, in any of the preceding aspects, another implementation of the aspect provides that context and entropy parameters modules perform independently of arithmetic encoding and decoding, and wherein the context and entropy parameters modules use a graphics processing unit. [0043] Optionally, in any of the preceding aspects, another implementation of the aspect provides that idle processing times are eliminated. [0044] Optionally, in any of the preceding aspects, another implementation of the aspect provides that a central processing unit and a graphics processing unit are used in tandem. [0045] Optionally, in any of the preceding aspects, another implementation of the aspect provides that a decoding process is performed as follows: perform an entropy decoding process to obtain all samples of the quantized latent residual; transfer the obtained data to a graphics processing unit, wherein the transfer is performed only once; perform context and entropy parameters modules by the graphics processing unit, wherein no idle waiting happens in the graphics processing unit, and wherein the quantized latent is obtained; and perform the synthesis transform at the decoder to obtain the reconstructed image. [0046] Optionally, in any of the preceding aspects, another implementation of the aspect provides that more than one subnetwork is utilized as hyper encoders or hyper decoders for hyper information. [0047] Optionally, in any of the preceding aspects, another implementation of the aspect provides that at least one subnetwork is utilized to generate hyper information, and wherein the hyper information is depended by the parsing process for the latent information. [0048] Optionally, in any of the preceding aspects, another implementation of the aspect provides that at least one subnetwork is utilized to generate hyper information, and wherein the hyper information is not depended by the parsing process for the latent information. [0049] Optionally, in any of the preceding aspects, another implementation of the aspect provides that at least one subnetwork is utilized to generate hyper information, and wherein the hyper information is used to predict the latent signal. ByteDance P22071538401WO1; C23W4793 (4824-10401) [0050] Optionally, in any of the preceding aspects, another implementation of the aspect provides that the hyper information comprises statistical information or probability distribution information for the latent signal, and wherein the latent signal is quantized. [0051] Optionally, in any of the preceding aspects, another implementation of the aspect provides that the statistical information or probability distribution information comprises the mean value of the latent signal. [0052] Optionally, in any of the preceding aspects, another implementation of the aspect provides that the statistical information or probability distribution information comprises the variance of the latent signal. [0053] Optionally, in any of the preceding aspects, another implementation of the aspect provides that the latent signal may be coded in a predictive way. [0054] Optionally, in any of the preceding aspects, another implementation of the aspect provides that y’= y – p is coded at the encoder, wherein y is a latent sample and p is the prediction. [0055] Optionally, in any of the preceding aspects, another implementation of the aspect provides that y*= y’ + p is reconstructed at the decoder. [0056] Optionally, in any of the preceding aspects, another implementation of the aspect provides that y is quantized before the prediction procedure. [0057] Optionally, in any of the preceding aspects, another implementation of the aspect provides that y is not quantized before the prediction procedure. [0058] Optionally, in any of the preceding aspects, another implementation of the aspect provides that p is quantized before the prediction procedure. [0059] Optionally, in any of the preceding aspects, another implementation of the aspect provides that p is not quantized before the prediction procedure. [0060] Optionally, in any of the preceding aspects, another implementation of the aspect provides that y’ is quantized after the prediction procedure. [0061] Optionally, in any of the preceding aspects, another implementation of the aspect provides that y’ is not quantized after the prediction procedure. [0062] Optionally, in any of the preceding aspects, another implementation of the aspect provides that at least one subnetwork may be utilized to generate the prediction p. ByteDance P22071538401WO1; C23W4793 (4824-10401) [0063] Optionally, in any of the preceding aspects, another implementation of the aspect provides that at least one previously decoded y* or y’ may be utilized to generate the prediction p for the current y or y*. [0064] Optionally, in any of the preceding aspects, another implementation of the aspect provides obtaining the reconstructed image using the quantized latent ^^ and a synthesis transform. [0065] Optionally, in any of the preceding aspects, another implementation of the aspect provides that the first subnetwork and the second subnetwork are utilized as a hyper decoder for hyper information. [0066] Optionally, in any of the preceding aspects, another implementation of the aspect provides that at least one of the first subnetwork and the second subnetwork is utilized to generate hyper information, and wherein the hyper information is depended by a parsing process for latent information. [0067] Optionally, in any of the preceding aspects, another implementation of the aspect provides that at least one of the first subnetwork and the second subnetwork is utilized to generate hyper information, and wherein the hyper information is not depended by a parsing process for latent information. [0068] Optionally, in any of the preceding aspects, another implementation of the aspect provides that at least one of the first subnetwork and the second subnetwork is utilized to generate hyper information, and wherein the hyper information is used to predict a latent signal. [0069] Optionally, in any of the preceding aspects, another implementation of the aspect provides that the hyper information comprises statistical information or probability distribution information for the latent signal, and wherein the latent signal is quantized. [0070] Optionally, in any of the preceding aspects, another implementation of the aspect provides that the statistical information or the probability distribution information comprises a mean value of the latent signal. [0071] Optionally, in any of the preceding aspects, another implementation of the aspect provides that the statistical information or the probability distribution information comprises a variance of the latent signal. [0072] Optionally, in any of the preceding aspects, another implementation of the aspect provides that the latent signal was coded in a predictive way, and wherein the latent sample coded in the predictive way is represented as y’. ByteDance P22071538401WO1; C23W4793 (4824-10401) [0073] Optionally, in any of the preceding aspects, another implementation of the aspect provides that the latent signal was coded according to y’= y – p, where y is a latent sample and p is a prediction. [0074] Optionally, in any of the preceding aspects, another implementation of the aspect provides that the latent signal is reconstructed according to y*= y’ + p, wherein y* represents a reconstructed latent signal. [0075] Optionally, in any of the preceding aspects, another implementation of the aspect provides that the latent sample is quantized before the prediction. [0076] Optionally, in any of the preceding aspects, another implementation of the aspect provides that the latent sample is not quantized before the prediction. [0077] Optionally, in any of the preceding aspects, another implementation of the aspect provides that [0078] Optionally, in any of the preceding aspects, another implementation of the aspect provides that the prediction is performed before quantization. [0079] Optionally, in any of the preceding aspects, another implementation of the aspect provides that the prediction is not performed before quantization. [0080] Optionally, in any of the preceding aspects, another implementation of the aspect provides that the prediction is not performed before quantization. [0081] Optionally, in any of the preceding aspects, another implementation of the aspect provides that the latent sample coded in the predictive way is quantization after the prediction. [0082] Optionally, in any of the preceding aspects, another implementation of the aspect provides that the latent sample coded in the predictive way is not quantization after the prediction. [0083] Optionally, in any of the preceding aspects, another implementation of the aspect provides that at least one subnetwork, including the first subnetwork and the second subnetwork, is utilized to generate the prediction. [0084] Optionally, in any of the preceding aspects, another implementation of the aspect provides that at least one of the reconstructed latent signal or the latent sample coded in the predictive way is utilized to generate the prediction for a current reconstructed latent signal or a current latent sample coded in the predictive way. ByteDance P22071538401WO1; C23W4793 (4824-10401) [0085] Optionally, in any of the preceding aspects, another implementation of the aspect provides that the first subnetwork takes a first quantized hyper latent as input and generates probability parameters. [0086] Optionally, in any of the preceding aspects, another implementation of the aspect provides that obtaining of the sample of a quantized residual latent comprises entropy decoding, wherein the probability parameters and a bitstream is used as input. [0087] Optionally, in any of the preceding aspects, another implementation of the aspect provides that obtaining of the bitstream comprises entropy encoding, wherein the probability parameters and quantized residual latent are inputs. [0088] Optionally, in any of the preceding aspects, another implementation of the aspect provides that the probability parameters do not include a mean value. [0089] Optionally, in any of the preceding aspects, another implementation of the aspect provides that a zero mean probability distribution is used in entropy encoding or entropy decoding. [0090] Optionally, in any of the preceding aspects, another implementation of the aspect provides that the second subnetwork takes a second quantized hyper latent as input, in addition to the already reconstructed samples of quantized latent. [0091] Optionally, in any of the preceding aspects, another implementation of the aspect provides that the first and the second quantized hyper latent are same. [0092] Optionally, in any of the preceding aspects, another implementation of the aspect provides that the quantized hyper latent are obtained from a bitstream in the decoder. [0093] Optionally, in any of the preceding aspects, another implementation of the aspect provides that the quantized hyper latent are obtained from the latent ^ or quantized latent ^^ using a subnetwork. [0094] Optionally, in any of the preceding aspects, another implementation of the aspect provides that the second subnetwork is autoregressive. [0095] Optionally, in any of the preceding aspects, another implementation of the aspect provides that the second subnetwork comprises a context module. [0096] Optionally, in any of the preceding aspects, another implementation of the aspect provides that the second subnetwork comprises a hyper decoder module. ByteDance P22071538401WO1; C23W4793 (4824-10401) [0097] A third aspect relates to an apparatus for processing video data comprising: a processor; and a non-transitory memory with instructions thereon, wherein the instructions upon execution by the processor, cause the processor to perform any of the disclosed methods. [0098] A fourth aspect relates to a non-transitory computer readable medium comprising a computer program product for use by a video coding device, the computer program product comprising computer executable instructions stored on the non-transitory computer readable medium such that when executed by a processor cause the video coding device to perform any of the disclosed methods. [0099] A fifth aspect relates to a non-transitory computer-readable recording medium storing a bitstream of a video which is generated by a method performed by a video processing apparatus, wherein the method comprises any of the disclosed methods. [0100] A sixth aspect relates to a method for storing bitstream of a video comprising the method of any of the disclosed methods. [0101] A seventh aspect relates to a method, apparatus, or system described in the present document. [0102] For the purpose of clarity, any one of the foregoing embodiments may be combined with any one or more of the other foregoing embodiments to create a new embodiment within the scope of the present disclosure. [0103] These and other features will be more clearly understood from the following detailed description taken in conjunction with the accompanying drawings and claims. BRIEF DESCRIPTION OF THE DRAWINGS [0104] For a more complete understanding of this disclosure, reference is now made to the following brief description, taken in connection with the accompanying drawings and detailed description, wherein like reference numerals represent like parts. [0105] FIG.1 illustrates an example of a typical transform coding scheme. [0106] FIG.2 illustrates an example of a quantized latent when hyper encoder/decoder are used. [0107] FIG. 3 illustrates an example of a network architecture of an autoencoder implementing a hyperprior model. [0108] FIG.4 illustrates a combined model jointly optimizing an autoregressive component that estimates the probability distributions of latents from their causal context (i.e., context model) along with a hyperprior and the underlying autoencoder. ByteDance P22071538401WO1; C23W4793 (4824-10401) [0109] FIG.5 illustrates an encoding process utilizing a hyper encoder and a hyper decoder. [0110] FIG.6 illustrates an example decoding process. [0111] FIG.7 illustrates a decoder network with the problem in the dashed-box. [0112] FIG. 8 illustrates an entropy coding subnetwork in the state of the art image decoding architecture. [0113] FIG. 9 is an example of the decoding process according to an embodiment of the disclosure. [0114] FIG. 10 is an example of the encoding process according to an embodiment of the disclosure. [0115] FIG. 11 is an example of an encoding process according to an embodiment of the disclosure. [0116] FIG. 12 is an example of an encoding process according to an embodiment of the disclosure. [0117] FIG. 13 is an example of a context submodule. [0118] FIG. 14 is an example of a context submodule. [0119] FIG. 15 is an example of a context submodule. [0120] FIG. 16 is an example of parallel convolution kernels. [0121] FIG. 17 is an example of a general implementation of the present disclosure. [0122] FIG. 18 is an example of parallel convolution kernels. [0123] FIG. 19 another example implementation of the of the present disclosure. [0124] FIG. 20 a further example of the implementation of the present disclosure. [0125] FIG.21 is a block diagram showing an example video processing system. [0126] FIG.22 is a block diagram of an example video processing apparatus. [0127] FIG.23 is a flowchart for an example method of video processing. [0128] FIG.24 is a block diagram that illustrates an example video coding system. [0129] FIG.25 is a block diagram that illustrates an example encoder. [0130] FIG.26 is a block diagram that illustrates an example decoder. [0131] FIG.27 is a schematic diagram of an example encoder. [0132] FIG.28 is an image or video method implemented by a decoding device according to an embodiment of the disclosure. ByteDance P22071538401WO1; C23W4793 (4824-10401) [0133] FIG.29 is an image or video method implemented by an encoding device according to an embodiment of the disclosure. DETAILED DESCRIPTION [0134] It should be understood at the outset that although an illustrative implementation of one or more embodiments are provided below, the disclosed systems and/or methods may be implemented using any number of techniques, whether currently known or yet to be developed. The disclosure should in no way be limited to the illustrative implementations, drawings, and techniques illustrated below, including the exemplary designs and implementations illustrated and described herein, but may be modified within the scope of the appended claims along with their full scope of equivalents. [0135] Section headings are used in the present document for ease of understanding and do not limit the applicability of techniques and embodiments disclosed in each section only to that section. Furthermore, the techniques described herein are applicable to other video codec protocols and designs. [0136] 1. Summary. [0137] A neural network based image and video compression method comprising an auto- regressive subnetwork and an entropy coding engine, wherein entropy coding is performed independently of the auto-regressive subnetwork. [0138] 1. Background. [0139] The past decade has witnessed the rapid development of deep learning in a variety of areas, especially in computer vision and image processing. Inspired from the great success of deep learning technology to computer vision areas, many researchers have shifted their attention from conventional image/video compression techniques to neural image/video compression technologies. Neural network was invented originally with the interdisciplinary research of neuroscience and mathematics. It has shown strong capabilities in the context of non-linear transform and classification. Neural network-based image/video compression technology has gained significant progress during the past half-decade. It is reported that the latest neural network-based image compression algorithm [1] achieves comparable rate distortion (R-D) performance with Versatile Video Coding (VVC) [2], the latest video coding standard developed by Joint Video Experts Team (JVET) with experts from Moving Picture Experts Group (MPEG) and Video Coding Experts Group (MPEG). With the performance of neural image compression continually being improved, neural ByteDance P22071538401WO1; C23W4793 (4824-10401) network-based video compression has become an actively developing research area. However, neural network-based video coding still remains in its infancy due to the inherent difficulty of the problem. [0140] 2.1 Image/video compression. [0141] Image/video compression usually refers to the computing technology that compresses image/video into binary code to facilitate storage and transmission. The binary codes may or may not support losslessly reconstructing the original image/video, termed lossless compression and lossy compression. Most of the efforts are devoted to lossy compression since lossless reconstruction is not necessary in most scenarios. Usually the performance of image/video compression algorithms is evaluated from two aspects, i.e., compression ratio and reconstruction quality. Compression ratio is directly related to the number of binary codes, the less the better; Reconstruction quality is measured by comparing the reconstructed image/video with the original image/video, the higher the better. [0142] Image/video compression techniques can be divided into two branches, the classical video coding methods and the neural-network-based video compression methods. Classical video coding schemes adopt transform-based solutions, in which researchers have exploited statistical dependency in the latent variables (e.g., discrete cosine transform (DCT) or wavelet coefficients) by carefully hand-engineering entropy codes modeling the dependencies in the quantized regime. Neural network-based video compression is in two flavors, neural network-based coding tools and end-to-end neural network-based video compression. The former is embedded into existing classical video codecs as coding tools and only serves as part of the framework, while the latter is a separate framework developed based on neural networks without depending on classical video codecs. [0143] In the last three decades, a series of classical video coding standards have been developed to accommodate the increasing visual content. The international standardization organizations International Organization for Standardization (ISO)/International Electrotechnical Commission (IEC) has two expert groups namely Joint Photographic Experts Group (JPEG) and Moving Picture Experts Group (MPEG), and International Telecommunication Union - Telecommunication Standardization Sector (ITU-T) also has its own Video Coding Experts Group (VCEG) which is for standardization of image/video coding technology. The influential video coding standards published by these organizations include Joint Photographic Experts Group (JPEG), JPEG 2000, H.262, H.264/Advanced Video Coding (AVC) and H.265/High Efficiency Video Coding (HEVC). After H.265/HEVC, the Joint Video Experts Team (JVET) formed by MPEG and VCEG has been working ByteDance P22071538401WO1; C23W4793 (4824-10401) on a new video coding standard Versatile Video Coding (VVC). The first version of VVC was released in July 2020. An average of 50% bitrate reduction is reported by VVC under the same visual quality compared with HEVC. [0144] Neural network-based image/video compression is not a new technique since there were a number of researchers working on neural network-based image coding [3]. But the network architectures were relatively shallow, and the performance was not satisfactory. Benefit from the abundance of data and the support of powerful computing resources, neural network-based methods are better exploited in a variety of applications. At present, neural network-based image/video compression has shown promising improvements, confirmed its feasibility. Nevertheless, this technology is still far from mature and a lot of challenges need to be addressed. [0145] 2.2 Neural Networks. [0146] Neural networks, also known as artificial neural networks (ANN), are the computational models used in machine learning technology which are usually composed of multiple processing layers and each layer is composed of multiple simple but non-linear basic computational units. One benefit of such deep networks is believed to be the capacity for processing data with multiple levels of abstraction and converting data into different kinds of representations. Note that these representations are not manually designed; instead, the deep network including the processing layers is learned from massive data using a general machine learning procedure. Deep learning eliminates the necessity of handcrafted representations, and thus is regarded useful especially for processing natively unstructured data, such as acoustic and visual signal, whilst processing such data has been a longstanding difficulty in the artificial intelligence field. [0147] 2.3 Neural networks for image compression. [0148] Existing neural networks for image compression methods can be classified in two categories, i.e., pixel probability modeling and auto-encoder. The former one belongs to the predictive coding strategy, while the latter one is the transform-based solution. Sometimes, these two methods are combined together in literature. [0149] 2.3.1 Pixel probability modeling. [0150] According to Shannon’s information theory [6], the optimal method for lossless coding can reach the minimal coding rate − log ^ ^(^) where ^(^) is the probability of symbol ^. A number of lossless coding methods were developed in literature and among them arithmetic coding is believed to be among the optimal ones [7]. Given a probability distribution ^(^), arithmetic coding ByteDance P22071538401WO1; C23W4793 (4824-10401) ensures that the coding rate to be as close as possible to its theoretical limit − log ^ ^(^) without considering the rounding error. Therefore, the remaining problem is to how to determine the probability, which is however very challenging for natural image/video due to the curse of dimensionality. [0151] Following the predictive coding strategy, one way to model ^(^) is to predict pixel probabilities one by one in a raster scan order based on previous observations, where ^ is an image. ^ ( ^ ) = ^ ( ^ ^ ) ^ ( ^ ^ |^ ^ ) … ^ ( ^ ^ |^ ^ , … , ^ ^^^ ) … ^ ( ^ ^×^ |^ ^ , … , ^ ^×^^^ ) (1) where ^ and ^ are the height and width of the image, respectively. The previous observation is also known as the context of the current pixel. When the image is large, it can be difficult to estimate the conditional probability, thereby a simplified method is to limit the range of its context. ^ ( ^ ) = ^ ( ^ ^ ) ^ ( ^ ^ |^ ^ ) … ^ ( ^ ^ |^ ^^^ , … , ^ ^^^ ) … ^ ( ^ ^×^ |^ ^×^^^ , … , ^ ^×^^^ ) (2) where is a pre-defined constant controlling the range of the context. [0152] It should be noted that the condition may also take the sample values of other color components into consideration. For example, when coding the RGB color component, R sample is dependent on previously coded pixels (including R/G/B samples), the current G sample may be coded according to previously coded pixels and the current R sample, while for coding the current B sample, the previously coded pixels and the current R and G samples may also be taken into consideration. [0153] Most of the compression methods directly model the probability distribution in the pixel domain. Some researchers also attempt to model the probability distribution as a conditional one upon explicit or latent representations. That being said, we may estimate ^ ( ^|ℎ ) = ∏^ ^ # × ^ ^ ^(^ ^ |^ ^ , … , ^ ^^^ , ℎ) (3) where ℎ is the additional condition and ^(^) = ^(ℎ)^(^|ℎ), meaning the modeling is split into an unconditional one and a conditional one. The additional condition can be image label information or high-level representations. [0154] 2.3.2 Auto-encoder. [0155] Auto-encoder originates from the well-known work proposed by Hinton and Salakhutdinov [17]. The method is trained for dimensionality reduction and consists of two parts: encoding and decoding. The encoding part converts the high-dimension input signal to low- dimension representations, typically with reduced spatial size but a greater number of channels. The decoding part attempts to recover the high-dimension input from the low-dimension representation. ByteDance P22071538401WO1; C23W4793 (4824-10401) Auto-encoder enables automated learning of representations and eliminates the need of hand-crafted features, which is also believed to be one of the most important advantages of neural networks. [0156] FIG.1 illustrates a typical transform coding scheme. The original image ^ is transformed by the analysis network $ % to achieve the latent representation ^. The latent representation y is quantized and compressed into bits. The number of bits & is used to measure the coding rate. The quantized latent representation ^^ is then inversely transformed by a synthesis network $ ' to obtain the reconstructed image ^^. The distortion is calculated in a perceptual space by transforming ^ and ^^ with the function $ ( . [0157] It is intuitive to apply auto-encoder network to lossy image compression. We only need to encode the learned latent representation from the well-trained neural networks. However, it is not trivial to adapt auto-encoder to image compression since the original auto-encoder is not optimized for compression thereby not efficient by directly using a trained auto-encoder. In addition, there exist other major challenges. First, the low-dimension representation should be quantized before being encoded, but the quantization is not differentiable, which is required in backpropagation while training the neural networks. Second, the objective under compression scenario is different since both the distortion and the rate need to be take into consideration. Estimating the rate is challenging. Third, a practical image coding scheme needs to support variable rate, scalability, encoding/decoding speed, interoperability. In response to these challenges, a number of researchers have been actively contributing to this area. [0158] The prototype auto-encoder for image compression is in FIG.1, which can be regarded as a transform coding strategy. The original image ^ is transformed with the analysis network ^ = $ % (^), where ^ is the latent representation which will be quantized and coded. The synthesis network will inversely transform the quantized latent representation ^^ back to obtain the reconstructed image ^^ = $ ' (^^). The framework is trained with the rate-distortion loss function, i.e., ℒ = * + ,&, where * is the distortion between ^ and ^^, & is the rate calculated or estimated from the quantized representation ^^, and , is the Lagrange multiplier. It should be noted that * can be calculated in either pixel domain or perceptual domain. All existing research works follow this prototype and the difference might only be the network structure or loss function. [0159] In terms of network structure, recurrent neural networks (RNNs) and convolutional neural networks (CNNs) are the most widely used architectures. In the RNNs relevant category, Toderici et al. [18] propose a general framework for variable rate image compression using RNN. ByteDance P22071538401WO1; C23W4793 (4824-10401) They use binary quantization to generate codes and do not consider rate during training. The framework indeed provides a scalable coding functionality, where RNN with convolutional and deconvolution layers is reported to perform decently. Toderici et al. [19] then proposed an improved version by upgrading the encoder with a neural network similar to pixel RNN (PixelRNN) to compress the binary codes. The performance is reportedly better than JPEG on Kodak image dataset using multi-scale structural similarity (MS-SSIM) evaluation metric. Johnston et al. [20] further improve the RNN-based solution by introducing hidden-state priming. In addition, an SSIM- weighted loss function is also designed, and spatially adaptive bitrates mechanism is enabled. They achieve better results than better portable graphics (BPG) on Kodak image dataset using MS-SSIM as evaluation metric. Covell et al. [21] support spatially adaptive bitrates by training stop-code tolerant RNNs. [0160] Ballé et al. [22] proposes a general framework for rate-distortion optimized image compression. The use multiary quantization to generate integer codes and consider the rate during training, i.e., the loss is the joint rate-distortion cost, which can be mean square error (MSE) or others. They add random uniform noise to stimulate the quantization during training and use the differential entropy of the noisy codes as a proxy for the rate. They use generalized divisive normalization (GDN) as the network structure, which consists of a linear mapping followed by a nonlinear parametric normalization. The effectiveness of GDN on image coding is verified in [23]. Ballé et al. [24] then propose an improved version, where they use 3 convolutional layers each followed by a down- sampling layer and a GDN layer as the forward transform. Accordingly, they use 3 layers of inverse GDN each followed by an up-sampling layer and convolution layer to stimulate the inverse transform. In addition, an arithmetic coding method is devised to compress the integer codes. The performance is reportedly better than JPEG and JPEG 2000 on Kodak dataset in terms of MSE. Furthermore, Ballé et al. [25] improve the method by devising a scale hyper-prior into the auto-encoder. They transform the latent representation ^ with a subnet ℎ % to - = ℎ % (^) and - will be quantized and transmitted as side information. Accordingly, the inverse transform is implemented with a subnet ℎ ' attempting to decode from the quantized side information -̂ to the standard deviation of the quantized ^^, which will be further used during the arithmetic coding of ^^. On the Kodak image set, their method is slightly worse than BPG in terms of PSNR. D. Minnen et al. [26] further exploit the structures in the residue space by introducing an autoregressive model to estimate both the standard deviation and the mean. In the latest work [27], Z. Cheng et al. use Gaussian mixture model to further ByteDance P22071538401WO1; C23W4793 (4824-10401) remove redundancy in the residue. The reported performance is on par with VVC [28] on the Kodak image set using peak signal-to-noise ratio (PSNR) as evaluation metric. [0161] 2.3.3 Hyper prior model. [0162] In the transform coding approach to image compression, the encoder subnetwork (section 2.3.2) transforms the image vector x using a parametric analysis transform $ % (^, ∅ 0 ) into a latent representation ^ , which is then quantized to form ^^ . Because ^^ is discrete-valued, it can be losslessly compressed using entropy coding techniques such as arithmetic coding and transmitted as a sequence of bits. [0163] As evident from the middle left and middle right image of FIG.2, there are significant spatial dependencies among the elements of ^^. Notably, their scales (middle right image) appear to be coupled spatially. In [25] an additional set of random variables -̂ are introduced to capture the spatial dependencies and to further reduce the redundancies. In this case, the image compression network is depicted in FIG.3. [0164] In FIG. 3, the left hand of the models is the encoder $ % and decoder $ ' (explained in section 2.3.2). The right-hand side is the additional hyper encoder ℎ % and hyper decoder ℎ ' networks that are used to obtain -̂. In this architecture the encoder subjects the input image x to $ % , yielding the responses ^ with spatially varying standard deviations. The responses ^ are fed into ℎ % , summarizing the distribution of standard deviations in -. - is then quantized (-̂), compressed, and transmitted as side information. The encoder then uses the quantized vector -̂ to estimate 1, the spatial distribution of standard deviations, and uses it to compress and transmit the quantized image representation ^^. The decoder first recovers -̂ from the compressed signal. It then uses ℎ ' to obtain 1, which provides it with the correct probability estimates to successfully recover ^^ as well. It then feeds ^^ into $ ' to obtain the reconstructed image. [0165] When the hyper encoder and hyper decoder are added to the image compression network, the spatial redundancies of the quantized latent ^^ are reduced. The rightmost image in FIG. 2 correspond to the quantized latent when hyper encoder/decoder are used. Compared to middle right image, the spatial redundancies are significantly reduced, as the samples of the quantized latent are less correlated. [0166] In FIG.2, an image from the Kodak dataset is shown on the left; the visualization of the latent representation y of that image is shown on the middle left; the standard deviations σ of the ByteDance P22071538401WO1; C23W4793 (4824-10401) latent are shown on the middle right; and latents y after the hyper prior (hyper encoder and decoder) network are shown on the right. [0167] FIG.3 illustrates a network architecture of an autoencoder implementing the hyperprior model. The left side shows an image autoencoder network, the right side corresponds to the hyperprior subnetwork. The analysis and synthesis transforms are denoted as g 3 and g 3 . Q represents quantization, and AE, AD represent arithmetic encoder and arithmetic decoder, respectively. The hyperprior model consists of two subnetworks, hyper encoder (denoted with h 3 ) and hyper decoder (denoted with h 5 ). The hyper prior model generates a quantized hyper latent (z^) which comprises information about the probability distribution of the samples of the quantized latent y^. z^ is included in the bitstream and transmitted to the receiver (decoder) along with y^. [0168] 2.3.4 Context model. [0169] Although the hyper prior model improves the modelling of the probability distribution of the quantized latent ^^, additional improvement can be obtained by utilizing an autoregressive model that predicts quantized latents from their causal context (Context Model). [0170] The term auto-regressive means that the output of a process is later used as input to the process. For example, the context model subnetwork generates one sample of a latent, which is later used as input to obtain the next sample. [0171] [26] utilize a joint architecture where both hyper prior model subnetwork (hyper encoder and hyper decoder) and a context model subnetwork are utilized. The hyper prior and the context model are combined to learn a probabilistic model over quantized latents ^^, which is then used for entropy coding. As depicted in FIG. 4, the outputs of context subnetwork and hyper decoder subnetwork are combined by the subnetwork called Entropy Parameters, which generates the mean μ and scale (or variance) σ parameters for a Gaussian probability model. The gaussian probability model is then used to encode the samples of the quantized latents into bitstream with the help of the arithmetic encoder (AE) module. In the decoder the gaussian probability model is utilized to obtain the quantized latents y^ from the bitstream by arithmetic decoder (AD) module. [0172] FIG.4 illustrates the combined model jointly optimizes an autoregressive component that estimates the probability distributions of latents from their causal context (Context Model) along with a hyperprior and the underlying autoencoder. Real-valued latent representations are quantized (Q) to create quantized latents (y^) and quantized hyper-latents (z^), which are compressed into a bitstream using an arithmetic encoder (AE) and decompressed by an arithmetic decoder (AD). The ByteDance P22071538401WO1; C23W4793 (4824-10401) highlighted region corresponds to the components that are executed by the receiver (i.e., a decoder) to recover an image from a compressed bitstream. [0173] Typically, the latent samples are modeled as gaussian distribution or gaussian mixture models (not limited to). In [26] and according to FIG.4, the context model and hyper prior are jointly used to estimate the probability distribution of the latent samples. Since a gaussian distribution can be defined by a mean and a variance (aka sigma or scale), the joint model is used to estimate the mean and variance (denoted as 9 and 1). [0174] 2.3.5 The encoding process using joint auto-regressive hyper prior model. [0175] FIG. 4 corresponds to the state of the art compression method that is proposed in [26]. In this section and the next, the encoding and decoding processes will be described separately. [0176] FIG.5 illustrates the encoding process according to [26]. [0177] In FIG.5, the encoding process is depicted. The input image is first processed with an encoder subnetwork. The encoder transforms the input image into a transformed representation called latent, denoted by ^. ^ is then input to a quantizer block, denoted by Q, to obtain the quantized latent (^^ ). ^^ is then converted to a bitstream (bits1) using an arithmetic encoding module (denoted AE). The arithmetic encoding block converts each sample of the ^^ into a bitstream (bits1) one by one, in a sequential order. [0178] The modules hyper encoder, context, hyper decoder, and entropy parameters subnetworks are used to estimate the probability distributions of the samples of the quantized latent ^^. the latent ^ is input to hyper encoder, which outputs the hyper latent (denoted by -). The hyper latent is then quantized (-̂) and a second bitstream (bits2) is generated using arithmetic encoding (AE) module. The factorized entropy module generates the probability distribution, that is used to encode the quantized hyper latent into bitstream. The quantized hyper latent includes information about the probability distribution of the quantized latent (^^). [0179] The Entropy Parameters subnetwork generates the probability distribution estimations, that are used to encode the quantized latent ^^. The information that is generated by the Entropy Parameters typically include a mean 9 and scale (or variance) 1 parameters, that are together used to obtain a gaussian probability distribution. A gaussian distribution of a random variable x is ? BCD @ defined as : ( ^ ) = ^ ^ @ A E F < √^> ^ wherein the parameter 9 is the mean or expectation of the distribution (and also its median and mode), while the parameter 1 is its standard deviation (or ByteDance P22071538401WO1; C23W4793 (4824-10401) variance, or scale). In order to define a gaussian distribution, the mean and the variance need to be determined. In [26] the entropy parameters module are used to estimate the mean and the variance values. [0180] The subnetwork hyper decoder generates part of the information used by the entropy parameters subnetwork, the other part of the information is generated by the autoregressive module called context module. The context module generates information about the probability distribution of a sample of the quantized latent, using the samples that are already encoded by the arithmetic encoding (AE) module. The quantized latent ^^ is typically a matrix composed of many samples. The samples can be indicated using indices, such as ^^[i,j,k] or ^^[i,j] depending on the dimensions of the matrix ^^. The samples ^^[i,j] are encoded by AE one by one, typically using a raster scan order. In a raster scan order the rows of a matrix are processed from top to bottom, wherein the samples in a row are processed from left to right. In such a scenario (wherein the raster scan order is used by the AE to encode the samples into bitstream), the context module generates the information pertaining to a sample ^^[i,j], using the samples encoded before, in raster scan order. The information generated by the context module and the hyper decoder are combined by the entropy parameters module to generate the probability distributions that are used to encode the quantized latent ^^ into bitstream (bits1). [0181] Finally, the first and the second bitstream are transmitted to the decoder as result of the encoding process. [0182] It is noted that the other names can be used for the modules described above. [0183] In the above description, the all of the elements in FIG. 5 are collectively the encoder. The analysis transform that converts the input image into latent representation is also called an encoder (or auto-encoder). [0184] 2.3.6. The decoding process using joint auto-regressive hyper prior model. [0185] FIG. 6 illustrates the decoding process corresponding to [26]. FIG. 6 depicts the decoding process separately corresponding to [26]. [0186] In the decoding process, the decoder first receives the first bitstream (bits1) and the second bitstream (bits2) that are generated by a corresponding encoder. The bits2 is first decoded by the arithmetic decoding (AD) module by utilizing the probability distributions generated by the factorized entropy subnetwork. The factorized entropy module typically generates the probability distributions using a predetermined template, for example using predetermined mean and variance ByteDance P22071538401WO1; C23W4793 (4824-10401) values in the case of gaussian distribution. The output of the arithmetic decoding process of the bits2 is -̂, which is the quantized hyper latent. The AD process reverts to AE process that was applied in the encoder. The processes of AE and AD are lossless, meaning that the quantized hyper latent -̂ that was generated by the encoder can be reconstructed at the decoder without any change. [0187] After obtaining of -̂, it is processed by the hyper decoder, whose output is fed to entropy parameters module. The three subnetworks, context, hyper decoder and entropy parameters that are employed in the decoder are identical to the ones in the encoder. Therefore, the exact same probability distributions can be obtained in the decoder (as in encoder), which is essential for reconstructing the quantized latent ^^ without any loss. As a result, the identical version of the quantized latent ^^ that was obtained in the encoder can be obtained in the decoder. [0188] After the probability distributions (e.g., the mean and variance parameters) are obtained by the entropy parameters subnetwork, the arithmetic decoding module decodes the samples of the quantized latent one by one from the bitstream bits1. From a practical standpoint, autoregressive model (the context model) is inherently serial, and therefore cannot be sped up using techniques such as parallelization. [0189] Finally, the fully reconstructed quantized latent ^^ is input to the synthesis transform (denoted as decoder in FIG.6) module to obtain the reconstructed image. [0190] In the above description, the all of the elements in FIG.6 are collectively called decoder. The synthesis transform that converts the quantized latent into reconstructed image is also called a decoder (or auto-decoder). [0191] 2.4 Neural networks for video compression. [0192] Similar to conventional video coding technologies, neural image compression serves as the foundation of intra compression in neural network-based video compression, thus development of neural network-based video compression technology comes later than neural network-based image compression but needs far more efforts to solve the challenges due to its complexity. Starting from 2017, a few researchers have been working on neural network-based video compression schemes. Compared with image compression, video compression needs efficient methods to remove inter-picture redundancy. Inter-picture prediction is then a crucial step in these works. Motion estimation and compensation is widely adopted but is not implemented by trained neural networks until recently. ByteDance P22071538401WO1; C23W4793 (4824-10401) [0193] Studies on neural network-based video compression can be divided into two categories according to the targeted scenarios: random access and the low-latency. In random access case, it requires the decoding can be started from any point of the sequence, typically divides the entire sequence into multiple individual segments and each segment can be decoded independently. In low- latency case, it aims at reducing decoding time thereby usually merely temporally previous frames can be used as reference frames to decode subsequent frames. [0194] 2.4.1 Low-latency. [0195] [29] are the first to propose a video compression scheme with trained neural networks. They first split the video sequence frames into blocks and each block will choose one from two available modes, either intra coding or inter coding. When intra coding is selected, there is an associated auto-encoder to compress the block. When inter coding is selected, motion estimation and compensation are performed with tradition methods and a trained neural network will be used for residue compression. The outputs of auto-encoders are directly quantized and coded by the Huffman method. [0196] Chen et al. [31] propose another neural network-based video coding scheme with PixelMotionCNN. The frames are compressed in the temporal order, and each frame is split into blocks which are compressed in the raster scan order. Each frame will firstly be extrapolated with the preceding two reconstructed frames. When a block is to be compressed, the extrapolated frame along with the context of the current block are fed into the PixelMotionCNN to derive a latent representation. Then the residues are compressed by the variable rate image scheme [34]. This scheme performs on par with H.264. [0197] Lu et al. [32] propose the real-sense end-to-end neural network-based video compression framework, in which all the modules are implemented with neural networks. The scheme accepts current frame and the prior reconstructed frame as inputs and optical flow will be derived with a pre- trained neural network as the motion information. The motion information will be warped with the reference frame followed by a neural network generating the motion compensated frame. The residues and the motion information are compressed with two separate neural auto-encoders. The whole framework is trained with a single rate-distortion loss function. It achieves better performance than H.264. [0198] Rippel et al. [33] propose an advanced neural network-based video compression scheme. It inherits and extends traditional video coding schemes with neural networks with the following ByteDance P22071538401WO1; C23W4793 (4824-10401) major features: 1) using only one auto-encoder to compress motion information and residues; 2) motion compensation with multiple frames and multiple optical flows; 3) an on-line state is learned and propagated through the following frames over time. This scheme achieves better performance in multi-scale structural similarity (MS-SSIM) than HEVC reference software. [0199] J. Lin et al. [36] propose an extended end-to-end neural network-based video compression framework based on [32]. In this solution, multiple frames are used as references. It is thereby able to provide more accurate prediction of current frame by using multiple reference frames and associated motion information. In addition, motion field prediction is deployed to remove motion redundancy along temporal channel. Postprocessing networks are also introduced in this work to remove reconstruction artifacts from previous processes. The performance is better than [32] and H.265 by a noticeable margin in terms of both peak signal-to-noise ratio (PSNR) and MS-SSIM. [0200] Eirikur et al. [37] propose scale-space flow to replace commonly used optical flow by adding a scale parameter based on framework of [32]. It is reportedly achieving better performance than H.264. [0201] Z. Hu et al. [38] propose a multi-resolution representation for optical flows based on [32]. Concretely, the motion estimation network produces multiple optical flows with different resolutions and let the network to learn which one to choose under the loss function. The performance is slightly improved compared with [32] and better than H.265. [0202] 2.4.2 Random access. [0203] Wu et al. [30] propose a neural network-based video compression scheme with frame interpolation. The key frames are first compressed with a neural image compressor and the remaining frames are compressed in a hierarchical order. They perform motion compensation in the perceptual domain, i.e., deriving the feature maps at multiple spatial scales of the original frame and using motion to warp the feature maps, which will be used for the image compressor. The method is reportedly on par with H.264. [0204] Djelouah et al. [41] propose a method for interpolation-based video compression, wherein the interpolation model combines motion information compression and image synthesis, and the same auto-encoder is used for image and residual. [0205] Amirhossein et al. [35] propose a neural network-based video compression method based on variational auto-encoders with a deterministic encoder. Concretely, the model consists of an auto- encoder and an auto-regressive prior. Different from previous methods, this method accepts a group ByteDance P22071538401WO1; C23W4793 (4824-10401) of pictures (GOP) as inputs and incorporates a 3D autoregressive prior by taking into account of the temporal correlation while coding the latent representations. It provides comparative performance as H.265. [0206] 2.5 Preliminaries. [0207] Almost all the natural image/video is in digital format. A grayscale digital image can be represented by ^ ∈ H ^×^ , where H is the set of values of a pixel, ^ is the image height and ^ is the image width. For example, H = I 0, 1, 2, … ,255 N is a common setting and in this case | H | = 256 = 2 P , thus the pixel can be represented by an 8-bit integer. An uncompressed grayscale digital image has 8 bits-per-pixel (bpp), while compressed bits are definitely less. [0208] A color image is typically represented in multiple channels to record the color information. For example, in the RGB color space an image can be denoted by ^ ∈ H ^×^×Q with three separate channels storing Red, Green, and Blue information. Similar to the 8-bit grayscale image, an uncompressed 8-bit RGB image has 24 bpp. Digital images/videos can be represented in different color spaces. The neural network-based video compression schemes are mostly developed in RGB color space while the traditional codecs typically use YUV color space to represent the video sequences. In YUV color space, an image is decomposed into three channels, namely Y, Cb and Cr, where Y is the luminance component and Cb/Cr are the chroma components. The benefits come from that Cb and Cr are typically down sampled to achieve pre-compression since human vision system is less sensitive to chroma components. [0209] A color video sequence is composed of multiple color images, called frames, to record scenes at different timestamps. For example, in the RGB color space, a color video can be denoted by R = I ^ S , ^ ^ , … , ^ T , … , ^ U^^ N where V is the number of frames in this video sequence, ^ ∈ H ^×^ . If ^ = 1080, ^ = 1920, | H | = 2 P , and the video has 50 frames-per-second (fps), then the data rate of this uncompressed video is 1920 × 1080 × 8 × 3 × 50 = 2,488,320,000 bits-per-second (bps), about 2.32 Gbps, which needs a lot storage thereby definitely needs to be compressed before transmission over the internet. [0210] Usually the lossless methods can achieve compression ratio of about 1.5 to 3 for natural images, which is clearly below requirement. Therefore, lossy compression is developed to achieve further compression ratio, but at the cost of incurred distortion. The distortion can be measured by calculating the average squared difference between the original image and the reconstructed image, ByteDance P22071538401WO1; C23W4793 (4824-10401) i.e., mean-squared-error (MSE). For a grayscale image, MSE can be calculated with the following equation. ‖ _^_‖ @ [\] = ^ ^ ×^ (4) [0211] Accordingly, the quality can be measured by peak signal-to- : ( ^%_(H ) @ `\a& = 10 × bc$ ) ^S def (5) where ^^^(H) is the maximal quality evaluation metrics such as [4]. [0212] To compare different lossless compression schemes, it is sufficient to compare either the compression ratio given the resulting rate or vice versa. However, to compare different lossy compression methods, it has to take into account both the rate and reconstructed quality. For example, to calculate the relative rates at several different quality levels, and then to average the rates, is a commonly adopted method; the average relative rate is known as Bjontegaard’s delta-rate (BD-rate) [5]. There are other important aspects to evaluate image/video coding schemes, including encoding/decoding complexity, scalability, robustness, and so on. [0213] 3. Problems [0214] 3.1 Core problem [0215] The state of the art image compression networks include an autoregressive model (for example the context model) to improve the compression performance. However, the autoregressive model is interleaved with the inherently serial entropy decoding process, as a result the decoding process becomes inherently serial (cannot be efficiently parallelized) and very slow. [0216] The problem pertains to the entropy decoding part of the state-of-the-art image decoding architecture. FIG.7 depicts the state-of-the-art decoder design. The modules on the right hand side, that are encapsulated in the dashed rectangle are responsible for entropy decoding of the quantized latent ^^. This part is very slow in state of the art arhitectures due to their serial nature. [0217] 3.2 Details of the problem. [0218] FIG. 8 illustrates an entropy coding subnetwork in the state of the art image decoding architecture. ByteDance P22071538401WO1; C23W4793 (4824-10401) [0219] In the state of the art image decoding architecture according to [26], the process of reconstructing the quantized latent ^^ is performed as follows. [0220] 1. The quantized hyper latent -̂ is processed by hyper decoder to generate a first partial information. The first partial information is fed to entropy parameters module. [0221] 2. The following operation is performed serially and in a recursive manner to reconstruct a sample of the quantized latent ^^[h, i]: [0222] a. The context module generates second partial information using the samples ^^[^, ^] , wherein: [0223] i. n < j, or [0224] ii. m < i if n is equal to j. [0225] (The samples located at [^, ^] are the ones that are already reconstructed). [0226] b. Using the first and the second partial information, the Entropy parameter module generates the 9[h, i] and 1[h, i] , which are the ^^^^ and k^lh^^m^ of gaussian probability distribution. [0227] c. Arithmetic decoder decodes the sample ^^ [ h, i ] from the bitstream using the probability distribution, whose mean and variance are 9 [ h, i ] and 1 [ h, i ] [0228] After the quantized latent ^^ according to the above flow chart, it is processed by a synthesis transform (the decoder) to obtain the reconstructed picture. The synthesis transform is called decoder according to the notation used in [26]. The whole process described above (that includes reconstruction of the ^^ and reconstruction of the image) is also called decoding or a decoder. [0229] In the above a sample of quantized latent is denoted by ^^[h, i]. It is noted that the sample is not necessarily a scalar value, it might be a vector and might contain multiple elements. In the rest of the application a sample can be denoted by ^^[h, i] or ^^[: , h, i]. In the latter, the “:” is used to denote that there is a third dimension and is used to stress that the sample has multiple elements. [0230] After the samples of the quantized latent ^^ are reconstructed, the synthesis transform (i.e., decoder) is performed to obtain the reconstructed image. [0231] As it is apparent from the above description, the arithmetic decoding operation and the Context module operation form a fully serial operation for the decoding of ^^[h, i]. This means that the samples of ^^ cannot be reconstructed in parallel, they need to be reconstructed one after the other. ByteDance P22071538401WO1; C23W4793 (4824-10401) [0232] The arithmetic decoding process (not limited to arithmetic coding, includes most of the other entropy coding methods such as range coding), is an operation that is computationally simple but inherently sequential. The reason is that, the bitstream consists of series of bits, and the bits need to be decoded one by one. This process is suitable to be performed by a processing unit that is fast, like a central processing unit (CPU). [0233] On the other hand, the Context and Entropy Parameters modules are computationally intensive and highly parallelizable operations. They are more suitable to be performed by a processing unit that is massively parallel, like a graphics processing unit (GPU). [0234] The problem arises in the state-of-the-art image coding architectures, when the context and entropy parameters modules are interleaved with the arithmetic decoding. As described in the flowchart above, the decoding of one sample of ^^ requires application of context module, entropy parameters module followed by the arithmetic decoding module. The context module and entropy parameters modules are deep neural networks, which means that they include huge amount of operations. The arithmetic decoding is a relatively simple operation, however it is fully serial. Performing the fully serial arithmetic decoding operation interleaved with the complex “context” and “entropy parameters” operations slows down the decoding process significantly. [0235] As a first example, if the processes of context, arithmetic decoding and entropy parameters modules are performed in a GPU the following happens. [0236] 1. First a sample of quantized latent is obtained using the arithmetic decoding. Since arithmetic decoding is fully serial, only a single core of the GPU is utilized. During this time all of the other GPU cores (there can be thousand cores in a GPU), will be waiting idle. Furthermore, each core of the GPU is slow, since they are not designed to perform computations fast. [0237] 2. Once a sample of the quantized latent is obtained, the context and entropy parameters modules are performed utilizing multiple cores of the GPU. This second step can be performed efficiently, since the context and entropy parameters modules are suitable for massive parallelization, hence suitable to be performed at a GPU. [0238] 3. Go to step 1 till all samples of the quantized latent are decoded. [0239] Once can understand that the source of slow-down is step 1 when the decoding is performed on a GPU. [0240] As a second example, if the processes of context, arithmetic decoding and entropy parameters modules are performed on a CPU the following happens. ByteDance P22071538401WO1; C23W4793 (4824-10401) [0241] 1. First a sample of quantized latent is obtained using the arithmetic decoding. Since arithmetic decoding is fully serial, the CPU is very suitable, therefore the sample is obtained very quickly. [0242] 2. Once a sample of the quantized latent is obtained, the context and entropy parameters modules are performed. However, the CPU is not suitable for performing huge number of operations, it only includes several processing cores. Therefore, this step will be very slow. [0243] 3. Go to step 1 till all samples of the latent are decoded. [0244] When the process is performed on a CPU, the slow-down is caused by step 2, which is not suitable to be performed on a CPU. [0245] Finally, as a third example, one can think about performing part of decoding on CPU (arithmetic decoding) and part on GPU (context and entropy parameters). In this case the following happens. [0246] 1. First a sample of latent is obtained using the arithmetic decoding. Since arithmetic decoding is fully serial, the CPU is very suitable, therefore the sample is obtained very quickly. During this time GPU is staying idle. [0247] 2. The obtained data is transferred to GPU. [0248] 3. Once a sample of the latent is obtained, the context and entropy parameters modules are performed utilizing multiple cores of the GPU. This second step can be performed efficiently, since the context and entropy parameters modules are suitable for massive parallelization, hence suitable to be performed at a GPU. During this time CPU is staying idle. [0249] 4. The obtained data (mean and variance values) are sent to CPU. [0250] 5. Go to step 1 till all samples of the latent are decoded. [0251] As one can understand, using CPU and GPU in tandem is also not viable due to the idle CPU and GPU times, as well as the times necessary for transferring data back and forth between CPU and GPU. In fact, this is the slowest implementation among the 3 options. [0252] In short, the problem arises when computationally complex but massively parallelizable process (such as a deep neural network, e.g., context module or entropy parameters module), needs to be performed in an interleaved fashion with an entropy coding process (such as arithmetic coding or range coding) that is simple but fully serial. The state-of-the-art image coding networks as in [26] or [1] suffer from this problem, hence the decoding process is very slow in this architecture. ByteDance P22071538401WO1; C23W4793 (4824-10401) [0253] A straightforward solution to the above described problem would be to remove the auto- regressive “context” module, as a result the loop comprising the arithmetic decoder, context and entropy parameters module could be eliminated. However, this would result in considerable amount of degradation in compression efficiency. The present disclosure achieves the same result as the straightforward solution without sacrificing the compression efficiency. [0254] 4. The present disclosure. [0255] The detailed techniques herein should be considered as examples to explain general concepts. These techniques should not be interpreted in a narrow way. Furthermore, these techniques can be combined in any manner. [0256] 4.1 Target of the present disclosure. [0257] The target of the present disclosure is to de-interleave the arithmetic decoding process and the computationally complex deep neural network operations. In other words, the target of the present disclosure is to decouple the arithmetic decoding process from the neural network-based modules. Therefore, the arithmetic decoding process can be completed independently, without requiring input from neural network based processes. As a result, the speed of decoding is increased significantly. [0258] 4.2 An embodiment of the present disclosure. [0259] 4.2.1 Decoding process. [0260] FIG. 9 is an example of the decoding process according to an embodiment of the disclosure. [0261] According to the present disclosure, the decoding operation is performed as follows. [0262] 1. Firstly, a second subnetwork is used to estimate probability parameters using a quantized hyper latent (-^ ^ in FIG.9). [0263] 2. The probability parameters (e.g., variance) generated by the second network are used to generate a quantized residual latent (denoted ^^ in the figure) by performing the arithmetic decoding process. The arithmetic decoder decodes the received bitstream based on the said probability parameters and generates the ^^. [0264] 3. The following steps are performed in a loop until all elements of ^^ are obtained. [0265] a. A first subnetwork is used to estimate a mean value parameter of a quantized latent (^^), using the already obtained samples of ^^. ByteDance P22071538401WO1; C23W4793 (4824-10401) [0266] b. The quantized residual latent ^^ and the mean value are used to obtain the next element of ^^. [0267] 4. After all of the samples of ^^ are obtained, a synthesis transform, such as the decoder module in FIG.7 can be applied to obtain the reconstructed image. [0268] An exemplary implementation of the present disclosure is depicted in the FIG.9 above (the decoding process). In the figure, the first subnetwork comprises the context, prediction and optionally the hyper decoder modules. The second network comprises the hyper scale decoder module. The quantized hyper latent is -^ ^ . Compared to the state of the art (FIG.7), the arithmetic decoding process is removed from the loop comprised of arithmetic decoding, context and entropy parameters. Instead, according to the present disclosure the arithmetic decoding process is performed without using any input from context and entropy parameters module, therefore it can be performed independently (it is deinterleaved). According to the present disclosure, the arithmetic decoding module has two inputs, the bitstream and the probability parameters (e.g., variance) which are the output of the hyper scale decoder. The hyper scale decoder generates the probability parameters using the quantized hyper latent -^ ^ . The arithmetic decoding process generates the quantized residual latent ^^. [0269] After the residual latent is obtained, a recursive prediction operation is performed to obtain the latent ^^. The samples of latent ^^[: , h, i] are obtained as follows. [0270] 1. An autoregressive context module is used to generate first input of a prediction module using the samples ^^[: , ^, ^] where the (m, n) pair are the indices of the samples of the latent that are already obtained. [0271] 2. Optionally the second input of the prediction module is obtained by using a hyper decoder and a quantized hyper latent -^ ^ . [0272] 3. Using the first input and the second input, the prediction module generates the mean value ^^^^ [ : , h, i ] . [0273] 4. The mean value ^^^^ [ : , h, i ] and the quantized residual latent ^^ [ : , h, i ] are added together to obtain the latent ^^ [ : , h, i ] . [0274] 5. The steps 1-4 are repeated for the next sample. [0275] FIG. 10 is an example of the encoding process according to an embodiment of the disclosure. ByteDance P22071538401WO1; C23W4793 (4824-10401) [0276] FIG.10 depicts another exemplary implementation of the present disclosure. Compared to the FIG.9, in FIG.10 the same quantized hyper latent is used as input to the hyper decoder and hyper scale decoder modules. The rest of the operations are same as explained above. [0277] 4.2.2 Encoding process. [0278] FIG. 11 is an example of an encoding process according to an embodiment of the disclosure. [0279] According to the present disclosure, the encoding operation is performed as follows. [0280] Initially an analysis transform, such as the encoder in Fig. 5 is applied to obtain all samples of the latent ^. [0281] 1. First, the following steps are performed in a loop until all elements of quantized residual latent ^^ are obtained. [0282] a. A first subnetwork is used to estimate a mean value parameter of the latent ^, using the already obtained samples of quantized latent ^^. [0283] b. The mean value is subtracted from ^ to obtain the residual ^, which is quantized to obtain quantized residual latent ^^. [0284] c. ^^ is added to the mean value are added to obtain the quantized latent ^^. [0285] 2. Secondly, a second subnetwork is used to estimate probability parameters (e.g., variance) using a quantized hyper latent -̂. [0286] 3. The probability parameters are used by the entropy encoder module to encode elements of the quantized residual latent into the bitstream. [0287] An exemplary implementation of the present disclosure is depicted in the FIG. 11 (the encoding process). In the figure, the first subnetwork comprises the context, prediction and optionally hyper decoder modules. The second network comprises the hyper scale decoder module. Compared to the state of the art (FIG.5), the arithmetic encoding process is removed from the loop comprised of arithmetic encoding, context and entropy parameters. Instead according to the present disclosure, the arithmetic encoding process is performed without using any input from context and entropy parameters module, therefore it can be performed independently (it is deinterleaved). According to the present disclosure the arithmetic encoding module has two inputs, the quantized residual latent and the probability parameters (e.g., variance) which are the output of the hyper scale decoder. The arithmetic encoding process uses a probability model that has a mean of zero. The ByteDance P22071538401WO1; C23W4793 (4824-10401) hyper scale decoder generates the probability parameters using the hyper latent -^ ^ . The arithmetic encoding process generates the bitstream that is transmitted to the decoder. [0288] The samples of the quantized residual latent ^^[: , h, i] are obtained according to a recursive prediction operation as follows. [0289] 1. An autoregressive context module is used first input of a prediction module using the samples ^^[: , ^, ^] where the (m, n) pair are the indices of the samples of the latent that are already obtained. [0290] 2. Optionally, the second input of the prediction module is obtained by using a hyper decoder and a hyper latent -^ ^ . [0291] 3. Using the input and the second input, the prediction module generates the mean value ^^^^[: , h, i]. mean value ^^^^[: , h, i] is subtracted from the latent ^[: , h, i] to obtain the residual latent ^[: , h, i]. [0293] 5. Residual latent is quantized to obtain quantized residual latent ^^[: , h, i]. [0294] 6. ^^[: , h, i] is added to ^^^^[: , h, i] to obtain the next sample of the quantized latent ^^[: , h, i]. The steps 1-5 are repeated for the next sample. [0295] Once all of the samples of the quantized residual latent ^^ are obtained according to the recursive process above, the entropy encoding process is applied to convert ^^ to bitstream. A second subnetwork (hyper scale decoder) is used to estimate the probability parameters that are used in the entropy encoding process. [0296] FIG. 12 is an example of an encoding process according to an embodiment of the disclosure. FIG. 12 depicts another exemplary implementation of the encoder of the present disclosure. Compared to FIG.11, in FIG.11 the same quantized hyper latent is used as input to the hyper decoder and hyper scale decoder modules. The rest of the operations are same as explained above. [0297] 4.2.3 Details of context submodule and prediction fusion submodule. [0298] In the present disclosure a context model is utilized (depicted as “context” in FIG. 10, 11, 12 …), which is applied on the quantized latent samples ^^. The output of the context model is input to a prediction fusion module. [0299] An example of the context submodule is provided in FIG. 13, wherein the context submodule comprises a convolution layer with a kernel size (4x3), number of input channels is 192, ByteDance P22071538401WO1; C23W4793 (4824-10401) number of output channels is 384. The input of the context submodule is ^^ and the output is fed to the prediction fusion submodule. [0300] The example in FIG. 14 shows one context submodule, which is the one also used in FIG. 13. According to the present disclosure the output of the context submodule and prediction fusion submodule is the 9 which is a mean value (e.g., a prediction, or an estimation of ^^). The context submodule and prediction fusion submodules are collectively used to generate the prediction 9. Since the output of the context-prediction fusion pair is 9, it is beneficial to consider as many samples of ^^ in the input as possible. The amount of samples that are considered as input are proportional to the following: size of the context submodule kernel, and number of input channels of the context submodule kernel. [0302] For example, in FIG.14, the number kernel size is 4x3 (4 samples in horizontal direction by 3 samples in vertical direction). And the number of input channels is 192. Increasing the input channel numbers, or the kernel size (e.g., the multiplication of size in horizontal and vertical directions) would increase the number of samples that are considered (used) for the prediction of following samples of ^^. [0303] Additionally, increasing the number of output channels of the context submodule would increase the information obtained from the input samples, hence increasing the prediction performance. For example, in FIG.14, the number of output channels of the kernel of the context submodule is 384. Increasing the number of output channels would result in better estimation of ^^ (i.e., the prediction 9 is close to ^^). [0304] Another example design of the context submodule is presented in FIG. 15. Here the kernel size is given by KxL and the input/output channels are given by A and B respectively. As explained before, in order to improve the performance of the prediction, is would be necessary to increase A, B, K or L. On the other hand, the complexity of the context module is proportional to multiplication of the 4 numbers, AxBxKxL. Therefore increasing any one of the numbers would result in a proportional increase in the complexity. [0305] In order to both increase the prediction performance and limit the complexity, the context submodule is split into 2 parallel convolution kernels in FIG. 16. The kernel size of the first convolution layer is 3x2, and the size of the second convolution layer is 4x3. The numbers of input and the output channels are 192 for both convolution layers. The output of the two convolutions are ByteDance P22071538401WO1; C23W4793 (4824-10401) concatenated by the “concat” block, whose output is 384 layers. The “concat” block stacks the two input channel-on top of each other. The number of channels at the output of the concat block is the sum of the numbers of channels in its input. [0306] The proposed prediction network (composed of the context submodule and the prediction fusion network) provides prediction performance that is close to the design presented in FIG. 14. This is because of the following. [0307] The number of samples that are considered as input are same in both designs, which is proportional to 4x3. [0308] The number of input channels and output channels are same (384) after the “concat” block. [0309] The samples that are spatially closer to the sample to be predicted are more correlated to the it. In FIG.16, the convolution layer in FIG.14 is split into 2 kernels, one of which is smaller (has a size 3x2). The kernel with smaller size helps focusing on the input samples that are spatially closer to the sample to be predicted. The bigger kernel 4x3 considers both the spatially closer samples and the farther away samples. The whole design in FIG.16 therefore can focus more on samples in the vicinity of the sample to be predicted, but also consider samples that are farther away (which also have correlation with the sample to be predicted). [0310] While the performance is very close, the complexity is 25% lower in FIG. 16. The complexity of the design in FIG.16 is proportional to (4x3x192x192 + 3x2x192x192), whereas the complexity of the design in FIG. 14 is proportional to 4x3x192x384. Therefore, splitting the convolution layer in FIG.14 helps keeping the prediction performance, but additionally has the effect of reducing the complexity. [0311] A more general implementation of the present disclosure is depicted in FIG. 17. According to the present disclosure the input latent samples are processed by at least 2 convolution layers, whose kernel sizes are OxP and MxN respectively, wherein the kernel sizes are different at least in one direction (e.g., either O is not equal to M or P is not equal to N). The output of the two convolution layers are concatenated and input to a prediction fusion network. The prediction fusion network outputs a prediction value 9 which is an estimation of a latent sample. [0312] FIG. 18 is an example of parallel convolution kernels. FIG. 18 depicts an alternative implementation of the present disclosure. According to the present disclosure the input latent samples are processed by a first convolution layer with kernel size MxN, and its output is processed ByteDance P22071538401WO1; C23W4793 (4824-10401) by at least a second convolution layer (whose kernel size is KxL in the figure). The output of the first convolution layer and the output of the second convolution layer are concatenated, which is then fed to the prediction fusion module. The output of the prediction fusion submodule is the 9 which is an estimation of a latent sample. [0313] Similarly, to the present disclosure example in FIG. 17, in FIG. 18 the prediction performance is increased by keeping the complexity low. When two convolution layers are applied one after the other, the receptive field of the second layer (i.e., the number of samples that are considered by the second convolution layer) is increased. This is because a region of input samples with a size of MxN is used by the first convolution layer to generate one output sample. The second convolution layer uses the output of the first layer, and considers a region of KxL samples. As a result, the second layer affectively uses (K + M) x (L+N) input samples, which is why it is said that the receptive field of the second convolution layer is increased. [0314] The prediction performance of the design in FIG.18 is similar to a single convolution layer with a kernel (K + M) x (L+N). wherein the complexity is proportional to (KxL + MxN) instead of (K + M) x (L+N), which is the benefit of the example implementation. [0315] In FIG. 19 another example implementation of the present disclosure is presented. According to the present disclosure the latent samples ^^ are fed to a first convolution layer, and residual latent samples ^^ are fed to a second convolution layer. The output of the first and the second convolution layers are concatenated using the „concat“ block and fed to the prediction fusion module. The output of the prediction fusion submodule is the 9 which is an estimation of a latent sample. [0316] The benefit of the implementation in FIG.19 is, the latent samples and the residual latent samples are both correlated with the latent sample to be predicted. Therefore including both of them as input to the predictor improves the prediction performance. [0317] In FIG.20 a further example of the implementation is depicted. FIG.19 and FIG.20 are same except for the fact that the output of the prediction fusion module is latent sample to be predicted ^^ instead of the 9, which is an estimation of a latent sample. In FIG.19, the latent sample to be predicted needs to be obtained by adding prediction 9 and the residual sample ^^. On the other hand in FIG. 20 the latent sample to be predicted is obtained directly as output of the prediction fusion module. ByteDance P22071538401WO1; C23W4793 (4824-10401) [0318] In the above examples of the present disclosure, both the input latent samples and the output latent samples (of the context and prediction fusion modules respectively) are sometimes depicted using the same letter ^^. The ^^ is typically a matrix or tensor, comprising multiple latent samples.The input is therefore samples that are already obtained by prediction. In other words the prediction module (comprising the context and the prediction fusion modules) is an auto-regressive neural network, which processes samples of the latent ^^ sequentially according to an order. [0319] Additionally or alternatively the „concat“ block (i.e., the operation of concatenation of inputs) can be replaced by other fusion methods. The present disclosure is not restricted to the concatenation of the outputs of the at least 2 convolution layers, other methods to merge or fuse the outputs of the concatenation layers are also applicable to the present disclosure. One such fusion method might be an addition. [0320] 4.3. The difference between the state of the art and the present disclosure. [0321] There are at least 3 differences between the state of the art and the present disclosure. [0322] 1. The arithmetic encoding and decoding is performed independently of the autoregressive subnetwork (first subnetwork). This way, the fully sequential arithmetic encoding/decoding process can be performed by a processing unit that is fast like a CPU. A new subnetwork (second subnetwork) is introduced to estimate the probability parameters that are used by arithmetic encoding/decoding process. [0323] 2. The arithmetic encoding/decoding process are used to encode/decode the quantized latent residual, instead of the quantized latent as in state of the art. [0324] 3. The autoregressive subnetwork is used only to estimate the mean of the latent. In the state of the art, it is used to estimate the mean and variance of a gaussian distribution, which is then used by arithmetic encoder and decoder to encode/decode the samples of quantized latent. [0325] 4.4 Benefits of the present disclosure. [0326] The benefits of the present disclosure are as follows. [0327] 1. The entropy decoding (e.g., arithmetic decoding) process, which is a simple but fully serial operation, can be performed independently. For example, entropy decoding process can be performed by a processing unit that is suitable for performing serial operations quickly, such as a CPU. Once the operation of entropy decoding is complete, the obtained data (quantized residual latent) can be transferred to a GPU. ByteDance P22071538401WO1; C23W4793 (4824-10401) [0328] 2. The computationally heavy but easily parallelizable modules (such as context and entropy parameters modules) can be performed independently of arithmetic encoding/decoding. For example, a processing unit that is suitable for massive parallel processing (like a GPU) can be used to perform these operations. [0329] 3. The idle processing times are eliminated. [0330] According to the present disclosure, the CPU and GPU can be used in tandem. As example the decoding process can be performed as follows. [0331] 1. First perform and complete the entropy decoding process. The whole process is completed, and all samples of the quantized latent residual are obtained. [0332] 2. Transfer the obtained data to GPU. The data transfer happens only once. [0333] 3. Perform and complete the context and entropy parameters modules by the GPU. No idle waiting happens in GPU. The quantized latent is obtained. [0334] 4. Perform the synthesis transform (the decoder). The reconstructed image is obtained. [0335] Compared to the third example in section 3.2, the present disclosure eliminates back-and- forth data transfer between CPU and GPU when both CPU and GPU are used for decoding. Moreover, it eliminates idle waiting times. [0336] In fact, the present disclosure can achieve an impressive 10 times speed-up in the decoding. Moreover, with the help of the clever design, it does not suffer from any degradation in compression efficiency. [0337] 4.5 Examples of the present disclosure. [0338] The detailed techniques below should be considered as examples to explain general concepts. These techniques should not be interpreted in a narrow way. Furthermore, these techniques can be combined in any manner. [0339] 1. In one example, more than one subnetwork may be utilized as hyper encoders/decoders for hyper information. [0340] a. In one example, at least one subnetwork is utilized to generate hyper information which is depended by the parsing process for the latent information. [0341] b. In one example, at least one subnetwork is utilized to generate hyper information which is NOT depended by the parsing process for the latent information. [0342] c. In one example, at least one subnetwork is utilized to generate hyper information which is used to predict the latent signal. ByteDance P22071538401WO1; C23W4793 (4824-10401) [0343] d. In one example, the hyper information may comprise statistical information or probability distribution information for the latent signal which may be quantized. [0344] i. The statistical information or probability distribution information may comprise the mean value of the latent signal. [0345] ii. The statistical information or probability distribution information may comprise the variance of the latent signal. [0346] 2. In one example, the latent signal may be coded in a predictive way. [0347] a. In one example, y’= y – p may be coded at encoder where y is a latent sample and p is the prediction. [0348] i. Correspondingly, y*= y’ + p may be reconstructed at decoder. [0349] b. In one example, y may be quantized before the prediction procedure. [0350] c. In one example, y may not be quantized before the prediction procedure. [0351] d. In one example, p may be quantized before the prediction procedure. [0352] e. In one example, p may not be quantized before the prediction procedure. [0353] f. In one example, y’ may be quantized after the prediction procedure. [0354] g. In one example, y’ may not be quantized after the prediction procedure. [0355] h. In one example, at least one subnetwork may be utilized to generate the prediction p. [0356] i. In one example, at least one previously decoded y* or y’ may be utilized to generate the prediction p for the current y or y*. [0357] Further details regarding the referenced documents may be found in: [1] Z. Cheng, H. Sun, M. Takeuchi and J. Katto, “Learned image compression with discretized gaussian mixture likelihoods and attention modules,” in Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp.7939- 7948, 2020. [2] B. Bross, J. Chen, S. Liu and Y.-K. Wang, “Versatile Video Draft (Draft 10),” JVET-S2001, Jul.2020. [3] R. D. Dony and S. Haykin, “Neural network approaches to image compression,” Proceedings of the IEEE, vol.83, no.2, pp.288–303, 1995. [4] Z. Wang, A. C. Bovik, H. R. Sheikh, and E. P. Simoncelli, “Image quality assessment: From error visibility to structural similarity,” IEEE Transactions on Image Processing, vol.13, no.4, pp.600–612, 2004. ByteDance P22071538401WO1; C23W4793 (4824-10401) [5] G. Bjontegaard, “Calculation of average PSNR differences between RD-curves,” VCEG, Tech. Rep. VCEG-M33, 2001. [6] C. E. Shannon, “A mathematical theory of communication,” Bell System Technical Journal, vol.27, no.3, pp.379–423, 1948. [17] G. E. Hinton and R. R. Salakhutdinov, “Reducing the dimensionality of data with neural networks,” Science, vol.313, no.5786, pp.504–507, 2006. [18] G. Toderici, S. M. O’Malley, S. J. Hwang, D. Vincent, D. Minnen, S. Baluja, M. Covell, and R. Sukthankar, “Variable rate image compression with recurrent neural networks,” arXiv preprint arXiv:1511.06085, 2015. [19] G. Toderici, D. Vincent, N. Johnston, S. J. Hwang, D. Minnen, J. Shor, and M. Covell, “Full resolution image compression with recurrent neural networks,” in CVPR, 2017, pp.5306–5314. [20] N. Johnston, D. Vincent, D. Minnen, M. Covell, S. Singh, T. Chinen, S. Jin Hwang, J. Shor, and G. Toderici, “Improved lossy image compression with priming and spatially adaptive bit rates for recurrent networks,” in CVPR, 2018, pp. 4385– 4393. [21] M. Covell, N. Johnston, D. Minnen, S. J. Hwang, J. Shor, S. Singh, D. Vincent, and G. Toderici, “Target-quality image compression with recurrent, convolutional neural networks,” arXiv preprint arXiv:1705.06687, 2017. [22] J. Ballé, V. Laparra, and E. P. Simoncelli, “End-to-end optimization of nonlinear transform codes for perceptual quality,” in PCS. IEEE, 2016, pp.1–5. [23] J. Ballé, “Efficient nonlinear transforms for lossy image compression,” in ´ PCS, 2018, pp.248–252. [24] J. Ballé, V. Laparra and E. P. Simoncelli, “End-to-end optimized image compression,” in International Conference on Learning Representations, 2017. [25] J. Ballé, D. Minnen, S. Singh, S. Hwang and N. Johnston, “Variational image compression with a scale hyperprior,” in International Conference on Learning Representations, 2018. [26] D. Minnen, J. Ballé, G. Toderici, “Joint Autoregressive and Hierarchical Priors for Learned Image Compression”, arXiv.1809.02736.1, 2, 3, 4, 7 ByteDance P22071538401WO1; C23W4793 (4824-10401) [27] Z.Cheng, H. Sun M. Takeuchi and J. Katto, “Learned image compression with discretized Gaussian mixture likelihoods and attention modules,” in Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR) , 2020. [28] Github repository “CompressAI: https://github.com/InterDigitalInc/CompressAI,”, InterDigital Inc, accessed Dec 2020. [29] T. Chen, H. Liu, Q. Shen, T. Yue, X. Cao, and Z. Ma, “DeepCoder: A deep neural network based video compression,” in VCIP. IEEE, 2017, pp.1–4. [30] C.-Y. Wu, N. Singhal, and P. Krahenbuhl, “Video compression through image interpolation,” in Proceedings of the European Conference on Computer Vision (ECCV), 2018, pp.416–431. [31] Z. Chen, T. He, X. Jin, and F. Wu, “Learning for video compression,” IEEE Transactions on Circuits and Systems for Video Technology, DOI: 10.1109/TCSVT.2019.2892608, 2019. [32] G. Lu, W. Ouyang, D. Xu, X. Zhang, C. Cai, and Z. Gao, “DVC: An end-to- end deep video compression framework,” in Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), 2019. [33] O. Rippel, S. Nair, C. Lew, S. Branson, A. Anderson and L. Bourdev, "Learned Video Compression," 2019 IEEE/CVF International Conference on Computer Vision (ICCV), Seoul, Korea (South), 2019, pp. 3453-3462, doi: 10.1109/ICCV.2019.00355. [34] G. Toderici, D. Vincent, N. Johnston, S. J. Hwang, D. Minnen, J. Shor, and M. Covell, “Full resolution image compression with recurrent neural networks,” in CVPR, 2017, pp.5306–5314. [35] A. Habibian, T. Rozendaal, J. Tomczak and T. Cohen, “Video Compression with Rate-Distortion Autoencoders,” in Proceedings of the IEEE/CVF International Conference on Computer Vision (ICCV), 2019, pp.7033-7042. [36] J. Lin, D. Liu, H. Li and F. Wu, “M-LVC: Multiple frames prediction for learned video compression,” in Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), 2020. ByteDance P22071538401WO1; C23W4793 (4824-10401) [37] E. Agustsson, D. Minnen, N. Johnston, J. Ballé, S. J. Hwang and G. Toderici, "Scale-Space Flow for End-to-End Optimized Video Compression," 2020 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), Seattle, WA, USA, 2020, pp.8500-8509, doi: 10.1109/CVPR42600.2020.00853. [38] X. Hu, Z. Chen, D. Xu, G. Lu, W. Ouyang and S. Gu, “Improving deep video compression by resolution-adaptive flow coding,” in European Conference on Computer Vision (ECCV) 2020. [41] Abdelaziz Djelouah, Joaquim Campos, Simone Schaub- Meyer, and Christopher Schroers. Neural inter-frame com- pression for video coding. In ICCV, pages 6421–6429, October 2019. [0358] FIG.21 is a block diagram showing an example video processing system 4000 in which various techniques disclosed herein may be implemented. Various implementations may include some or all of the components of the system 4000. The system 4000 may include input 4002 for receiving video content. The video content may be received in a raw or uncompressed format, e.g., 8 or 10 bit multi-component pixel values, or may be in a compressed or encoded format. The input 4002 may represent a network interface, a peripheral bus interface, or a storage interface. Examples of network interface include wired interfaces such as Ethernet, passive optical network (PON), etc. and wireless interfaces such as wireless fidelity (Wi-Fi) or cellular interfaces. [0359] The system 4000 may include a coding component 4004 that may implement the various coding or encoding methods described in the present document. The coding component 4004 may reduce the average bitrate of video from the input 4002 to the output of the coding component 4004 to produce a coded representation of the video. The coding techniques are therefore sometimes called video compression or video transcoding techniques. The output of the coding component 4004 may be either stored, or transmitted via a communication connected, as represented by the component 4006. The stored or communicated bitstream (or coded) representation of the video received at the input 4002 may be used by a component 4008 for generating pixel values or displayable video that is sent to a display interface 4010. The process of generating user-viewable video from the bitstream representation is sometimes called video decompression. Furthermore, while certain video processing operations are referred to as “coding” operations or tools, it will be appreciated that the coding tools or operations are used at an encoder and corresponding decoding tools or operations that reverse the results of the coding will be performed by a decoder. ByteDance P22071538401WO1; C23W4793 (4824-10401) [0360] Examples of a peripheral bus interface or a display interface may include universal serial bus (USB) or high definition multimedia interface (HDMI) or Displayport, and so on. Examples of storage interfaces include serial advanced technology attachment (SATA), peripheral component interconnect (PCI), integrated drive electronics (IDE) interface, and the like. The techniques described in the present document may be embodied in various electronic devices such as mobile phones, laptops, smartphones or other devices that are capable of performing digital data processing and/or video display. [0361] FIG. 22 is a block diagram of an example video processing apparatus 4100. The apparatus 4100 may be used to implement one or more of the methods described herein. The apparatus 4100 may be embodied in a smartphone, tablet, computer, Internet of Things (IoT) receiver, and so on. The apparatus 4100 may include one or more processors 4102, one or more memories 4104 and video processing circuitry 4106. The processor(s) 4102 may be configured to implement one or more methods described in the present document. The memory (memories) 4104 may be used for storing data and code used for implementing the methods and techniques described herein. The video processing circuitry 4106 may be used to implement, in hardware circuitry, some techniques described in the present document. In some embodiments, the video processing circuitry 4106 may be at least partly included in the processor 4102, e.g., a graphics co-processor. [0362] FIG. 23 is a flowchart for an example method 4200 of video processing. The method 4200 includes determining to apply a preprocessing function to visual media data as part of an image compression framework at step 4202. A conversion is performed between a visual media data and a bitstream based on the image compression framework at step 4204. The conversion of step 4204 may include encoding at an encoder or decoding at a decoder, depending on the example. [0363] It should be noted that the method 4200 can be implemented in an apparatus for processing video data comprising a processor and a non-transitory memory with instructions thereon, such as video encoder 4400, video decoder 4500, and/or encoder 4600. In such a case, the instructions upon execution by the processor, cause the processor to perform the method 4200. Further, the method 4200 can be performed by a non-transitory computer readable medium comprising a computer program product for use by a video coding device. The computer program product comprises computer executable instructions stored on the non-transitory computer readable medium such that when executed by a processor cause the video coding device to perform the method 4200. ByteDance P22071538401WO1; C23W4793 (4824-10401) [0364] FIG.24 is a block diagram that illustrates an example video coding system 4300 that may utilize the techniques of this disclosure. The video coding system 4300 may include a source device 4310 and a destination device 4320. Source device 4310 generates encoded video data which may be referred to as a video encoding device. Destination device 4320 may decode the encoded video data generated by source device 4310 which may be referred to as a video decoding device. [0365] Source device 4310 may include a video source 4312, a video encoder 4314, and an input/output (I/O) interface 4316. Video source 4312 may include a source such as a video capture device, an interface to receive video data from a video content provider, and/or a computer graphics system for generating video data, or a combination of such sources. The video data may comprise one or more pictures. Video encoder 4314 encodes the video data from video source 4312 to generate a bitstream. The bitstream may include a sequence of bits that form a coded representation of the video data. The bitstream may include coded pictures and associated data. The coded picture is a coded representation of a picture. The associated data may include sequence parameter sets, picture parameter sets, and other syntax structures. I/O interface 4316 may include a modulator/demodulator (modem) and/or a transmitter. The encoded video data may be transmitted directly to destination device 4320 via I/O interface 4316 through network 4330. The encoded video data may also be stored onto a storage medium/server 4340 for access by destination device 4320. [0366] Destination device 4320 may include an I/O interface 4326, a video decoder 4324, and a display device 4322. I/O interface 4326 may include a receiver and/or a modem. I/O interface 4326 may acquire encoded video data from the source device 4310 or the storage medium/ server 4340. Video decoder 4324 may decode the encoded video data. Display device 4322 may display the decoded video data to a user. Display device 4322 may be integrated with the destination device 4320, or may be external to destination device 4320, which can be configured to interface with an external display device. [0367] Video encoder 4314 and video decoder 4324 may operate according to a video compression standard, such as the High Efficiency Video Coding (HEVC) standard, Versatile Video Coding (VVC) standard and other current and/or further standards. [0368] FIG.25 is a block diagram illustrating an example of video encoder 4400, which may be video encoder 4314 in the system 4300 illustrated in FIG.6. Video encoder 4400 may be configured to perform any or all of the techniques of this disclosure. The video encoder 4400 includes a plurality of functional components. The techniques described in this disclosure may be shared among the ByteDance P22071538401WO1; C23W4793 (4824-10401) various components of video encoder 4400. In some examples, a processor may be configured to perform any or all of the techniques described in this disclosure. [0369] The functional components of video encoder 4400 may include a partition unit 4401, a prediction unit 4402 which may include a mode select unit 4403, a motion estimation unit 4404, a motion compensation unit 4405, an intra prediction unit 4406, a residual generation unit 4407, a transform processing unit 4408, a quantization unit 4409, an inverse quantization unit 4410, an inverse transform unit 4411, a reconstruction unit 4412, a buffer 4413, and an entropy encoding unit 4414. [0370] In other examples, video encoder 4400 may include more, fewer, or different functional components. In an example, prediction unit 4402 may include an intra block copy (IBC) unit. The IBC unit may perform prediction in an IBC mode in which at least one reference picture is a picture where the current video block is located. [0371] Furthermore, some components, such as motion estimation unit 4404 and motion compensation unit 4405 may be highly integrated, but are represented in the example of video encoder 4400 separately for purposes of explanation. [0372] Partition unit 4401 may partition a picture into one or more video blocks. Video encoder 4400 and video decoder 4500 may support various video block sizes. [0373] Mode select unit 4403 may select one of the coding modes, intra or inter, e.g., based on error results, and provide the resulting intra or inter coded block to a residual generation unit 4407 to generate residual block data and to a reconstruction unit 4412 to reconstruct the encoded block for use as a reference picture. In some examples, mode select unit 4403 may select a combination of intra and inter prediction (CIIP) mode in which the prediction is based on an inter prediction signal and an intra prediction signal. Mode select unit 4403 may also select a resolution for a motion vector (e.g., a sub-pixel or integer pixel precision) for the block in the case of inter prediction. [0374] To perform inter prediction on a current video block, motion estimation unit 4404 may generate motion information for the current video block by comparing one or more reference frames from buffer 4413 to the current video block. Motion compensation unit 4405 may determine a predicted video block for the current video block based on the motion information and decoded samples of pictures from buffer 4413 other than the picture associated with the current video block. ByteDance P22071538401WO1; C23W4793 (4824-10401) [0375] Motion estimation unit 4404 and motion compensation unit 4405 may perform different operations for a current video block, for example, depending on whether the current video block is in an I slice, a P slice, or a B slice. [0376] In some examples, motion estimation unit 4404 may perform uni-directional prediction for the current video block, and motion estimation unit 4404 may search reference pictures of list 0 or list 1 for a reference video block for the current video block. Motion estimation unit 4404 may then generate a reference index that indicates the reference picture in list 0 or list 1 that contains the reference video block and a motion vector that indicates a spatial displacement between the current video block and the reference video block. Motion estimation unit 4404 may output the reference index, a prediction direction indicator, and the motion vector as the motion information of the current video block. Motion compensation unit 4405 may generate the predicted video block of the current block based on the reference video block indicated by the motion information of the current video block. [0377] In other examples, motion estimation unit 4404 may perform bi-directional prediction for the current video block, motion estimation unit 4404 may search the reference pictures in list 0 for a reference video block for the current video block and may also search the reference pictures in list 1 for another reference video block for the current video block. Motion estimation unit 4404 may then generate reference indexes that indicate the reference pictures in list 0 and list 1 containing the reference video blocks and motion vectors that indicate spatial displacements between the reference video blocks and the current video block. Motion estimation unit 4404 may output the reference indexes and the motion vectors of the current video block as the motion information of the current video block. Motion compensation unit 4405 may generate the predicted video block of the current video block based on the reference video blocks indicated by the motion information of the current video block. [0378] In some examples, motion estimation unit 4404 may output a full set of motion information for decoding processing of a decoder. In some examples, motion estimation unit 4404 may not output a full set of motion information for the current video. Rather, motion estimation unit 4404 may signal the motion information of the current video block with reference to the motion information of another video block. For example, motion estimation unit 4404 may determine that the motion information of the current video block is sufficiently similar to the motion information of a neighboring video block. ByteDance P22071538401WO1; C23W4793 (4824-10401) [0379] In one example, motion estimation unit 4404 may indicate, in a syntax structure associated with the current video block, a value that indicates to the video decoder 4500 that the current video block has the same motion information as another video block. [0380] In another example, motion estimation unit 4404 may identify, in a syntax structure associated with the current video block, another video block and a motion vector difference (MVD). The motion vector difference indicates a difference between the motion vector of the current video block and the motion vector of the indicated video block. The video decoder 4500 may use the motion vector of the indicated video block and the motion vector difference to determine the motion vector of the current video block. [0381] As discussed above, video encoder 4400 may predictively signal the motion vector. Two examples of predictive signaling techniques that may be implemented by video encoder 4400 include advanced motion vector prediction (AMVP) and merge mode signaling. [0382] Intra prediction unit 4406 may perform intra prediction on the current video block. When intra prediction unit 4406 performs intra prediction on the current video block, intra prediction unit 4406 may generate prediction data for the current video block based on decoded samples of other video blocks in the same picture. The prediction data for the current video block may include a predicted video block and various syntax elements. [0383] Residual generation unit 4407 may generate residual data for the current video block by subtracting the predicted video block(s) of the current video block from the current video block. The residual data of the current video block may include residual video blocks that correspond to different sample components of the samples in the current video block. [0384] In other examples, there may be no residual data for the current video block for the current video block, for example in a skip mode, and residual generation unit 4407 may not perform the subtracting operation. [0385] Transform processing unit 4408 may generate one or more transform coefficient video blocks for the current video block by applying one or more transforms to a residual video block associated with the current video block. [0386] After transform processing unit 4408 generates a transform coefficient video block associated with the current video block, quantization unit 4409 may quantize the transform coefficient video block associated with the current video block based on one or more quantization parameter (QP) values associated with the current video block. ByteDance P22071538401WO1; C23W4793 (4824-10401) [0387] Inverse quantization unit 4410 and inverse transform unit 4411 may apply inverse quantization and inverse transforms to the transform coefficient video block, respectively, to reconstruct a residual video block from the transform coefficient video block. Reconstruction unit 4412 may add the reconstructed residual video block to corresponding samples from one or more predicted video blocks generated by the prediction unit 4402 to produce a reconstructed video block associated with the current block for storage in the buffer 4413. [0388] After reconstruction unit 4412 reconstructs the video block, the loop filtering operation may be performed to reduce video blocking artifacts in the video block. [0389] Entropy encoding unit 4414 may receive data from other functional components of the video encoder 4400. When entropy encoding unit 4414 receives the data, entropy encoding unit 4414 may perform one or more entropy encoding operations to generate entropy encoded data and output a bitstream that includes the entropy encoded data. [0390] FIG.26 is a block diagram illustrating an example of video decoder 4500 which may be video decoder 4324 in the system 4300 illustrated in FIG. 6. The video decoder 4500 may be configured to perform any or all of the techniques of this disclosure. In the example shown, the video decoder 4500 includes a plurality of functional components. The techniques described in this disclosure may be shared among the various components of the video decoder 4500. In some examples, a processor may be configured to perform any or all of the techniques described in this disclosure. [0391] In the example shown, video decoder 4500 includes an entropy decoding unit 4501, a motion compensation unit 4502, an intra prediction unit 4503, an inverse quantization unit 4504, an inverse transformation unit 4505, a reconstruction unit 4506, and a buffer 4507. Video decoder 4500 may, in some examples, perform a decoding pass generally reciprocal to the encoding pass described with respect to video encoder 4400. [0392] Entropy decoding unit 4501 may retrieve an encoded bitstream. The encoded bitstream may include entropy coded video data (e.g., encoded blocks of video data). Entropy decoding unit 4501 may decode the entropy coded video data, and from the entropy decoded video data, motion compensation unit 4502 may determine motion information including motion vectors, motion vector precision, reference picture list indexes, and other motion information. Motion compensation unit 4502 may, for example, determine such information by performing the AMVP and merge mode. ByteDance P22071538401WO1; C23W4793 (4824-10401) [0393] Motion compensation unit 4502 may produce motion compensated blocks, possibly performing interpolation based on interpolation filters. Identifiers for interpolation filters to be used with sub-pixel precision may be included in the syntax elements. [0394] Motion compensation unit 4502 may use interpolation filters as used by video encoder 4400 during encoding of the video block to calculate interpolated values for sub-integer pixels of a reference block. Motion compensation unit 4502 may determine the interpolation filters used by video encoder 4400 according to received syntax information and use the interpolation filters to produce predictive blocks. [0395] Motion compensation unit 4502 may use some of the syntax information to determine sizes of blocks used to encode frame(s) and/or slice(s) of the encoded video sequence, partition information that describes how each macroblock of a picture of the encoded video sequence is partitioned, modes indicating how each partition is encoded, one or more reference frames (and reference frame lists) for each inter coded block, and other information to decode the encoded video sequence. [0396] Intra prediction unit 4503 may use intra prediction modes for example received in the bitstream to form a prediction block from spatially adjacent blocks. Inverse quantization unit 4504 inverse quantizes, i.e., de-quantizes, the quantized video block coefficients provided in the bitstream and decoded by entropy decoding unit 4501. Inverse transform unit 4505 applies an inverse transform. [0397] Reconstruction unit 4506 may sum the residual blocks with the corresponding prediction blocks generated by motion compensation unit 4502 or intra prediction unit 4503 to form decoded blocks. If desired, a deblocking filter may also be applied to filter the decoded blocks in order to remove blockiness artifacts. The decoded video blocks are then stored in buffer 4507, which provides reference blocks for subsequent motion compensation/intra prediction and also produces decoded video for presentation on a display device. [0398] FIG. 27 is a schematic diagram of an example encoder 4600. The encoder 4600 is suitable for implementing the techniques of VVC. The encoder 4600 includes three in-loop filters, namely a deblocking filter (DF) 4602, a sample adaptive offset (SAO) 4604, and an adaptive loop filter (ALF) 4606. Unlike the DF 4602, which uses predefined filters, the SAO 4604 and the ALF 4606 utilize the original samples of the current picture to reduce the mean square errors between the original samples and the reconstructed samples by adding an offset and by applying a finite impulse ByteDance P22071538401WO1; C23W4793 (4824-10401) response (FIR) filter, respectively, with coded side information signaling the offsets and filter coefficients. The ALF 4606 is located at the last processing stage of each picture and can be regarded as a tool trying to catch and fix artifacts created by the previous stages. [0399] The encoder 4600 further includes an intra prediction component 4608 and a motion estimation/compensation (ME/MC) component 4610 configured to receive input video. The intra prediction component 4608 is configured to perform intra prediction, while the ME/MC component 4610 is configured to utilize reference pictures obtained from a reference picture buffer 4612 to perform inter prediction. Residual blocks from inter prediction or intra prediction are fed into a transform (T) component 4614 and a quantization (Q) component 4616 to generate quantized residual transform coefficients, which are fed into an entropy coding component 4618. The entropy coding component 4618 entropy codes the prediction results and the quantized transform coefficients and transmits the same toward a video decoder (not shown). Quantization components output from the quantization component 4616 may be fed into an inverse quantization (IQ) components 4620, an inverse transform component 4622, and a reconstruction (REC) component 4624. The REC component 4624 is able to output images to the DF 4602, the SAO 4604, and the ALF 4606 for filtering prior to those images being stored in the reference picture buffer 4612. [0400] FIG. 28 is an image or video method 2800 implemented by a decoding device (e.g., a decoder) according to an embodiment of the disclosure. In block 2802, the decoding device obtains a sample of a quantized residual latent ^^ using a bitstream and the output of a first subnetwork. In an embodiment, the first subnetwork is not autoregressive. [0401] In block 2804, the decoding device obtaining a prediction value ^^^^ using a second subnetwork and already reconstructed samples of a quantized latent ^^. In block 2806, the decoding device reconstructs the next sample of the quantized latent ^^ using the quantized residual sample ^^ and the prediction ^^^^. [0402] FIG. 29 is an image or video method 2900 implemented by an encoding device (e.g., encoder) according to an embodiment of the disclosure. In block 2902, the encoding device first transforms an input image using an analysis transform to obtain a latent ^. [0403] In block 2904, the encoding device obtaining a prediction value ^^^^, using a second network and already reconstructed samples of a quantized latent ^^ when available. In block 2906, the encoding device subtracting the prediction value from a sample of the latent to obtain a residual latent sample ^. ByteDance P22071538401WO1; C23W4793 (4824-10401) [0404] In block 2908, the encoding device quantizes the residual latent sample (^^) and adds to the prediction value to obtain a sample of the quantized latent ^^. In block 2910, the encoding device obtaining the bitstream using a first subnetwork and the samples of quantized residual latent samples ^^. In an embodiment, the first subnetwork is not autoregressive. [0405] A listing of solutions preferred by some examples is provided next. [0406] The following solutions show examples of techniques discussed herein. [0407] 1. An image or video method implemented by a decoding device, comprising the steps of: obtaining a sample of a quantized residual latent ^^ using a bitstream and the output of a first subnetwork, wherein the first subnetwork is not autoregressive; obtaining a prediction value ^^^^ using a second subnetwork and already reconstructed samples of a quantized latent ^^ ; and reconstructing the next sample of the quantized latent ^^ using the quantized residual sample ^^ and the prediction ^^^^. [0408] 2. The method of claim 1, further comprising obtaining the reconstructed image using the quantized latent ^^ and a synthesis transform. [0409] 3. An image or video method implemented by an encoding device, comprising the steps of: first transforming an input image using an analysis transform to obtain a latent ^; obtaining a prediction value ^^^^, using a second network and already reconstructed samples (if available) of a quantized latent ^^; subtracting the prediction value from a sample of the latent to obtain a residual latent sample ^; quantizing the residual latent sample (^^) and adding to the prediction value to obtain a sample of the quantized latent ^^; and obtaining the bitstream using a first subnetwork and the samples of quantized residual latent samples ^^ , wherein the first subnetwork is not auto- regressive. [0410] 4. The method of any of claims 1-3, wherein the first subnetwork takes a first quantized hyper latent as input and generates probability parameters. [0411] 5. The method of any of claims 1-4, wherein obtaining of the sample of a quantized residual latent comprises entropy decoding, wherein the probability parameters and a bitstream is used as input. [0412] 6. The method of any of claims 1-5, wherein obtaining of the bitstream comprises entropy encoding, wherein the probability parameters and quantized residual latent are inputs. [0413] 7. The method of any of claims 1-6, wherein the probability parameters do not include a mean value. ByteDance P22071538401WO1; C23W4793 (4824-10401) [0414] 8. The method of any of claims 1-7, wherein a zero mean probability distribution is used in entropy encoding or entropy decoding. [0415] 9. The method of any of claims 1-8, wherein the second subnetwork takes a second quantized hyper latent as input, in addition to the already reconstructed samples of quantized latent. [0416] 10. The method of any of claims 1-9, wherein the first and the second quantized hyper latent are same. [0417] 11. The method of any of claims 1-10, wherein the quantized hyper latent are obtained from a bitstream in the decoder. [0418] 12. The method of any of claims 1-11, wherein the quantized hyper latent are obtained from the latent ^ or quantized latent ^^ using a subnetwork. [0419] 13. The method of any of claims 1-12, wherein the second subnetwork is autoregressive. [0420] 14. The method of any of claims 1-13, wherein the second subnetwork comprises a context module. [0421] 15. The method of any of claims 1-14, wherein the second subnetwork comprises a hyper decoder module. [0422] 16. An apparatus for processing video data comprising: a processor; and a non-transitory memory with instructions thereon, wherein the instructions upon execution by the processor, cause the processor to perform. [0423] 17. A non-transitory computer readable medium comprising a computer program product for use by a video coding device, the computer program product comprising computer executable instructions stored on the non-transitory computer readable medium such that when executed by a processor cause the video coding device to perform the method of any of claims 1-15. [0424] 18. A non-transitory computer-readable recording medium storing a bitstream of a video which is generated by a method performed by a video processing apparatus, wherein the method comprises the method of any of claims 1-15. [0425] 19. A method for storing bitstream of a video comprising the method of any of claims 1- 15. [0426] 20. A method, apparatus, or system described in the present document. [0427] In the solutions described herein, an encoder may conform to a format rule by producing a coded representation according to the format rule. In the solutions described herein, a decoder ByteDance P22071538401WO1; C23W4793 (4824-10401) may use the format rule to parse syntax elements in the coded representation with the knowledge of presence and absence of syntax elements according to the format rule to produce decoded video. [0428] In the present document, the term “video processing” may refer to video encoding, video decoding, video compression or video decompression. For example, video compression algorithms may be applied during conversion from pixel representation of a video to a corresponding bitstream representation or vice versa. The bitstream representation of a current video block may, for example, correspond to bits that are either co-located or spread in different places within the bitstream, as is defined by the syntax. For example, a macroblock may be encoded in terms of transformed and coded error residual values and also using bits in headers and other fields in the bitstream. Furthermore, during conversion, a decoder may parse a bitstream with the knowledge that some fields may be present, or absent, based on the determination, as is described in the above solutions. Similarly, an encoder may determine that certain syntax fields are or are not to be included and generate the coded representation accordingly by including or excluding the syntax fields from the coded representation. [0429] The disclosed and other solutions, examples, embodiments, modules and the functional operations described in this document can be implemented in digital electronic circuitry, or in computer software, firmware, or hardware, including the structures disclosed in this document and their structural equivalents, or in combinations of one or more of them. The disclosed and other embodiments can be implemented as one or more computer program products, i.e., one or more modules of computer program instructions encoded on a computer readable medium for execution by, or to control the operation of, data processing apparatus. The computer readable medium can be a machine-readable storage device, a machine-readable storage substrate, a memory device, a composition of matter effecting a machine-readable propagated signal, or a combination of one or more them. The term “data processing apparatus” encompasses all apparatus, devices, and machines for processing data, including by way of example a programmable processor, a computer, or multiple processors or computers. The apparatus can include, in addition to hardware, code that creates an execution environment for the computer program in question, e.g., code that constitutes processor firmware, a protocol stack, a database management system, an operating system, or a combination of one or more of them. A propagated signal is an artificially generated signal, e.g., a machine- generated electrical, optical, or electromagnetic signal, that is generated to encode information for transmission to suitable receiver apparatus. ByteDance P22071538401WO1; C23W4793 (4824-10401) [0430] A computer program (also known as a program, software, software application, script, or code) can be written in any form of programming language, including compiled or interpreted languages, and it can be deployed in any form, including as a stand-alone program or as a module, component, subroutine, or other unit suitable for use in a computing environment. A computer program does not necessarily correspond to a file in a file system. A program can be stored in a portion of a file that holds other programs or data (e.g., one or more scripts stored in a markup language document), in a single file dedicated to the program in question, or in multiple coordinated files (e.g., files that store one or more modules, sub programs, or portions of code). A computer program can be deployed to be executed on one computer or on multiple computers that are located at one site or distributed across multiple sites and interconnected by a communication network. [0431] The processes and logic flows described in this document can be performed by one or more programmable processors executing one or more computer programs to perform functions by operating on input data and generating output. The processes and logic flows can also be performed by, and apparatus can also be implemented as, special purpose logic circuitry, e.g., a field programmable gate array (FPGA) or an application specific integrated circuit (ASIC). [0432] Processors suitable for the execution of a computer program include, by way of example, both general and special purpose microprocessors, and any one or more processors of any kind of digital computer. Generally, a processor will receive instructions and data from a read only memory or a random-access memory or both. The essential elements of a computer are a processor for performing instructions and one or more memory devices for storing instructions and data. Generally, a computer will also include, or be operatively coupled to receive data from or transfer data to, or both, one or more mass storage devices for storing data, e.g., magnetic, magneto optical disks, or optical disks. However, a computer need not have such devices. Computer readable media suitable for storing computer program instructions and data include all forms of non-volatile memory, media and memory devices, including by way of example semiconductor memory devices, e.g., erasable programmable read-only memory (EPROM), electrically erasable programmable read- only memory (EEPROM), and flash memory devices; magnetic disks, e.g., internal hard disks or removable disks; magneto optical disks; and compact disc, read-only memory (CD ROM) and digital versatile disc read-only memory (DVD-ROM) disks. The processor and the memory can be supplemented by, or incorporated in, special purpose logic circuitry. ByteDance P22071538401WO1; C23W4793 (4824-10401) [0433] While this patent document contains many specifics, these should not be construed as limitations on the scope of any subject matter or of what may be claimed, but rather as descriptions of features that may be specific to particular embodiments of particular techniques. Certain features that are described in this patent document in the context of separate embodiments can also be implemented in combination in a single embodiment. Conversely, various features that are described in the context of a single embodiment can also be implemented in multiple embodiments separately or in any suitable subcombination. Moreover, although features may be described above as acting in certain combinations and even initially claimed as such, one or more features from a claimed combination can in some cases be excised from the combination, and the claimed combination may be directed to a subcombination or variation of a subcombination. [0434] Similarly, while operations are depicted in the drawings in a particular order, this should not be understood as requiring that such operations be performed in the particular order shown or in sequential order, or that all illustrated operations be performed, to achieve desirable results. Moreover, the separation of various system components in the embodiments described in this patent document should not be understood as requiring such separation in all embodiments. [0435] Only a few implementations and examples are described and other implementations, enhancements and variations can be made based on what is described and illustrated in this patent document. [0436] A first component is directly coupled to a second component when there are no intervening components, except for a line, a trace, or another medium between the first component and the second component. The first component is indirectly coupled to the second component when there are intervening components other than a line, a trace, or another medium between the first component and the second component. The term “coupled” and its variants include both directly coupled and indirectly coupled. The use of the term “about” means a range including ±10% of the subsequent number unless otherwise stated. [0437] While several embodiments have been provided in the present disclosure, it should be understood that the disclosed systems and methods might be embodied in many other specific forms without departing from the spirit or scope of the present disclosure. The present examples are to be considered as illustrative and not restrictive, and the intention is not to be limited to the details given herein. For example, the various elements or components may be combined or integrated in another system or certain features may be omitted, or not implemented. ByteDance P22071538401WO1; C23W4793 (4824-10401) [0438] In addition, techniques, systems, subsystems, and methods described and illustrated in the various embodiments as discrete or separate may be combined or integrated with other systems, modules, techniques, or methods without departing from the scope of the present disclosure. Other items shown or discussed as coupled may be directly connected or may be indirectly coupled or communicating through some interface, device, or intermediate component whether electrically, mechanically, or otherwise. Other examples of changes, substitutions, and alterations are ascertainable by one skilled in the art and could be made without departing from the spirit and scope disclosed herein. [0439] The solutions listed in the present disclosure might be used for compressing an image, compressing a video, compression part of an image or compressing part of a video. [0440] In addition, techniques, systems, subsystems, and methods described and illustrated in the various embodiments might be used for compressing an image, compressing a video, compression part of an image or compressing part of a video.