Spaces:
Build error
Build error
Victoria Oberascher
commited on
Commit
·
9dd3e2b
1
Parent(s):
9be0c88
try to fix error
Browse files- horizon-metrics.py +3 -6
horizon-metrics.py
CHANGED
@@ -179,14 +179,11 @@ class HorizonMetrics(evaluate.Metric):
|
|
179 |
# this means that the metric was called using the input field on huggingface website
|
180 |
|
181 |
try:
|
182 |
-
|
183 |
-
|
184 |
-
self.ground_truth_det = references
|
185 |
-
self.predictions = predictions
|
186 |
-
print(np.asarray(self.ground_truth_det).shape)
|
187 |
-
print(np.asarray(self.predictions).shape)
|
188 |
except:
|
189 |
# no nothing
|
|
|
190 |
pass
|
191 |
|
192 |
# calculate erros and store values in slope_error_list and midpoint_error_list
|
|
|
179 |
# this means that the metric was called using the input field on huggingface website
|
180 |
|
181 |
try:
|
182 |
+
print(np.asarray(predictions).shape)
|
183 |
+
print(np.asarray(references).shape)
|
|
|
|
|
|
|
|
|
184 |
except:
|
185 |
# no nothing
|
186 |
+
print("error")
|
187 |
pass
|
188 |
|
189 |
# calculate erros and store values in slope_error_list and midpoint_error_list
|