Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
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
|
| 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 =
|
| 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)
|