π Geometric Computer Vision Library for Spatial AI
Python artificial-intelligencecomputer-visiondeep-learninghacktoberfestimage-processingmachine-learningneural-networkpythonpytorchroboticsspatial-ai
Updated typings & code cleaning
Jian S053daa731a26
diff --git a/kornia/augmentation/__init__.py b/kornia/augmentation/__init__.pyindex 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.pyindex 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_transformself._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 1else:diff --git a/requirements.txt b/requirements.txtindex 898830955..699f8d27b 100644--- a/requirements.txt+++ b/requirements.txt@@ -23,7 +23,7 @@ mypy_extensions==0.4.1# docssphinx==2.1.2sphinx-gallery==0.4.0-sphinx_rtd_theme==0.4.3+sphinx_rtd_theme=0.4.3sphinxcontrib-bibtex==0.4.2nbsphinx==0.4.2nbconvert==5.5.0