Skip to content

🐍 Geometric Computer Vision Library for Spatial AI

remove squeeze in random_vflip

kshitij12345988ef17e9a88
diff --git a/kornia/augmentation/augmentations.py b/kornia/augmentation/augmentations.py
index ed79ca19a..0ff7269da 100644
--- a/kornia/augmentation/augmentations.py
+++ b/kornia/augmentation/augmentations.py
@@ -268,7 +268,6 @@ def random_vflip(input: torch.Tensor, p: float = 0.5, return_transform: bool = F
flipped: torch.Tensor = input.clone()
flipped[to_flip] = vflip(input[to_flip])
- flipped.squeeze_()
if return_transform: