π Geometric Computer Vision Library for Spatial AI
Python artificial-intelligencecomputer-visiondeep-learninghacktoberfestimage-processingmachine-learningneural-networkpythonpytorchroboticsspatial-ai
Correct PEP8
Pau Riba9a8c7c4a2d50
diff --git a/kornia/geometry/transform/flips.py b/kornia/geometry/transform/flips.pyindex 7ee7eae3a..515883550 100644--- a/kornia/geometry/transform/flips.py+++ b/kornia/geometry/transform/flips.py@@ -97,7 +97,6 @@ class Rot180(nn.Module):def rot180(input: torch.Tensor) -> torch.Tensor:-r"""Rotate a tensor image or a batch of tensor images180 degrees. Input must be a tensor of shape (C, H, W)or a batch of tensors :math:`(*, C, H, W)`.diff --git a/test/geometry/transform/test_flip.py b/test/geometry/transform/test_flip.pyindex da6b43941..a0aef2c17 100644--- a/test/geometry/transform/test_flip.py+++ b/test/geometry/transform/test_flip.py@@ -100,8 +100,8 @@ class TestHflip:[0., 1., 1.]]) # 3 x 3expected = torch.tensor([[0., 0., 0.],- [0., 0., 0.],- [1., 1., 0.]]) # 3 x 3+ [0., 0., 0.],+ [1., 1., 0.]]) # 3 x 3assert (f(input) == expected).all()