Spaces:
Runtime error
Runtime error
jens
commited on
Commit
·
a79f8a5
1
Parent(s):
3d6deea
larger cubes and webcam
Browse files- app.py +1 -1
- inference.py +1 -1
app.py
CHANGED
@@ -23,7 +23,7 @@ with block:
|
|
23 |
return []
|
24 |
def point_labels_empty():
|
25 |
return []
|
26 |
-
raw_image = gr.Image(type='pil', visible=False)
|
27 |
point_coords = gr.State(point_coords_empty)
|
28 |
point_labels = gr.State(point_labels_empty)
|
29 |
masks = gr.State([])
|
|
|
23 |
return []
|
24 |
def point_labels_empty():
|
25 |
return []
|
26 |
+
raw_image = gr.Image(type='pil', visible=False, source='webcam')
|
27 |
point_coords = gr.State(point_coords_empty)
|
28 |
point_labels = gr.State(point_labels_empty)
|
29 |
masks = gr.State([])
|
inference.py
CHANGED
@@ -82,7 +82,7 @@ class DepthPredictor:
|
|
82 |
mesh = o3d.geometry.TriangleMesh()
|
83 |
# Create cubes and add them to the mesh
|
84 |
for point, color in zip(point_cloud, color_array):
|
85 |
-
cube = o3d.geometry.TriangleMesh.create_box(width=0.
|
86 |
cube.translate(-point)
|
87 |
cube.paint_uniform_color(color)
|
88 |
mesh += cube
|
|
|
82 |
mesh = o3d.geometry.TriangleMesh()
|
83 |
# Create cubes and add them to the mesh
|
84 |
for point, color in zip(point_cloud, color_array):
|
85 |
+
cube = o3d.geometry.TriangleMesh.create_box(width=0.000001, height=0.000001, depth=0.000001)
|
86 |
cube.translate(-point)
|
87 |
cube.paint_uniform_color(color)
|
88 |
mesh += cube
|