GUIDE1 min read

Install SAM3 on an air-gapped machine

This pack works with the Labelme app 7.2.0 through 7.9.0, which ship osam 0.6.0 or 0.8.1 with the same SAM3 weights. Labelme 7.11.0 and later use newer SAM3 weights, so for those versions, contact support.

Labelme normally downloads model weights on first use. For an air-gapped machine, download the SAM3 offline pack and its SHA-256 checksum on a connected machine, then transfer both files.

First, print the pack's hash. On Windows, open PowerShell in the folder containing the pack and run:

Get-FileHash .\labelme-sam3-osam-0.6.0.zip -Algorithm SHA256

On macOS, run shasum -a 256 labelme-sam3-osam-0.6.0.zip. On Linux, run sha256sum labelme-sam3-osam-0.6.0.zip.

Compare the printed hash with the downloaded checksum. If they differ, stop and download the pack again. Extracting a damaged pack can overwrite model files that already work.

Once the hashes match, extract the pack into the model cache. On Windows, run:

Expand-Archive .\labelme-sam3-osam-0.6.0.zip -DestinationPath "$env:USERPROFILE\.cache\osam\models" -Force

On macOS or Linux, run:

mkdir -p ~/.cache/osam/models
unzip labelme-sam3-osam-0.6.0.zip -d ~/.cache/osam/models

In Labelme's AI-Box model dropdown, select Sam3; the default Sam2 (balanced) uses different model files. For text prompts, select SAM3 (smart) in AI Text-to-Annotation, which 7.9.0 renames to AI Text Prompt. After extraction, both modes run without a network connection.

Labelme is an offline-first annotation tool with local AI support.

Try Labelme Free