__init__.py 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199
  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. # Lazy loading auto module
  18. from kornia.augmentation import auto, container
  19. from kornia.augmentation._2d import (
  20. CenterCrop,
  21. ColorJiggle,
  22. ColorJitter,
  23. Denormalize,
  24. LongestMaxSize,
  25. Normalize,
  26. PadTo,
  27. RandomAffine,
  28. RandomAutoContrast,
  29. RandomBoxBlur,
  30. RandomBrightness,
  31. RandomChannelDropout,
  32. RandomChannelShuffle,
  33. RandomClahe,
  34. RandomContrast,
  35. RandomCrop,
  36. RandomCutMixV2,
  37. RandomDissolving,
  38. RandomElasticTransform,
  39. RandomEqualize,
  40. RandomErasing,
  41. RandomFisheye,
  42. RandomGamma,
  43. RandomGaussianBlur,
  44. RandomGaussianIllumination,
  45. RandomGaussianNoise,
  46. RandomGrayscale,
  47. RandomHorizontalFlip,
  48. RandomHue,
  49. RandomInvert,
  50. RandomJigsaw,
  51. RandomJPEG,
  52. RandomLinearCornerIllumination,
  53. RandomLinearIllumination,
  54. RandomMedianBlur,
  55. RandomMixUpV2,
  56. RandomMosaic,
  57. RandomMotionBlur,
  58. RandomPerspective,
  59. RandomPlanckianJitter,
  60. RandomPlasmaBrightness,
  61. RandomPlasmaContrast,
  62. RandomPlasmaShadow,
  63. RandomPosterize,
  64. RandomRain,
  65. RandomResizedCrop,
  66. RandomRGBShift,
  67. RandomRotation,
  68. RandomRotation90,
  69. RandomSaltAndPepperNoise,
  70. RandomSaturation,
  71. RandomSharpness,
  72. RandomShear,
  73. RandomSnow,
  74. RandomSolarize,
  75. RandomThinPlateSpline,
  76. RandomTranslate,
  77. RandomTransplantation,
  78. RandomVerticalFlip,
  79. Resize,
  80. SmallestMaxSize,
  81. )
  82. from kornia.augmentation._2d.base import AugmentationBase2D, RigidAffineAugmentationBase2D
  83. from kornia.augmentation._2d.geometric.base import GeometricAugmentationBase2D
  84. from kornia.augmentation._2d.intensity.base import IntensityAugmentationBase2D
  85. from kornia.augmentation._2d.mix.base import MixAugmentationBaseV2
  86. from kornia.augmentation._3d import (
  87. CenterCrop3D,
  88. RandomAffine3D,
  89. RandomCrop3D,
  90. RandomDepthicalFlip3D,
  91. RandomEqualize3D,
  92. RandomHorizontalFlip3D,
  93. RandomMotionBlur3D,
  94. RandomPerspective3D,
  95. RandomRotation3D,
  96. RandomTransplantation3D,
  97. RandomVerticalFlip3D,
  98. )
  99. from kornia.augmentation._3d.base import AugmentationBase3D, RigidAffineAugmentationBase3D
  100. from kornia.augmentation._3d.geometric.base import GeometricAugmentationBase3D
  101. from kornia.augmentation._3d.intensity.base import IntensityAugmentationBase3D
  102. from kornia.augmentation.container import (
  103. AugmentationSequential,
  104. ImageSequential,
  105. ManyToManyAugmentationDispather,
  106. ManyToOneAugmentationDispather,
  107. PatchSequential,
  108. VideoSequential,
  109. )
  110. __all__ = [
  111. "AugmentationBase2D",
  112. "AugmentationBase3D",
  113. "AugmentationSequential",
  114. "CenterCrop",
  115. "CenterCrop3D",
  116. "ColorJiggle",
  117. "ColorJitter",
  118. "Denormalize",
  119. "GeometricAugmentationBase2D",
  120. "GeometricAugmentationBase3D",
  121. "ImageSequential",
  122. "IntensityAugmentationBase2D",
  123. "IntensityAugmentationBase3D",
  124. "LongestMaxSize",
  125. "ManyToManyAugmentationDispather",
  126. "ManyToOneAugmentationDispather",
  127. "MixAugmentationBaseV2",
  128. "Normalize",
  129. "PadTo",
  130. "PatchSequential",
  131. "RandomAffine",
  132. "RandomAffine3D",
  133. "RandomAutoContrast",
  134. "RandomBoxBlur",
  135. "RandomBrightness",
  136. "RandomChannelDropout",
  137. "RandomChannelShuffle",
  138. "RandomContrast",
  139. "RandomCrop",
  140. "RandomCrop3D",
  141. "RandomCutMixV2",
  142. "RandomDepthicalFlip3D",
  143. "RandomDissolving",
  144. "RandomElasticTransform",
  145. "RandomEqualize",
  146. "RandomEqualize3D",
  147. "RandomErasing",
  148. "RandomFisheye",
  149. "RandomGamma",
  150. "RandomGaussianBlur",
  151. "RandomGaussianIllumination",
  152. "RandomGaussianNoise",
  153. "RandomGrayscale",
  154. "RandomHorizontalFlip",
  155. "RandomHorizontalFlip3D",
  156. "RandomHue",
  157. "RandomInvert",
  158. "RandomJigsaw",
  159. "RandomLinearCornerIllumination",
  160. "RandomLinearIllumination",
  161. "RandomMedianBlur",
  162. "RandomMixUpV2",
  163. "RandomMosaic",
  164. "RandomMotionBlur",
  165. "RandomMotionBlur3D",
  166. "RandomPerspective",
  167. "RandomPerspective3D",
  168. "RandomPlanckianJitter",
  169. "RandomPlasmaBrightness",
  170. "RandomPlasmaContrast",
  171. "RandomPlasmaShadow",
  172. "RandomPosterize",
  173. "RandomRGBShift",
  174. "RandomRGBShift",
  175. "RandomRain",
  176. "RandomResizedCrop",
  177. "RandomRotation",
  178. "RandomRotation3D",
  179. "RandomRotation90",
  180. "RandomSaltAndPepperNoise",
  181. "RandomSaturation",
  182. "RandomSharpness",
  183. "RandomShear",
  184. "RandomSnow",
  185. "RandomSolarize",
  186. "RandomThinPlateSpline",
  187. "RandomTranslate",
  188. "RandomVerticalFlip",
  189. "RandomVerticalFlip3D",
  190. "Resize",
  191. "RigidAffineAugmentationBase2D",
  192. "RigidAffineAugmentationBase3D",
  193. "SmallestMaxSize",
  194. "VideoSequential",
  195. "auto",
  196. "container",
  197. ]