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