Demo ONNX¶
Run BirdBox detection entirely in your browser. The graphs under docs/models/ bake in PCEN preprocessing, YOLO inference, NMS, and song reconstruction. No Python install and no server-side GPU queue.
Browser limits
- First model download is large (about 50 MB for Just-Bird fp32). The file is cached by your browser afterward.
- Audio is decoded locally, resampled to 32 kHz, and truncated to 60 seconds.
- Requires a recent browser with WebAssembly. Safari can be slower than Chromium or Firefox.
- This showcase is for quick checks. Use the Streamlit demo or the CLI for long files and batch jobs.
Interactive Demo¶
Models are loaded from docs/models/ via manifest.json.
WAV or FLAC recommended. Minimum 3 seconds. Maximum 60 seconds in this demo.
Loading demo…
| Start (s) | End (s) | Low (Hz) | High (Hz) | Avg Conf | Max Conf | Merged | Species |
|---|
Adding models¶
-
Export for the docs demo.
confandsong_gapare required graph inputs. The demo sliders feed them on every run. Suggested defaults are stored in ONNX metadata (default_conf,default_song_gap). -
Place the
.onnxfile underdocs/models/if the export path was elsewhere. -
Add an entry to
docs/models/manifest.json.
The dropdown reads that manifest on page load. Put class labels in the optional names map (ONNX Runtime Web does not expose ONNX metadata props).
Output columns¶
| Column | Meaning |
|---|---|
| Start / End | Song bounds in seconds from the start of the (possibly truncated) audio |
| Low / High | Frequency bounds in Hz |
| Avg Conf / Max Conf | Mean and peak confidence over merged clip detections |
| Merged | Number of clip-level boxes folded into the song |
| Species | Label from model metadata (names) |
For the full set of BirdBox file formats outside the browser, see Detection Output Formats.