kxhit commited on
Commit
0e0b8fc
1 Parent(s): 1c9ecbd

return none

Browse files
Files changed (1) hide show
  1. app.py +3 -7
app.py CHANGED
@@ -489,8 +489,7 @@ def get_reconstructed_scene(filelist, schedule, niter, min_conf_thr,
489
  outfile = get_3D_model_from_scene(outdir, silent, scene, min_conf_thr, as_pointcloud, mask_sky,
490
  clean_depth, transparent_cams, cam_size, same_focals=same_focals)
491
 
492
- # return scene, outfile, imgs, eschernet_input
493
- return
494
 
495
 
496
  def set_scenegraph_options(inputfiles, winsize, refid, scenegraph_type):
@@ -585,8 +584,6 @@ _CITE_ = r"""
585
 
586
  with gr.Blocks() as demo:
587
  gr.Markdown(_HEADER_)
588
- # mv_images = gr.State()
589
- scene = gr.State(None)
590
  eschernet_input = gr.State(None)
591
  with gr.Row(variant="panel"):
592
  # left column
@@ -732,7 +729,7 @@ with gr.Blocks() as demo:
732
  # inputs=[input_image, schedule, niter, min_conf_thr, as_pointcloud,
733
  # mask_sky, clean_depth, transparent_cams, cam_size,
734
  # scenegraph_type, winsize, refid, same_focals],
735
- # outputs=[scene, outmodel, processed_image, eschernet_input])
736
 
737
  # events
738
  input_image.change(set_scenegraph_options,
@@ -742,8 +739,7 @@ with gr.Blocks() as demo:
742
  inputs=[input_image, schedule, niter, min_conf_thr, as_pointcloud,
743
  mask_sky, clean_depth, transparent_cams, cam_size,
744
  scenegraph_type, winsize, refid, same_focals],
745
- # outputs=[scene, outmodel, processed_image, eschernet_input])
746
- outputs = [])
747
 
748
 
749
  # events
 
489
  outfile = get_3D_model_from_scene(outdir, silent, scene, min_conf_thr, as_pointcloud, mask_sky,
490
  clean_depth, transparent_cams, cam_size, same_focals=same_focals)
491
 
492
+ return outfile, imgs, eschernet_input
 
493
 
494
 
495
  def set_scenegraph_options(inputfiles, winsize, refid, scenegraph_type):
 
584
 
585
  with gr.Blocks() as demo:
586
  gr.Markdown(_HEADER_)
 
 
587
  eschernet_input = gr.State(None)
588
  with gr.Row(variant="panel"):
589
  # left column
 
729
  # inputs=[input_image, schedule, niter, min_conf_thr, as_pointcloud,
730
  # mask_sky, clean_depth, transparent_cams, cam_size,
731
  # scenegraph_type, winsize, refid, same_focals],
732
+ # outputs=[outmodel, processed_image, eschernet_input])
733
 
734
  # events
735
  input_image.change(set_scenegraph_options,
 
739
  inputs=[input_image, schedule, niter, min_conf_thr, as_pointcloud,
740
  mask_sky, clean_depth, transparent_cams, cam_size,
741
  scenegraph_type, winsize, refid, same_focals],
742
+ outputs=[outmodel, processed_image, eschernet_input])
 
743
 
744
 
745
  # events