Skip to content

🐍 Geometric Computer Vision Library for Spatial AI

Updated typings & code cleaning

Jian S053daa731a26
diff --git a/kornia/augmentation/__init__.py b/kornia/augmentation/__init__.py
index 8ec78ee7e..d702d2576 100644
--- a/kornia/augmentation/__init__.py
+++ b/kornia/augmentation/__init__.py
@@ -4,17 +4,13 @@ from kornia.augmentation.random_erasing import *
__all__ = [
"random_hflip",
- # "apply_hflip",
"RandomHorizontalFlip",
"random_vflip",
- # "apply_vflip",
"RandomVerticalFlip",
"color_jitter",
- # "apply_color_jitter",
"ColorJitter",
"random_rectangle_erase",
"RandomRectangleErasing",
"random_grayscale",
- # "apply_grayscale",
"RandomGrayscale",
]
diff --git a/kornia/augmentation/augmentations.py b/kornia/augmentation/augmentations.py
index 4090a92f4..4e2afb6b9 100644
--- a/kornia/augmentation/augmentations.py
+++ b/kornia/augmentation/augmentations.py
@@ -16,7 +16,7 @@ class AugmentationBase(nn.Module):
self.return_transform = return_transform
self._apply_fcn: Callable = apply_fcn
- def infer_batch_size(self, input):
+ def infer_batch_size(self, input) -> int:
if isinstance(input, tuple):
batch_size = input[0].shape[0] if len(input[0].shape) == 4 else 1
else:
diff --git a/requirements.txt b/requirements.txt
index 898830955..699f8d27b 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -23,7 +23,7 @@ mypy_extensions==0.4.1
# docs
sphinx==2.1.2
sphinx-gallery==0.4.0
-sphinx_rtd_theme==0.4.3
+sphinx_rtd_theme=0.4.3
sphinxcontrib-bibtex==0.4.2
nbsphinx==0.4.2
nbconvert==5.5.0