SAM 2.1

Meta's Segment Anything Model 2.1. Click or draw a box on an object and get a precise mask; the same model also handles video upstream.

Instance SegmentationSemantic SegmentationOriented Object DetectionMetaApache-2.0
Recommended5/10
VRAM0.2–0.9 GBweights, plus ~0.5 GB reserve
Tools5across 3 annotation types
Runs onmacOSCUDACPU4 of 4 runtime profiles

Install

boat model install sam2

Without a tag BOAT installs sam2:small. Tags install side by side, so you can keep several.Download: 184 MB of weights.

Overview

Summarized from the upstream project, last reviewed Oct 22, 2026.

SAM 2 is a foundation model for promptable visual segmentation. It treats an image as a one-frame video and uses a simple transformer with streaming memory, which is what lets it follow objects across video frames upstream. BOAT uses its image mode: click an object, or sketch a loose box, and get a clean mask or rotated box.

SAM 2 architecture

Architecture overview, from the upstream repository.

Tags are the checkpoint sizes, from tiny up to large: smaller ones are faster, larger ones are more accurate.

Tools

What SAM 2.1 adds to the annotation editor. Each example loops what you do and what comes back.

Point prompt example on instance segmentation

Point prompt

PointsMasks

Instance Segmentation

Click on the object to get a precise mask.

  • Apply
Point prompt example on semantic segmentation

Point prompt

PointsMasks

Semantic Segmentation

Click on the object to get a precise mask.

  • Apply
Auto search example on instance segmentation

Auto search

BoxMasks

Instance Segmentation

Draw one or more boxes to segment exactly those objects.

  • Apply
Auto search example on semantic segmentation

Auto search

BoxMasks

Semantic Segmentation

Draw one or more boxes to segment exactly those objects.

  • Apply
Auto search example on oriented object detection

Auto search

BoxRotated boxes

Oriented Object Detection

Draw one or more boxes to segment exactly those objects.

  • Apply

Tags

Each tag is an installable variant, such as a size or quantization, with its own weights.

TagWeightsPlatformsInstall
sam2:smalldefault184 MB · 1 filemacOSCUDACPU
sam2:tiny156 MB · 1 filemacOSCUDACPU
sam2:base_plus324 MB · 1 filemacOSCUDACPU
sam2:large898 MB · 1 filemacOSCUDACPU

Platforms

BOAT picks the runtime profile that matches your machine. Only that profile's code is downloaded.

macOS · Metal

Apple silicon (MPS)

Python 3.11 · 66 KB

Linux · CUDA 12.8

NVIDIA, incl. Blackwell

Python 3.11 · 67 KB

Linux · CUDA 12.6

NVIDIA GPUs

Python 3.11 · 67 KB

Linux · CPU

x86_64 CPU

Python 3.11 · 65 KB

License

BOAT's adapter code is Apache-2.0. The model's own code and weights keep their upstream license:Apache-2.0.

Bundled license files: BOAT-APACHE-2.0.txt, NOTICE.md, UPSTREAM-LICENSE.txt

Package details

Package
sam2
Version
0.0.3
Type
Common model
BOAT Core
≥ 0.1.0 · < 1.0.0
Inference timeout
600s
Manifest SHA-256
98140aa58a31f74e852619b8cb028d5f861967d14979b8bb6f74ca9cc280eac3
Upstream notice
BOAT adapter code is Apache-2.0. Upstream model code and weights keep their own licenses.

Model: sam2
Pinned weight provenance is in ../weights.json. Vendored code revisions, when present,
are recorded in ../vendor/UPSTREAM_REVISION. The local macOS adaptations are retained.
Runtime dependencies are installed from pinned distributions with their own license files.
↑↓ navigate↵ open