Path: blob/master/examples/melgan/conf/melgan.v1.yaml
1559 views
1# This is the hyperparameter configuration file for MelGAN.2# Please make sure this is adjusted for the LJSpeech dataset. If you want to3# apply to the other dataset, you might need to carefully change some parameters.4# This configuration performs 4000k iters.56###########################################################7# FEATURE EXTRACTION SETTING #8###########################################################9sampling_rate: 22050 # Sampling rate of dataset.10hop_size: 256 # Hop size.11format: "npy"121314###########################################################15# GENERATOR NETWORK ARCHITECTURE SETTING #16###########################################################17model_type: "melgan_generator"1819melgan_generator_params:20out_channels: 1 # Number of output channels.21kernel_size: 7 # Kernel size of initial and final conv layers.22filters: 512 # Initial number of channels for conv layers.23upsample_scales: [8, 8, 2, 2] # List of Upsampling scales.24stack_kernel_size: 3 # Kernel size of dilated conv layers in residual stack.25stacks: 3 # Number of stacks in a single residual stack module.26is_weight_norm: false # Use weight-norm or not.2728###########################################################29# DISCRIMINATOR NETWORK ARCHITECTURE SETTING #30###########################################################31melgan_discriminator_params:32out_channels: 1 # Number of output channels.33scales: 3 # Number of multi-scales.34downsample_pooling: "AveragePooling1D" # Pooling type for the input downsampling.35downsample_pooling_params: # Parameters of the above pooling function.36pool_size: 437strides: 238kernel_sizes: [5, 3] # List of kernel size.39filters: 16 # Number of channels of the initial conv layer.40max_downsample_filters: 1024 # Maximum number of channels of downsampling layers.41downsample_scales: [4, 4, 4, 4] # List of downsampling scales.42nonlinear_activation: "LeakyReLU" # Nonlinear activation function.43nonlinear_activation_params: # Parameters of nonlinear activation function.44alpha: 0.245is_weight_norm: false # Use weight-norm or not.4647###########################################################48# ADVERSARIAL LOSS SETTING #49###########################################################50lambda_feat_match: 10.05152###########################################################53# DATA LOADER SETTING #54###########################################################55batch_size: 16 # Batch size for each GPU with assuming that gradient_accumulation_steps == 1.56batch_max_steps: 8192 # Length of each audio in batch for training. Make sure dividable by hop_size.57batch_max_steps_valid: 81920 # Length of each audio for validation. Make sure dividable by hope_size.58remove_short_samples: true # Whether to remove samples the length of which are less than batch_max_steps.59allow_cache: true # Whether to allow cache in dataset. If true, it requires cpu memory.60is_shuffle: true # shuffle dataset after each epoch.6162###########################################################63# OPTIMIZER & SCHEDULER SETTING #64###########################################################65generator_optimizer_params:66lr: 0.0001 # Generator's learning rate.67beta_1: 0.568beta_2: 0.96970discriminator_optimizer_params:71lr: 0.0001 # Discriminator's learning rate.72beta_1: 0.573beta_2: 0.97475gradient_accumulation_steps: 176###########################################################77# INTERVAL SETTING #78###########################################################79train_max_steps: 4000000 # Number of training steps.80save_interval_steps: 3 # Interval steps to save checkpoint.81eval_interval_steps: 2 # Interval steps to evaluate the network.82log_interval_steps: 1 # Interval steps to record the training log.83discriminator_train_start_steps: 0 # step to start training discriminator.8485###########################################################86# OTHER SETTING #87###########################################################88num_save_intermediate_results: 1 # Number of batch to be saved as intermediate results.899091