GonzaloMG commited on
Commit
5dc4767
1 Parent(s): f88edf5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +13 -17
app.py CHANGED
@@ -70,27 +70,23 @@ with gr.Blocks(css=css) as demo:
70
  gr.Markdown(description)
71
  gr.Markdown("### Depth and Normals Prediction demo")
72
 
73
- with gr.Row():
74
- input_image = gr.Image(label="Input Image", type='numpy', elem_id='img-display-input')
75
- processing_res_choice = gr.Radio(
76
- [
77
- ("Native", 0),
78
- ("Recommended", 768),
79
- ],
80
- label="Processing resolution",
81
- value=0,
82
- )
83
- model_choice = gr.Dropdown(
84
- list(models.keys()), label="Select Model", value=list(models.keys())[0]
85
- )
86
-
87
- submit = gr.Button(value="Compute Depth and Normals")
88
-
89
  with gr.Row():
90
  depth_image_slider = ImageSlider(label="Depth Map with Slider View", elem_id='img-display-output', position=0.5)
91
  normal_image_slider = ImageSlider(label="Normal Map with Slider View", elem_id='normal-display-output', position=0.5)
92
 
93
-
 
 
 
 
 
 
 
 
 
 
 
 
94
  colored_depth_file = gr.File(label="Colored Depth Image", elem_id="download")
95
  gray_depth_file = gr.File(label="Grayscale Depth Map", elem_id="download")
96
  raw_depth_file = gr.File(label="Raw Depth Data (.npy)", elem_id="download")
 
70
  gr.Markdown(description)
71
  gr.Markdown("### Depth and Normals Prediction demo")
72
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
73
  with gr.Row():
74
  depth_image_slider = ImageSlider(label="Depth Map with Slider View", elem_id='img-display-output', position=0.5)
75
  normal_image_slider = ImageSlider(label="Normal Map with Slider View", elem_id='normal-display-output', position=0.5)
76
 
77
+ with gr.Row():
78
+ input_image = gr.Image(label="Input Image", type='numpy', elem_id='img-display-input')
79
+ with gr.Column:
80
+ processing_res_choice = gr.Radio(
81
+ [
82
+ ("Native", 0),
83
+ ("Recommended", 768),
84
+ ],
85
+ label="Processing resolution",
86
+ value=0,
87
+ )
88
+ submit = gr.Button(value="Compute Depth and Normals")
89
+
90
  colored_depth_file = gr.File(label="Colored Depth Image", elem_id="download")
91
  gray_depth_file = gr.File(label="Grayscale Depth Map", elem_id="download")
92
  raw_depth_file = gr.File(label="Raw Depth Data (.npy)", elem_id="download")