micro-sam vit_b_medical_imaging
Medical imaging model (MedicoSAM), backbone ViT-B (good speed/quality trade-off). Trained for X-ray, CT, MRI and ultrasound data.
Unmodified mirror of a pretrained checkpoint from
micro-sam (Segment Anything for
Microscopy; code is MIT-licensed). Hashes match the model registry in micro_sam/util.py. The
license of the weights is not stated here; check the original sources below.
Files
model.pt— SAM checkpoint; original: https://owncloud.gwdg.de/index.php/s/f5Ol4FrjPQWfjUF/downloaddecoder.pt— the instance-segmentation decoder used for automatic instance segmentation (AIS); original: https://owncloud.gwdg.de/index.php/s/ahd3ZhZl2e0RIwz/download
Usage
vit_b_medical_imaging is one of micro-sam's built-in model_type names, so it is normally downloaded
automatically:
from micro_sam.util import get_sam_model
predictor = get_sam_model(model_type="vit_b_medical_imaging")
To use this mirror instead, download model.pt and pass it as checkpoint_path
(get_sam_model(model_type="vit_b_medical_imaging", checkpoint_path="model.pt")). The library has submodules for
prompt_based_segmentation (2D/3D), instance_segmentation (automatic), training (finetuning) and
evaluation; see the documentation.
Recommended model sizes: vit_l or vit_b give the best trade-off between speed and quality; the authors report no advantage of vit_h, and vit_t is much faster but lower quality for many applications.
Training notes
The paper and its supplement do not cover this model; see the micro-sam documentation.
Citation
Please cite the micro-sam paper (Nature Methods) and the original Segment Anything publication if you use these weights.