Skip to content

Commit

Permalink
Adapt confidence levels to new classification model
Browse files Browse the repository at this point in the history
  • Loading branch information
leihuayi authored and thomashbrnrd committed Aug 28, 2023
1 parent 47ce1a3 commit 18d91b3
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 @@ -276,9 +276,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 < 41:
if confidence < 46:
extras_logging["bg_confidence_level"] = "low"
elif confidence < 65:
elif confidence < 76:
extras_logging["bg_confidence_level"] = "medium"
else:
extras_logging["bg_confidence_level"] = "high"
Expand Down

0 comments on commit 18d91b3

Please sign in to comment.