detectonic-2
Drone wake-word + sound-class detector (two-head: wake logit + 4-class sound) built on a SqueezeNet1.1-style backbone with fire modules, trained on log-mel spectrogram windows (5-s clips rendered as RGB images). KTA quantization β structured channel pruning followed by full int8 per-channel post-training quantization with a fused input-normalization graph (single input scale/zero-point), executed with vendor ESP-NN kernels on ESP32 (RISC-V PIE / S3) and XNNPACK on host.
Performance in context
Full results on the public leaderboard: https://huggingface.co/spaces/Tonic/audio-drone-detection-leaderboard Β· machine-readable rows in the Tonic/drone-detectonic-0.1-benchmark-results dataset.
| hardware | benchmark | wake F1 | unified F1 | duty | latency ms | parity |
|---|---|---|---|---|---|---|
| esp32-s3-n8r8 | c5-valid | 0.5 | 0.9957 | 0.698 | 2098.8 | drone c5_0002 wake=1 logit 18.79, ambient c5_0001 wake=0 log |
Model size: params 362821 Β· ONNX 1.47 MB Β· train rows 209648 Β· epochs 8 Β· input 224px.
Architecture (3D wireframe + measured forward pass)
Interactive explorer: docker image detectonic-explorer (demo/model_explorer, port 8080).
On-device forward inference (real capture)
Demos (interactive explorer + forward pass)
- Live demos (protected Space, source private, app public via embed):
Tonic/detectonic-explorer Β·
embed: https://tonic-detectonic-explorer.hf.space Β·
/interactive 3D architecture explorer Β·/demo.htmlsplit-screen tour of all models Β·/anim/forward_pass.htmlself-contained forward-pass animation - Protected artifact copy (gated): Tonic/detectonic-demos
(
explorer/static source,captures/GIFs) - Family grouping: HF collection Detectonic KTA model family
Intended use
On-device acoustic drone detection on ESP32-class MCUs (ESP32-S31 PIE, ESP32-S3) and host CPUs: wake decision + sound classification per 5-s spectrogram window. Not for weapon/vehicle identification beyond the 4-class sound taxonomy.
Training data
Cited datasets (see frontmatter): Tonic/unified-drone-acoustic-cuas-v2, Tonic/unified-drone-acoustic-cuas-v2p1 β 209648 training windows with gain jitter and spectrogram masking augmentation; evaluation on clean rendered windows.
Evaluation
metrics.json (unified validation F1 0.9957, duty 0.698,
held-out wake F1 0.5); per-clip predictions in preds_valid.jsonl /
preds_test.jsonl; training log train_log.txt.
Artifacts
.gitattributesSHA256SUMS.jsonaudio_wake_cnn.onnxbench_s31_deploy.jsonbench_s31_deploy.logbench_s31_w9prune.jsonbench_s31_w9prune.logbench_xiao_w9prune.jsonbench_xiao_w9prune.logbest.ptint8/host_eval_w9prune.jsonint8/model_w9prune_224_int8_fused.tfliteint8/model_w9prune_224_int8_pc.tflitemetrics.jsonpreds_test.jsonlpreds_valid.jsonltrain_log.txt
Integrity: SHA256SUMS.json where present.
Lineage
Derived from Tonic/detectonic-0.2.0-KTA-w8-multih-i224. Wave w9; quantization line KTA.
- Downloads last month
- -
Model tree for Tonic/detectonic-2
Base model
Tonic/detectonic-0.1.0-KTADatasets used to train Tonic/detectonic-2
Tonic/unified-drone-acoustic-cuas-v2
Space using Tonic/detectonic-2 1
Collection including Tonic/detectonic-2
Evaluation results
- unified_val_F1 on windows_5s validationself-reported0.996
- wake_duty_cycle on windows_5s validationself-reported0.698
- heldout_wake_F1 on windows_5s validationself-reported0.500

