Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -18,9 +18,9 @@ def run_theia(image):
|
|
18 |
]
|
19 |
feature_means, feature_vars = load_feature_stats(target_model_names, stat_file_root="feature_stats")
|
20 |
|
21 |
-
mask_generator, sam_model = prepare_mask_generator(
|
22 |
depth_anything_model_name = "LiheYoung/depth-anything-large-hf"
|
23 |
-
depth_anything_decoder, _ = prepare_depth_decoder(depth_anything_model_name,
|
24 |
|
25 |
images = [image]
|
26 |
|
@@ -35,7 +35,7 @@ def run_theia(image):
|
|
35 |
pred_iou_thresh=0.5,
|
36 |
stability_score_thresh=0.7,
|
37 |
gt=True,
|
38 |
-
device=
|
39 |
)
|
40 |
|
41 |
vis_video = np.stack(
|
|
|
18 |
]
|
19 |
feature_means, feature_vars = load_feature_stats(target_model_names, stat_file_root="feature_stats")
|
20 |
|
21 |
+
mask_generator, sam_model = prepare_mask_generator('cuda')
|
22 |
depth_anything_model_name = "LiheYoung/depth-anything-large-hf"
|
23 |
+
depth_anything_decoder, _ = prepare_depth_decoder(depth_anything_model_name, 'cuda')
|
24 |
|
25 |
images = [image]
|
26 |
|
|
|
35 |
pred_iou_thresh=0.5,
|
36 |
stability_score_thresh=0.7,
|
37 |
gt=True,
|
38 |
+
device='cuda',
|
39 |
)
|
40 |
|
41 |
vis_video = np.stack(
|