second try
Browse files
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="
|
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__()
|