Spaces:
Runtime error
Runtime error
RamAnanth1
commited on
Commit
•
a36a6fa
1
Parent(s):
529cac2
Update app.py
Browse files
app.py
CHANGED
@@ -14,9 +14,9 @@ DEVICE = "cuda" if torch.cuda.is_available() else "cpu"
|
|
14 |
zoe = model_zoe_n.to(DEVICE)
|
15 |
|
16 |
def process_image(image):
|
17 |
-
|
18 |
-
|
19 |
-
colored_depth = colorize(
|
20 |
|
21 |
return colored_depth
|
22 |
|
|
|
14 |
zoe = model_zoe_n.to(DEVICE)
|
15 |
|
16 |
def process_image(image):
|
17 |
+
depth = zoe.infer_pil(image) # as numpy
|
18 |
+
|
19 |
+
colored_depth = colorize(depth)
|
20 |
|
21 |
return colored_depth
|
22 |
|