Skip to content

Commit 0e19472

Browse files
Merge pull request #143 from computational-cell-analytics/new-models
Add links for new finetuned models
2 parents 2ed78f4 + 43ce637 commit 0e19472

File tree

1 file changed

+12
-10
lines changed

1 file changed

+12
-10
lines changed

micro_sam/util.py

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -29,25 +29,27 @@
2929
from tqdm import tqdm
3030

3131
_MODEL_URLS = {
32+
# the default segment anything models
3233
"vit_h": "https://dl.fbaipublicfiles.com/segment_anything/sam_vit_h_4b8939.pth",
3334
"vit_l": "https://dl.fbaipublicfiles.com/segment_anything/sam_vit_l_0b3195.pth",
3435
"vit_b": "https://dl.fbaipublicfiles.com/segment_anything/sam_vit_b_01ec64.pth",
35-
# preliminary finetuned models
36-
"vit_h_lm": "https://owncloud.gwdg.de/index.php/s/CnxBvsdGPN0TD3A/download",
37-
"vit_b_lm": "https://owncloud.gwdg.de/index.php/s/gGlR1LFsav0eQ2k/download",
38-
"vit_h_em": "https://owncloud.gwdg.de/index.php/s/VcHoLC6AM0CrRpM/download",
39-
"vit_b_em": "https://owncloud.gwdg.de/index.php/s/BWupWhG1HRflI97/download",
36+
# first version of finetuned models on zenodo
37+
"vit_h_lm": "https://zenodo.org/record/8250299/files/vit_h_lm.pth?download=1",
38+
"vit_b_lm": "https://zenodo.org/record/8250281/files/vit_b_lm.pth?download=1",
39+
"vit_h_em": "https://zenodo.org/record/8250291/files/vit_h_em.pth?download=1",
40+
"vit_b_em": "https://zenodo.org/record/8250260/files/vit_b_em.pth?download=1",
4041
}
4142
_CHECKPOINT_FOLDER = os.environ.get("SAM_MODELS", os.path.expanduser("~/.sam_models"))
4243
_CHECKSUMS = {
44+
# the default segment anything models
4345
"vit_h": "a7bf3b02f3ebf1267aba913ff637d9a2d5c33d3173bb679e46d9f338c26f262e",
4446
"vit_l": "3adcc4315b642a4d2101128f611684e8734c41232a17c648ed1693702a49a622",
4547
"vit_b": "ec2df62732614e57411cdcf32a23ffdf28910380d03139ee0f4fcbe91eb8c912",
46-
# preliminary finetuned models
47-
"vit_h_lm": "c30a580e6ccaff2f4f0fbaf9cad10cee615a915cdd8c7bc4cb50ea9bdba3fc09",
48-
"vit_b_lm": "f862febddb1c43ebe8263c42ed71e4fb281adf14a8ba83b7a5b0574bf0613ec6",
49-
"vit_h_em": "652f70acad89ab855502bc10965e7d0baf7ef5f38fef063dd74f1787061d3919",
50-
"vit_b_em": "9eb783e538bb287c7086f825f1e1dc5d5681bd116541a0b98cab85f1e7f4dd62",
48+
# first version of finetuned models on zenodo
49+
"vit_h_lm": "9a65ee0cddc05a98d60469a12a058859c89dc3ea3ba39fed9b90d786253fbf26",
50+
"vit_b_lm": "5a59cc4064092d54cd4d92cd967e39168f3760905431e868e474d60fe5464ecd",
51+
"vit_h_em": "ae3798a0646c8df1d4db147998a2d37e402ff57d3aa4e571792fbb911d8a979c",
52+
"vit_b_em": "c04a714a4e14a110f0eec055a65f7409d54e6bf733164d2933a0ce556f7d6f81",
5153
}
5254
# this is required so that the downloaded file is not called 'download'
5355
_DOWNLOAD_NAMES = {

0 commit comments

Comments
 (0)