Skip to content

🐍 Geometric Computer Vision Library for Spatial AI

docstring indentation fixes (#1180)

Rahul Somani513f534d7159
diff --git a/kornia/augmentation/container/augment.py b/kornia/augmentation/container/augment.py
index 16ef41d87..f633f0d41 100644
--- a/kornia/augmentation/container/augment.py
+++ b/kornia/augmentation/container/augment.py
@@ -69,10 +69,10 @@ class AugmentationSequential(ImageSequential):
>>> aug_list = AugmentationSequential(
... kornia.augmentation.ColorJitter(0.1, 0.1, 0.1, 0.1, p=1.0),
... kornia.augmentation.RandomAffine(360, p=1.0),
- ... data_keys=["input", "mask", "bbox", "keypoints"],
- ... return_transform=False,
- ... same_on_batch=False,
- ... random_apply=10,
+ ... data_keys=["input", "mask", "bbox", "keypoints"],
+ ... return_transform=False,
+ ... same_on_batch=False,
+ ... random_apply=10,
... )
>>> out = aug_list(input, input, bbox, points)
>>> [o.shape for o in out]
diff --git a/kornia/augmentation/container/image.py b/kornia/augmentation/container/image.py
index e4c9d591c..51278fd42 100644
--- a/kornia/augmentation/container/image.py
+++ b/kornia/augmentation/container/image.py
@@ -45,9 +45,9 @@ class ImageSequential(SequentialBase):
... kornia.augmentation.RandomAffine(360, p=1.0),
... kornia.enhance.Invert(),
... kornia.augmentation.RandomMixUp(p=1.0),
- ... return_transform=True,
- ... same_on_batch=True,
- ... random_apply=10,
+ ... return_transform=True,
+ ... same_on_batch=True,
+ ... random_apply=10,
... )
>>> out, lab = aug_list(input, label=label)
>>> lab
diff --git a/kornia/augmentation/container/patch.py b/kornia/augmentation/container/patch.py
index 3d0c4d9d5..b4a0b4532 100644
--- a/kornia/augmentation/container/patch.py
+++ b/kornia/augmentation/container/patch.py
@@ -80,10 +80,10 @@ class PatchSequential(ImageSequential):
... K.RandomSolarize(0.1, 0.1, p=0.5),
... ),
... K.RandomSolarize(0.1, 0.1, p=0.1),
- ... grid_size=(2,2),
- ... patchwise_apply=True,
- ... same_on_batch=True,
- ... random_apply=False,
+ ... grid_size=(2,2),
+ ... patchwise_apply=True,
+ ... same_on_batch=True,
+ ... random_apply=False,
... )
>>> out = seq(input)
>>> out.shape
diff --git a/kornia/augmentation/container/video.py b/kornia/augmentation/container/video.py
index 9ba76b9df..88c960228 100644
--- a/kornia/augmentation/container/video.py
+++ b/kornia/augmentation/container/video.py
@@ -44,9 +44,9 @@ class VideoSequential(ImageSequential):
... kornia.augmentation.ColorJitter(0.1, 0.1, 0.1, 0.1, p=1.0),
... kornia.color.BgrToRgb(),
... kornia.augmentation.RandomAffine(360, p=1.0),
- ... random_apply=10,
- ... data_format="BCTHW",
- ... same_on_frame=True)
+ ... random_apply=10,
+ ... data_format="BCTHW",
+ ... same_on_frame=True)
>>> output = aug_list(input)
>>> (output[0, :, 0] == output[0, :, 1]).all()
tensor(True)