Skip to content

Commit c901b9b

Browse files
Merge pull request #1746 from roboflow/fix/lower-bound-confidence
lower bound confidence threshold was not applied due to incorrect condition
2 parents 1e9452a + 8476fe9 commit c901b9b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

inference/core/interfaces/http/http_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2901,7 +2901,7 @@ def legacy_infer_from_request(
29012901
model_id = f"{dataset_id}/{version_id}"
29022902
if confidence >= 1:
29032903
confidence /= 100
2904-
elif confidence < CONFIDENCE_LOWER_BOUND_OOM_PREVENTION:
2904+
if confidence < CONFIDENCE_LOWER_BOUND_OOM_PREVENTION:
29052905
# allowing lower confidence results in RAM usage explosion
29062906
confidence = CONFIDENCE_LOWER_BOUND_OOM_PREVENTION
29072907

0 commit comments

Comments
 (0)