Changelog
0.5.0 (2026-11-05)
Breaking changes and compatibility
Renamed the ecosystem namespace from
rw(“Rebel Workflow”) toosw(“Overhead Survey Workflow”): environment variablesOSW_HOME/OSW_REGISTRY_PATH/OSW_MODELS_DIR, the registry directory~/.osw, and the public model bucketosw-public-models. The local model registry is now the first implementation of the shared OSW Model Registry standard with schema idosw:model-registry:1.0; its default location honorsOSW_HOME(default~/.osw) per the ecosystem toolchain-directory principle. Downloaded model files and Core ML exports now cache under the OSW models directory (OSW_MODELS_DIR, default~/.osw/models) instead of~/.cache/scoutbot, keeping the whole toolchain footprint under one home. This is a clean break with norwcompatibility aliases; existing~/.rebel-workflowregistries and~/.cache/scoutbotmodel files are orphaned and rebuilt on next fetch. A registry schema-guard now rejects foreign or incompatible-major registry files (including the pre-releaserwand interimosw:local-model-cachefamilies) with a clear, actionableRegistrySchemaError(surfaced as a clean CLI error) instead of failing cryptically.Removed the runtime
dilldependency. The two bundled KAZA models were re-serialized with the current Ultralytics/torch stack so they load withoutdill(weights unchanged — CPU inference is bit-identical), re-hosted under date-tagged filenames (yolov8-onecls.kaza.20260729.pt/yolov8-cls.kaza.20260729.pt), and their MD5 is now pinned inscoutbot.model_storeCONFIGSfor stronger integrity and cache invalidation. The download source order is now GCS primary, Azure fallback (previously Azure primary). Upgrading clients automatically re-download the re-serialized models on next use. Note: the Azure fallback objects are not yet uploaded (Azure storage was unavailable when this landed), so GCS is the only live source until that is completed.Upgraded the locked ML stack to
torch==2.13.0/torchvision==0.28.0(with the attendanttriton, CUDA-runtime, andsetuptools==83.0.0bumps) and removed the temporaryuv auditignores for the torch and setuptools advisories after the locked graph audited cleanly. Platform change: torch 2.13 ships onlymacosx_14_0_arm64wheels, so Apple Silicon now requires macOS 14 or newer.Upgraded
ultralyticsfrom==8.2.103to>=8.3,<9(currently resolves to 8.4.89). The 8.3+ series removes thenumpy<2.0restriction for standard inference, which was previously forcing a source-built numpy on Python 3.13 / Windows and causing a fatal access violation during test collection. numpy 2.x is now the default for Python 3.13. Core ML export now requirescoremltools>=9.0(the previous pin was unversioned). Two new transitive dependencies are added:polars>=0.20.0andnvidia-ml-py>=12.0.0. A minor type-annotation fix inmodel_store.pywas required becauseYOLO.export()now carries a typed return value.Changed declared Python support to
>=3.11,<3.14: added Python 3.13 and dropped Python 3.10. Python 3.10 reached end-of-life in October 2026, and the security fixes forpillow(13.0.0) andfilelock(4.2.1+) require Python 3.11+. Python 3.10 users can stay on the legacy0.1.xreleases or upgrade their interpreter.Upgraded locked dependencies to clear
uv auditadvisories:pillow12.3.0 → 13.0.0,filelock3.29.0 → 4.2.9,urllib32.7.0 → 2.8.0,setuptools83.0.0 → 84.2.1,certifi2026.4.22 → 2026.10.23, andfsspec2026.4.0 → 2026.9.0.Renamed the GitHub repository and local project directory from
scoutbot-2026toscoutbot-twoand updated project URLs (repository, docs, CI badges). The Python package name (scoutbot) is unchanged, so imports and installs are unaffected.First PyPI release from scoutbot-two. The
scoutbotPyPI project was transferred from Wild Me to the Overhead Survey Workflow (OSW) PyPI organization, and 0.5.0 is the first release published from this repository (pip install scoutbot). WildMeOrg/scoutbot is being superseded by scoutbot-two, with its publishing workflows retired in a separate pull request; the0.1.xreleases remain on PyPI as the unmaintained legacy line. Upgrading from0.1.xis subject to every breaking change listed in this section.Package metadata updated for PyPI: new summary, PEP 639 SPDX license expression (
Apache-2.0, so building from source now needssetuptools>=77), classifiers, and documentation / changelog / issue-tracker project URLs.
New features
Added
scoutbot --version, printingscoutbot <version>from the installed package metadata (the same value asscoutbot.__version__).Added a local model registry backed by
~/.osw/model-registry.json.scoutbot fetchauto-registers downloaded models; subsequent fetches resolve from the registry and skip the network. New CLI commands:scoutbot registerregisters any local.ptfile;scoutbot modelslists all registry entries;scoutbot models info NAMEprints a model’s full entry as JSON. All inference commands (pipeline,batch,batch-resumable) now accept a--model NAMEflag as an alternative to--config; the two flags are mutually exclusive. JSONL output frombatch-resumablegains amodelblock recording the registry name, MD5, framework, and SAHI run config used for each image.Added an opt-in multiprocess batch mode:
batch_resumable(processes=N)/scoutbot batch-resumable --processes N(Linux/CUDA-first, defaultprocesses=1unchanged). Each of theNworker processes is launched viaforkserverand loads its own model copy; a single writer in the parent process appends completed results to the JSONL file in completion order, keeping the existing crash-safe resume contract intact for concurrent writers. A lost or hung worker aborts the run fail-fast once it misses a bounded per-result deadline (newSCOUTBOT_MP_RESULT_TIMEOUTenv var, default 600 seconds); re-running the same command resumes the remaining work. Bothbatch_resumable()and the CLI now acceptsummary_json/--summary-jsonto write a machine-readable run summary (throughput,per_worker_counts,phase_totals_ns,inference_duty_per_worker) in sequential and multiprocess modes alike. Observability change: thebatch_resumableobserver summary event now reportswall_nsplus these enriched fields instead of the previousstarted_ns/ended_ns/duration_ns; external consumers of that event should switch towall_ns.Added an internal test-corpus builder (
tools/build_test_corpus.py) and an opt-in, skip-if-absent CPU drift-regression test (tests/test_corpus_regression.py, gated onSCOUTBOT_TEST_CORPUS). The builder selects density-tiered frames from the internal Matetsi survey, GPS/EXIF-strips them, and freezes CPU inference baselines with a pinned model + dependency stack; the regression test replays them and asserts exact CPU parity when the stack matches. Addspiexifto thetestextra.Added a Core ML (
.mlpackage) inference backend for Apple Silicon: thev3-coremlandv3-cls-coremlconfigs export on demand from the source.ptmodel and cache under~/.osw/models. Select with--config v3-coreml(see the Core ML docs for parity caveats).Added a
--no-progressflag and mean-seconds-per-image timing to the batch progress bar, and wired theLOC_CONFIG/CONFIGenv vars to the public API for config selection.
Models, downloads, and examples
Model downloads try multiple sources in order with automatic failover if any source is unreachable or resets the connection mid-transfer. The built-in order is GCS primary (
storage.googleapis.com/osw-public-models), Azure fallback. Registry provenance records which provider delivered the file. Download chunk size increased from 8 KB to 64 KB for better throughput on large model files.scoutbot.example()now downloads its demo image from the OSW public bucket (osw-public-data/scoutbot/examples/scout.example.jpg) instead of the retired Wild Me Azure CDN. The image bytes and pinned SHA-256 are unchanged.scoutbot.example()now caches its demo image under the OSW home (${OSW_HOME:-~/.osw}/examplesvia a newget_examples_dir()resolver) instead of recreating the legacy~/.cache/scoutbotdirectory. This completes the move off~/.cache/scoutbotbegun in this release for model files.scoutbot.example()now prints the WIC score and detection count (not just the raw detection list), returns(wic_score, detections)instead ofNone, and points to the docs for batch / multi-class / Core ML usage. It remains a single-image install smoke check, not an API tour.
Documentation
Published rendered docs to GitHub Pages and retired Read the Docs so the README routes readers to HTML instead of raw
.rstsources.Reorganized documentation around reader roles, with separate installation, usage, configuration, model, performance, development, security, roadmap, API, and CLI pages.
Added Core ML documentation for
v3-coremlandv3-cls-coremlconfigs, export behavior, parity caveats, and Apple Silicon benchmark interpretation.Corrected the Windows NVIDIA GPU install docs: the pinned
torch(2.13.0) is published under thecu130PyTorch index, not the stalecu124the docs previously showed (norcu128). Added guidance to match the CUDA index to the pinned Torch version so it does not silently install a CPU-only build.Added CUDA support clarification for NVIDIA systems: best-effort Windows support (not CI-tested), installation guide with GPU detection verification command (
torch.cuda.is_available()), and development guidance for contributors testing on GPU hardware. CUDA is not required and the package runs normally on CPU-only machines.
Quality, CI, and security
Added
.github/workflows/publish.yml: PyPI Trusted Publishing (OIDC, no API tokens) with a manually triggered TestPyPI dry run, a tag-equals-version guard,twine check --strict, clean-venv wheel smoke tests on Python 3.10 and 3.13, and a reviewer-gatedpypienvironment. Its actions are pinned to commit SHAs. Addedtests/test_packaging.pyto pin the published metadata and catch subpackages missing from the hand-maintained setuptools package list.Added a
windows-smokeCI job to.github/workflows/testing.ymlthat runs the fast/offline test suite on Python 3.13 under Windows. This provides basic cross-platform coverage for non-Core ML code without claiming full Windows parity; Core ML configs remain macOS-only.Added Bandit source-code security scanning to the quality workflow (
bandit -c pyproject.toml -r scoutbot/ benchmarks/ tools/). B101 (assert-used) is skipped;tests/is excluded. Fixedhashlib.md5()→hashlib.md5(usedforsecurity=False)to reflect its use as a file integrity check rather than a cryptographic hash.Added
uv audit --lockedto the quality workflow as a required dependency-scanning gate. Upgradedidna3.13 → 3.18 to resolve GHSA-65pc-fj4g-8rjx / PYSEC-2026-215.Applied Ruff formatting and lint fixes as part of the quality-tool migration.
Removed the stale CodeQL workflow and documented the replacement quality gates:
testing.ymlfor fast/offline pytest coverage andquality.ymlfor Ruff and scoped mypy.Raised fast-suite test coverage from 58% to 92%+ by adding unit tests with mocked SAHI, requests, and coremltools dependencies.
Fixes and internals
Fixed images that errored in a prior run being silently skipped on resume — they are now retried.
Fixed the
batch_resumableprogress bar being silently disabled.Pass the confidence threshold to
model.predict()so below-threshold detections don’t waste inference.batch_resumable(processes=N)/--processes Nnow falls back to the sequential path with a warning on platforms without aforkserverstart method (e.g. Windows, which offers onlyspawn), instead of crashing withValueError: cannot find context for 'forkserver'. Callers that always setN(e.g. Habitat Hub) run single-process there rather than failing every batch.Fixed
scoutbot.__version__reporting a stale hardcoded value (0.2.0) instead of the packaged version.__version__(and theVERSION/versionaliases) now derive from installed package metadata (importlib.metadata), makingpyproject.tomlthe single source of truth; a regression test guards against future drift.Fixed Core ML and YOLO loading correctness issues: macOS-only
.mlpackageloading is now guarded, YOLO models are loaded withtask='detect'to avoid classifier misidentification, and empty/Nonedetection boxes return an empty prediction list instead of crashing.Fixed type-checking issues in model fetch/export code by normalizing model config values before path, URL, and progress-bar use.
The Core ML benchmark phase-total output now shows
requested=<val> actual=<val>for Core ML variants (oractual=nullwhen the runtime does not expose the actual compute unit). Non-Core ML variants (pt-cpu,pt-mps) omit the suffix entirely instead of printingrequested=unknown actual=unknown.Added private runtime observability hooks and a structured Core ML benchmark summary so performance investigations can separate phase timing from serial SAHI overhead.
Moved
visualise.pyfrom the repo root totools/visualise.pyand included it in all quality gates (ruff, mypy, bandit). Rewrote the script: replacedcv2.imshow(incompatible with the headless OpenCV build) withwebbrowserfor display; added--no-displayand--image-keyflags; fixed label rendering near the top edge of the image; removed thenumpydependency; added per-class box colours; added a test suite intests/test_visualise.py.
Version 0.2.0
Breaking changes
Phase 1 and MVP models removed entirely. Only
v3andv3-cls(YOLOv8) are supported.pipeline_v3()renamed topipeline();batch_v3()renamed tobatch().wic,agg, andtilemodules removed.locmodule now exposes onlyfetch()andCONFIGS— thepre(),predict(), andpost()functions are gone.CLI options
--wic-thresh,--loc-nms-thresh,--agg-thresh,--agg-nms-threshremoved. Only--loc-threshremains.Config aliases
oldandnewremoved from--configchoices.
New features
batch_resumable()— incremental JSONL output with automatic resume on interruption.Model fetching now uses MD5 sidecar verification (
requests+hashlib);poochis no longer required.Models are cached at
~/.cache/scoutbot/instead of inside the package directory.get_classes()returns class labels by model introspection.
Dependency reductions
Removed:
pooch,wbia-utool,onnxruntime,torch(standalone),torchvision,imgaug,gradio,dill.Added:
requests(replacespoochfor model downloads).ultralyticsandsahiare now the only ML dependencies.
Internal
tile_batched/main.pyreduced from ~550 lines to ~35 lines; all SAHI reimplementation removed. Stocksahi.predict.get_sliced_prediction()is used directly.Docker image no longer requires Rust toolchain or
onnxruntime-gpu.
Version 0.1.17
[BREAKING CHANGE] Added detection label mapping for the
phase1output to rename the following species labels to be consistent with themvpoutput labels:elephant_savannatoelephantdead_animalwhite_bonestowhite_bonesdeadbonestowhite_boneselecarcass_oldtowhite_bonesgazelle_grtogazelle_grantsgazelle_thtogazelle_thomsons
Added rounding to the WIC predicted confidence to 4 decimal points in the print and JSON outputs.
Added to the documentation the list of supported class labels for each model configuration.
Updated the documentation to highlight the list of recommended supported species for the MVP model (based on held-out validation data), and to add the build and deployment instructions.
Added platform detection code to detect macOS and reduce the batch size of WIC models with the MVP model to 1 (added to Known Issues).
Added three new environment variables to allow specifying the model configuration for the
WIC,LOC, andAGG, respectively:WIC_CONFIG,LOC_CONFIG,AGG_CONFIG. If unset, it uses the global config and behavior as specified by theCONFIGenvironment variable. The TILE module does not have different settings dependent on the model configuration.Added a new environment variable to allow for faster but less accurate results:
FAST. If unset, it uses the standard tile extraction behavior for grid1 and grid2. Turning this flag on will dramatically speed up inference by processing approximately half of the number of tiles per image.Added
CHANGELOG.rstandISSUES.rst.Modified documentation strings in a few places for clarity and correctness.
Updated both Gradio apps to support the Phase1 and MVP models and their respective configurations.
Updated tests to support the new ML configuration default settings.
Version 0.1.16
Alpha version of Scoutbot, with all Phase 1 and MVP functionality and pre-trained models included