Spaces:
Runtime error
Runtime error
brunorosilva
commited on
Commit
•
41e1e17
1
Parent(s):
4f82987
single folder training
Browse files
makeitsports_bot/data/data.py
CHANGED
@@ -4,11 +4,10 @@ import numpy as np
|
|
4 |
|
5 |
|
6 |
def get_data_from_local():
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
y = np.array([ex.replace("right", "left").replace("top", "bottom") for ex in x])
|
12 |
|
13 |
data = np.array([x, y])
|
14 |
return data
|
|
|
4 |
|
5 |
|
6 |
def get_data_from_local():
|
7 |
+
left_or_top_data = [f"{BASE_PATH}/splits/left_or_top/{fn}" for fn in os.listdir(f"{BASE_PATH}/splits/left_or_top")]
|
8 |
+
|
9 |
+
x = np.array(left_or_top_data)
|
10 |
+
y = np.array([ex.replace("left_or_top", "right_or_bottom") for ex in x])
|
|
|
11 |
|
12 |
data = np.array([x, y])
|
13 |
return data
|