Akash Raj commited on
Commit
72e1e0f
1 Parent(s): bce227b
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -22,15 +22,15 @@ with gr.Blocks() as iface:
22
  gr.Markdown("# Multi-Model Depth Estimation\nUpload an image to get depth estimation maps from multiple models.")
23
 
24
  with gr.Row():
25
- input_image = gr.Image(type="pil", label="Input Image", height=400)
26
 
27
  with gr.Row():
28
  with gr.Column():
29
- output_base = gr.Image(type="pil", label="LiheYoung/depth-anything-base-hf", interactive=False, height=400, fit="contain")
30
- output_small = gr.Image(type="pil", label="LiheYoung/depth-anything-small-hf", interactive=False, height=400, fit="contain")
31
  with gr.Column():
32
- output_intel = gr.Image(type="pil", label="Intel/dpt-swinv2-tiny-256", interactive=False, height=400, fit="contain")
33
- output_beit = gr.Image(type="pil", label="Intel/dpt-beit-base-384", interactive=False, height=400, fit="contain")
34
 
35
  input_image.change(fn=estimate_depths, inputs=input_image, outputs=[output_base, output_small, output_intel, output_beit])
36
 
 
22
  gr.Markdown("# Multi-Model Depth Estimation\nUpload an image to get depth estimation maps from multiple models.")
23
 
24
  with gr.Row():
25
+ input_image = gr.Image(type="pil", label="Input Image", height=400, width=400)
26
 
27
  with gr.Row():
28
  with gr.Column():
29
+ output_base = gr.Image(type="pil", label="LiheYoung/depth-anything-base-hf", interactive=False, height=400, width=400)
30
+ output_small = gr.Image(type="pil", label="LiheYoung/depth-anything-small-hf", interactive=False, height=400, width=400)
31
  with gr.Column():
32
+ output_intel = gr.Image(type="pil", label="Intel/dpt-swinv2-tiny-256", interactive=False, height=400, width=400)
33
+ output_beit = gr.Image(type="pil", label="Intel/dpt-beit-base-384", interactive=False, height=400, width=400)
34
 
35
  input_image.change(fn=estimate_depths, inputs=input_image, outputs=[output_base, output_small, output_intel, output_beit])
36