Skip to content

Releases

KeywordTensor 1.5.4

Choose a tag to compare

@fkondela fkondela released this 09 Oct 18:18

✨ Feature: Updated tak_nie Model

  • Released an updated version of the tak_nie model trained specifically for the Researchers' Night event, capable of handling extreme background noise and high-pitched voices.

KeywordTensor 1.5.3

Choose a tag to compare

@fkondela fkondela released this 03 Oct 19:54

✨ Feature: Retry Support in Recording

  • Added "retry" return option to the target parameter in .record(). Returning it automatically repeats the bad audio sample during dataset collection.

KeywordTensor 1.5.2

Choose a tag to compare

@fkondela fkondela released this 08 Aug 16:44

🔧 Patch: PyPI Logo Fix

  • Fixed an issue with double logo rendering on the PyPI project page.

Keywordtensor 1.5.1

Choose a tag to compare

@fkondela fkondela released this 08 Aug 16:33

This release includes several important fixes and adjustments to the training engine, ensuring better model robustness and more stable performance across different datasets.

⚖️ Handling of Imbalanced Data

We rebuilt the way the model learns from unequal datasets. You can now confidently train custom models on datasets with significant differences in class sizes. The updated algorithm balances the training process, preventing the issue of ignoring smaller classes.

🔇 Background Noise Class (other) Adjustments

We refined the mechanism that calculates the optimal size of the other class. As a result, the model is much better at balancing its sensitivity to commands while safely rejecting background noise and random spoken words.

🎧 Augmented Quiet Audio

We increased the range of random volume reduction (Gain) during the training process. Models now learn to recognize commands more effectively, even when the user speaks quieter or is further away from the microphone.

KeywordTensor 1.5.0

Choose a tag to compare

@fkondela fkondela released this 07 Aug 15:48

✨ 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.

KeywordTensor 1.4.1

Choose a tag to compare

@fkondela fkondela released this 05 Aug 11:54

This release expands the KeywordTensor library with a rich collection of new pretrained models, native support for the English MSWC dataset, and smart auto-downloading for pretrained models. We have also added an entire suite of ready-to-use applications to our examples.

🌟 New Demos & Examples

  • Interactive Web Demos: Added fully playable 2048 and Sokoban games controlled entirely by voice.
  • Ready-to-use Python Apps: The examples/ directory now includes complete implementations for an assistant, media_player_control, and presentation_controller.

🤖 Pretrained Models & Datasets

  • New Pretrained Models: Added powerful new ready-to-use models: numbers (0-9), assistant (Marvin/Sheila), media_control (Play/Stop/Next/Back), and spatial_nav (Up/Down/Left/Right).
  • Smart Auto-Downloading: Pretrained models (approx. 40MB) are no longer bundled directly with the library. KeywordTensor now automatically fetches and downloads these models on-the-fly only when they are needed.
  • English MSWC Support: We have officially added native support for training and evaluation on the massive English MSWC dataset.

🛠️ Patch 1.4.1 Note

  • PyPI Release Fix: Added MANIFEST.in to keep the package lightweight and ensure seamless automated PyPI distribution.

KeywordTensor 1.4.0

Choose a tag to compare

@fkondela fkondela released this 05 Aug 11:28

This release expands the KeywordTensor library with a rich collection of new pretrained models, native support for the English MSWC dataset, and smart auto-downloading for pretrained models. We have also added an entire suite of ready-to-use applications to our examples.

🌟 New Demos & Examples

  • Interactive Web Demos: Added fully playable 2048 and Sokoban games controlled entirely by voice.
  • Ready-to-use Python Apps: The examples/ directory now includes complete implementations for an assistant, media_player_control, and presentation_controller.

🤖 Pretrained Models & Datasets

  • New Pretrained Models: Added powerful new ready-to-use models: numbers (0-9), assistant (Marvin/Sheila), media_control (Play/Stop/Next/Back), and spatial_nav (Up/Down/Left/Right).
  • Smart Auto-Downloading: Pretrained models (approx. 40MB) are no longer bundled directly with the library. KeywordTensor now automatically fetches and downloads these models on-the-fly only when they are needed.
  • English MSWC Support: We have officially added native support for training and evaluation on the massive English MSWC dataset.

KeywordTensor 1.3.0

Choose a tag to compare

@fkondela fkondela released this 29 Jul 17:04

This release brings significant improvements to the KeywordTensor training engine, focusing on a new background noise dataset, enhanced audio randomness, and advanced hardware support.

⚡ Core & Background Noise

  • Background Noise Dataset: The engine now natively integrates the Myrtle/CAIMAN-ASR-BackgroundNoise dataset for background noise generation, completely replacing the ESC-50 dataset.

🎙️ Audio Processing Pipeline

  • Advanced Temporal Cropping: The internal audio loading pipeline has been completely rebuilt to support advanced data augmentation. The engine now applies dynamic random temporal cropping (for long audio files) and random zero-padding (for short files) exclusively during the training phase. This drastically improves the model's robustness against unpredictable temporal shifts in real-world scenarios.

📊 Training & Callbacks

  • Custom FastAI Callbacks: Added a new cbs parameter to the train() method. Developers can now seamlessly inject custom FastAI callbacks (e.g., Weights & Biases, TensorBoard loggers) directly into the training loop for advanced tracking and telemetry.
  • Multi-GPU ONNX Export: Re-engineered the ONNX model export logic. The engine now automatically detects and unwraps nn.DataParallel structures, ensuring that models trained on multi-GPU systems maintain clean, prefix-free layer structures during deployment.

KeywordTensor 1.2.8

Choose a tag to compare

@fkondela fkondela released this 27 Jul 15:56

Fix missing _config suffix in tak_nie model filename

KeywordTensor 1.2.7

Choose a tag to compare

@fkondela fkondela released this 27 Jul 15:43

Changed the default pretrained model