|
| 1 | +# This is the hyperparameter configuration file for Parallel WaveGAN. |
| 2 | +# Please make sure this is adjusted for the CSMSC dataset. If you want to |
| 3 | +# apply to the other dataset, you might need to carefully change some parameters. |
| 4 | +# This configuration requires 12 GB GPU memory and takes ~3 days on RTX TITAN. |
| 5 | + |
| 6 | +########################################################### |
| 7 | +# FEATURE EXTRACTION SETTING # |
| 8 | +########################################################### |
| 9 | +fs: 24000 # Sampling rate. |
| 10 | +n_fft: 512 # FFT size (samples). |
| 11 | +n_shift: 128 # Hop size (samples). 12.5ms |
| 12 | +win_length: 512 # Window length (samples). 50ms |
| 13 | + # If set to null, it will be the same as fft_size. |
| 14 | +window: "hann" # Window function. |
| 15 | +n_mels: 80 # Number of mel basis. |
| 16 | +fmin: 30 # Minimum freq in mel basis calculation. (Hz) |
| 17 | +fmax: 12000 # Maximum frequency in mel basis calculation. (Hz) |
| 18 | + |
| 19 | + |
| 20 | +########################################################### |
| 21 | +# GENERATOR NETWORK ARCHITECTURE SETTING # |
| 22 | +########################################################### |
| 23 | +generator_params: |
| 24 | + in_channels: 1 # Number of input channels. |
| 25 | + out_channels: 1 # Number of output channels. |
| 26 | + kernel_size: 3 # Kernel size of dilated convolution. |
| 27 | + layers: 30 # Number of residual block layers. |
| 28 | + stacks: 3 # Number of stacks i.e., dilation cycles. |
| 29 | + residual_channels: 64 # Number of channels in residual conv. |
| 30 | + gate_channels: 128 # Number of channels in gated conv. |
| 31 | + skip_channels: 64 # Number of channels in skip conv. |
| 32 | + aux_channels: 80 # Number of channels for auxiliary feature conv. |
| 33 | + # Must be the same as num_mels. |
| 34 | + aux_context_window: 2 # Context window size for auxiliary feature. |
| 35 | + # If set to 2, previous 2 and future 2 frames will be considered. |
| 36 | + dropout: 0.0 # Dropout rate. 0.0 means no dropout applied. |
| 37 | + bias: True # use bias in residual blocks |
| 38 | + use_weight_norm: True # Whether to use weight norm. |
| 39 | + # If set to true, it will be applied to all of the conv layers. |
| 40 | + use_causal_conv: False # use causal conv in residual blocks and upsample layers |
| 41 | + upsample_scales: [8, 4, 2, 2] # Upsampling scales. Prodcut of these must be the same as hop size. |
| 42 | + interpolate_mode: "nearest" # upsample net interpolate mode |
| 43 | + freq_axis_kernel_size: 1 # upsamling net: convolution kernel size in frequencey axis |
| 44 | + nonlinear_activation: null |
| 45 | + nonlinear_activation_params: {} |
| 46 | + |
| 47 | +########################################################### |
| 48 | +# DISCRIMINATOR NETWORK ARCHITECTURE SETTING # |
| 49 | +########################################################### |
| 50 | +discriminator_params: |
| 51 | + in_channels: 1 # Number of input channels. |
| 52 | + out_channels: 1 # Number of output channels. |
| 53 | + kernel_size: 3 # Number of output channels. |
| 54 | + layers: 10 # Number of conv layers. |
| 55 | + conv_channels: 64 # Number of chnn layers. |
| 56 | + bias: True # Whether to use bias parameter in conv. |
| 57 | + use_weight_norm: True # Whether to use weight norm. |
| 58 | + # If set to true, it will be applied to all of the conv layers. |
| 59 | + nonlinear_activation: "leakyrelu" # Nonlinear function after each conv. |
| 60 | + nonlinear_activation_params: # Nonlinear function parameters |
| 61 | + negative_slope: 0.2 # Alpha in leakyrelu. |
| 62 | + |
| 63 | +########################################################### |
| 64 | +# STFT LOSS SETTING # |
| 65 | +########################################################### |
| 66 | +stft_loss_params: |
| 67 | + fft_sizes: [1024, 2048, 512] # List of FFT size for STFT-based loss. |
| 68 | + hop_sizes: [120, 240, 50] # List of hop size for STFT-based loss |
| 69 | + win_lengths: [600, 1200, 240] # List of window length for STFT-based loss. |
| 70 | + window: "hann" # Window function for STFT-based loss |
| 71 | + |
| 72 | +########################################################### |
| 73 | +# ADVERSARIAL LOSS SETTING # |
| 74 | +########################################################### |
| 75 | +lambda_adv: 4.0 # Loss balancing coefficient. |
| 76 | + |
| 77 | +########################################################### |
| 78 | +# DATA LOADER SETTING # |
| 79 | +########################################################### |
| 80 | +batch_size: 8 # Batch size. |
| 81 | +batch_max_steps: 25500 # Length of each audio in batch. Make sure dividable by n_shift. |
| 82 | +num_workers: 1 # Number of workers in DataLoader. |
| 83 | + |
| 84 | +########################################################### |
| 85 | +# OPTIMIZER & SCHEDULER SETTING # |
| 86 | +########################################################### |
| 87 | +generator_optimizer_params: |
| 88 | + epsilon: 1.0e-6 # Generator's epsilon. |
| 89 | + weight_decay: 0.0 # Generator's weight decay coefficient. |
| 90 | +generator_scheduler_params: |
| 91 | + learning_rate: 0.0001 # Generator's learning rate. |
| 92 | + step_size: 200000 # Generator's scheduler step size. |
| 93 | + gamma: 0.5 # Generator's scheduler gamma. |
| 94 | + # At each step size, lr will be multiplied by this parameter. |
| 95 | +generator_grad_norm: 10 # Generator's gradient norm. |
| 96 | +discriminator_optimizer_params: |
| 97 | + epsilon: 1.0e-6 # Discriminator's epsilon. |
| 98 | + weight_decay: 0.0 # Discriminator's weight decay coefficient. |
| 99 | +discriminator_scheduler_params: |
| 100 | + learning_rate: 0.00005 # Discriminator's learning rate. |
| 101 | + step_size: 200000 # Discriminator's scheduler step size. |
| 102 | + gamma: 0.5 # Discriminator's scheduler gamma. |
| 103 | + # At each step size, lr will be multiplied by this parameter. |
| 104 | +discriminator_grad_norm: 1 # Discriminator's gradient norm. |
| 105 | + |
| 106 | +########################################################### |
| 107 | +# INTERVAL SETTING # |
| 108 | +########################################################### |
| 109 | +discriminator_train_start_steps: 100000 # Number of steps to start to train discriminator. |
| 110 | +train_max_steps: 400000 # Number of training steps. |
| 111 | +save_interval_steps: 5000 # Interval steps to save checkpoint. |
| 112 | +eval_interval_steps: 1000 # Interval steps to evaluate the network. |
| 113 | + |
| 114 | +########################################################### |
| 115 | +# OTHER SETTING # |
| 116 | +########################################################### |
| 117 | +num_save_intermediate_results: 4 # Number of results to be saved as intermediate results. |
| 118 | +num_snapshots: 10 # max number of snapshots to keep while training |
| 119 | +seed: 42 # random seed for paddle, random, and np.random |
0 commit comments