gangweix commited on
Commit
7020001
·
verified ·
1 Parent(s): 91d2c6d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -123,11 +123,11 @@ def main(share=True):
123
  shutil.rmtree(output_path, ignore_errors=True)
124
  output_path.mkdir(exist_ok=True, parents=True)
125
 
126
- pointcloud_path = os.path.join(out_dir, 'pointcloud.ply')
127
 
128
  # save pcd to temporary .ply
129
- tmp_ply = tempfile.NamedTemporaryFile(suffix='.ply', delete=False)
130
- o3d.io.write_point_cloud(pointcloud_path, pcd)
131
 
132
  vertices = np.asarray(pcd.points)
133
  vertex_colors = (np.asarray(pcd.colors) * 255).astype(np.uint8)
 
123
  shutil.rmtree(output_path, ignore_errors=True)
124
  output_path.mkdir(exist_ok=True, parents=True)
125
 
126
+ ply_path = os.path.join(output_path, 'pointcloud.ply')
127
 
128
  # save pcd to temporary .ply
129
+ # tmp_ply = tempfile.NamedTemporaryFile(suffix='.ply', delete=False)
130
+ o3d.io.write_point_cloud(ply_path, pcd)
131
 
132
  vertices = np.asarray(pcd.points)
133
  vertex_colors = (np.asarray(pcd.colors) * 255).astype(np.uint8)