__init__.py 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. from cvdatasets.annotations.impl.birdsnap import BSNAP_Annotations
  2. from cvdatasets.annotations.impl.cars import CARS_Annotations
  3. from cvdatasets.annotations.impl.cub import CUB_Annotations
  4. from cvdatasets.annotations.impl.dogs import DOGS_Annotations
  5. from cvdatasets.annotations.impl.flowers import FLOWERS_Annotations
  6. from cvdatasets.annotations.impl.hed import HED_Annotations
  7. from cvdatasets.annotations.impl.imagenet import INET_Annotations
  8. from cvdatasets.annotations.impl.inat import INAT18_Annotations
  9. from cvdatasets.annotations.impl.inat import INAT19_Annotations
  10. from cvdatasets.annotations.impl.inat import INAT20_Annotations
  11. from cvdatasets.annotations.impl.nab import NAB_Annotations
  12. from cvdatasets.annotations.impl.tigers import TIGERS_Annotations
  13. from cvdatasets.annotations.base import BaseAnnotations
  14. from cvdatasets.annotations.base.bbox_mixin import BBoxMixin
  15. from cvdatasets.annotations.base.parts_mixin import PartsMixin
  16. from cvargparse.utils import BaseChoiceType
  17. from functools import partial
  18. class AnnotationType(BaseChoiceType):
  19. CUB200 = CUB_Annotations
  20. CUB200_2FOLD = partial(CUB_Annotations)
  21. CUB200_GOOGLE = partial(CUB_Annotations)
  22. CUB200_GOOGLE_SEM = partial(CUB_Annotations)
  23. BIRDSNAP = BSNAP_Annotations
  24. NAB = NAB_Annotations
  25. CARS = CARS_Annotations
  26. DOGS = DOGS_Annotations
  27. FLOWERS = FLOWERS_Annotations
  28. HED = HED_Annotations
  29. TIGERS = TIGERS_Annotations
  30. TIGERS_TEST = partial(TIGERS_Annotations)
  31. IMAGENET = INET_Annotations
  32. INAT18 = INAT18_Annotations
  33. INAT19 = INAT19_Annotations
  34. INAT19_MINI = partial(INAT19_Annotations)
  35. INAT19_TEST = partial(INAT19_Annotations)
  36. INAT20 = INAT20_Annotations
  37. INAT20_TEST = partial(INAT20_Annotations)
  38. INAT20_IN_CLASS = partial(INAT20_Annotations)
  39. Default = CUB200