From fc1e899575ee31d70eef616d4891ca0610e32fc0 Mon Sep 17 00:00:00 2001 From: kirilllzaitsev Date: Thu, 20 Jul 2023 09:17:47 +0200 Subject: [PATCH] fix failing tests (reduce threshold to 0.2) --- test/metrics/test_detection.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/metrics/test_detection.py b/test/metrics/test_detection.py index a25c7857..fe51630a 100644 --- a/test/metrics/test_detection.py +++ b/test/metrics/test_detection.py @@ -95,10 +95,10 @@ for det in DUMMY_DET_DATASET.annotations.values(): "predictions, targets, classes, conf_threshold, iou_threshold, expected_result, exception", [ ( - [CERTAIN_DETECTIONS], [DETECTIONS], + [CERTAIN_DETECTIONS], CLASSES, - 0.3, + 0.2, 0.5, IDEAL_CONF_MATRIX, DoesNotRaise(), @@ -134,7 +134,7 @@ def test_from_detections( DETECTION_TENSORS, CERTAIN_DETECTION_TENSORS, CLASSES, - 0.3, + 0.2, 0.5, IDEAL_CONF_MATRIX, DoesNotRaise(), @@ -170,7 +170,7 @@ def test_from_tensors( DETECTION_TENSORS[0], CERTAIN_DETECTION_TENSORS[0], NUM_CLASSES, - 0.3, + 0.2, 0.5, IDEAL_CONF_MATRIX, DoesNotRaise(),