Victoria Oberascher commited on
Commit
3f940f6
·
1 Parent(s): 1033953

try to fix bug

Browse files
Files changed (1) hide show
  1. horizon-metrics.py +7 -3
horizon-metrics.py CHANGED
@@ -183,9 +183,13 @@ class HorizonMetrics(evaluate.Metric):
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,
 
183
  self.predictions = predictions[0]
184
  print(self.ground_truth_det)
185
  print(self.predictions)
186
+ try:
187
+ print(np.asarray(self.ground_truth_det).shape)
188
+ print(np.asarray(self.predictions).shape)
189
+ except:
190
+ # no nothing
191
+ pass
192
+
193
 
194
  # calculate erros and store values in slope_error_list and midpoint_error_list
195
  for annotated_horizon, proposed_horizon in zip(self.ground_truth_det,