Spaces:
Build error
Build error
iou inverted "fix"
Browse files- user-friendly-metrics.py +1 -0
user-friendly-metrics.py
CHANGED
|
@@ -133,6 +133,7 @@ def calculate(predictions,
|
|
| 133 |
if np_references[:, 0].min() <= 0:
|
| 134 |
raise ValueError("The frame number in the references should be a positive integer")
|
| 135 |
|
|
|
|
| 136 |
|
| 137 |
num_frames = int(max(np_references[:, 0].max(), np_predictions[:, 0].max()))
|
| 138 |
|
|
|
|
| 133 |
if np_references[:, 0].min() <= 0:
|
| 134 |
raise ValueError("The frame number in the references should be a positive integer")
|
| 135 |
|
| 136 |
+
max_iou = 1-max_iou #motmetrics expects iou association threshold to be smaller for stricter association
|
| 137 |
|
| 138 |
num_frames = int(max(np_references[:, 0].max(), np_predictions[:, 0].max()))
|
| 139 |
|