Spaces:
Runtime error
Runtime error
haotongl
commited on
Commit
·
3499517
1
Parent(s):
94c12b7
inital version
Browse files
app.py
CHANGED
@@ -18,9 +18,10 @@ import imageio
|
|
18 |
from promptda.promptda import PromptDA
|
19 |
from promptda.utils.io_wrapper import load_image, load_depth
|
20 |
from promptda.utils.depth_utils import visualize_depth, unproject_depth
|
21 |
-
import torch
|
22 |
-
DEVICE = 'cuda'
|
23 |
-
|
|
|
24 |
model = PromptDA.from_pretrained('depth-anything/promptda_vitl').to(DEVICE).eval()
|
25 |
thread_pool_executor = ThreadPoolExecutor(max_workers=1)
|
26 |
|
|
|
18 |
from promptda.promptda import PromptDA
|
19 |
from promptda.utils.io_wrapper import load_image, load_depth
|
20 |
from promptda.utils.depth_utils import visualize_depth, unproject_depth
|
21 |
+
# import torch
|
22 |
+
DEVICE = 'cuda'
|
23 |
+
# if torch.cuda.is_available(
|
24 |
+
# ) else 'mps' if torch.backends.mps.is_available() else 'cpu'
|
25 |
model = PromptDA.from_pretrained('depth-anything/promptda_vitl').to(DEVICE).eval()
|
26 |
thread_pool_executor = ThreadPoolExecutor(max_workers=1)
|
27 |
|