mirror of
https://github.com/macaodha/batdetect2.git
synced 2026-05-22 22:32:18 +02:00
1.6 KiB
1.6 KiB
How to run batch processing
This guide shows practical command patterns for directory-based and file-list processing runs.
Use it after you already know which input mode you want and need concrete command templates for a repeatable batch run.
Process a directory
batdetect2 process directory \
path/to/model.ckpt \
path/to/audio_dir \
path/to/outputs
Use this when BatDetect2 should discover the audio files for you.
Process a file list
batdetect2 process file_list \
path/to/model.ckpt \
path/to/audio_files.txt \
path/to/outputs
Use this when another part of your workflow already produced the exact recording list to process.
Process a dataset config
batdetect2 process dataset \
path/to/model.ckpt \
path/to/annotation_set.json \
path/to/outputs
Use this when your project already has a soundevent annotation set and you
want to extract unique recording paths from it.
Useful options
--batch-sizeto control throughput.--workersto set data-loading parallelism.--formatto select output format.--inference-configto control clipping and loader behavior.--outputs-configto control serialization and output transforms.--detection-thresholdto override the detection threshold for a run.
Practical workflow
For large runs:
- test the command on a small reviewed subset,
- lock the config files and command shape,
- write outputs to a dedicated directory per run,
- record the checkpoint, config paths, and thresholds used.
For complete option details, see {doc}../reference/cli/predict.