CellSAM3
CellSAM3 is Meta's Segment Anything Model 3.1 (SAM 3.1) fine-tuned by the Van Valen Lab (Caltech) for generalist 2D cell segmentation, video cell tracking, and cell division lineage reconstruction across cellular targets (mammalian tissue, cell culture, bacteria, yeast, organoids) and microscopy modalities (brightfield, phase contrast, DIC, fluorescence, multiplexed imaging).
Model Files & Checksums
| File | Size | SHA-256 | Role |
|---|---|---|---|
cellsam3.pt |
3.49 GB (3,489,197,981 B) |
19d3c28048dccd13d07310a2787ca41bdfce273bb13800df0ee9627773333fb6 |
2D Cell Segmentation Model: primary 55-dataset CellSAM 3.1 detector (SAM 3.1 Tri neck, 1024 queries) |
cellsam3_video.pt |
3.50 GB (3,503,736,459 B) |
e7806c3acd3a7533250f6d35ea06d3abe43cc2c2cd5263c7781c667218e994bc |
Video Tracking + Detection Model: the cell detector and the fine-tuned SAM 3.1 multiplex tracker in one file (no separate sam3.1_multiplex.pt required) |
cellsam3_lineage.pt |
107 MB (107,213,749 B) |
ca841e1570b57c9309c807652f09c7654acc884af4bfaea31302e4f274febaf7 |
Cell Division Lineage Ensemble: 15-member ensemble (5 folds x 3 seeds) for assigning parent tracks at cell divisions (params_key="a33373fa51cb") |
SAM_LICENSE.txt |
7.4 KB | - | Verbatim copy of Meta's SAM License (included per Section 1.b.i) |
The checkpoint files hold only model weights (no optimizer or training state); torch.load(path, weights_only=True) reads them.
Quickstart
Install cellsam3 (see docs/DEPLOYMENT.md for CUDA PyTorch + SAM 3 installation):
Segment a 2D Microscopy Image
import cellsam3
model = cellsam3.load_model() # auto-downloads cellsam3.pt
labels = cellsam3.segment(model, image, cell_diameter="auto") # (H, W) int32
cellsam3 segment image.tif --diameter auto -o image_labels.tif
Track a Movie + Reconstruct Cell Divisions
import cellsam3
from cellsam3.video import load_video_model, track_video, write_ctc
demo = load_video_model(weights="video", lineage="lineage") # auto-downloads cellsam3_video.pt & cellsam3_lineage.pt
frames = cellsam3.read_movie("fov1.tiff", channel=0)
result = track_video(demo, frames, text_prompt="wholecell")
write_ctc(result, "fov1_RES")
cellsam3 track-movie fov1.tiff fov1_out --lineage-ckpt lineage --channel 0 --prompt wholecell --overlay
Licensing & Out-of-Scope Use
Use of the weights in this repository is governed by both:
- Modified Apache 2.0 (Non-Commercial) (
LICENSE): The models herein are provided subject to license terms prohibiting use for commercial applications. Inquiries regarding commercial licensing should be directed to the Caltech Office of Technology Transfer. - Meta SAM License (
SAM_LICENSE.txt): CellSAM3 is a fine-tune of Meta's Segment Anything Model 3 (SAM 3 / SAM 3.1), and upstream SAM License terms apply to all derivative weights.