Spaces:
Runtime error
Runtime error
s194649
commited on
Commit
·
4731957
1
Parent(s):
430fde6
fix
Browse files- inference.py +2 -2
inference.py
CHANGED
@@ -170,8 +170,8 @@ class DepthPredictor:
|
|
170 |
cs = [(255,0,0),(0,255,0),(0,0,255)]
|
171 |
for c,(mask, _) in zip(cs, masks):
|
172 |
points, _ = PCL(mask, depth)
|
173 |
-
idxs = np.random.choice(len(points), int(n_samples))
|
174 |
-
points = points[idxs]
|
175 |
for point in points:
|
176 |
cube = o3d.geometry.TriangleMesh.create_box(width=cube_size, height=cube_size, depth=cube_size)
|
177 |
cube.translate(-point)
|
|
|
170 |
cs = [(255,0,0),(0,255,0),(0,0,255)]
|
171 |
for c,(mask, _) in zip(cs, masks):
|
172 |
points, _ = PCL(mask, depth)
|
173 |
+
#idxs = np.random.choice(len(points), int(n_samples))
|
174 |
+
#points = points[idxs]
|
175 |
for point in points:
|
176 |
cube = o3d.geometry.TriangleMesh.create_box(width=cube_size, height=cube_size, depth=cube_size)
|
177 |
cube.translate(-point)
|