tyriaa commited on
Commit
88b4248
·
1 Parent(s): a79e15b

Initialisation 000200

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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"C:\codes\sam2\segment-anything-2\sam2\configs\sam2.1\sam2.1_hiera_l.yaml"
117
- CHECKPOINT = r"C:\codes\sam2\segment-anything-2\checkpoints\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
 
 
113
  os.environ["TORCH_CUDNN_SDPA_ENABLED"] = "0"
114
 
115
  # Initialize SAM Predictor
116
+ MODEL_CFG = r"sam2/sam2_hiera_l.yaml"
117
+ CHECKPOINT = r"sam2/checkpoints/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