Repository navigation
BirdBox 2.2 ships a new Birds-With-Labels model. A special feature is that it finds tight boxes around bird calls at least as well as the Just-Bird model does. On top of that, it suggests the species of a call when the confidence of that prediction surpasses a user-defined threshold. Otherwise the box stays bird, as with Just-Bird. Birds-With-Labels 2.2 was trained on 632 bird species. For details see species.
The ONNX graphs of the demo compute their spectrogram faster, for both models. Just-Bird's weights are unchanged: its model files are those of 2.1.0, and only its demo graph is exported again with the faster spectrogram.
Birds-With-Labels users need the weights of this release, and its output changes. See Upgrading from 2.1 below.
Birds-With-Labels
Like Just-Bird, the new model has a bird class, which every training box teaches, whatever its species. Its score finds the calls, so the boxes are the same kind as Just-Bird's. In addition, the species scores suggest a name: a box is named after its top species when that species reaches 0.25 (--label-conf). Otherwise it stays bird, with its three best guesses as alternatives. The model of 2.1 worked differently: it had no bird class and drew one long box per species over a whole song.
It finds calls at unseen sites as well as Just-Bird or better. Two sets with human labels come from places outside the training data:
- Powdermill, Pennsylvania (Chronister et al.)
- Colombia and Costa Rica (Vega-Hidalgo et al.)
F1 for finding calls, with species ignored, at IoU 0.5:
| Test set | Just-Bird | Birds-With-Labels 2.1 | Birds-With-Labels 2.2 |
|---|---|---|---|
| Powdermill | 0.415 | 0.112 | 0.465 |
| Colombia and Costa Rica | 0.071 | 0.066 | 0.078 |
Precision, recall and F1 on Powdermill for every threshold from 0.01, species ignored. The dotted line is the default threshold, 0.21, and "previous model" is Birds-With-Labels 2.1. Recall stays below 0.5 for every model. The boxes of 2.2 overlap 98% of the human boxes, but are often larger than them. Colombia and Costa Rica is sparsely labelled, so every model scores low there. Details: Performance on Unseen Sites.
The same on Powdermill with species: a box counts only if it overlaps a human box of its species at IoU 0.5, and boxes named bird are left out. 2.2 reaches F1 0.19 at its default threshold, 2.1 at most 0.09. Recall stays near 0.12, because most boxes at an unseen site stay bird.
Highlights
- Faster demo graphs. The ONNX graphs of both models compute the spectrogram as a two-stage transform of matrix products instead of one large convolution. In the demo a window takes about 15% less time, and the files are 0.7 MB smaller. The boxes are the same but for rounding. (#83) Spectrogram Generation
- Demo.
- A
birdbox shows its best guess (maybe Apapane · 0.18). (#80) - Boxes can be verified and removed while recording. (#76)
- A continued detection needs far less memory, and a failed run can continue. (#85)
- Detection in the Demo
- A
unknownreplaces????as the name of the unknown-species class. (#94)- CLI and API fixes.
- Documentation. New pages on how Birds-With-Labels was trained and names its boxes, and a clarity pass over every section.
- Tests. Unit tests and a strict docs build on every pull request. (#72)
Upgrading from 2.1
- Just-Bird: nothing to do.
- Birds-With-Labels weights: download the files of this release. The file names and
--species-mapping Birds-With-Labelsstay the same. Ids 0–632 keep their species, and id 633 isbird. - Birds-With-Labels output:
- Boxes are calls, merged by window fusion instead of the song merge, and then named.
- New fields:
species_confidence,alternativesandbird_id. - The default confidence is 0.21 (was 0.2).
- Output Formats
????is nowunknownin all outputs. The evaluation tools still read????in annotation files.- Python API:
pcen_inference.pyis nowlog_floor.py, andcompute_pcen_for_inferenceis nowcompute_features_for_inference. The other PCEN names change too. (#88) BirdCallDetector(conf_threshold=None)now uses the model's threshold instead of 0.001.- Demo graphs: graphs exported with 2.1 still run. Export them again for the faster spectrogram.
Model files
The weights for this release are attached below as assets, so v2.2.0 stays tied to exactly these files. They are the same files as on the TUC-Cloud at the time of release, which may be updated later. The Just-Bird files are those of v2.1.0.
| Model | .pt |
.onnx |
.tflite |
|---|---|---|---|
| Just-Bird (recommended) | Just-Bird_fp32.pt |
Just-Bird_fp16.onnx, Just-Bird_int8.onnx |
Just-Bird_fp16.tflite, Just-Bird_int8.tflite |
| Birds-With-Labels | Birds-With-Labels_fp32.pt |
Birds-With-Labels_fp16.onnx, Birds-With-Labels_int8.onnx |
Birds-With-Labels_fp16.tflite, Birds-With-Labels_int8.tflite |
Save the files in models/. Check a download with sha256sum -c SHA256SUMS.txt --ignore-missing. TensorRT .engine files are not included, because they only run on the GPU and TensorRT version they were built for. The weights are licensed under the AGPL-3.0 (LICENSE-AGPL-3.0, NOTICE.txt).
Training pipeline and recipe for these weights: BirdBox-Train v2.2.0.
Full changelog: v2.1.0...v2.2.0