Skip to content

Commit fc50332

Browse files
committed
Update model checksums and paths
1 parent 035103a commit fc50332

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

micro_sam/sam_annotator/_state.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ def progress_bar_factory(model_type):
116116
checkpoint_path=checkpoint_path, return_state=True,
117117
progress_bar_factory=None if use_cli else progress_bar_factory,
118118
)
119-
if prefer_decoder and "decoder_state" in state:
119+
if prefer_decoder and "decoder_state" in state and model_type != "vit_b_medical_imaging":
120120
self.decoder = get_decoder(
121121
image_encoder=self.predictor.model.image_encoder,
122122
decoder_state=state["decoder_state"],

micro_sam/util.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ def models():
117117
"vit_l_histopathology": "xxh128:b591833c89754271023e901281dee3f2",
118118
"vit_h_histopathology": "xxh128:bd1856dafc156a43fb3aa705f1a6e92e",
119119
# Medical Imaging models:
120-
"vit_b_medical_imaging": "xxh128:dc7364c9ccd346f1b6a882102568d41d",
120+
"vit_b_medical_imaging": "xxh128:40169f1e3c03a4b67bff58249c176d92",
121121
}
122122
# Additional decoders for instance segmentation.
123123
decoder_registry = {
@@ -134,7 +134,7 @@ def models():
134134
"vit_l_histopathology_decoder": "xxh128:46aab7765d4400e039772d5a50b55c04",
135135
"vit_h_histopathology_decoder": "xxh128:3ed9f87e46ad5e16935bd8d722c8dc47",
136136
# Medical Imaging models:
137-
"vit_b_medical_imaging_decoder": "xxh128:c08d3ada20e2314ed54b50975f49e71e",
137+
"vit_b_medical_imaging_decoder": "xxh128:9e498b12f526f119b96c88be76e3b2ed",
138138
}
139139
registry = {**encoder_registry, **decoder_registry}
140140

@@ -152,7 +152,7 @@ def models():
152152
"vit_b_histopathology": "https://owncloud.gwdg.de/index.php/s/sBB4H8CTmIoBZsQ/download",
153153
"vit_l_histopathology": "https://owncloud.gwdg.de/index.php/s/IZgnn1cpBq2PHod/download",
154154
"vit_h_histopathology": "https://owncloud.gwdg.de/index.php/s/L7AcvVz7DoWJ2RZ/download",
155-
"vit_b_medical_imaging": "https://owncloud.gwdg.de/index.php/s/Dvyg80HT7vZrwLr/download",
155+
"vit_b_medical_imaging": "https://owncloud.gwdg.de/index.php/s/f5Ol4FrjPQWfjUF/download",
156156
}
157157

158158
decoder_urls = {
@@ -165,7 +165,7 @@ def models():
165165
"vit_b_histopathology_decoder": "https://owncloud.gwdg.de/index.php/s/KO9AWqynI7SFOBj/download",
166166
"vit_l_histopathology_decoder": "https://owncloud.gwdg.de/index.php/s/oIs6VSmkOp7XrKF/download",
167167
"vit_h_histopathology_decoder": "https://owncloud.gwdg.de/index.php/s/1qAKxy5H0jgwZvM/download",
168-
"vit_b_medical_imaging_decoder": "https://owncloud.gwdg.de/index.php/s/JHEJDdppVka8rbm/download",
168+
"vit_b_medical_imaging_decoder": "https://owncloud.gwdg.de/index.php/s/ahd3ZhZl2e0RIwz/download",
169169
}
170170
urls = {**encoder_urls, **decoder_urls}
171171

0 commit comments

Comments
 (0)