An analysis of computational-cell-analytics/micro-sam β assessing what it does, and what individuals or teams can realistically implement from it.
Authors: Anwai Archit, Paul Hilt, Genevieve Buckley, Constantin Pape
Published in: Nature Methods (2024)
Organization: Computational Cell Analytics Lab @ Uni GΓΆttingen
License: MIT β you can fork, modify, or build on top
micro-sam is a Python package and napari GUI plugin that adapts Meta's Segment Anything Model (SAM) to microscopy images. Instead of segmenting natural photos, it segments cells, mitochondria, synapses, and other biological structures β with just a few clicks.
trackastra)Requires Python β₯ 3.10, PyTorch β₯ 2.5, and a CUDA-capable GPU for best performance.
The full repo is a multi-year, multi-author research product. But many individual pieces are very doable. Here's a realistic breakdown:
peft-sam repo)
| Package | Purpose |
|---|---|
segment-anything | SAM model (Meta) |
torch / torchvision | Deep learning framework |
napari | Interactive image viewer GUI |
torch-em | Electron microscopy utilities |
trackastra | Cell tracking |
scikit-image | Image processing |
zarr / h5py | Large image I/O |
| Repo | Stars | Purpose |
|---|---|---|
| patho-sam | 67 β | SAM for histopathology |
| peft-sam | 35 β | LoRA/finetuning recipes for SAM |
| medico-sam | 31 β | SAM for medical imaging |
| synapse-net | 12 β | Synaptic structure reconstruction |
| dl-for-micro | 24 β | Deep learning for microscopy course |
Implement the whole repo? β NO β it's a multi-year, multi-author research product (697 stars, 105 forks, 36 sibling repos).
Implement an interactive SAM segmentation tool for your own microscopy images? β YES β very doable, possibly a weekend-to-weeks project depending on GUI polish.
Implement finetuning + automatic segmentation for a specific domain? β YES β straightforward and well-documented in their sibling repos.
π‘ Better path: Since it's MIT-licensed, consider using or extending micro-sam itself rather than reimplementing. The core value is in the finetuned checkpoints and domain-specific training recipes β not the GUI scaffolding.
If you use this repo in research, cite:
vit-tiny models: Mobile SAM