Skip to content

🐍 Geometric Computer Vision Library for Spatial AI

fix(augmentation): export RandomClahe and RandomJPEG in kornia.augmentation.__all__ (#4825)

niukanen18e561ee7f1f8
diff --git a/changelog.d/4825.fixed.md b/changelog.d/4825.fixed.md
new file mode 100644
index 000000000..6d398d89c
--- /dev/null
+++ b/changelog.d/4825.fixed.md
@@ -0,0 +1 @@
+`kornia.augmentation.__all__` now lists `RandomClahe` and `RandomJPEG`, so `from kornia.augmentation import *` includes them. Both classes were importable by name before but had never been in `__all__`.
diff --git a/kornia/augmentation/__init__.py b/kornia/augmentation/__init__.py
index 4505d31a7..473d179d0 100644
--- a/kornia/augmentation/__init__.py
+++ b/kornia/augmentation/__init__.py
@@ -144,6 +144,7 @@ __all__ = [
"RandomBrightness",
"RandomChannelDropout",
"RandomChannelShuffle",
+ "RandomClahe",
"RandomContrast",
"RandomCrop",
"RandomCrop3D",
@@ -164,6 +165,7 @@ __all__ = [
"RandomHorizontalFlip3D",
"RandomHue",
"RandomInvert",
+ "RandomJPEG",
"RandomJigsaw",
"RandomLinearCornerIllumination",
"RandomLinearIllumination",
diff --git a/tests/api_surface.json b/tests/api_surface.json
index ffc3b14f7..f4533f0da 100644
--- a/tests/api_surface.json
+++ b/tests/api_surface.json
@@ -28,6 +28,7 @@
"RandomBrightness",
"RandomChannelDropout",
"RandomChannelShuffle",
+ "RandomClahe",
"RandomContrast",
"RandomCrop",
"RandomCrop3D",
@@ -48,6 +49,7 @@
"RandomHorizontalFlip3D",
"RandomHue",
"RandomInvert",
+ "RandomJPEG",
"RandomJigsaw",
"RandomLinearCornerIllumination",
"RandomLinearIllumination",