Binlaveloos commited on
Commit
50b9e7d
·
verified ·
1 Parent(s): 0dc8d34

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -12,8 +12,8 @@ import json
12
  dpt_beit = pipeline(task = "depth-estimation", model="Intel/dpt-beit-base-384", device=0)
13
  #dpt_beit = pipeline(task = "depth-estimation", model="Intel/dpt-beit-large-512", device=0)
14
 
15
- #depth_anything = pipeline(task = "depth-estimation", model="nielsr/depth-anything-small", device=0)
16
- depth_anything = pipeline(task = "depth-estimation", model="LiheYoung/depth-anything-large-hf", device=0)
17
 
18
  dpt_large = pipeline(task = "depth-estimation", model="intel/dpt-large", device=0)
19
 
@@ -61,10 +61,11 @@ with gr.Blocks(css=css) as demo:
61
  outputs = [output_1, output_2, output_3],
62
  fn=infer,
63
  cache_examples=True,
 
64
  label='Click on any Examples below to get depth estimation results quickly 👇'
65
  )
66
 
67
  input_img.change(infer, [input_img], [output_1, output_2, output_3])
68
 
69
 
70
- demo.launch(debug=True, share=True)
 
12
  dpt_beit = pipeline(task = "depth-estimation", model="Intel/dpt-beit-base-384", device=0)
13
  #dpt_beit = pipeline(task = "depth-estimation", model="Intel/dpt-beit-large-512", device=0)
14
 
15
+ depth_anything = pipeline(task = "depth-estimation", model="nielsr/depth-anything-small", device=0)
16
+ #depth_anything = pipeline(task = "depth-estimation", model="LiheYoung/depth-anything-large-hf", device=0)
17
 
18
  dpt_large = pipeline(task = "depth-estimation", model="intel/dpt-large", device=0)
19
 
 
61
  outputs = [output_1, output_2, output_3],
62
  fn=infer,
63
  cache_examples=True,
64
+ share=True
65
  label='Click on any Examples below to get depth estimation results quickly 👇'
66
  )
67
 
68
  input_img.change(infer, [input_img], [output_1, output_2, output_3])
69
 
70
 
71
+ demo.launch(debug=True)