yyfz233 commited on
Commit
1463a37
·
1 Parent(s): bd15327

Update code for .ply file downloading

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -545,7 +545,7 @@ def update_visualization(
545
  write_ply(pcd[0], pcd[1]/255, path=plyfile)
546
  print(f'Saved .ply file to {plyfile}')
547
 
548
- return glbfile, "Updating Visualization"
549
 
550
 
551
  # -------------------------------------------------------------------------
@@ -902,7 +902,7 @@ if __name__ == '__main__':
902
  show_cam,
903
  is_example,
904
  ],
905
- [reconstruction_output, log_output],
906
  )
907
  frame_filter.change(
908
  update_visualization,
@@ -913,7 +913,7 @@ if __name__ == '__main__':
913
  show_cam,
914
  is_example,
915
  ],
916
- [reconstruction_output, log_output],
917
  )
918
 
919
  show_cam.change(
@@ -925,7 +925,7 @@ if __name__ == '__main__':
925
  show_cam,
926
  is_example,
927
  ],
928
- [reconstruction_output, log_output],
929
  )
930
 
931
  # -------------------------------------------------------------------------
 
545
  write_ply(pcd[0], pcd[1]/255, path=plyfile)
546
  print(f'Saved .ply file to {plyfile}')
547
 
548
+ return glbfile, plyfile, "Updating Visualization"
549
 
550
 
551
  # -------------------------------------------------------------------------
 
902
  show_cam,
903
  is_example,
904
  ],
905
+ [reconstruction_output, download_ply_output, log_output],
906
  )
907
  frame_filter.change(
908
  update_visualization,
 
913
  show_cam,
914
  is_example,
915
  ],
916
+ [reconstruction_output, download_ply_output, log_output],
917
  )
918
 
919
  show_cam.change(
 
925
  show_cam,
926
  is_example,
927
  ],
928
+ [reconstruction_output, download_ply_output, log_output],
929
  )
930
 
931
  # -------------------------------------------------------------------------