Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -130,7 +130,7 @@ def main(share=True):
|
|
| 130 |
mesh = trimesh.PointCloud(vertices=vertices, colors=vertex_colors)
|
| 131 |
glb_path = os.path.join(out_dir, 'pointcloud.glb')
|
| 132 |
# tmp_glb = tempfile.NamedTemporaryFile(suffix='.glb', delete=False)
|
| 133 |
-
mesh.export(
|
| 134 |
|
| 135 |
|
| 136 |
# save raw depth (npy)
|
|
@@ -157,7 +157,7 @@ def main(share=True):
|
|
| 157 |
# download_files = [tmp_concat.name, tmp_raw_depth.name, tmp_ply.name]
|
| 158 |
download_files = [vis_path, raw_depth_path, pointcloud_path]
|
| 159 |
|
| 160 |
-
return [(image, colored_depth),
|
| 161 |
|
| 162 |
# return [(image, colored_depth), tmp_glb.name, tmp_concat.name, tmp_raw_depth.name, tmp_ply.name]
|
| 163 |
|
|
|
|
| 130 |
mesh = trimesh.PointCloud(vertices=vertices, colors=vertex_colors)
|
| 131 |
glb_path = os.path.join(out_dir, 'pointcloud.glb')
|
| 132 |
# tmp_glb = tempfile.NamedTemporaryFile(suffix='.glb', delete=False)
|
| 133 |
+
mesh.export(glb_path)
|
| 134 |
|
| 135 |
|
| 136 |
# save raw depth (npy)
|
|
|
|
| 157 |
# download_files = [tmp_concat.name, tmp_raw_depth.name, tmp_ply.name]
|
| 158 |
download_files = [vis_path, raw_depth_path, pointcloud_path]
|
| 159 |
|
| 160 |
+
return [(image, colored_depth), glb_path, download_files]
|
| 161 |
|
| 162 |
# return [(image, colored_depth), tmp_glb.name, tmp_concat.name, tmp_raw_depth.name, tmp_ply.name]
|
| 163 |
|