Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] authored and lferraz committed Nov 29, 2022
1 parent 4cad3b0 commit 7c36635
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion kornia/contrib/face_detection.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,6 @@ def forward(self, image: torch.Tensor) -> List[torch.Tensor]:
Return:
List[torch.Tensor]: list with the boxes found on each image. :math:`Bx(N,15)`.
"""
img = self.preprocess(image)
out = self.model(img)
Expand Down
2 changes: 1 addition & 1 deletion test/test_contrib.py
Original file line number Diff line number Diff line change
Expand Up @@ -583,7 +583,7 @@ def test_valid(self, batch_size, device, dtype):
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
Expand Down

0 comments on commit 7c36635

Please sign in to comment.