gangweix commited on
Commit
2990299
·
verified ·
1 Parent(s): e479f16

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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(tmp_glb.name)
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), tmp_glb.name, download_files]
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