CharlieAmalet commited on
Commit
ea9a6b2
·
verified ·
1 Parent(s): de30a55

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -2,7 +2,7 @@ import torch
2
  torch.jit.script = lambda f: f
3
  from zoedepth.utils.misc import colorize, save_raw_16bit
4
  from zoedepth.utils.geometry import depth_to_points, create_triangles
5
- from diffusers import DiffusionPipeline
6
  import gradio as gr
7
  import spaces
8
 
@@ -31,7 +31,7 @@ DEVICE = 'cuda'
31
  model = torch.hub.load('isl-org/ZoeDepth', "ZoeD_N", pretrained=True).to("cpu").eval()
32
 
33
  CHECKPOINT = "prs-eth/marigold-v1-0"
34
- pipe = DiffusionPipeline.from_pretrained(CHECKPOINT)
35
 
36
  # ----------- Depth functions
37
  @spaces.GPU(enable_queue=True)
 
2
  torch.jit.script = lambda f: f
3
  from zoedepth.utils.misc import colorize, save_raw_16bit
4
  from zoedepth.utils.geometry import depth_to_points, create_triangles
5
+ from marigold_depth_estimation import MarigoldPipeline
6
  import gradio as gr
7
  import spaces
8
 
 
31
  model = torch.hub.load('isl-org/ZoeDepth', "ZoeD_N", pretrained=True).to("cpu").eval()
32
 
33
  CHECKPOINT = "prs-eth/marigold-v1-0"
34
+ pipe = MarigoldPipeline.from_pretrained(CHECKPOINT)
35
 
36
  # ----------- Depth functions
37
  @spaces.GPU(enable_queue=True)