Skip to content

Models and set-up

Settings, AI Models tab: SAM 3 and BiRefNet_lite with Download buttons, and the Object and Sky model choices (Classic layout)
  • Open it: Settings ▸ AI Models, or the AI Models… button in the Masks panel (the dialog also opens by itself when a model is missing).
  • Download a model with its Download button. Read the licence link first; nothing is fetched until you confirm. Downloads resume after an interruption, can be cancelled, and are verified; a file that does not match is deleted.
  • Object masks use: Automatic (SAM 3 if installed, else SAM 2.1), SAM 3, or SAM 2.1.
  • Sky, Landscape and People masks use: Photo analysis (default, no download) or EoMT.
  • SAM 3 model folder: choose another drive, or point at a folder that already has the files.
  • Denoise and upscaler models, faces and the search model have their own sections: Settings ▸ AI Denoise, Faces, and the Semantic search section of AI Models.
Model Used for Size Licence Download
SAM 3 Object and Describe masks about 3.4 GB SAM License (Meta) in the dialog, or install by hand: see below
SAM 2.1 Hiera-Tiny Object clicks, Remembered, small people 156 MB Apache-2.0 in the dialog
BiRefNet_lite Subject and Background about 178 MB MIT in the dialog
EoMT scene Sky, Water, Vegetation, People 96 MB MIT (trained on COCO, CC BY 4.0) in the dialog
MediaPipe people and face People parts, Skin, Blemishes, Teeth, Detect Faces, eye focus 16 MB, 5 MB Apache-2.0 in the dialog
CLIP ViT-B/32 AI search, Auto orient see dialog MIT Settings ▸ AI Models
Face recognition (AuraFace, SFace) name suggestions 39 to 261 MB see dialog Settings ▸ Faces
Real-ESRGAN General v3 AI Super Resolution, AI Sharpen about 5 MB BSD-3-Clause see Super resolution

SAM 3 (Segment Anything with Concepts, Meta 2025) provides detailed Object clicks and enables Describe (text prompt) masks.

Meta releases the weights under the custom, non-OSI SAM License in a gated repository on Hugging Face (facebook/sam3). Because access is gated, Chromaforge cannot download the checkpoint automatically without your Hugging Face credentials.

  1. Log in or create an account at Hugging Face.
  2. Open the facebook/sam3 repository page.
  3. Review Meta’s SAM License agreement, fill out the access form, and submit the request.
  4. Wait for approval from Meta (approvals are usually granted promptly).
  5. Generate a User Access Token with read permissions at Hugging Face Settings ▸ Access Tokens and copy your token (hf_...).

The model files belong in models/sam3/ inside the per-user settings directory:

  • Linux: ~/.config/Chromaforge/models/sam3
  • macOS: ~/Library/Application Support/Chromaforge/models/sam3
  • Windows: %APPDATA%\Chromaforge\models\sam3

You can also point Chromaforge at any other folder in Settings ▸ AI Models ▸ SAM 3 model folder, or override it with the CHROMAFORGE_SAM3_DIR environment variable.

Run the script for your operating system in a terminal or PowerShell session. Replace hf_your_token_here with your Hugging Face access token:

Terminal window
# 1. Set your Hugging Face access token
export HF_TOKEN="hf_your_token_here"
# 2. Target folder (default settings directory)
APP_DIR=$(printf '%s' "Chromaforge" | tr '[:upper:]' '[:lower:]')
DEST="${XDG_CONFIG_HOME:-$HOME/.config}/$APP_DIR/models/sam3"
mkdir -p "$DEST"
BASE="https://huggingface.co/facebook/sam3/resolve/main"
FILES="config.json vocab.json merges.txt tokenizer.json tokenizer_config.json special_tokens_map.json processor_config.json"
# 3. Download configuration and tokenizer files
for f in $FILES; do
echo "Downloading $f..."
curl --proto '=https' -fsSL -H "Authorization: Bearer $HF_TOKEN" -o "$DEST/$f.part" "$BASE/$f" && mv -f "$DEST/$f.part" "$DEST/$f"
done
# 4. Download weights (3.4 GB; resumes if interrupted)
echo "Downloading model.safetensors (3.4 GB)..."
curl --proto '=https' -fsSL -C - -H "Authorization: Bearer $HF_TOKEN" -o "$DEST/model.safetensors.part" "$BASE/model.safetensors"
mv -f "$DEST/model.safetensors.part" "$DEST/model.safetensors"
# 5. Verify official SHA-256 checksum
echo "Verifying model.safetensors..."
echo "6d06f0a5f84e435071fe6603e61d0b4cc7b40e0d39d487cfd4d67d8cc11cc14a $DEST/model.safetensors" | sha256sum -c -
echo "SAM 3 installed successfully in $DEST"
  • Hugging Face CLI: If you have the huggingface-cli or hf command installed:
    Terminal window
    hf auth login
    huggingface-cli download facebook/sam3 --local-dir "<target-folder>"
  • From repository source: In a developer checkout, run the bundled installer script:
    • Linux and macOS: HF_TOKEN=hf_... tools/install-sam3.sh
    • Windows: $env:HF_TOKEN = "hf_..."; .\tools\install-sam3.ps1
  • Verification: Restart Chromaforge or navigate to Settings ▸ AI Models. SAM 3 will show as installed, and Object clicks and Describe masks in the Masking panel will use SAM 3.
  • Models live in the per-user settings folder, under models/ (AI masks), denoise-models/ and ml-models/. Per-model folders can be moved or overridden with environment variables listed in the project documentation.
  • Face and search caches sit beside the library (rebuildable, not part of the catalog).
  • GPU is used where it gives the same result faster: Metal on macOS for SAM 3, wgpu (Vulkan, DirectX 12, Metal) for denoise, search and face models. Elsewhere SAM runs on the CPU.
  • ONNX Runtime: the Windows, Linux (x86-64 and ARM64) and Apple silicon downloads include ONNX Runtime with its WebGPU plug-in. AI Denoise and AI Super Resolution use it first on the graphics card AI work goes to (DirectX 12 on Windows, Vulkan on Linux, Core ML or Metal on a Mac, or CUDA on an NVIDIA card that has it installed), then the built-in GPU code, then the CPU. Each is checked against the CPU result before it is used. Settings ▸ AI Denoise shows which one runs, for example “ONNX Runtime (WebGPU)”. On Linux, WebGPU needs the Vulkan loader (libvulkan1 or vulkan-loader).
  • Settings ▸ AI Denoise ▸ Speed: Automatic, Graphics card or Processor. Settings ▸ AI Models and Performance: choose the device for search (Automatic, a named card, or CPU). Settings ▸ Faces: choose Face models device (Automatic, CPU, or a specific card) and GPU precision (Automatic, FP16, or FP32).
  • A GPU error falls back to the CPU for that job; the reason is shown.
  • SAM 3 is large: it uses several GB of memory and is unloaded after 10 idle minutes.
  • A denoise batch can use a second graphics card, or another computer’s card over a network (advanced; see the project documentation).