Skip to content

Commit a47f2f2

Browse files
authored
Add medical imaging models to model registry (#841)
1 parent c5f70e0 commit a47f2f2

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

micro_sam/sam_annotator/_widgets.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -926,6 +926,9 @@ def _create_model_section(self):
926926
# Filter out the decoders from the model list.
927927
self.model_options = [model for model in self.model_options if not model.endswith("decoder")]
928928

929+
# NOTE: We currently remove the medical imaging model from displaying it as an option.
930+
self.model_options = [model for model in self.model_options if not model.endswith("medical_imaging")]
931+
929932
layout = QtWidgets.QVBoxLayout()
930933
self.model_dropdown, layout = self._add_choice_param(
931934
"model_type", self.model_type, self.model_options, title="Model:", layout=layout,

micro_sam/util.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,8 @@ def models():
116116
"vit_b_histopathology": "xxh128:ffd1a2cd84570458b257bd95fdd8f974",
117117
"vit_l_histopathology": "xxh128:b591833c89754271023e901281dee3f2",
118118
"vit_h_histopathology": "xxh128:bd1856dafc156a43fb3aa705f1a6e92e",
119+
# Medical Imaging models:
120+
"vit_b_medical_imaging": "xxh128:5be672f1458263a9edc9fd40d7f56ac1",
119121
}
120122
# Additional decoders for instance segmentation.
121123
decoder_registry = {
@@ -148,6 +150,7 @@ def models():
148150
"vit_b_histopathology": "https://owncloud.gwdg.de/index.php/s/sBB4H8CTmIoBZsQ/download",
149151
"vit_l_histopathology": "https://owncloud.gwdg.de/index.php/s/IZgnn1cpBq2PHod/download",
150152
"vit_h_histopathology": "https://owncloud.gwdg.de/index.php/s/L7AcvVz7DoWJ2RZ/download",
153+
"vit_b_medical_imaging": "https://owncloud.gwdg.de/index.php/s/AB69HGhj8wuozXQ/download",
151154
}
152155

153156
decoder_urls = {

0 commit comments

Comments
 (0)