Victoria Oberascher commited on
Commit
1033953
1 Parent(s): 4d9d4d0

try to fix bug

Browse files
Files changed (1) hide show
  1. horizon-metrics.py +3 -3
horizon-metrics.py CHANGED
@@ -178,15 +178,15 @@ class HorizonMetrics(evaluate.Metric):
178
  """
179
  # this means that the metric was called using the input field on huggingface website
180
 
181
- print(np.asarray(predictions).shape)
182
- print(np.asarray(references).shape)
183
-
184
  if (self.ground_truth_det is None or self.predictions is None):
185
  self.ground_truth_det = references[0]
186
  self.predictions = predictions[0]
187
  print(self.ground_truth_det)
188
  print(self.predictions)
189
 
 
 
 
190
  # calculate erros and store values in slope_error_list and midpoint_error_list
191
  for annotated_horizon, proposed_horizon in zip(self.ground_truth_det,
192
  self.predictions):
 
178
  """
179
  # this means that the metric was called using the input field on huggingface website
180
 
 
 
 
181
  if (self.ground_truth_det is None or self.predictions is None):
182
  self.ground_truth_det = references[0]
183
  self.predictions = predictions[0]
184
  print(self.ground_truth_det)
185
  print(self.predictions)
186
 
187
+ print(np.asarray(self.ground_truth_det).shape)
188
+ print(np.asarray(self.predictions).shape)
189
+
190
  # calculate erros and store values in slope_error_list and midpoint_error_list
191
  for annotated_horizon, proposed_horizon in zip(self.ground_truth_det,
192
  self.predictions):