Spaces:
Runtime error
Runtime error
jens
commited on
Commit
·
38b2f3b
1
Parent(s):
c1b1bf8
fix
Browse files- inference.py +1 -1
inference.py
CHANGED
@@ -74,7 +74,7 @@ class DepthPredictor:
|
|
74 |
# Step 1: Create a point cloud
|
75 |
point_cloud, color_array = self.generate_pcl(image)
|
76 |
# sample 1000 points
|
77 |
-
idxs = np.random.choice(len(point_cloud),
|
78 |
point_cloud = point_cloud[idxs]
|
79 |
color_array = color_array[idxs]
|
80 |
# Create a mesh to hold the colored cubes
|
|
|
74 |
# Step 1: Create a point cloud
|
75 |
point_cloud, color_array = self.generate_pcl(image)
|
76 |
# sample 1000 points
|
77 |
+
idxs = np.random.choice(len(point_cloud), int(1e6))
|
78 |
point_cloud = point_cloud[idxs]
|
79 |
color_array = color_array[idxs]
|
80 |
# Create a mesh to hold the colored cubes
|