-
Notifications
You must be signed in to change notification settings - Fork 236
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
About the y_likelihoods in Entropy models #314
Comments
For each There are many such probability distributions -- one for each element in Each element ...and since the rate is the negative log-likelihood, the bit cost of the The total rate cost is then: ...which can be averaged over For a single fixed encoding distribution But this is not what we're doing. What we're actually interested in is the cross-entropy. That is the average rate cost for encoding a single symbol drawn from the true distribution To be consistent with our notation above, we should also sprinkle in some In our case, we know exactly what If we plug this into the earlier equation, the rate cost for encoding the |
Thank you for your reply; it has been incredibly helpful! However, I still have several stupid questions:
CompressAI/compressai/entropy_models/entropy_models.py Lines 419 to 420 in 743680b
CompressAI/compressai/entropy_models/entropy_models.py Lines 204 to 212 in 743680b
|
When converting these to a discrete distribution over the range
Related links:
P.S. In the
Since max value symbols (i.e. out-of-range values to the left of prob = torch.cat((p[: pmf_length[i]], tail_mass[i]), dim=0) Notice that the extra out-of-range symbol actually makes the quantized pmf we use of size |
Got it! Thank you so much! Your answers really help a lot. Appreciate your sharing! |
Hi, it's an excellent work. I have recently been working in the area of learned compression. I have already checked issue #306, but I am still confused about the actual meaning of
y_likelihoods
:y_likelihoods
is equal to the shape ofy
, and I thought each element ofy_likelihoods
represents the probabilityit produces an output where the elements of
y_likelihoods
are close to 1 everywhere. Isn't this contradictory? Shouldn't the sum of y_likelihoods is 1? What is the actual meaning ofy_likelihoods
?from the inequality below?
The text was updated successfully, but these errors were encountered: