|
| 1 | + |
| 2 | +# This is the hyperparameter configuration file for Multi-Band MelGAN with PWGAN discriminator. |
| 3 | +# Please make sure this is adjusted for the LJSpeech dataset. If you want to |
| 4 | +# apply to the other dataset, you might need to carefully change some parameters. |
| 5 | +# This configuration performs 1000k iters. |
| 6 | + |
| 7 | +########################################################### |
| 8 | +# FEATURE EXTRACTION SETTING # |
| 9 | +########################################################### |
| 10 | +sampling_rate: 22050 |
| 11 | +hop_size: 256 # Hop size. |
| 12 | +format: "npy" |
| 13 | + |
| 14 | + |
| 15 | +########################################################### |
| 16 | +# GENERATOR NETWORK ARCHITECTURE SETTING # |
| 17 | +########################################################### |
| 18 | +model_type: "multiband_melgan_generator" |
| 19 | + |
| 20 | +multiband_melgan_generator_params: |
| 21 | + out_channels: 4 # Number of output channels (number of subbands). |
| 22 | + kernel_size: 7 # Kernel size of initial and final conv layers. |
| 23 | + filters: 384 # Initial number of channels for conv layers. |
| 24 | + upsample_scales: [8, 4, 2] # List of Upsampling scales. |
| 25 | + stack_kernel_size: 3 # Kernel size of dilated conv layers in residual stack. |
| 26 | + stacks: 4 # Number of stacks in a single residual stack module. |
| 27 | + is_weight_norm: false # Use weight-norm or not. |
| 28 | + |
| 29 | +########################################################### |
| 30 | +# DISCRIMINATOR NETWORK ARCHITECTURE SETTING # |
| 31 | +########################################################### |
| 32 | +parallel_wavegan_discriminator_params: |
| 33 | + out_channels: 1 # Number of output channels. |
| 34 | + kernel_size: 3 # Number of output channels. |
| 35 | + n_layers: 10 # Number of conv layers. |
| 36 | + conv_channels: 64 # Number of chnn layers. |
| 37 | + use_bias: true # Whether to use bias parameter in conv. |
| 38 | + nonlinear_activation: "LeakyReLU" # Nonlinear function after each conv. |
| 39 | + nonlinear_activation_params: # Nonlinear function parameters |
| 40 | + alpha: 0.2 # Alpha in LeakyReLU. |
| 41 | + |
| 42 | +########################################################### |
| 43 | +# STFT LOSS SETTING # |
| 44 | +########################################################### |
| 45 | +stft_loss_params: |
| 46 | + fft_lengths: [1024, 2048, 512] # List of FFT size for STFT-based loss. |
| 47 | + frame_steps: [120, 240, 50] # List of hop size for STFT-based loss |
| 48 | + frame_lengths: [600, 1200, 240] # List of window length for STFT-based loss. |
| 49 | + |
| 50 | +subband_stft_loss_params: |
| 51 | + fft_lengths: [384, 683, 171] # List of FFT size for STFT-based loss. |
| 52 | + frame_steps: [30, 60, 10] # List of hop size for STFT-based loss |
| 53 | + frame_lengths: [150, 300, 60] # List of window length for STFT-based loss. |
| 54 | + |
| 55 | +########################################################### |
| 56 | +# ADVERSARIAL LOSS SETTING # |
| 57 | +########################################################### |
| 58 | +lambda_feat_match: 10.0 # Loss balancing coefficient for feature matching loss |
| 59 | +lambda_adv: 2.5 # Loss balancing coefficient for adversarial loss. |
| 60 | + |
| 61 | +########################################################### |
| 62 | +# DATA LOADER SETTING # |
| 63 | +########################################################### |
| 64 | +batch_size: 64 # Batch size. |
| 65 | +batch_max_steps: 8192 # Length of each audio in batch for training. Make sure dividable by hop_size. |
| 66 | +batch_max_steps_valid: 81920 # Length of each audio for validation. Make sure dividable by hope_size. |
| 67 | +remove_short_samples: true # Whether to remove samples the length of which are less than batch_max_steps. |
| 68 | +allow_cache: true # Whether to allow cache in dataset. If true, it requires cpu memory. |
| 69 | +is_shuffle: true # shuffle dataset after each epoch. |
| 70 | + |
| 71 | +########################################################### |
| 72 | +# OPTIMIZER & SCHEDULER SETTING # |
| 73 | +########################################################### |
| 74 | +generator_optimizer_params: |
| 75 | + lr_fn: "PiecewiseConstantDecay" |
| 76 | + lr_params: |
| 77 | + boundaries: [100000, 200000, 300000, 400000, 500000, 600000, 700000] |
| 78 | + values: [0.0005, 0.0005, 0.00025, 0.000125, 0.0000625, 0.00003125, 0.000015625, 0.000001] |
| 79 | + amsgrad: false |
| 80 | + |
| 81 | +discriminator_optimizer_params: |
| 82 | + lr_fn: "PiecewiseConstantDecay" |
| 83 | + lr_params: |
| 84 | + boundaries: [100000, 200000, 300000, 400000, 500000] |
| 85 | + values: [0.00025, 0.000125, 0.0000625, 0.00003125, 0.000015625, 0.000001] |
| 86 | + amsgrad: false |
| 87 | + |
| 88 | +########################################################### |
| 89 | +# INTERVAL SETTING # |
| 90 | +########################################################### |
| 91 | +discriminator_train_start_steps: 200000 # steps begin training discriminator |
| 92 | +train_max_steps: 4000000 # Number of training steps. |
| 93 | +save_interval_steps: 20000 # Interval steps to save checkpoint. |
| 94 | +eval_interval_steps: 5000 # Interval steps to evaluate the network. |
| 95 | +log_interval_steps: 200 # Interval steps to record the training log. |
| 96 | + |
| 97 | +########################################################### |
| 98 | +# OTHER SETTING # |
| 99 | +########################################################### |
| 100 | +num_save_intermediate_results: 1 # Number of batch to be saved as intermediate results. |
0 commit comments