bmay commited on
Commit
b033d86
·
verified ·
1 Parent(s): b194803

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
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(device)
22
  depth_anything_model_name = "LiheYoung/depth-anything-large-hf"
23
- depth_anything_decoder, _ = prepare_depth_decoder(depth_anything_model_name, device)
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=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(