Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hyperparameters 📚 #2

Open
ivankunyankin opened this issue Jul 5, 2021 · 0 comments
Open

Hyperparameters 📚 #2

ivankunyankin opened this issue Jul 5, 2021 · 0 comments
Labels
documentation Improvements or additions to documentation

Comments

@ivankunyankin
Copy link
Owner

ivankunyankin commented Jul 5, 2021

A short description of hyperparameters from config.yml

Training parameters

  1. max_length - maximum file length in seconds. Longer files are omitted. Used to avoid OOM (out-of-memory) error. Also reduces the amount of data samples used for training and validation.
  2. weight_decay - regularization parameter. Can be increased when using constant learning rate
  3. use_onecyclelr - use PyTorch's implementation of cyclic learning rate policy
  4. spec_params - a set of parameters for generating mel spectrograms. Described here. When changing these one should consider changing parameters of masking.
  5. normalize - apply normalization. By default applies normalization from stats saved in assests/stats.npy to each mel channel separately. Saved stats were calculated from LibriTTS. If training on different data, these should be recalculated. More details here.

Augmentation parameters

  1. speed_perturbation - randomly chooses the rate of perturbation between 1 +- specified value.
  2. chunk_size - size of each spectrogram segment (time axis) to apply augmentation to. Set equal to -1 to apply original pytorch's masking. Examples shown below
  3. freq_masking, time_masking - the maximum width of masking band. More details here

Augmentation examples

Original pytorch functions applied. Less aggresive augmentation

Screenshot 2021-07-01 at 11 37 33

Custom function applied. More aggresive augmentation

Screenshot 2021-07-01 at 11 38 00

@ivankunyankin ivankunyankin added the documentation Improvements or additions to documentation label Jul 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

1 participant