Skip to content

KeywordTensor 1.5.0

Choose a tag to compare

@fkondela fkondela released this 07 Aug 15:48
· 19 commits to main since this release

✨ What's New

This release is a huge update, introducing a redesigned data pipeline, realistic acoustic simulation, and a much more flexible training architecture. Models trained with this update are designed to generalize better to noisy, real-world environments.

🚀 Simplified Training Workflow

Training robust keyword spotting models now requires far less setup. Simply combine datasets, specify your keyword, background, and RIR classes, and the engine automatically prepares the training pipeline:

model.train(
    dataset=["google", "caiman", "openrir", "hf:user/custom", "../my_audio"],
    classes=["one", "two", "three"],
    bg_classes=["background"],
    rir_classes=["rir"],
    mixed=True
)

🗂️ Unified Dataset Architecture

  • Multiple Dataset Support: You can now pass multiple datasets simultaneously. The engine natively handles built-in datasets, Hugging Face repositories, and local folders all at once.
  • Real Background Noise & RIR Mixing: By simply specifying bg_classes and rir_classes, the engine automatically extracts background recordings and room impulse responses from your dataset pool and mixes them directly into your training samples.
  • Native "Mixed" Class: Setting mixed=True automatically builds a highly robust "other" class by intelligently blending unused words with your background recordings.

📦 Native Datasets On-Demand

Instead of forcing a single dataset, you now choose exactly what goes into your pool. The engine features native one-click support for the following datasets and automatically downloads them if you need them:

  • google – The classic Speech Commands dataset.
  • mswc – The massive English Multilingual Spoken Words Corpus.
  • mswc-pl – Polish subset of the MSWC dataset.
  • caiman – Authentic real-world background sounds for robust noise augmentation.
  • openrir – Real Room Impulse Responses to simulate acoustic reverberation and echoes.

🎧 Realistic Acoustic Augmentations

  • Physical Audio Augmentations: The augmentation pipeline now incorporates authentic background recordings and room impulse responses alongside existing audio augmentations.
  • Improved Robustness: Spectrogram and audio augmentations have been refined to improve robustness against frequency loss, bandwidth limitations, and short audio dropouts.
  • Better Real-World Models: Our pretrained models have been retrained using the new augmentation pipeline, improving robustness in noisy everyday environments.

⚙️ Under-The-Hood Engine Upgrades

  • Automatic Class Balancing: The new engine automatically balances imbalanced datasets during training without requiring manual class weights.
  • Advanced Training Metrics: Added Precision, Recall, and F1 Score tracking to the training logs.