Troubleshooting Notes¶
No Detections¶
No Detections
- Verify that
--modeland--species-mappingare compatible (the mapping must match the one used during training). - Lower the confidence threshold for exploratory runs (
--conf 0.1or--conf 0.001for raw capture). - Check audio format and quality. WAV and FLAC outperform lossy MP3 and OGG for faint calls.
- Confirm that the audio file actually covers the time ranges recorded in your labels (for evaluation runs).
Too Many False Positives¶
Too Many False Positives
- Increase
--conffirst to raise the detection bar. - Reduce
--song-gapto prevent unrelated events from being merged into one detection. - Tune
--nms-iouto control duplicate suppression. - Use
confusion_matrix_analysis.pyand inspect the background row/column to distinguish species confusion from generic noise hits.
Memory or Runtime Issues¶
Memory or Runtime Issues
- Reduce parallelism (
--workersfor inference,--num-workersfor F-beta analysis). - Process subsets of files and merge reports afterwards.
- Prefer GPU-backed runs for large jobs when available.
- Generate the raw detections JSON once with
--no-merge. Avoid re-running inference during threshold experiments.
Filename Mismatch in Evaluation¶
Filename Mismatch
Evaluation tools match filenames by their normalized stem (extension stripped):
recording_01.wavandrecording_01.flacmatch ✓siteA_recording_01.wavandrecording_01.flacdo not match ✗
If matching fails, inspect both the detection CSV/JSON filename fields and the labels CSV, then unify base names before re-running metrics.