Spaces:
Sleeping
Sleeping
filters -> filter
Browse files- user-friendly-metrics.py +2 -2
user-friendly-metrics.py
CHANGED
|
@@ -96,14 +96,14 @@ class UserFriendlyMetrics(evaluate.Metric):
|
|
| 96 |
self,
|
| 97 |
payload,
|
| 98 |
max_iou: float = 0.5,
|
| 99 |
-
|
| 100 |
recognition_thresholds=[0.3, 0.5, 0.8],
|
| 101 |
debug: bool = False,
|
| 102 |
):
|
| 103 |
"""Returns the scores"""
|
| 104 |
# TODO: Compute the different scores of the module
|
| 105 |
return calculate_from_payload(
|
| 106 |
-
payload, max_iou,
|
| 107 |
)
|
| 108 |
# return calculate(predictions, references, max_iou)
|
| 109 |
|
|
|
|
| 96 |
self,
|
| 97 |
payload,
|
| 98 |
max_iou: float = 0.5,
|
| 99 |
+
filter={},
|
| 100 |
recognition_thresholds=[0.3, 0.5, 0.8],
|
| 101 |
debug: bool = False,
|
| 102 |
):
|
| 103 |
"""Returns the scores"""
|
| 104 |
# TODO: Compute the different scores of the module
|
| 105 |
return calculate_from_payload(
|
| 106 |
+
payload, max_iou, filter, recognition_thresholds, debug
|
| 107 |
)
|
| 108 |
# return calculate(predictions, references, max_iou)
|
| 109 |
|