Log-mel feature normalization
We normalize the acoustic log mel features based on the global mean and variance recorded over the training dataset.
Record dataset stats
python -m caiman_train.data.generate_mel_stats computes these statistics
and stores them as PyTorch tensors. caiman_train/scripts/make_json_artifacts.sh shows how to run it.
Training stability
Empirically, it was found that normalizing the input activations with dataset global mean and variance makes the early stage of training unstable.
So when both --norm_ramp_start and --norm_ramp_end are set, training moves between two modes of normalization on a schedule.
This is controlled by the arguments in caiman_train/src/caiman_train/args/mel_feat_norm.py.
Validation
When running validation, the dataset global mean and variance are always used for normalization regardless of how far through the schedule the model is.
Backwards compatibility
Prior to v1.9.0, the per-utterance stats were used for normalization during training (and then streaming normalization was used during inference).
To evaluate a model trained on <=v1.8.0, use the --norm_over_utterance flag to the val.sh script.