kyleleey commited on
Commit
a152ea8
1 Parent(s): 66e5160
Files changed (2) hide show
  1. app.py +6 -6
  2. requirements.txt +1 -1
app.py CHANGED
@@ -626,7 +626,7 @@ def run_demo():
626
  examples_per_page=30
627
  )
628
  with gr.Column(scale=1):
629
- processed_image = gr.Image(type='pil', label="Processed Image", interactive=False, width="auto", image_mode='RGB', elem_id="disp_image")
630
  processed_image_highres = gr.Image(type='pil', image_mode='RGB', visible=False)
631
 
632
  with gr.Accordion('Advanced options', open=True):
@@ -652,8 +652,8 @@ def run_demo():
652
  # crop_size = 192
653
  run_btn = gr.Button('Reconstruct', variant='primary', interactive=True)
654
  with gr.Row():
655
- view_1 = gr.Image(label="Input View Reconstruction", interactive=False, width="auto", show_label=True)
656
- view_2 = gr.Image(label="Input View Reconstruction with Skeleton", interactive=False, width="auto", show_label=True)
657
  with gr.Row():
658
  shape_1 = gr.Model3D(clear_color=[0.0, 0.0, 0.0, 0.0], height=512, label="Reconstructed Shape")
659
  shape_2 = gr.Model3D(clear_color=[0.0, 0.0, 0.0, 0.0], height=512, label="Reconstructed Base Shape")
@@ -670,9 +670,9 @@ def run_demo():
670
  inputs=[processed_image],
671
  outputs=[view_1, view_2, shape_1, shape_1_download, shape_2, shape_2_download]
672
  )
673
- demo.queue().launch(share=True, max_threads=80)
674
- # _, local_url, share_url = demo.queue().launch(share=True, server_name="0.0.0.0", server_port=23425)
675
- # print('local_url: ', local_url)
676
 
677
 
678
  if __name__ == '__main__':
 
626
  examples_per_page=30
627
  )
628
  with gr.Column(scale=1):
629
+ processed_image = gr.Image(type='pil', label="Processed Image", interactive=False, height=256, image_mode='RGB', elem_id="disp_image")
630
  processed_image_highres = gr.Image(type='pil', image_mode='RGB', visible=False)
631
 
632
  with gr.Accordion('Advanced options', open=True):
 
652
  # crop_size = 192
653
  run_btn = gr.Button('Reconstruct', variant='primary', interactive=True)
654
  with gr.Row():
655
+ view_1 = gr.Image(label="Input View Reconstruction", interactive=False, height=256, show_label=True)
656
+ view_2 = gr.Image(label="Input View Reconstruction with Skeleton", interactive=False, height=256, show_label=True)
657
  with gr.Row():
658
  shape_1 = gr.Model3D(clear_color=[0.0, 0.0, 0.0, 0.0], height=512, label="Reconstructed Shape")
659
  shape_2 = gr.Model3D(clear_color=[0.0, 0.0, 0.0, 0.0], height=512, label="Reconstructed Base Shape")
 
670
  inputs=[processed_image],
671
  outputs=[view_1, view_2, shape_1, shape_1_download, shape_2, shape_2_download]
672
  )
673
+ # demo.queue().launch(share=True, max_threads=80)
674
+ _, local_url, share_url = demo.queue().launch(share=True, server_name="0.0.0.0", server_port=23425)
675
+ print('local_url: ', local_url)
676
 
677
 
678
  if __name__ == '__main__':
requirements.txt CHANGED
@@ -5,7 +5,7 @@ ConfigArgParse==1.5.3
5
  einops==0.4.1
6
  fire==0.5.0
7
  glfw==2.5.7
8
- gradio==4.12.0
9
  imageio==2.27.0
10
  ipdb==0.13.9
11
  lpips==0.1.4
 
5
  einops==0.4.1
6
  fire==0.5.0
7
  glfw==2.5.7
8
+ gradio==3.50.2
9
  imageio==2.27.0
10
  ipdb==0.13.9
11
  lpips==0.1.4