Spaces:
Running
Running
Update cord_inference.py
Browse files- cord_inference.py +1 -1
cord_inference.py
CHANGED
@@ -60,7 +60,7 @@ def prediction(image):
|
|
60 |
bboxes = []
|
61 |
|
62 |
for i, j in enumerate(true_predictions):
|
63 |
-
if true_confidence_scores[i] < 0.
|
64 |
true_predictions[i] = "O"
|
65 |
preds.append(true_predictions[i])
|
66 |
l_words.append(true_words[i])
|
|
|
60 |
bboxes = []
|
61 |
|
62 |
for i, j in enumerate(true_predictions):
|
63 |
+
if true_confidence_scores[i] < 0.85: #####################################àà
|
64 |
true_predictions[i] = "O"
|
65 |
preds.append(true_predictions[i])
|
66 |
l_words.append(true_words[i])
|