chongzhou commited on
Commit
eafda84
·
1 Parent(s): e64f815

second try

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -73,9 +73,9 @@ OBJ_ID = 0
73
 
74
  sam2_checkpoint = "checkpoints/edgetam.pt"
75
  model_cfg = "edgetam.yaml"
76
- predictor = build_sam2_video_predictor(model_cfg, sam2_checkpoint, device="cuda")
77
- print("predictor loaded")
78
  predictor.to("cuda")
 
79
 
80
  # use bfloat16 for the entire demo
81
  torch.autocast(device_type="cuda", dtype=torch.bfloat16).__enter__()
 
73
 
74
  sam2_checkpoint = "checkpoints/edgetam.pt"
75
  model_cfg = "edgetam.yaml"
76
+ predictor = build_sam2_video_predictor(model_cfg, sam2_checkpoint, device="cpu")
 
77
  predictor.to("cuda")
78
+ print("predictor loaded")
79
 
80
  # use bfloat16 for the entire demo
81
  torch.autocast(device_type="cuda", dtype=torch.bfloat16).__enter__()