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

Update ref-metrics.py

Browse files
Files changed (1) hide show
  1. 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
- #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 {
 
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 {