George Joseph cb81f7f02d Train from the command line
The files in the `cli` directory allow you to train wake words
from the command line without needing to use the Jupyter notebook
or a web browser.  Basically, the logic from the notebook has been
placed in separate shell scripts and python files wrapped by 3 high-level
scripts that do the following:

* setup_python_venv: Creates a Python virtual environment with all the
packages needed to train.  The venv is created in the container's /data
directory and is therefore stored on the host, not in the container's root
docker volume.

* setup_training_datasets: Downloads, extracts and converts the MIT RIR,
FMA, Audioset and Negative training reference datasets.  Also stored in /data.

* train_wake_word: Generates the wake word samples, augments them with the
audio from the training datasets, and finally runs the microwakeword training.
The resulting model tflite and json files are placed in the /data/output
directory.

See the README.md file for much more information.
2025-12-28 12:48:51 -07:00
2025-12-28 12:48:51 -07:00
2025-01-02 20:22:06 -06:00
2025-01-02 23:15:53 -06:00
2025-09-27 15:04:16 -05:00
2025-09-26 19:35:09 -05:00

MicroWakeWord Trainer Logo

microWakeWord Trainer Docker

🥔 MicroWakeWord Trainer Tater Approved

Tater Totterson tested & working on an NVIDIA RTX 3070 Laptop GPU (8 GB VRAM).
Easily train microWakeWord detection models with this pre-built Docker image and JupyterLab notebook.


🚀 Quick Start

Follow these steps to get up and running:

1 Pull the Pre-Built Docker Image

docker pull ghcr.io/tatertotterson/microwakeword:latest

2 Run the Docker Container

docker run --rm -it \
    --gpus all \
    -p 8888:8888 \
    -v $(pwd):/data \
    ghcr.io/tatertotterson/microwakeword:latest

What these flags do:

  • --gpus all → Enables GPU acceleration
  • -p 8888:8888 → Exposes JupyterLab on port 8888
  • -v $(pwd):/data → Saves your work in the current folder

3 Open JupyterLab

Visit http://localhost:8888 in your browser — the notebook UI will open.


4 Set Your Wake Word

At the top of the notebook, find this line:

TARGET_WORD = "hey_tater"  # Change this to your desired wake word

Change "hey_tater" to your desired wake word (phonetic spellings often work best).


5 Run the Notebook

Run all cells in the notebook. This process will:

  • Generate wake word samples
  • Train a detection model
  • Output a quantized .tflite model ready for on-device use

6 Retrieve the Trained Model & JSON

When training finishes, download links for both the .tflite model and its .json manifest will be displayed in the last cell.


🔄 Resetting to a Clean State

If you need to start fresh:

  1. Delete the data folder that was mapped to your Docker container.
  2. Restart the container using the steps above.
  3. A fresh copy of the notebook will be placed into the data directory.

🙌 Credits

This project builds upon the excellent work of kahrendt/microWakeWord.
Huge thanks to the original authors for their contributions to the open-source community!

Description
No description provided
Readme 2 MiB
Languages
Python 42.3%
HTML 37.1%
Shell 20.6%