__init__.py 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. # LICENSE HEADER MANAGED BY add-license-header
  2. #
  3. # Copyright 2018 Kornia Team
  4. #
  5. # Licensed under the Apache License, Version 2.0 (the "License");
  6. # you may not use this file except in compliance with the License.
  7. # You may obtain a copy of the License at
  8. #
  9. # http://www.apache.org/licenses/LICENSE-2.0
  10. #
  11. # Unless required by applicable law or agreed to in writing, software
  12. # distributed under the License is distributed on an "AS IS" BASIS,
  13. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  14. # See the License for the specific language governing permissions and
  15. # limitations under the License.
  16. #
  17. # NOTE: kornia filters and geometry must go first since are the core of the library
  18. # and by changing the import order you might get into a circular dependencies issue.
  19. from . import filters
  20. from . import geometry
  21. from . import grad_estimator
  22. # import the other modules for convenience
  23. from . import (
  24. augmentation,
  25. color,
  26. contrib,
  27. core,
  28. config,
  29. enhance,
  30. feature,
  31. io,
  32. losses,
  33. metrics,
  34. models,
  35. morphology,
  36. onnx,
  37. tracking,
  38. utils,
  39. x,
  40. )
  41. # Multi-framework support using ivy
  42. from .transpiler import to_jax, to_numpy, to_tensorflow
  43. # NOTE: we are going to expose to top level very few things
  44. from kornia.constants import pi
  45. from kornia.utils import (
  46. eye_like,
  47. vec_like,
  48. create_meshgrid,
  49. image_to_tensor,
  50. tensor_to_image,
  51. xla_is_available,
  52. )
  53. # Version variable
  54. __version__ = "0.8.2"