Replies: 1 comment 1 reply
-
Example showing (1): mean = 0.48
y = 0.47
y_hat1 = round(y) = 0.0
y_hat2 = round(y - mean) + mean = 0.48 Evidently, in this example, Regarding (2), a mean-centered variable is much better for sharp PDFs such as
is much better reconstructed as
than as
...which does not follow the expected distribution, causing the rate cost to skyrocket, and also has a large reconstruction error. Regarding (3), for large σ, it doesn't really matter, but for small σ, it's the same as the example for (2) above. |
Beta Was this translation helpful? Give feedback.
-
https://github.com/InterDigitalInc/CompressAI/blob/master/compressai/entropy_models/entropy_models.py#L168
Why do we need
outputs -= means
?Beta Was this translation helpful? Give feedback.
All reactions