Installation
Scoutbot supports direct local runs, contributor development, and Apple Silicon Core ML runs, with best-effort GPU support for Windows NVIDIA systems.
Python support
Scoutbot currently supports Python 3.11, 3.12, and 3.13. Python 3.10 support was dropped in 0.5.0 (3.10 is end-of-life, and security fixes for core image dependencies require 3.11+).
Install from PyPI
pip install scoutbot
# or
uv pip install scoutbot
# Core ML on Apple Silicon (see below)
pip install "scoutbot[coreml]"
The scoutbot project on PyPI is published from this repository by the Overhead Survey
Workflow (OSW) team starting with 0.5.0. The older 0.1.x releases on PyPI are the legacy
Wild Me line from WildMeOrg/scoutbot; they remain
installable but are not maintained. 0.5.0 contains breaking changes relative to 0.1.x — see
Changelog before upgrading.
Warning
On Python 3.10 or older, pip install scoutbot does not fail. It skips 0.5.0 and silently
installs the legacy 0.1.17. Check with scoutbot --version (0.1.x has no such option),
or require the new line explicitly: pip install "scoutbot>=0.5".
A PyPI install resolves dependencies fresh within the declared ranges; it does not use this
repository’s uv.lock. For the exact dependency set CI tests against, install from source with
uv sync (below).
Direct local install
Use this when you want to run Scoutbot directly from a clone:
git clone https://github.com/SurveyTools/scoutbot-two
cd scoutbot-two
uv pip install -e .
Models are downloaded automatically on first use and cached at ~/.osw/models/. To fetch
models explicitly:
uv run scoutbot fetch --config v3
uv run scoutbot fetch --config v3-cls
Upgrading is automatic: the expected model hash is pinned in code, so after upgrading past a model re-serialization (such as the 2026-07-29 dill-free re-export) the next run detects the cached file is stale and re-downloads the current artifact. The previous cache file is left in place.
Contributor install
Use the test extra for development and quality checks:
uv sync --extra test
The test extra includes pytest, pytest-cov, pytest-random-order, Ruff, and mypy.
Documentation install
Use the docs extra when building Sphinx documentation:
uv sync --extra docs
uv run sphinx-build -M html docs docs/build
Apple Silicon Core ML
Note
Apple Silicon requires macOS 14 (Sonoma) or newer. The locked torch 2.13 build
publishes only macosx_14_0_arm64 wheels, so macOS 13 is no longer supported on arm64.
Core ML support is macOS-only and requires coremltools through the coreml extra:
uv sync --extra coreml
Then use a Core ML config:
uv run scoutbot pipeline image.jpg --config v3-coreml
uv run scoutbot batch *.jpg --config v3-coreml --no-progress
The .mlpackage bundle is exported on first use from the source .pt model and cached at
~/.osw/models/. Export can also be triggered explicitly:
uv run scoutbot export-coreml
uv run scoutbot export-coreml --config v3-coreml
uv run scoutbot export-coreml --force
Windows with NVIDIA GPU
CUDA GPU support is best-effort for NVIDIA systems on Windows. It is not CI-tested and is not required to run the package — CPU-only installs work on any Windows machine without a GPU.
PyTorch is pulled in transitively by ultralytics, and on Windows the wheels published to PyPI
are CPU-only – so a default install silently has no CUDA support. For NVIDIA GPU use, reinstall
torch/torchvision from the PyTorch CUDA index after installing Scoutbot. The index you pick
must carry the exact torch version this package pins (currently 2.13.0): that version is
published under cu130, and is not in the older cu128 or cu124 indexes.
git clone https://github.com/SurveyTools/scoutbot-two
cd scoutbot-two
uv venv
.\.venv\Scripts\Activate.ps1
uv pip install -e .
# Replace CPU-only PyTorch with the CUDA build. torch 2.13.0 is published under
# cu130 (not cu128/cu124); the build needs an NVIDIA driver new enough for the
# CUDA 13.0 runtime -- the verify step below confirms detection.
uv pip install torch torchvision --index-url https://download.pytorch.org/whl/cu130 --force-reinstall
# Required for large image handling (SAHI tiling)
uv pip install scikit-image imagecodecs
To install from PyPI instead of a clone, replace the git clone / cd / uv pip install -e .
lines with uv pip install scoutbot. A PyPI install is not locked, so check which torch
version it actually resolved (the verify command below prints it) and pick the CUDA index that
carries that version, as described next.
The right cuXXX tag is tied to the pinned torch version, so it changes when Scoutbot bumps
Torch. Do not assume cu130 indefinitely: check the pinned version (uv run python -c "import
torch; print(torch.__version__)", or torch in uv.lock), then confirm it is listed at
https://download.pytorch.org/whl/<cuXXX>/torch/ and pick the newest cuXXX that carries it.
A stale tag installs an older – possibly CPU-only – build without erroring.
Verify the GPU is detected before running:
uv run python -c "import torch; print(torch.__version__); print(torch.cuda.is_available())"
True means PyTorch found an NVIDIA GPU and a compatible CUDA driver. False is expected on
CPU-only machines and is not an error — the package runs normally without a GPU.
PowerShell does not expand glob patterns for external commands, so pass files with
Get-ChildItem:
$imgs = (Get-ChildItem "C:\path\to\images" -Filter "*.JPG").FullName
uv run scoutbot batch @imgs --output results.json
If you have a GPU and encounter out-of-memory errors, reduce the tile batch size:
$env:DETECTOR_BATCH_SIZE = "16"
uv run scoutbot batch @imgs --output results.json