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

Update ref-metrics.py

Browse files
Files changed (1) hide show
  1. ref-metrics.py +3 -7
ref-metrics.py CHANGED
@@ -87,13 +87,9 @@ class UserFriendlyMetrics(evaluate.Metric):
87
  def _download_and_prepare(self, dl_manager):
88
  """Optional: download external resources useful to compute the scores"""
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,
@@ -103,7 +99,7 @@ class UserFriendlyMetrics(evaluate.Metric):
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):
 
87
  def _download_and_prepare(self, dl_manager):
88
  """Optional: download external resources useful to compute the scores"""
89
  # TODO: Download external resources if needed
90
+ pass
91
 
92
+ def compute_from_payload(
 
 
 
 
93
  self,
94
  payload,
95
  max_iou: float = 0.5,
 
99
  ):
100
  """Returns the scores"""
101
  # this practically call _compute
102
+ return self.dummy_values()
103
  # return calculate(predictions, references, max_iou)
104
 
105
  def dummy_values(self):