From ac39bdd487fa45b03e71008f338c539f8c65d62e Mon Sep 17 00:00:00 2001 From: kirilllzaitsev Date: Thu, 20 Jul 2023 09:27:29 +0200 Subject: [PATCH] add empty (preds,targets) test --- test/metrics/test_detection.py | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/test/metrics/test_detection.py b/test/metrics/test_detection.py index fe51630a..ac35cdd6 100644 --- a/test/metrics/test_detection.py +++ b/test/metrics/test_detection.py @@ -138,7 +138,16 @@ def test_from_detections( 0.5, IDEAL_CONF_MATRIX, DoesNotRaise(), - ) + ), + ( + [], + [], + CLASSES, + 0.2, + 0.5, + create_empty_conf_matrix(NUM_CLASSES), + DoesNotRaise(), + ), ], ) def test_from_tensors(