fix(pre_commit): 🎨 auto format pre-commit hooks

This commit is contained in:
pre-commit-ci[bot] committed 2025-11-06 21:57:29 +00:00
1 parent ceefe0bab2
commit da7c5cd65a
1 file changed
+2 -5
+2 -5
View File
@@ -6,7 +6,6 @@ import numpy as np
import pytest
from supervision.detection.utils.iou_and_nms import (
OverlapMetric,
_group_overlapping_boxes,
box_iou,
box_iou_batch,
@@ -718,13 +717,11 @@ def test_box_iou_batch_consistency_with_box_iou():
for i, box_true in enumerate(boxes_true):
for j, box_detection in enumerate(boxes_detection):
single_result = box_iou(box_true, box_detection)
assert np.allclose(
batch_result[i, j], single_result, rtol=1e-5, atol=1e-5
)
assert np.allclose(batch_result[i, j], single_result, rtol=1e-5, atol=1e-5)
def test_box_iou_batch_with_mock_detections():
""" Test box_iou_batch with generated boxes and verify results are valid. """
"""Test box_iou_batch with generated boxes and verify results are valid."""
boxes_true = np.array(mock_boxes(10, seed=1), dtype=np.float32)
boxes_detection = np.array(mock_boxes(15, seed=2), dtype=np.float32)