Spaces:
Sleeping
Sleeping
fix bug in for...
Browse files- user-friendly-metrics.py +2 -2
user-friendly-metrics.py
CHANGED
@@ -189,7 +189,7 @@ def calculate_from_payload(payload: dict,
|
|
189 |
|
190 |
all_formated_references = {"all": []}
|
191 |
print("filters: ", filters)
|
192 |
-
for filter, filter_ranges in filters:
|
193 |
all_formated_references[filter] = {}
|
194 |
for filter_range in filter_ranges:
|
195 |
filter_range_name = filter_range[0]
|
@@ -200,7 +200,7 @@ def calculate_from_payload(payload: dict,
|
|
200 |
index = detection['index']
|
201 |
x, y, w, h = detection['bounding_box']
|
202 |
all_formated_references["all"].append([frame_id+1, index, x, y, w, h])
|
203 |
-
for filter, filter_ranges in filters:
|
204 |
filter_value = detection[filter]
|
205 |
for filter_range in filter_ranges:
|
206 |
filter_range_name = filter_range[0]
|
|
|
189 |
|
190 |
all_formated_references = {"all": []}
|
191 |
print("filters: ", filters)
|
192 |
+
for filter, filter_ranges in filters.items():
|
193 |
all_formated_references[filter] = {}
|
194 |
for filter_range in filter_ranges:
|
195 |
filter_range_name = filter_range[0]
|
|
|
200 |
index = detection['index']
|
201 |
x, y, w, h = detection['bounding_box']
|
202 |
all_formated_references["all"].append([frame_id+1, index, x, y, w, h])
|
203 |
+
for filter, filter_ranges in filters.items():
|
204 |
filter_value = detection[filter]
|
205 |
for filter_range in filter_ranges:
|
206 |
filter_range_name = filter_range[0]
|