You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- The quantization offset for DeepFactorized is now determined numerically
instead of assuming zero.
- For batched entropy models, the `non_integer_offset` argument controls
whether the quantization offset heuristic is used or not (as before).
- For location-scale family entropy models, always quantize to integers modulo
location parameter of the prior distribution.
- For general indexed entropy models, do not use quantization offset heuristic,
and always quantize to integers.
- Universal entropy models use their own logic, as before.
The above is accomplished by some refactoring:
- The logic for creating the range coding tables is moved from the initializer
of the base class in continuous_base.py to the initializers of the subclasses.
This makes it possible to streamline the building of the range coding tables
and make that logic available as a private method to be called by subclasses
instead.
- Models in in universal.py now depend directly on the base class. This way,
they don't need to inherit the quantization offset logic and can implement
their own.
Both of these changes make it possible to remove indirection. They also free
parent classes from having to implement functionality they don't need, and child
classes from inheriting functionality that doesn't make sense for them.
PiperOrigin-RevId: 420564225
Change-Id: I57cdd9627b83db3a2455a23d9481ccb23309f957
0 commit comments