Spaces:
Sleeping
Sleeping
refix eheh
Browse files- user-friendly-metrics.py +1 -1
user-friendly-metrics.py
CHANGED
@@ -231,7 +231,7 @@ def calculate_from_payload(payload: dict,
|
|
231 |
else:
|
232 |
output[sequence][model] = {}
|
233 |
output[sequence][model]["all"] = calculate(formated_predictions, all_formated_references["all"], max_iou=max_iou, recognition_thresholds = recognition_thresholds)
|
234 |
-
for filter, filter_ranges in filters:
|
235 |
output[sequence][model][filter] = {}
|
236 |
for filter_range in filter_ranges:
|
237 |
filter_range_name = filter_range[0]
|
|
|
231 |
else:
|
232 |
output[sequence][model] = {}
|
233 |
output[sequence][model]["all"] = calculate(formated_predictions, all_formated_references["all"], max_iou=max_iou, recognition_thresholds = recognition_thresholds)
|
234 |
+
for filter, filter_ranges in filters.items():
|
235 |
output[sequence][model][filter] = {}
|
236 |
for filter_range in filter_ranges:
|
237 |
filter_range_name = filter_range[0]
|