Instructions to use pollen-robotics/wake-word-detector with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Keras
How to use pollen-robotics/wake-word-detector with Keras:
# !pip install -U keras tensorflow huggingface_hub # Keras needs TensorFlow installed to read "hf://" paths, so the tensorflow backend is selected here; # "jax" and "torch" also work for computation once TensorFlow is installed. import os os.environ["KERAS_BACKEND"] = "tensorflow" import keras model = keras.saving.load_model("hf://pollen-robotics/wake-word-detector") - Notebooks
- Google Colab
- Kaggle
Upload model_config.json with huggingface_hub
Browse files- model_config.json +41 -0
model_config.json
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"name": "wake-word-detector",
|
| 3 |
+
"description": "DNN classifier on Google Speech Embeddings for wake word detection on RPi4",
|
| 4 |
+
"version": "v10",
|
| 5 |
+
"sample_rate": 16000,
|
| 6 |
+
"chunk_samples": 1280,
|
| 7 |
+
"n_mel_bins": 32,
|
| 8 |
+
"mel_window": 76,
|
| 9 |
+
"mel_step": 8,
|
| 10 |
+
"embedding_dim": 96,
|
| 11 |
+
"n_feature_frames": 16,
|
| 12 |
+
"classes": [
|
| 13 |
+
"wake_word",
|
| 14 |
+
"background"
|
| 15 |
+
],
|
| 16 |
+
"test_accuracy": 0.9978947639465332,
|
| 17 |
+
"quantized_accuracy": 0.996,
|
| 18 |
+
"model_size_bytes": 112800,
|
| 19 |
+
"input_type": "int8",
|
| 20 |
+
"output_type": "int8",
|
| 21 |
+
"input_shape": [
|
| 22 |
+
1,
|
| 23 |
+
16,
|
| 24 |
+
96
|
| 25 |
+
],
|
| 26 |
+
"output_shape": [
|
| 27 |
+
1,
|
| 28 |
+
2
|
| 29 |
+
],
|
| 30 |
+
"input_scale": 0.5585668087005615,
|
| 31 |
+
"input_zero_point": -12,
|
| 32 |
+
"architecture": "DNN (Flatten, Dense64, LayerNorm, Dense32, LayerNorm, Dense2)",
|
| 33 |
+
"framework": "TensorFlow/Keras -> TFLite INT8",
|
| 34 |
+
"frozen_models": {
|
| 35 |
+
"melspectrogram": "https://github.com/dscripka/openWakeWord/releases/download/v0.5.1/melspectrogram.tflite",
|
| 36 |
+
"embedding": "https://github.com/dscripka/openWakeWord/releases/download/v0.5.1/embedding_model.tflite"
|
| 37 |
+
},
|
| 38 |
+
"melspec_transform": "x/10 + 2",
|
| 39 |
+
"pipeline": "audio -> melspectrogram.tflite -> embedding.tflite -> DNN classifier",
|
| 40 |
+
"loss": "SparseCategoricalCrossentropy with class_weight upweighting wake_word"
|
| 41 |
+
}
|