Skip to content

Commit

Permalink
Update confidence levels values
Browse files Browse the repository at this point in the history
  • Loading branch information
thomashbrnrd committed Jan 22, 2024
1 parent 3d41b0e commit fb101c7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backend/src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -242,9 +242,9 @@ async def imageupload(
extras_logging["bg_label"] = label
extras_logging["bg_confidence"] = confidence
extras_logging["bg_model_time"] = round(time.time() - start, 2)
if confidence < 0.46:
if confidence < 0.76:
extras_logging["bg_confidence_level"] = "low"
elif confidence < 0.76:
elif confidence < 0.99:
extras_logging["bg_confidence_level"] = "medium"
else:
extras_logging["bg_confidence_level"] = "high"
Expand Down

0 comments on commit fb101c7

Please sign in to comment.