You need to agree to share your Hugging Face information to access this model

This repository is publicly accessible, but you have to accept the conditions to access its files and content.

Log in or Sign Up to review the conditions and access this model content.

🚁 drone-detectonic-0.1 β€” BEST model (Challenge-5 acoustic wake): squeezenet1_1 (seed 7)

Canonical model file (pinned 2026-11-25)

main serves the best ONNX export, sha256:

45ac9d47b9544b8664721d135aaa6b3ca76028fe6eda94414ecd13ff181dc216

Pin it explicitly by revision (identical file) to be immune to future overwrites:

hf_hub_download("Tonic/drone-detectonic-0.1", "audio_wake_cnn.onnx",
                revision="fcb565738b707d7b880f513241557642a7a3fb6d")  # -> sha256 45ac9d47…

Revision map of audio_wake_cnn.onnx (all retrievable; sha256 verified 2026-11-25):

revision sha256 (first 8) B5 zero-shot wake recall (32 real drone clips) note
fcb56573… / 7af6b228… = main (canonical) 45ac9d47… 15/32 used for all Arm-A leaderboard rows (F1 β‰ˆ 0.99 held-out on public benchmarks)
63d4ac4d… 5e308c44… 13/32 "ONNX-verified" re-upload
76a12368… f6c7da8c… 8/32 seed-42 rerun
fe84326a… / b1e5d8e0… (previous main) 8567ebc9… 5/32 later re-export, weakest zero-shot

Caveat (export mismatch): the challenge-5 validation F1 0.80 quoted below was measured with the training-time PyTorch model; no ONNX export reproduces it on the 8-clip probe (ONNX-remeasured F1 = 0.0 there, ranking inverted β€” see commit fe84326a…). On public benchmarks with hundreds+ held-out windows the canonical ONNX scores wake F1 β‰ˆ 0.99 (DroneAudioSet 0.9983, DADS 0.9946, ITU-ARIS 0.9891/0.9948) β€” see Tonic/drone-detectonic-0.1-benchmark-results and the audio-drone-detection-leaderboard Space.

Winner of the 12-job HF Jobs matrix (rank #1 of 13 by challenge utility F1 - 0.15*duty = 0.7438). Submit preds_test.jsonl from this repo.

Two-head CNN over 224x224 log-mel windows (challenge-5 spectrogram rendering, correlation 0.96 with the starter kit's PNGs). Input spectrogram [1,3,224,224] in [0,1] with ImageNet normalization baked in-graph. Outputs: wake_logit [1] and sound_class_logits [1,4] (drone_buzz / vehicle_mechanical / explosion / ambient_outdoor). The validation-selected wake_threshold is stored in the ONNX metadata and is applied automatically by starter-kit/predict_onnx_baseline.py.

Configuration

item value
architecture squeezenet1_1
seed 7
training dataset Tonic/challenge5-train-subset (config windows_5s)
epochs / batch / lr 12 / 64 / 0.0003
train rows 68016 (incl. challenge-5 train clips oversampled)
val rows 4000
HF job 6b01b1fd flavor=t4-small
job wall-time / cost 24.0 min / ~$0.161
matrix rank (wave-3, by challenge utility) #1 of 13

Performance

challenge-5 validation (8 clips, scored split)

metric value
wake F1 0.8000
sound-class accuracy (4 classes) 0.8750
optical duty cycle 0.3750
optical inactivity 62.50%
wake threshold (in ONNX metadata) 0.0500
tp / fp / fn 2 / 1 / 0

unified-dataset validation (held-out groups)

metric value
wake F1 0.9969
duty cycle 0.7768
utility (F1 - 0.15*duty) @ thr 0.8793 @ 0.0500

efficiency (Axelera Embedded 110m target: 214 TOPS INT8, 1 GB DRAM, 3.5-9 W)

metric value
ORT CPU latency (mean) 4.13 ms / 5-s window
parameters 0.73M
ONNX size 2.92 MB

Prior run (wave 1, full 267k-row dataset, 10 epochs, job 6b018940)

wake F1=0.0000, cls acc=0.125, duty=0.25, thr=0.6, latency=4.47 ms, unified-val utility=0.8822 (domain gap: model never woke on challenge-5 clips; fixed in wave 3 by challenge-oversampling + wider threshold sweep).

Files

  • audio_wake_cnn.onnx β€” static graph, opset 17, dynamo=False; reads wake_threshold from metadata
  • best.pt β€” PyTorch checkpoint (where kept)
  • metrics.json β€” machine-readable full metrics (this card is generated from it)
  • preds_valid.jsonl / preds_test.jsonl β€” challenge submission format (clip id, wake decision, sound class)
  • train_log.txt β€” full training log

Usage

import onnxruntime as ort
sess = ort.InferenceSession("audio_wake_cnn.onnx")
thr = float(sess.get_modelmeta().custom_metadata_map["wake_threshold"])
wake_logit, class_logits = sess.run(None, {"spectrogram": img})  # img: [1,3,224,224] float32 in [0,1]
wake = wake_logit[0, 0] >= thr

Axelera compile: axcompile -i audio_wake_cnn.onnx --imageset calibration_spectrograms/ --input-shape 1,3,224,224

Links

Verified performance (2026-11-27, reproduced from this repo's ONNX)

challenge-5 valid/ (8 clips, pack PNG spectrograms, thr=0.05): wake F1 = 0.0000, class acc = 0.6250, tp/fp/fn/tn = 0/0/2/6. reproduced from published ONNX sha 45ac9d47; training-time metrics.json claimed F1 0.80 (not reproducible at stored thr β€” known issue).

Downloads last month

-

Downloads are not tracked for this model. How to track
Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support

Space using Tonic/drone-detectonic-0.1 1