From 3a1e41b5544a1cc7b7eee0276b7e6cf425399e62 Mon Sep 17 00:00:00 2001 From: Harry Tung Date: Tue, 2 Jul 2024 14:18:13 -0700 Subject: [PATCH] Added comments --- test/api/test_motdet.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/api/test_motdet.py b/test/api/test_motdet.py index 9c5921d9..a2b6334b 100644 --- a/test/api/test_motdet.py +++ b/test/api/test_motdet.py @@ -256,7 +256,7 @@ def test_motion_detection_not_sufficient_if_doesnt_meet_conf_threshold(gl: Groun new_response = gl.submit_image_query( detector=detector.id, image=original_image, - patience_time=30.0, + wait=10, confidence_threshold=base_iq_response.result.confidence + 1e-3, # Require a higher confidence than before ) @@ -264,4 +264,5 @@ def test_motion_detection_not_sufficient_if_doesnt_meet_conf_threshold(gl: Groun assert new_response.id.startswith("iq_"), ( "ImageQuery id should start with 'iq_' because it was created on the cloud, because the cached mot det response" " did not meet the confidence threshold" + f" Detector Confidence: {detector.confidence_threshold}. Old IQ Confidence: {base_iq_response.result.confidence}. New IQ Confidence: {new_response.result.confidence}." ) \ No newline at end of file