Tonic's picture
challenge-5 code sync: work scripts + benchmarks + esp32_demo + walkthrough demo (9/9, 20 files)
f75d8e7 verified
|
Raw History Blame Contribute Delete
3.49 kB

Detectonic 0.1 — challenge-5 code (acoustic drone detection on ESP32)

This repo is the code for our Tonic submission to the Paris Hackathon 2026 challenge-5 (acoustic C-UAS: wake word + 4-class sound classification, Metis latency-weighted utility).

Related repos:

repo contents
Tonic/drone-detectonic-0.1 submitted model (SqueezeNet1.1 seed 7) + preds_valid.jsonl / preds_test.jsonl (gated)
Tonic/drone-detectonic-0.1-int8 / -esp32s31-int8 / -esp32s31-float quantized + fused TFLite/ONNX exports (gated)
Tonic/audio-drone-detection-leaderboard hosted leaderboard (97 rows, on-device tab)
Tonic/drone-detectonic-0.1-benchmark-results benchmark result rows
Tonic/unified-drone-acoustic-cuas 22 GB unified training dataset (gated)
Tonic/challenge5-acoustic-* (39 repos) per-run artifacts (ONNX, best.pt, preds, metrics.json, TFLite) (gated)

Layout

<name>.py                  training / job / publish scripts (work/*.py, also used by HF Jobs: resolve/main/<name>.py)
work/benchmarks/           dataset build, eval, board sweeps (bench_all.py, board_sweep_*.py), leaderboard publish scripts,
                           configs/, out/ (bench_all.json, board_wave4.json, board_xiao.json — measured results)
esp32_demo/                ESP32 firmware (firmware/node, firmware/node_s31), coordinator, host test harness, tools/
                           (export_tflite.py, train_nano.py, flash_model.py), FIRMWARE_FACTORY_PLAN.md,
                           CUSTOM_GEMM_PLAN.md, RESEARCH_NOTES.md, canonical fsdata/
SLUKH System Walkthrough/  single-file HTML walkthrough animation (open index.html; #t41..#t54 = on-device perf clock scene)
demo/                      ESP32-S31 demo notes + copy of the walkthrough
viewer.py                  challenge pack viewer
CHALLENGE.md               challenge statement
SUBMISSION_DETAILS_PROGRESS.md  full submission log: evals, kernel ladder, on-device results, gating/verification

Headline results (all measured, 56 challenge-5 clips, decision parity 56/56 vs float ONNX)

where per 5-s window
ESP32-S31 @ 320 MHz, deployed model (fused graph M7, @224) 1.311 s
ESP32-S31, SqueezeNet1.1 @128 (fastest variant) 0.701 s
Seeed XIAO ESP32-S3 (~$8 board), @128 / @224 1.234 s / 4.09 s
kernel ladder on S31: stock int8 TFLM >15 min → TFLM float32 73.1 s → custom im2col-GEMM 21.6 s → ESP-NN M3 1.97 s → M4 1.43 s → M7 1.31 s ×104 from first working run to sub-second
host CPU, ORT float32 / int8 XNNPACK 4.13 ms / 9.09 ms

Wake F1 0.80 (challenge-valid), 4-class acc 0.875, camera-off 62.5%, utility 0.7438 (#1 of 31 wave-1/3 runs).

Reproduce

  1. Training/eval: work/benchmarks/ scripts (train_family.py, eval_ours.py, bench_all.py), dataset via build_hub_dataset.py.
  2. On-device: esp32_demo/FIRMWARE_FACTORY_PLAN.md + tools/flash_model.py (firmware factory, flash cache) → board_sweep_*.py measure on-device.
  3. Push artifacts: work/push_code_01.py (this repo), publish_*.py (model/results repos).