Skip to content

Commit

Permalink
Fixing reset test (#248)
Browse files Browse the repository at this point in the history
* Human labels currently return with None confidence, account for this
  • Loading branch information
brandon-groundlight authored Sep 5, 2024
1 parent 3eb19be commit 99ed137
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/unit/test_detector_reset.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,5 @@ def test_reset_training(gl_experimental: ExperimentalApi):
low_confidence_threshold = 0.6
det = gl_experimental.get_or_create_detector("Test Detector for Resets", "is this a cat?")
gl_experimental.reset_detector(det.id)
iq = gl_experimental.submit_image_query(det, "test/assets/cat.jpeg")
iq = gl_experimental.submit_image_query(det, "test/assets/cat.jpeg", human_review="NEVER")
assert iq.result.confidence < low_confidence_threshold

0 comments on commit 99ed137

Please sign in to comment.