Spaces:
Build error
Build error
Victoria Oberascher
commited on
Commit
·
4897b8a
1
Parent(s):
d324c80
add prints to find bug
Browse files- horizon-metrics.py +4 -1
horizon-metrics.py
CHANGED
@@ -179,6 +179,8 @@ class HorizonMetrics(evaluate.Metric):
|
|
179 |
if (self.ground_truth_det is None or self.predictions is None):
|
180 |
self.ground_truth_det = references
|
181 |
self.predictions = predictions
|
|
|
|
|
182 |
|
183 |
# calculate erros and store values in slope_error_list and midpoint_error_list
|
184 |
for annotated_horizon, proposed_horizon in zip(self.ground_truth_det,
|
@@ -186,7 +188,8 @@ class HorizonMetrics(evaluate.Metric):
|
|
186 |
|
187 |
if annotated_horizon is None or proposed_horizon is None:
|
188 |
continue
|
189 |
-
|
|
|
190 |
slope_error, midpoint_error = calculate_horizon_error(
|
191 |
annotated_horizon, proposed_horizon)
|
192 |
self.slope_error_list.append(slope_error)
|
|
|
179 |
if (self.ground_truth_det is None or self.predictions is None):
|
180 |
self.ground_truth_det = references
|
181 |
self.predictions = predictions
|
182 |
+
print(self.ground_truth_det)
|
183 |
+
print(self.predictions)
|
184 |
|
185 |
# calculate erros and store values in slope_error_list and midpoint_error_list
|
186 |
for annotated_horizon, proposed_horizon in zip(self.ground_truth_det,
|
|
|
188 |
|
189 |
if annotated_horizon is None or proposed_horizon is None:
|
190 |
continue
|
191 |
+
print("annotated:", annotated_horizon)
|
192 |
+
print("proposed:", proposed_horizon)
|
193 |
slope_error, midpoint_error = calculate_horizon_error(
|
194 |
annotated_horizon, proposed_horizon)
|
195 |
self.slope_error_list.append(slope_error)
|