fix(pre_commit): 🎨 auto format pre-commit hooks
This commit is contained in:
1 parent
ceefe0bab2
commit
da7c5cd65a
1 file changed
+1
-4
@@ -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,9 +717,7 @@ 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():
|
||||
|
||||
Reference in new issue
Block a user