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
Delete model_config.json with huggingface_hub
Browse files- model_config.json +0 -37
model_config.json
DELETED
|
@@ -1,37 +0,0 @@
|
|
| 1 |
-
{
|
| 2 |
-
"name": "wake-word-detector",
|
| 3 |
-
"description": "Small DS-CNN for wake word detection on RPi4",
|
| 4 |
-
"sample_rate": 16000,
|
| 5 |
-
"clip_duration_ms": 1000,
|
| 6 |
-
"clip_samples": 16000,
|
| 7 |
-
"window_size_ms": 30.0,
|
| 8 |
-
"window_stride_ms": 20.0,
|
| 9 |
-
"num_mel_bins": 40,
|
| 10 |
-
"fft_length": 512,
|
| 11 |
-
"frame_length": 480,
|
| 12 |
-
"frame_step": 320,
|
| 13 |
-
"num_frames": 49,
|
| 14 |
-
"classes": [
|
| 15 |
-
"wake_word",
|
| 16 |
-
"background"
|
| 17 |
-
],
|
| 18 |
-
"test_accuracy": 0.9781144857406616,
|
| 19 |
-
"quantized_accuracy": 0.976,
|
| 20 |
-
"model_size_bytes": 13864,
|
| 21 |
-
"input_type": "int8",
|
| 22 |
-
"output_type": "int8",
|
| 23 |
-
"input_shape": [
|
| 24 |
-
1,
|
| 25 |
-
49,
|
| 26 |
-
40,
|
| 27 |
-
1
|
| 28 |
-
],
|
| 29 |
-
"output_shape": [
|
| 30 |
-
1,
|
| 31 |
-
2
|
| 32 |
-
],
|
| 33 |
-
"input_scale": 0.07490906864404678,
|
| 34 |
-
"input_zero_point": 56,
|
| 35 |
-
"architecture": "DS-CNN (Conv2D + DepthwiseConv2D x3, GlobalAvgPool, Dense)",
|
| 36 |
-
"framework": "TensorFlow/Keras -> TFLite INT8"
|
| 37 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|