Victoria Oberascher commited on
Commit
30abd8c
·
1 Parent(s): c546e02

try to find bug

Browse files
Files changed (1) hide show
  1. horizon-metrics.py +6 -2
horizon-metrics.py CHANGED
@@ -177,14 +177,18 @@ class HorizonMetrics(evaluate.Metric):
177
  float: The computed horizon error.
178
  """
179
 
 
 
 
 
 
 
180
  # calculate erros and store values in slope_error_list and midpoint_error_list
181
  for annotated_horizon, proposed_horizon in zip(self.ground_truth_det,
182
  self.predictions):
183
 
184
  if annotated_horizon is None or proposed_horizon is None:
185
  continue
186
- print("annotated:", annotated_horizon)
187
- print("proposed:", proposed_horizon)
188
  slope_error, midpoint_error = calculate_horizon_error(
189
  annotated_horizon, proposed_horizon)
190
  self.slope_error_list.append(slope_error)
 
177
  float: The computed horizon error.
178
  """
179
 
180
+ try:
181
+ print("Predicitons:", predictions)
182
+ print("Reference:", references)
183
+ except:
184
+ pass
185
+
186
  # calculate erros and store values in slope_error_list and midpoint_error_list
187
  for annotated_horizon, proposed_horizon in zip(self.ground_truth_det,
188
  self.predictions):
189
 
190
  if annotated_horizon is None or proposed_horizon is None:
191
  continue
 
 
192
  slope_error, midpoint_error = calculate_horizon_error(
193
  annotated_horizon, proposed_horizon)
194
  self.slope_error_list.append(slope_error)