base.py 582 B

123456789101112131415161718192021
  1. """Interfaces used by augmentable objects.
  2. Added in 0.4.0.
  3. """
  4. from __future__ import print_function, division, absolute_import
  5. class IAugmentable(object):
  6. """Interface of augmentable objects.
  7. This interface is right now only used to "mark" augmentable objects.
  8. It does not enforce any methods yet (but will probably in the future).
  9. Currently, only ``*OnImage`` clases are marked as augmentable.
  10. Non-OnImage objects are normalized to OnImage-objects.
  11. Batches are not yet marked as augmentable, but might be in the future.
  12. Added in 0.4.0.
  13. """