Views
No views yet
cpsam).1from huggingface_hub import hf_hub_download
2from cellpose import models
3
4# Download the fine-tuned weights from this repo
5weights = hf_hub_download(repo_id="TeamPrigge/bluespotter-lc", filename="bluespotter_lc")
6
7# Load exactly like the base Cellpose-SAM model, but with these weights
8model = models.CellposeModel(gpu=True, pretrained_model=weights)
9
10# Segment — masks is a label image; masks.max() == number of neurons found
11masks, flows, styles = model.eval(image)
12n_neurons = int(masks.max())src/bluespotter/viz.py),
so masks here are directly comparable to the validation overlays produced during training.params.yaml and docs/SETUP.md in the
code repository.License note:cc-by-nc-4.0is a placeholder default for non-commercial research sharing — confirm or change it before publishing.