Repository navigation
Conversation
…gurations Add the AGC8 fields to setup_mfcc.m, so that it generates the mel40_10ms_agc8_compress blob for computing AGC8 features in model training. Update the mel40_10ms preset to use log10 Mel with dynamic mmax and top_db limit, and to run VAD with control updates. The microwakeword PCAN preset now runs VAD to provide the energy and VAD flag for the MWW gating. Add an optional per preset comment that is written to the conf file header, and use it to describe the VAD and DTX choices of the WoV MFCC blobs. Signed-off-by: Seppo Ingalsuo <seppo.ingalsuo@linux.intel.com>
Add the sof-hda-benchmark-mfccmel40_10ms, _pcan and _agc8 testbench topologies for 16, 24 and 32 bit. The MWW model training uses them in sof-testbench4 as the feature extractor, so that training sees bit-exact firmware MFCC features. Signed-off-by: Seppo Ingalsuo <seppo.ingalsuo@linux.intel.com>
…testbench Bring the int8 feature model training updates from the MWW development branch. Training: - The trainer gets its int8 PCAN or AGC8 features (--features) from the SOF MFCC component run in sof-testbench4, so training sees bit-exact firmware features. Each clip is embedded in continuous background with a random level and hop phase, the training window covers the full streaming receptive field, and the evaluation uses the same averaged-probability trigger rule as the firmware. - Digital silence streams, also at stream start while the streaming state is zero, are trained as hard negatives (--digital-silence). - A continuous speech class, windowed over the whole clip length, is added with sof_mww_prepare_common_voice.py that selects a repeatable, bit-exact set of Mozilla Common Voice (CC0) sentences. - The default negative class weight is raised from 2.0 to 3.0 to make the models more conservative on untrained English speech. Model export: - sof_mww_int8_state.py keeps the streaming state in int8 instead of float32 resource variables, with identical outputs. The trainer applies it after the int8 quantization. - The int8 output range is calibrated with 64 whole training windows, half of them keyword windows, streamed through the streaming model. - The exported built-in header, topology and sof-ctl blobs start with struct sof_mww_model_hdr that carries the feature type, trigger threshold and averaging length. Datasets: - sof_mww_asr_transcribe.py and sof_mww_asr_filter.py screen keyword clips with an OpenVINO Whisper model and remove unrecognized ones. - The keyword synthesis uses a new piper speaker for every clip, has clearer generator noise settings, text variants for intonation, and less additive noise. - sof_mww_split_utterances.py splits recordings of a repeated keyword into one WAV per utterance, and sof_mww_anonymize_clips.py renames the clips in a shuffled order. sof_mww_pcan_train_fruits.sh trains the strawberry, banana and orange models for the 3-keyword topology with the other fruits as unknown speech, Common Voice negatives, optional Whisper screening, real recordings with trimming and augmentation, and FEATURES, BUILD_TOOLS and TRAIN_<FRUIT> options. The int32 Mel training flow (sof_mww_train_pipeline.sh, sof_mww_train.py, sof_mww_dataset.py and sof_mww_verify.py) for the removed in-component AGC is removed. The README documents the dataset preparation, training and deployment steps, and model_architecture.md describes the streaming network, its int8 quantization and the firmware trigger rule. Signed-off-by: Seppo Ingalsuo <seppo.ingalsuo@linux.intel.com>
Add native_sim unit tests for the MFCC soft AGC int8 output: default and blob parameter init, Q1.7 conversion and rounding, attack with saturation, the gain floor, the silence and speech release steps and the release stop at the target gain. Signed-off-by: Seppo Ingalsuo <seppo.ingalsuo@linux.intel.com> (cherry picked from commit e72ca54)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.