Initial commit1532
Browse files
app.py
CHANGED
@@ -113,8 +113,8 @@ load_training_status()
|
|
113 |
os.environ["TORCH_CUDNN_SDPA_ENABLED"] = "0"
|
114 |
|
115 |
# Initialize SAM Predictor
|
116 |
-
MODEL_CFG = r"
|
117 |
-
CHECKPOINT = r"
|
118 |
DEVICE = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
119 |
predictor = Predictor(MODEL_CFG, CHECKPOINT, DEVICE)
|
120 |
|
|
|
113 |
os.environ["TORCH_CUDNN_SDPA_ENABLED"] = "0"
|
114 |
|
115 |
# Initialize SAM Predictor
|
116 |
+
MODEL_CFG = r"project/sam2/sam2_hiera_l.yaml"
|
117 |
+
CHECKPOINT = r"project/sam2/sam2.1_hiera_large.pt"
|
118 |
DEVICE = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
119 |
predictor = Predictor(MODEL_CFG, CHECKPOINT, DEVICE)
|
120 |
|