Jarbas commited on
Commit
d7c4c3d
·
verified ·
1 Parent(s): 15d3e44

Calibrated int8 models for android, hey computer, hey k9 and hey scout; calibrated wake up replaces the uncalibrated one

Browse files
README.md CHANGED
@@ -28,6 +28,10 @@ datasets:
28
  - TigreGotico/synthetic-wakeword-marvin
29
  - TigreGotico/synthetic-wakeword-sheila
30
  - TigreGotico/synthetic-wakeword-stop
 
 
 
 
31
  - TigreGotico/not-wake-words-speech-en
32
  pipeline_tag: audio-classification
33
  ---
@@ -61,9 +65,13 @@ its own ONNX metadata (`wake_word`, `pretrained_featurizer`, `default_threshold`
61
  | `wakehubert_marvin` | marvin | wakehubert-int8 | yes | 0.06 |
62
  | `wakehubert_sheila` | sheila | wakehubert-int8 | yes | 0.47 |
63
  | `wakehubert_stop` | stop | wakehubert-int8 | yes | 0.14 |
 
 
 
 
 
64
  | `wakehubert_computer` | computer | wakehubert (float32) | no | 0.99 |
65
  | `wakehubert_hey_mycroft` | hey mycroft | wakehubert (float32) | no | 0.965 |
66
- | `wakehubert_wake_up` | wake up | wakehubert (float32) | no | 0.990 |
67
 
68
  ## Use with OpenVoiceOS
69
 
@@ -160,9 +168,9 @@ On a calibrated model the number means the same thing for every word. Its score
160
  that maximises F2, which weighs recall above precision. Raising the threshold toward 0.8 or 0.9 trades recall for
161
  fewer false activations, and lowering it does the opposite.
162
 
163
- The uncalibrated models (`wakehubert_computer`, `wakehubert_hey_mycroft` and `wakehubert_wake_up`) output a
164
- probability too, but their score is not mapped to a false-activation rate. Their threshold is not a calibrated
165
- knob: the same number gives a different trade-off on each of them, and useful values sit close to 1.
166
 
167
  ## Results
168
 
@@ -185,6 +193,11 @@ false activations are counted per hour of negative audio.
185
  | `wakehubert_marvin` | 73.3% | 0.77 | 71.8% | 0.67 | 195 Speech Commands test recordings of real speakers |
186
  | `wakehubert_sheila` | 88.7% | 2.08 | 84.4% | 0.54 | 212 Speech Commands test recordings of real speakers |
187
  | `wakehubert_stop` | 86.6% | 2.06 | 76.9% | 0.45 | 411 Speech Commands test recordings of real speakers |
 
 
 
 
 
188
 
189
  The false activations are counted over 46.5 h of negative audio (speech, non-speech and household audio). The
190
  held-out synthetic voices are text-to-speech voices that no training clip uses, converted to the voices of
@@ -200,9 +213,8 @@ metadata names its own sources. Most of these clips are published in the `TigreG
200
  datasets listed above. Speech from LibriSpeech train-clean-100 is mixed into training clips as background babble.
201
  The negatives are the wakeforge negative list and half of an AudioSet noise sample; the other half is held out.
202
 
203
- `wakehubert_computer` and `wakehubert_wake_up` were trained on synthetic speech only, from
204
- `TigreGotico/synthetic-wakeword-computer` and `TigreGotico/synthetic-wakeword-wake_up`, with negatives from
205
- `TigreGotico/not-wake-words-speech-en` and AudioSet-derived clips. `wakehubert_hey_mycroft` was trained on human
206
  recordings.
207
 
208
  ## Calibration
@@ -214,7 +226,7 @@ the calibrated scale. The fitted slope and offset are in each model's `calib_a`
214
 
215
  ## Limitations
216
 
217
- - Seven of the fourteen calibrated models are scored on held-out synthetic voices, so recall on real speech can
218
  be lower for those words. `wakehubert_jarvis` and `wakehubert_alexa` are scored on the Picovoice recordings,
219
  `wakehubert_hey_chatterbox` and `wakehubert_hey_floyd` on OVOS community recordings, and `wakehubert_marvin`,
220
  `wakehubert_sheila` and `wakehubert_stop` on Speech Commands, all real speakers.
@@ -229,7 +241,9 @@ the calibrated scale. The fitted slope and offset are in each model's `calib_a`
229
  `wakehubert_marvin` on "hey marvin", and `wakehubert_hey_jarvis` on "hey chatterbox". `wakehubert_hello_nabu`,
230
  `wakehubert_hey_marvin` and `wakehubert_okay_nabu` can fire on each other's words, `wakehubert_hey_marvin` also
231
  on "hey rhasspy", "hey robin" and "marvin", `wakehubert_okay_nabu` on "hey rhasspy", `wakehubert_hey_robin` on
232
- "hey marvin", "hey rhasspy" and "okay nabu", and `wakehubert_sheila` on "computer", all at their default
 
 
233
  thresholds. Raise the threshold when two of these models run side by side.
234
  - The models are English only.
235
 
 
28
  - TigreGotico/synthetic-wakeword-marvin
29
  - TigreGotico/synthetic-wakeword-sheila
30
  - TigreGotico/synthetic-wakeword-stop
31
+ - TigreGotico/synthetic-wakeword-android
32
+ - TigreGotico/synthetic-wakeword-hey_computer
33
+ - TigreGotico/synthetic-wakeword-hey_k9
34
+ - TigreGotico/synthetic-wakeword-hey_scout
35
  - TigreGotico/not-wake-words-speech-en
36
  pipeline_tag: audio-classification
37
  ---
 
65
  | `wakehubert_marvin` | marvin | wakehubert-int8 | yes | 0.06 |
66
  | `wakehubert_sheila` | sheila | wakehubert-int8 | yes | 0.47 |
67
  | `wakehubert_stop` | stop | wakehubert-int8 | yes | 0.14 |
68
+ | `wakehubert_android` | android | wakehubert-int8 | yes | 0.42 |
69
+ | `wakehubert_hey_computer` | hey computer | wakehubert-int8 | yes | 0.31 |
70
+ | `wakehubert_hey_k9` | hey k9 | wakehubert-int8 | yes | 0.06 |
71
+ | `wakehubert_hey_scout` | hey scout | wakehubert-int8 | yes | 0.36 |
72
+ | `wakehubert_wake_up` | wake up | wakehubert-int8 | yes | 0.36 |
73
  | `wakehubert_computer` | computer | wakehubert (float32) | no | 0.99 |
74
  | `wakehubert_hey_mycroft` | hey mycroft | wakehubert (float32) | no | 0.965 |
 
75
 
76
  ## Use with OpenVoiceOS
77
 
 
168
  that maximises F2, which weighs recall above precision. Raising the threshold toward 0.8 or 0.9 trades recall for
169
  fewer false activations, and lowering it does the opposite.
170
 
171
+ The uncalibrated models (`wakehubert_computer` and `wakehubert_hey_mycroft`) output a probability too, but their
172
+ score is not mapped to a false-activation rate. Their threshold is not a calibrated knob: the same number gives a
173
+ different trade-off on each of them, and useful values sit close to 1.
174
 
175
  ## Results
176
 
 
193
  | `wakehubert_marvin` | 73.3% | 0.77 | 71.8% | 0.67 | 195 Speech Commands test recordings of real speakers |
194
  | `wakehubert_sheila` | 88.7% | 2.08 | 84.4% | 0.54 | 212 Speech Commands test recordings of real speakers |
195
  | `wakehubert_stop` | 86.6% | 2.06 | 76.9% | 0.45 | 411 Speech Commands test recordings of real speakers |
196
+ | `wakehubert_android` | 98.7% | 0.95 | 96.4% | 0.11 | 390 clips in held-out synthetic voices |
197
+ | `wakehubert_hey_computer` | 96.4% | 0.47 | 93.3% | 0.04 | 390 clips in held-out synthetic voices |
198
+ | `wakehubert_hey_k9` | 99.4% | 0.19 | 93.5% | 0.04 | 338 clips in held-out synthetic voices |
199
+ | `wakehubert_hey_scout` | 95.9% | 0.09 | 93.8% | 0.04 | 390 clips in held-out synthetic voices |
200
+ | `wakehubert_wake_up` | 98.1% | 1.10 | 96.8% | 0.19 | 378 clips in held-out synthetic voices |
201
 
202
  The false activations are counted over 46.5 h of negative audio (speech, non-speech and household audio). The
203
  held-out synthetic voices are text-to-speech voices that no training clip uses, converted to the voices of
 
213
  datasets listed above. Speech from LibriSpeech train-clean-100 is mixed into training clips as background babble.
214
  The negatives are the wakeforge negative list and half of an AudioSet noise sample; the other half is held out.
215
 
216
+ `wakehubert_computer` was trained on synthetic speech only, from `TigreGotico/synthetic-wakeword-computer`, with
217
+ negatives from `TigreGotico/not-wake-words-speech-en` and AudioSet-derived clips. `wakehubert_hey_mycroft` was trained on human
 
218
  recordings.
219
 
220
  ## Calibration
 
226
 
227
  ## Limitations
228
 
229
+ - Twelve of the nineteen calibrated models are scored on held-out synthetic voices, so recall on real speech can
230
  be lower for those words. `wakehubert_jarvis` and `wakehubert_alexa` are scored on the Picovoice recordings,
231
  `wakehubert_hey_chatterbox` and `wakehubert_hey_floyd` on OVOS community recordings, and `wakehubert_marvin`,
232
  `wakehubert_sheila` and `wakehubert_stop` on Speech Commands, all real speakers.
 
241
  `wakehubert_marvin` on "hey marvin", and `wakehubert_hey_jarvis` on "hey chatterbox". `wakehubert_hello_nabu`,
242
  `wakehubert_hey_marvin` and `wakehubert_okay_nabu` can fire on each other's words, `wakehubert_hey_marvin` also
243
  on "hey rhasspy", "hey robin" and "marvin", `wakehubert_okay_nabu` on "hey rhasspy", `wakehubert_hey_robin` on
244
+ "hey marvin", "hey rhasspy" and "okay nabu", `wakehubert_okay_nabu` sometimes on "hey k9", `wakehubert_android`
245
+ sometimes on "hey floyd", `wakehubert_computer` and `wakehubert_hey_computer` on each other's words, and
246
+ `wakehubert_sheila` on "computer", all at their default
247
  thresholds. Raise the threshold when two of these models run side by side.
248
  - The models are English only.
249
 
models.json CHANGED
@@ -392,6 +392,146 @@
392
  }
393
  }
394
  },
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
395
  {
396
  "name": "wakehubert_computer",
397
  "file": "models/wakehubert_computer.onnx",
@@ -417,19 +557,6 @@
417
  "license": "Apache-2.0",
418
  "training_data": "human recordings",
419
  "measured": null
420
- },
421
- {
422
- "name": "wakehubert_wake_up",
423
- "file": "models/wakehubert_wake_up.onnx",
424
- "word": "wake up",
425
- "language": "en",
426
- "featurizer": "wakehubert",
427
- "calibrated": false,
428
- "default_threshold": 0.99,
429
- "sha256": "3b62701229305815fd07955f97aefb522f23689292c59fa0fbd61dd2a9cc34ee",
430
- "license": "Apache-2.0",
431
- "training_data": "TigreGotico/synthetic-wakeword-wake_up (CC BY 4.0); negatives: TigreGotico/not-wake-words-speech-en (CC BY 4.0) and AudioSet-derived clips",
432
- "measured": null
433
  }
434
  ]
435
  }
 
392
  }
393
  }
394
  },
395
+ {
396
+ "name": "wakehubert_android",
397
+ "file": "models/wakehubert_android.onnx",
398
+ "word": "android",
399
+ "language": "en",
400
+ "featurizer": "wakehubert-int8",
401
+ "calibrated": true,
402
+ "default_threshold": 0.42,
403
+ "sha256": "753ad4800946a552c134e8c330d9eab1a042d4b6fb0b0500d8e9395d3761a2cf",
404
+ "license": "Apache-2.0",
405
+ "training_data": "synthetic only: an edge-tts voice grid, OmniVoice clips, with six held-out edge-tts test voices excluded; LibriSpeech train-clean-100 (CC BY 4.0) mixed in as background babble; negatives from wakeforge datasets/train.csv and the even half of an AudioSet noise sample",
406
+ "measured": {
407
+ "default": {
408
+ "recall": 0.987,
409
+ "false_activations_per_hour": 0.95,
410
+ "recall_test_set": "held-out synthetic voices",
411
+ "recall_test_clips": 390,
412
+ "negative_hours": 46.5
413
+ },
414
+ "0.8": {
415
+ "recall": 0.964,
416
+ "false_activations_per_hour": 0.11,
417
+ "recall_test_set": "held-out synthetic voices",
418
+ "recall_test_clips": 390,
419
+ "negative_hours": 46.5
420
+ }
421
+ }
422
+ },
423
+ {
424
+ "name": "wakehubert_hey_computer",
425
+ "file": "models/wakehubert_hey_computer.onnx",
426
+ "word": "hey computer",
427
+ "language": "en",
428
+ "featurizer": "wakehubert-int8",
429
+ "calibrated": true,
430
+ "default_threshold": 0.31,
431
+ "sha256": "6ea782477908e8512a59a7c23541d42913ca39c95295a20b788693cc4a1b07f3",
432
+ "license": "Apache-2.0",
433
+ "training_data": "synthetic only: an edge-tts voice grid, OmniVoice clips, with six held-out edge-tts test voices excluded; LibriSpeech train-clean-100 (CC BY 4.0) mixed in as background babble; negatives from wakeforge datasets/train.csv and the even half of an AudioSet noise sample",
434
+ "measured": {
435
+ "default": {
436
+ "recall": 0.964,
437
+ "false_activations_per_hour": 0.47,
438
+ "recall_test_set": "held-out synthetic voices",
439
+ "recall_test_clips": 390,
440
+ "negative_hours": 46.5
441
+ },
442
+ "0.8": {
443
+ "recall": 0.933,
444
+ "false_activations_per_hour": 0.04,
445
+ "recall_test_set": "held-out synthetic voices",
446
+ "recall_test_clips": 390,
447
+ "negative_hours": 46.5
448
+ }
449
+ }
450
+ },
451
+ {
452
+ "name": "wakehubert_hey_k9",
453
+ "file": "models/wakehubert_hey_k9.onnx",
454
+ "word": "hey k9",
455
+ "language": "en",
456
+ "featurizer": "wakehubert-int8",
457
+ "calibrated": true,
458
+ "default_threshold": 0.06,
459
+ "sha256": "3705ef79d9c7cce3c7e89669b4e1a55f0495ea2719287c9225fed5b6a09d63bf",
460
+ "license": "Apache-2.0",
461
+ "training_data": "synthetic only: an edge-tts voice grid, OmniVoice clips, with six held-out edge-tts test voices excluded; LibriSpeech train-clean-100 (CC BY 4.0) mixed in as background babble; negatives from wakeforge datasets/train.csv and the even half of an AudioSet noise sample",
462
+ "measured": {
463
+ "default": {
464
+ "recall": 0.994,
465
+ "false_activations_per_hour": 0.19,
466
+ "recall_test_set": "held-out synthetic voices",
467
+ "recall_test_clips": 338,
468
+ "negative_hours": 46.5
469
+ },
470
+ "0.8": {
471
+ "recall": 0.935,
472
+ "false_activations_per_hour": 0.04,
473
+ "recall_test_set": "held-out synthetic voices",
474
+ "recall_test_clips": 338,
475
+ "negative_hours": 46.5
476
+ }
477
+ }
478
+ },
479
+ {
480
+ "name": "wakehubert_hey_scout",
481
+ "file": "models/wakehubert_hey_scout.onnx",
482
+ "word": "hey scout",
483
+ "language": "en",
484
+ "featurizer": "wakehubert-int8",
485
+ "calibrated": true,
486
+ "default_threshold": 0.36,
487
+ "sha256": "c72fba4f93cf69b4bd9510682a3a80db67f663a0686f4d331a34d44ff031fdf3",
488
+ "license": "Apache-2.0",
489
+ "training_data": "synthetic only: an edge-tts voice grid, OmniVoice clips, with six held-out edge-tts test voices excluded; LibriSpeech train-clean-100 (CC BY 4.0) mixed in as background babble; negatives from wakeforge datasets/train.csv and the even half of an AudioSet noise sample",
490
+ "measured": {
491
+ "default": {
492
+ "recall": 0.959,
493
+ "false_activations_per_hour": 0.09,
494
+ "recall_test_set": "held-out synthetic voices",
495
+ "recall_test_clips": 390,
496
+ "negative_hours": 46.5
497
+ },
498
+ "0.8": {
499
+ "recall": 0.938,
500
+ "false_activations_per_hour": 0.04,
501
+ "recall_test_set": "held-out synthetic voices",
502
+ "recall_test_clips": 390,
503
+ "negative_hours": 46.5
504
+ }
505
+ }
506
+ },
507
+ {
508
+ "name": "wakehubert_wake_up",
509
+ "file": "models/wakehubert_wake_up.onnx",
510
+ "word": "wake up",
511
+ "language": "en",
512
+ "featurizer": "wakehubert-int8",
513
+ "calibrated": true,
514
+ "default_threshold": 0.36,
515
+ "sha256": "524e54bc24cf790339928bf8656d0c23d533108328e7b316afbd65b8cdfe28aa",
516
+ "license": "Apache-2.0",
517
+ "training_data": "synthetic only: an edge-tts voice grid, OmniVoice clips, with six held-out edge-tts test voices excluded; LibriSpeech train-clean-100 (CC BY 4.0) mixed in as background babble; negatives from wakeforge datasets/train.csv and the even half of an AudioSet noise sample",
518
+ "measured": {
519
+ "default": {
520
+ "recall": 0.981,
521
+ "false_activations_per_hour": 1.1,
522
+ "recall_test_set": "held-out synthetic voices",
523
+ "recall_test_clips": 378,
524
+ "negative_hours": 46.5
525
+ },
526
+ "0.8": {
527
+ "recall": 0.968,
528
+ "false_activations_per_hour": 0.19,
529
+ "recall_test_set": "held-out synthetic voices",
530
+ "recall_test_clips": 378,
531
+ "negative_hours": 46.5
532
+ }
533
+ }
534
+ },
535
  {
536
  "name": "wakehubert_computer",
537
  "file": "models/wakehubert_computer.onnx",
 
557
  "license": "Apache-2.0",
558
  "training_data": "human recordings",
559
  "measured": null
 
 
 
 
 
 
 
 
 
 
 
 
 
560
  }
561
  ]
562
  }
models/wakehubert_android.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:753ad4800946a552c134e8c330d9eab1a042d4b6fb0b0500d8e9395d3761a2cf
3
+ size 467287
models/wakehubert_hey_computer.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6ea782477908e8512a59a7c23541d42913ca39c95295a20b788693cc4a1b07f3
3
+ size 467290
models/wakehubert_hey_k9.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3705ef79d9c7cce3c7e89669b4e1a55f0495ea2719287c9225fed5b6a09d63bf
3
+ size 467285
models/wakehubert_hey_scout.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c72fba4f93cf69b4bd9510682a3a80db67f663a0686f4d331a34d44ff031fdf3
3
+ size 467286
models/wakehubert_wake_up.onnx CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:3b62701229305815fd07955f97aefb522f23689292c59fa0fbd61dd2a9cc34ee
3
- size 5354674
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:524e54bc24cf790339928bf8656d0c23d533108328e7b316afbd65b8cdfe28aa
3
+ size 467286