Skip to content

Commit b27655a

Browse files
committed
Always fetch detector confidence threshold if inputted value is None
1 parent 81e1e09 commit b27655a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/groundlight/client.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1004,6 +1004,8 @@ def wait_for_confident_result(
10041004
"""
10051005
if isinstance(image_query, str):
10061006
image_query = self.get_image_query(image_query)
1007+
1008+
if confidence_threshold is None:
10071009
confidence_threshold = self.get_detector(image_query.detector_id).confidence_threshold
10081010

10091011
confidence_above_thresh = partial(iq_is_confident, confidence_threshold=confidence_threshold) # type: ignore

0 commit comments

Comments
 (0)