Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -112,7 +112,7 @@ def predict2(image_np,threshold):
|
|
| 112 |
category_index,
|
| 113 |
use_normalized_coordinates=True,
|
| 114 |
max_boxes_to_draw=200,
|
| 115 |
-
min_score_thresh=float(threshold),
|
| 116 |
agnostic_mode=False,
|
| 117 |
line_thickness=2)
|
| 118 |
|
|
@@ -151,7 +151,7 @@ def video_fn(video_in_filepath):
|
|
| 151 |
category_index,
|
| 152 |
use_normalized_coordinates=True,
|
| 153 |
max_boxes_to_draw=200,
|
| 154 |
-
min_score_thresh=.50
|
| 155 |
agnostic_mode=False,
|
| 156 |
line_thickness=2)
|
| 157 |
|
|
|
|
| 112 |
category_index,
|
| 113 |
use_normalized_coordinates=True,
|
| 114 |
max_boxes_to_draw=200,
|
| 115 |
+
min_score_thresh=float(threshold) if threshold is not None else 0.40,
|
| 116 |
agnostic_mode=False,
|
| 117 |
line_thickness=2)
|
| 118 |
|
|
|
|
| 151 |
category_index,
|
| 152 |
use_normalized_coordinates=True,
|
| 153 |
max_boxes_to_draw=200,
|
| 154 |
+
min_score_thresh=.50,
|
| 155 |
agnostic_mode=False,
|
| 156 |
line_thickness=2)
|
| 157 |
|