hichem-abdellali commited on
Commit
1a82b0f
·
verified ·
1 Parent(s): be29ab6

Update ref-metrics.py

Browse files
Files changed (1) hide show
  1. 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
- self,
94
- payload,
95
- max_iou: float = 0.5,
96
- filters={},
97
- recognition_thresholds=[0.3, 0.5, 0.8],
98
- debug: bool = False,
99
- ):
100
- """Returns the scores"""
101
- # TODO: Compute the different scores of the module
102
- return self.dummy_values()
103
- # return calculate(predictions, references, max_iou)
 
 
 
 
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 {