vmoras commited on
Commit
9894b14
1 Parent(s): 28bb343

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -9,9 +9,9 @@ from huggingface_hub import hf_hub_download
9
  from segment_anything import SamPredictor, sam_model_registry
10
 
11
 
12
- hf_hub_download(repo_id="vmoras/sam_api", filename="sam_vit_h.pth", token=os.environ.get('model_token'), local_dir="./")
13
 
14
- sam_checkpoint = "sam_vit_h.pth"
15
  model_type = "vit_h"
16
  device = 'cuda' if torch.cuda.is_available() else 'cpu'
17
 
 
9
  from segment_anything import SamPredictor, sam_model_registry
10
 
11
 
12
+ #hf_hub_download(repo_id="vmoras/sam_api", filename="sam_vit_h.pth", token=os.environ.get('model_token'), local_dir="./")
13
 
14
+ sam_checkpoint = "sam_vit_h_0.pth"
15
  model_type = "vit_h"
16
  device = 'cuda' if torch.cuda.is_available() else 'cpu'
17