Models and set-up



- 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.
Models
Section titled “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 |
Installing SAM 3
Section titled “Installing SAM 3”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. Request access on Hugging Face
Section titled “1. Request access on Hugging Face”- Log in or create an account at Hugging Face.
- Open the facebook/sam3 repository page.
- Review Meta’s SAM License agreement, fill out the access form, and submit the request.
- Wait for approval from Meta (approvals are usually granted promptly).
- Generate a User Access Token with read permissions at Hugging Face Settings ▸ Access Tokens and copy your token (
hf_...).
2. Destination folder
Section titled “2. Destination folder”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.
3. Install scripts
Section titled “3. Install scripts”Run the script for your operating system in a terminal or PowerShell session. Replace hf_your_token_here with your Hugging Face access token:
# 1. Set your Hugging Face access tokenexport 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 filesfor 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 checksumecho "Verifying model.safetensors..."echo "6d06f0a5f84e435071fe6603e61d0b4cc7b40e0d39d487cfd4d67d8cc11cc14a $DEST/model.safetensors" | sha256sum -c -
echo "SAM 3 installed successfully in $DEST"# 1. Set your Hugging Face access tokenexport HF_TOKEN="hf_your_token_here"
# 2. Target folder (default settings directory)DEST="$HOME/Library/Application Support/Chromaforge/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 filesfor 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 checksumecho "Verifying model.safetensors..."echo "6d06f0a5f84e435071fe6603e61d0b4cc7b40e0d39d487cfd4d67d8cc11cc14a $DEST/model.safetensors" | shasum -a 256 -c -
echo "SAM 3 installed successfully in $DEST"# 1. Set your Hugging Face access token$env:HF_TOKEN = "hf_your_token_here"
# 2. Target folder (default settings directory)$Dest = Join-Path $env:APPDATA "Chromaforge\models\sam3"New-Item -ItemType Directory -Force -Path $Dest | Out-Null
$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")$Headers = @{ Authorization = "Bearer $env:HF_TOKEN" }$Sha256 = "6d06f0a5f84e435071fe6603e61d0b4cc7b40e0d39d487cfd4d67d8cc11cc14a"
# 3. Download configuration and tokenizer filesforeach ($f in $Files) { Write-Host "Downloading $f..." $part = Join-Path $Dest "$f.part" $final = Join-Path $Dest $f Invoke-WebRequest -Uri "$Base/$f" -Headers $Headers -OutFile $part Move-Item -Force $part $final}
# 4. Download weights (3.4 GB)Write-Host "Downloading model.safetensors (3.4 GB)..."$weightsPart = Join-Path $Dest "model.safetensors.part"$weightsFinal = Join-Path $Dest "model.safetensors"Invoke-WebRequest -Uri "$Base/model.safetensors" -Headers $Headers -OutFile $weightsPart
# 5. Verify official SHA-256 checksumWrite-Host "Verifying model.safetensors SHA-256..."$got = (Get-FileHash $weightsPart -Algorithm SHA256).Hash.ToLower()if ($got -ne $Sha256) { Remove-Item -Force $weightsPart throw "Checksum mismatch! Download is incomplete or damaged."}Move-Item -Force $weightsPart $weightsFinal
Write-Host "SAM 3 installed successfully in $Dest"Other install methods
Section titled “Other install methods”- Hugging Face CLI: If you have the
huggingface-cliorhfcommand installed:Terminal window hf auth loginhuggingface-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
- Linux and macOS:
- 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.
Where files go
Section titled “Where files go”- Models live in the per-user settings folder, under
models/(AI masks),denoise-models/andml-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).
Hardware
Section titled “Hardware”- 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 (
libvulkan1orvulkan-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).