Skip to content

🐍 Geometric Computer Vision Library for Spatial AI

docs(augmentation): update RandomGaussianIllumination's doctest output after #4990 (#5009)

Dmytro Mishkindf435934d746
diff --git a/kornia/augmentation/_2d/intensity/gaussian_illumination.py b/kornia/augmentation/_2d/intensity/gaussian_illumination.py
index 0dbda628a..e91e7d84f 100644
--- a/kornia/augmentation/_2d/intensity/gaussian_illumination.py
+++ b/kornia/augmentation/_2d/intensity/gaussian_illumination.py
@@ -94,17 +94,17 @@ class RandomGaussianIllumination(_PicklableCompileMixin, IntensityAugmentationBa
>>> input = torch.ones(1, 3, 3, 3) * 0.5
>>> aug = RandomGaussianIllumination(gain=0.5, p=1.)
>>> aug(input)
- tensor([[[[0.7266, 1.0000, 0.7266],
- [0.6621, 0.9121, 0.6621],
- [0.5000, 0.6911, 0.5000]],
+ tensor([[[[0.8675, 1.0000, 0.6834],
+ [0.7891, 0.9075, 0.6246],
+ [0.6229, 0.7113, 0.5000]],
<BLANKLINE>
- [[0.7266, 1.0000, 0.7266],
- [0.6621, 0.9121, 0.6621],
- [0.5000, 0.6911, 0.5000]],
+ [[0.8675, 1.0000, 0.6834],
+ [0.7891, 0.9075, 0.6246],
+ [0.6229, 0.7113, 0.5000]],
<BLANKLINE>
- [[0.7266, 1.0000, 0.7266],
- [0.6621, 0.9121, 0.6621],
- [0.5000, 0.6911, 0.5000]]]])
+ [[0.8675, 1.0000, 0.6834],
+ [0.7891, 0.9075, 0.6246],
+ [0.6229, 0.7113, 0.5000]]]])
To apply the exact augmenation again, you may take the advantage of the previous parameter state:
>>> input = torch.rand(1, 3, 32, 32)