Spaces:
Running
on
Zero
Running
on
Zero
guangkaixu
commited on
Commit
·
bc0cf88
1
Parent(s):
a77a2cc
upload
Browse files
app.py
CHANGED
@@ -596,7 +596,7 @@ def run_demo_server(pipe_depth, pipe_normal, pipe_dis, pipe_matting, pipe_seg, p
|
|
596 |
# type="pil",
|
597 |
)
|
598 |
with gr.Row():
|
599 |
-
|
600 |
value="Estimate Disparity", variant="primary"
|
601 |
)
|
602 |
disparity_image_reset_btn = gr.Button(value="Reset")
|
@@ -657,14 +657,12 @@ def run_demo_server(pipe_depth, pipe_normal, pipe_dis, pipe_matting, pipe_seg, p
|
|
657 |
None,
|
658 |
None,
|
659 |
None,
|
660 |
-
default_image_processing_res,
|
661 |
),
|
662 |
inputs=[],
|
663 |
outputs=[
|
664 |
depth_image_input,
|
665 |
depth_image_output_slider,
|
666 |
depth_image_output_files,
|
667 |
-
default_image_processing_res,
|
668 |
],
|
669 |
queue=False,
|
670 |
)
|
@@ -689,14 +687,12 @@ def run_demo_server(pipe_depth, pipe_normal, pipe_dis, pipe_matting, pipe_seg, p
|
|
689 |
None,
|
690 |
None,
|
691 |
None,
|
692 |
-
default_image_processing_res,
|
693 |
),
|
694 |
inputs=[],
|
695 |
outputs=[
|
696 |
normal_image_input,
|
697 |
normal_image_output,
|
698 |
normal_image_output_files,
|
699 |
-
default_image_processing_res,
|
700 |
],
|
701 |
queue=False,
|
702 |
)
|
@@ -721,14 +717,12 @@ def run_demo_server(pipe_depth, pipe_normal, pipe_dis, pipe_matting, pipe_seg, p
|
|
721 |
None,
|
722 |
None,
|
723 |
None,
|
724 |
-
default_image_processing_res,
|
725 |
),
|
726 |
inputs=[],
|
727 |
outputs=[
|
728 |
dis_image_input,
|
729 |
dis_image_output,
|
730 |
dis_image_output_files,
|
731 |
-
default_image_processing_res,
|
732 |
],
|
733 |
queue=False,
|
734 |
)
|
@@ -753,14 +747,12 @@ def run_demo_server(pipe_depth, pipe_normal, pipe_dis, pipe_matting, pipe_seg, p
|
|
753 |
None,
|
754 |
None,
|
755 |
None,
|
756 |
-
default_image_processing_res,
|
757 |
),
|
758 |
inputs=[],
|
759 |
outputs=[
|
760 |
matting_image_input,
|
761 |
matting_image_output,
|
762 |
matting_image_output_files,
|
763 |
-
default_image_processing_res,
|
764 |
],
|
765 |
queue=False,
|
766 |
)
|
@@ -785,14 +777,12 @@ def run_demo_server(pipe_depth, pipe_normal, pipe_dis, pipe_matting, pipe_seg, p
|
|
785 |
None,
|
786 |
None,
|
787 |
None,
|
788 |
-
default_image_processing_res,
|
789 |
),
|
790 |
inputs=[],
|
791 |
outputs=[
|
792 |
seg_image_input,
|
793 |
seg_image_output_slider,
|
794 |
seg_image_output_files,
|
795 |
-
default_image_processing_res,
|
796 |
],
|
797 |
queue=False,
|
798 |
)
|
@@ -817,14 +807,12 @@ def run_demo_server(pipe_depth, pipe_normal, pipe_dis, pipe_matting, pipe_seg, p
|
|
817 |
None,
|
818 |
None,
|
819 |
None,
|
820 |
-
default_image_processing_res,
|
821 |
),
|
822 |
inputs=[],
|
823 |
outputs=[
|
824 |
disparity_image_input,
|
825 |
disparity_image_output_slider,
|
826 |
disparity_image_output_files,
|
827 |
-
default_image_processing_res,
|
828 |
],
|
829 |
queue=False,
|
830 |
)
|
|
|
596 |
# type="pil",
|
597 |
)
|
598 |
with gr.Row():
|
599 |
+
disparity_image_submit_btn = gr.Button(
|
600 |
value="Estimate Disparity", variant="primary"
|
601 |
)
|
602 |
disparity_image_reset_btn = gr.Button(value="Reset")
|
|
|
657 |
None,
|
658 |
None,
|
659 |
None,
|
|
|
660 |
),
|
661 |
inputs=[],
|
662 |
outputs=[
|
663 |
depth_image_input,
|
664 |
depth_image_output_slider,
|
665 |
depth_image_output_files,
|
|
|
666 |
],
|
667 |
queue=False,
|
668 |
)
|
|
|
687 |
None,
|
688 |
None,
|
689 |
None,
|
|
|
690 |
),
|
691 |
inputs=[],
|
692 |
outputs=[
|
693 |
normal_image_input,
|
694 |
normal_image_output,
|
695 |
normal_image_output_files,
|
|
|
696 |
],
|
697 |
queue=False,
|
698 |
)
|
|
|
717 |
None,
|
718 |
None,
|
719 |
None,
|
|
|
720 |
),
|
721 |
inputs=[],
|
722 |
outputs=[
|
723 |
dis_image_input,
|
724 |
dis_image_output,
|
725 |
dis_image_output_files,
|
|
|
726 |
],
|
727 |
queue=False,
|
728 |
)
|
|
|
747 |
None,
|
748 |
None,
|
749 |
None,
|
|
|
750 |
),
|
751 |
inputs=[],
|
752 |
outputs=[
|
753 |
matting_image_input,
|
754 |
matting_image_output,
|
755 |
matting_image_output_files,
|
|
|
756 |
],
|
757 |
queue=False,
|
758 |
)
|
|
|
777 |
None,
|
778 |
None,
|
779 |
None,
|
|
|
780 |
),
|
781 |
inputs=[],
|
782 |
outputs=[
|
783 |
seg_image_input,
|
784 |
seg_image_output_slider,
|
785 |
seg_image_output_files,
|
|
|
786 |
],
|
787 |
queue=False,
|
788 |
)
|
|
|
807 |
None,
|
808 |
None,
|
809 |
None,
|
|
|
810 |
),
|
811 |
inputs=[],
|
812 |
outputs=[
|
813 |
disparity_image_input,
|
814 |
disparity_image_output_slider,
|
815 |
disparity_image_output_files,
|
|
|
816 |
],
|
817 |
queue=False,
|
818 |
)
|