π Geometric Computer Vision Library for Spatial AI
Python artificial-intelligencecomputer-visiondeep-learninghacktoberfestimage-processingmachine-learningneural-networkpythonpytorchroboticsspatial-ai
docs(augmentation): state the 3D angle bound in place of the stale #4617 wart sentence (#5140)
Dmytro Mishkin4df7b30401e0
diff --git a/changelog.d/5140.fixed.md b/changelog.d/5140.fixed.mdnew file mode 100644index 000000000..12ad544fe--- /dev/null+++ b/changelog.d/5140.fixed.md@@ -0,0 +1 @@+The `GeometricAugmentationBase2D` Convention block no longer says the 3D augmentations accept an unbounded angle range: `RandomRotation3D`, `RandomAffine3D` and `RandomMotionBlur3D` raise past `Β±360` like the 2D classes.diff --git a/kornia/augmentation/_2d/geometric/base.py b/kornia/augmentation/_2d/geometric/base.pyindex eecd738b7..ed2c81bd1 100644--- a/kornia/augmentation/_2d/geometric/base.py+++ b/kornia/augmentation/_2d/geometric/base.py@@ -69,8 +69,10 @@ class GeometricAugmentationBase2D(RigidAffineAugmentationBase2D)::class:`RandomAffine`'s ``degrees`` and for :class:`RandomShear`'s and :class:`RandomAffine`'s``shear``, ``(-1, 1)`` for :class:`RandomTranslate`'s ``translate_x`` and ``translate_y``,``(0, 1)`` for :class:`RandomAffine`'s ``translate``, and ``(-3, 3)`` for- :class:`RandomRotation90`'s ``times``. The 3D classes read their scalar through a helper that- carries no bound, tracked in `#4617 <https://github.com/kornia/kornia/issues/4617>`_.+ :class:`RandomRotation90`'s ``times``. The 3D angle ranges -- :class:`RandomRotation3D`'s and+ :class:`RandomAffine3D`'s ``degrees``, :class:`RandomAffine3D`'s ``shears`` and+ :class:`RandomMotionBlur3D`'s ``angle`` -- raise ``ValueError`` past ``(-360, 360)``, in scalar and+ explicit form.Note:Masks are resampled with nearest neighbour whatever ``resample`` the augmentation uses for images,