Skip to content

Installation Guide

Requirements

Saber runs on Python 3.10 and above on Linux or Windows with CUDA12.

Quick Installation

Saber is available on PyPI and can be installed using pip:

pip install saber-em

⚠️ Note By default, the GUI is not included in the base installation. To enable the graphical interface for manual annotation, install with:

pip install saber-em[gui]

Development Installation

If you want to contribute to saber or need the latest development version, you can install from source:

git clone https://github.com/czi-ai/saber.git
cd saber
pip install -e .

Download Pre-trained Models

After installation, download the required SAM2 model weights:

saber download sam2-weights 
This downloads the model weights to path/to/site-packages/saber/checkpoints/

Verification

To verify your installation, run:

python -c "import saber; print(saber.__version__)"

Next Steps