brunorosilva commited on
Commit
41e1e17
1 Parent(s): 4f82987

single folder training

Browse files
Files changed (1) hide show
  1. makeitsports_bot/data/data.py +4 -5
makeitsports_bot/data/data.py CHANGED
@@ -4,11 +4,10 @@ import numpy as np
4
 
5
 
6
  def get_data_from_local():
7
- right_data = [f"{BASE_PATH}/right/{fn}" for fn in os.listdir(f"{BASE_PATH}/right")]
8
- top_data = [f"{BASE_PATH}/top/{fn}" for fn in os.listdir(f"{BASE_PATH}/top")]
9
-
10
- x = np.array(right_data + top_data)
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