Spaces:
Build error
Build error
Victoria Oberascher
commited on
Commit
·
8236b6e
1
Parent(s):
8efc7e7
fix bug concerning import
Browse files- horizonmetrics.py +2 -3
horizonmetrics.py
CHANGED
@@ -15,6 +15,7 @@
|
|
15 |
|
16 |
import evaluate
|
17 |
import datasets
|
|
|
18 |
|
19 |
#from seametrics.horizon.utils import *
|
20 |
|
@@ -61,9 +62,6 @@ BAD_WORDS_URL = "http://url/to/external/resource/bad_words.txt"
|
|
61 |
_KWARGS_DESCRIPTION)
|
62 |
|
63 |
# begin utils
|
64 |
-
import numpy as np
|
65 |
-
|
66 |
-
|
67 |
def xy_points_to_slope_midpoint(xy_points):
|
68 |
"""
|
69 |
Given two points, return the slope and midpoint of the line
|
@@ -325,6 +323,7 @@ def pitch_to_midpoint(pitch, vertical_fov_degrees):
|
|
325 |
midpoint = pitch / vertical_fov_degrees
|
326 |
return midpoint
|
327 |
|
|
|
328 |
# end utils
|
329 |
class horizonmetrics(evaluate.Metric):
|
330 |
"""TODO: Short description of my evaluation module."""
|
|
|
15 |
|
16 |
import evaluate
|
17 |
import datasets
|
18 |
+
import numpy as np
|
19 |
|
20 |
#from seametrics.horizon.utils import *
|
21 |
|
|
|
62 |
_KWARGS_DESCRIPTION)
|
63 |
|
64 |
# begin utils
|
|
|
|
|
|
|
65 |
def xy_points_to_slope_midpoint(xy_points):
|
66 |
"""
|
67 |
Given two points, return the slope and midpoint of the line
|
|
|
323 |
midpoint = pitch / vertical_fov_degrees
|
324 |
return midpoint
|
325 |
|
326 |
+
|
327 |
# end utils
|
328 |
class horizonmetrics(evaluate.Metric):
|
329 |
"""TODO: Short description of my evaluation module."""
|