Skip to content

🐍 Geometric Computer Vision Library for Spatial AI

[pre-commit.ci] auto fixes from pre-commit.com hooks

pre-commit-ci[bot]dafdec5b859d
diff --git a/kornia/contrib/face_detection.py b/kornia/contrib/face_detection.py
index f6669f13d..48fb2af33 100644
--- a/kornia/contrib/face_detection.py
+++ b/kornia/contrib/face_detection.py
@@ -217,7 +217,6 @@ class FaceDetector(nn.Module):
Return:
List[torch.Tensor]: list with the boxes found on each image. :math:`Bx(N,15)`.
-
"""
img = self.preprocess(image)
out = self.model(img)
diff --git a/test/test_contrib.py b/test/test_contrib.py
index 0de8a550a..8b8d1b69f 100644
--- a/test/test_contrib.py
+++ b/test/test_contrib.py
@@ -583,7 +583,7 @@ class TestFaceDetection:
face_detection = kornia.contrib.FaceDetector().to(device, dtype)
dets = face_detection(img)
assert isinstance(dets, list)
- assert len(dets) == batch_size # same as the number of images
+ assert len(dets) == batch_size # same as the number of images
assert isinstance(dets[0], torch.Tensor)
assert dets[0].shape[0] >= 0 # number of detections
assert dets[0].shape[1] == 15 # dims of each detection