VascoDVRodrigues commited on
Commit
c997355
1 Parent(s): f7c3a58
Files changed (1) hide show
  1. mot-metrics.py +3 -3
mot-metrics.py CHANGED
@@ -141,11 +141,11 @@ class MotMetrics(evaluate.Metric):
141
  # TODO: Download external resources if needed
142
  pass
143
 
144
- def _compute(self, predictions, references, max_iou: float = 0.5):
145
  """Returns the scores"""
146
  # TODO: Compute the different scores of the module
147
-
148
- return calculate(predictions, references, max_iou)
149
 
150
  def calculate(predictions, references, max_iou: float = 0.5):
151
  """Returns the scores"""
 
141
  # TODO: Download external resources if needed
142
  pass
143
 
144
+ def _compute(self, payload, max_iou: float = 0.5):
145
  """Returns the scores"""
146
  # TODO: Compute the different scores of the module
147
+ return calculate_from_payload(payload, max_iou)
148
+ #return calculate(predictions, references, max_iou)
149
 
150
  def calculate(predictions, references, max_iou: float = 0.5):
151
  """Returns the scores"""