Spaces:
Running
Running
Updated paths
Browse files
app.py
CHANGED
@@ -86,8 +86,8 @@ load_training_status()
|
|
86 |
os.environ["TORCH_CUDNN_SDPA_ENABLED"] = "0"
|
87 |
|
88 |
# Initialize SAM Predictor
|
89 |
-
MODEL_CFG =
|
90 |
-
CHECKPOINT =
|
91 |
DEVICE = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
92 |
predictor = Predictor(MODEL_CFG, CHECKPOINT, DEVICE)
|
93 |
|
|
|
86 |
os.environ["TORCH_CUDNN_SDPA_ENABLED"] = "0"
|
87 |
|
88 |
# Initialize SAM Predictor
|
89 |
+
MODEL_CFG = "configs/sam2.1/sam2.1_hiera_l.yaml"
|
90 |
+
CHECKPOINT = "checkpoints/sam2.1_hiera_large.pt"
|
91 |
DEVICE = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
92 |
predictor = Predictor(MODEL_CFG, CHECKPOINT, DEVICE)
|
93 |
|