Spaces:
Build error
Build error
Update ref-metrics.py
Browse files- ref-metrics.py +16 -12
ref-metrics.py
CHANGED
|
@@ -89,18 +89,22 @@ class UserFriendlyMetrics(evaluate.Metric):
|
|
| 89 |
# TODO: Download external resources if needed
|
| 90 |
pass
|
| 91 |
|
| 92 |
-
def _compute(
|
| 93 |
-
|
| 94 |
-
|
| 95 |
-
|
| 96 |
-
|
| 97 |
-
|
| 98 |
-
|
| 99 |
-
|
| 100 |
-
|
| 101 |
-
|
| 102 |
-
|
| 103 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 104 |
|
| 105 |
def dummy_values(self):
|
| 106 |
return {
|
|
|
|
| 89 |
# TODO: Download external resources if needed
|
| 90 |
pass
|
| 91 |
|
| 92 |
+
def _compute(self, references, predictions):
|
| 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.dummy_values()
|
| 107 |
+
# # return calculate(predictions, references, max_iou)
|
| 108 |
|
| 109 |
def dummy_values(self):
|
| 110 |
return {
|