Spaces:
Build error
Build error
Update ref-metrics.py
Browse files- ref-metrics.py +12 -12
ref-metrics.py
CHANGED
|
@@ -93,18 +93,18 @@ class UserFriendlyMetrics(evaluate.Metric):
|
|
| 93 |
|
| 94 |
return self.dummy_values()
|
| 95 |
|
| 96 |
-
|
| 97 |
-
|
| 98 |
-
|
| 99 |
-
|
| 100 |
-
|
| 101 |
-
|
| 102 |
-
|
| 103 |
-
|
| 104 |
-
|
| 105 |
-
|
| 106 |
-
|
| 107 |
-
|
| 108 |
|
| 109 |
def dummy_values(self):
|
| 110 |
return {
|
|
|
|
| 93 |
|
| 94 |
return self.dummy_values()
|
| 95 |
|
| 96 |
+
def compute(
|
| 97 |
+
self,
|
| 98 |
+
payload,
|
| 99 |
+
max_iou: float = 0.5,
|
| 100 |
+
filters={},
|
| 101 |
+
recognition_thresholds=[0.3, 0.5, 0.8],
|
| 102 |
+
debug: bool = False,
|
| 103 |
+
):
|
| 104 |
+
"""Returns the scores"""
|
| 105 |
+
# this practically call _compute
|
| 106 |
+
return self._compute({},{})
|
| 107 |
+
# return calculate(predictions, references, max_iou)
|
| 108 |
|
| 109 |
def dummy_values(self):
|
| 110 |
return {
|