Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -12,7 +12,7 @@ import json
|
|
| 12 |
from gradio_depth_pred import create_demo as create_depth_pred_demo
|
| 13 |
from gradio_im_to_3d import create_demo as create_im_to_3d_demo
|
| 14 |
|
| 15 |
-
model = torch.hub.load('isl-org/ZoeDepth', "ZoeD_N", pretrained=True).to(
|
| 16 |
|
| 17 |
#dpt_beit = pipeline(task = "depth-estimation", model="Intel/dpt-beit-base-384", device=0)
|
| 18 |
dpt_beit = pipeline(task = "depth-estimation", model="Intel/dpt-beit-large-512", device=0)
|
|
|
|
| 12 |
from gradio_depth_pred import create_demo as create_depth_pred_demo
|
| 13 |
from gradio_im_to_3d import create_demo as create_im_to_3d_demo
|
| 14 |
|
| 15 |
+
model = torch.hub.load('isl-org/ZoeDepth', "ZoeD_N", pretrained=True).to('cuda').eval()
|
| 16 |
|
| 17 |
#dpt_beit = pipeline(task = "depth-estimation", model="Intel/dpt-beit-base-384", device=0)
|
| 18 |
dpt_beit = pipeline(task = "depth-estimation", model="Intel/dpt-beit-large-512", device=0)
|