Skip to content

Can I use tfc.entropy_models to estimate the bits for fixed model? #150

Answered by jonarchist
gitlabspy asked this question in Q&A
Discussion options

You must be logged in to vote

I'm not sure what you are asking. If you already have an encoder, why not just encode the image and measure the number of bits of the encoded image?

What you could do is train a prior distribution on an existing latent representation (for example the DCT coefficients in JPEG) and then use the TFC entropy model class to estimate the bits/bpp after quantization. But that would ignore/replace the entropy coding scheme that is defined by JPEG.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by gitlabspy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants