ZiyuG commited on
Commit
4643822
1 Parent(s): 562fa4c

Update sam2point/dataset.py

Browse files
Files changed (1) hide show
  1. sam2point/dataset.py +0 -18
sam2point/dataset.py CHANGED
@@ -37,19 +37,6 @@ def load_KITTI_sample(data_path, close=False):
37
  point = point - pmin
38
  pmax = point.max(axis=0)
39
  point = point / pmax
40
-
41
- # if close:
42
- # x_min, x_max = 0.3, 0.7
43
- # y_min, y_max = 0.3, 0.8
44
-
45
- # filter_mask = (point[:, 0] > x_min) & (point[:, 0] < x_max) & (point[:, 1] > y_min) & (point[:, 1] < y_max)
46
- # point = point[filter_mask]
47
- # color = color[filter_mask]
48
-
49
- # pmin = point.min(axis=0)
50
- # point = point - pmin
51
- # pmax = point.max(axis=0)
52
- # point = point / pmax
53
 
54
  return point, color
55
 
@@ -90,9 +77,4 @@ def load_Semantic3D_sample(data_path, id, sample=False):
90
  pmax = point.max(axis=0)
91
  point = point / pmax
92
 
93
- # if sample: #for demo
94
- # indices = np.random.choice(point.shape[0], 600000, replace=False)
95
- # point = point[indices]
96
- # color = color[indices]
97
-
98
  return point, color
 
37
  point = point - pmin
38
  pmax = point.max(axis=0)
39
  point = point / pmax
 
 
 
 
 
 
 
 
 
 
 
 
 
40
 
41
  return point, color
42
 
 
77
  pmax = point.max(axis=0)
78
  point = point / pmax
79
 
 
 
 
 
 
80
  return point, color