flaviagiammarino
commited on
Commit
•
62750e5
1
Parent(s):
a3833bb
Update scripts/pt_model.py
Browse files- scripts/pt_model.py +1 -1
scripts/pt_model.py
CHANGED
@@ -4,7 +4,7 @@ from transformers.models.sam.convert_sam_original_to_hf_format import replace_ke
|
|
4 |
from segment_anything import sam_model_registry # pip install git+https://github.com/facebookresearch/segment-anything.git
|
5 |
|
6 |
# load the MedSAM ViT-B model
|
7 |
-
checkpoint = 'medsam_vit_b.pth' # https://drive.google.com/
|
8 |
pt_model = sam_model_registry['vit_b'](checkpoint)
|
9 |
pt_state_dict = pt_model.state_dict()
|
10 |
|
|
|
4 |
from segment_anything import sam_model_registry # pip install git+https://github.com/facebookresearch/segment-anything.git
|
5 |
|
6 |
# load the MedSAM ViT-B model
|
7 |
+
checkpoint = 'medsam_vit_b.pth' # https://drive.google.com/drive/folders/1ETWmi4AiniJeWOt6HAsYgTjYv_fkgzoN?usp=drive_link
|
8 |
pt_model = sam_model_registry['vit_b'](checkpoint)
|
9 |
pt_state_dict = pt_model.state_dict()
|
10 |
|