JUGGHM commited on
Commit
1e9ca29
1 Parent(s): eb8156a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -4
app.py CHANGED
@@ -33,8 +33,8 @@ from mono.utils.transform import gray_to_colormap
33
  from mono.utils.visualization import vis_surface_normal
34
  import gradio as gr
35
 
36
- torch.hub.download_url_to_file('https://images.unsplash.com/photo-1437622368342-7a3d73a34c8f', 'turtle.jpg')
37
- torch.hub.download_url_to_file('https://images.unsplash.com/photo-1519066629447-267fffa62d4b', 'lions.jpg')
38
 
39
  cfg_large = Config.fromfile('./mono/configs/HourglassDecoder/vit.raft5.large.py')
40
  model_large = get_configured_monodepth_model(cfg_large, )
@@ -105,8 +105,13 @@ description = "Gradio demo for Metric3D v1/v2 which takes in a single image for
105
  article = "<p style='text-align: center'><a href='https://arxiv.org/pdf/2307.10984.pdf'>Metric3D: Towards Zero-shot Metric 3D Prediction from A Single Image</a> | <a href='https://github.com/YvanYin/Metric3D'>Github Repo</a></p>"
106
 
107
  examples = [
108
- ["turtle.jpg"],
109
- ["lions.jpg"]
 
 
 
 
 
110
  ]
111
 
112
  gr.Interface(
 
33
  from mono.utils.visualization import vis_surface_normal
34
  import gradio as gr
35
 
36
+ #torch.hub.download_url_to_file('https://images.unsplash.com/photo-1437622368342-7a3d73a34c8f', 'turtle.jpg')
37
+ #torch.hub.download_url_to_file('https://images.unsplash.com/photo-1519066629447-267fffa62d4b', 'lions.jpg')
38
 
39
  cfg_large = Config.fromfile('./mono/configs/HourglassDecoder/vit.raft5.large.py')
40
  model_large = get_configured_monodepth_model(cfg_large, )
 
105
  article = "<p style='text-align: center'><a href='https://arxiv.org/pdf/2307.10984.pdf'>Metric3D: Towards Zero-shot Metric 3D Prediction from A Single Image</a> | <a href='https://github.com/YvanYin/Metric3D'>Github Repo</a></p>"
106
 
107
  examples = [
108
+ #["turtle.jpg"],
109
+ #["lions.jpg"]
110
+ ["gundam.jpg"],
111
+ ["museum.jpg"],
112
+ ["terra.jpg"],
113
+ ["underwater.jpg"],
114
+ ["venue.jpg"]
115
  ]
116
 
117
  gr.Interface(