Upload config.yaml with huggingface_hub
Browse files- config.yaml +22 -0
config.yaml
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
inference:
|
| 2 |
+
# Sigmoid probability above which a chunk is declared drone-present.
|
| 3 |
+
detection_threshold: 0.5
|
| 4 |
+
|
| 5 |
+
# Audio chunk length in seconds fed to the model.
|
| 6 |
+
chunk_duration: 1.0
|
| 7 |
+
|
| 8 |
+
# Fraction of each chunk that overlaps with the previous one.
|
| 9 |
+
# 0.0 = no overlap (lowest CPU), 0.5 = 50% overlap (2 Hz detection cadence).
|
| 10 |
+
chunk_overlap: 0.5
|
| 11 |
+
|
| 12 |
+
audio:
|
| 13 |
+
sample_rate: 16000
|
| 14 |
+
n_mels: 64
|
| 15 |
+
n_fft: 512
|
| 16 |
+
hop_length: 160
|
| 17 |
+
f_min: 50
|
| 18 |
+
f_max: 5500
|
| 19 |
+
|
| 20 |
+
gpio:
|
| 21 |
+
# BCM pin number driven HIGH when a drone is detected, LOW otherwise.
|
| 22 |
+
trigger_pin: 17
|