Measure the size of compressed image #215
-
Hi All, I just wanted to ask how can we get exact file size of the compressed image? For example if an image Regards, |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
Two methods, which we use in the given [Code] links:
If measured on the exact same Please follow the training tutorial if you want to try this out on your own custom models. Related: |
Beta Was this translation helpful? Give feedback.
-
Thank you for the explaination @YodaEmbedding , just wanted to double check my understanding: The size of |
Beta Was this translation helpful? Give feedback.
Two methods, which we use in the given [Code] links:
[Code]. During training, we calculate the negative log likelihoods via:
The$p_{\hat{y}}(\hat{y})$ are determined by feeding a monotonic differentiable function $c : \mathbb{R} \to [0, 1]$ (i.e., the CDF) with a single latent tensor element $\hat{y}_i$ . Further details can be found in the Appendix of "Variational image compression with a scale hyperprior".
likelihoods
representing[Code]. During inference, when using a real entropy coder,
If measured on the exact same$\hat{y}$ , the aforementioned
bpp_loss
andbpp
should be very, very close t…