tyriaa commited on
Commit
d617907
·
1 Parent(s): 7d98737

Initial commit153

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"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
 
 
113
  os.environ["TORCH_CUDNN_SDPA_ENABLED"] = "0"
114
 
115
  # Initialize SAM Predictor
116
+ MODEL_CFG = r"https://huggingface.co/spaces/tyriaa/project/blob/main/sam2/sam2_hiera_l.yaml"
117
+ CHECKPOINT = r"https://huggingface.co/spaces/tyriaa/project/blob/main/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