Path: blob/master/examples/multiband_melgan/conf/multiband_melgan.baker.v1.yaml
1559 views
1# This is the hyperparameter configuration file for Multi-Band MelGAN.2# Please make sure this is adjusted for the Baker dataset. If you want to3# apply to the other dataset, you might need to carefully change some parameters.4# This configuration performs 1000k iters.56###########################################################7# FEATURE EXTRACTION SETTING #8###########################################################9sampling_rate: 2400010hop_size: 300 # Hop size.11format: "npy"121314###########################################################15# GENERATOR NETWORK ARCHITECTURE SETTING #16###########################################################17model_type: "multiband_melgan_generator"1819multiband_melgan_generator_params:20out_channels: 4 # Number of output channels (number of subbands).21kernel_size: 7 # Kernel size of initial and final conv layers.22filters: 384 # Initial number of channels for conv layers.23upsample_scales: [3, 5, 5] # List of Upsampling scales.24stack_kernel_size: 3 # Kernel size of dilated conv layers in residual stack.25stacks: 4 # 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###########################################################31multiband_melgan_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: 512 # Maximum number of channels of downsampling layers.41downsample_scales: [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# STFT LOSS SETTING #49###########################################################50stft_loss_params:51fft_lengths: [1024, 2048, 512] # List of FFT size for STFT-based loss.52frame_steps: [120, 240, 50] # List of hop size for STFT-based loss53frame_lengths: [600, 1200, 240] # List of window length for STFT-based loss.5455subband_stft_loss_params:56fft_lengths: [384, 683, 171] # List of FFT size for STFT-based loss.57frame_steps: [30, 60, 10] # List of hop size for STFT-based loss58frame_lengths: [150, 300, 60] # List of window length for STFT-based loss.5960###########################################################61# ADVERSARIAL LOSS SETTING #62###########################################################63lambda_feat_match: 10.0 # Loss balancing coefficient for feature matching loss64lambda_adv: 2.5 # Loss balancing coefficient for adversarial loss.6566###########################################################67# DATA LOADER SETTING #68###########################################################69batch_size: 64 # Batch size for each GPU with assuming that gradient_accumulation_steps == 1.70batch_max_steps: 9600 # Length of each audio in batch for training. Make sure dividable by hop_size.71batch_max_steps_valid: 48000 # Length of each audio for validation. Make sure dividable by hope_size.72remove_short_samples: true # Whether to remove samples the length of which are less than batch_max_steps.73allow_cache: true # Whether to allow cache in dataset. If true, it requires cpu memory.74is_shuffle: true # shuffle dataset after each epoch.7576###########################################################77# OPTIMIZER & SCHEDULER SETTING #78###########################################################79generator_optimizer_params:80lr_fn: "PiecewiseConstantDecay"81lr_params:82boundaries: [100000, 200000, 300000, 400000, 500000, 600000, 700000]83values: [0.001, 0.0005, 0.00025, 0.000125, 0.0000625, 0.00003125, 0.000015625, 0.000001]84amsgrad: false8586discriminator_optimizer_params:87lr_fn: "PiecewiseConstantDecay"88lr_params:89boundaries: [100000, 200000, 300000, 400000, 500000]90values: [0.00025, 0.000125, 0.0000625, 0.00003125, 0.000015625, 0.000001]91amsgrad: false9293gradient_accumulation_steps: 194###########################################################95# INTERVAL SETTING #96###########################################################97discriminator_train_start_steps: 200000 # steps begin training discriminator98train_max_steps: 4000000 # Number of training steps.99save_interval_steps: 20000 # Interval steps to save checkpoint.100eval_interval_steps: 5000 # Interval steps to evaluate the network.101log_interval_steps: 200 # Interval steps to record the training log.102103###########################################################104# OTHER SETTING #105###########################################################106num_save_intermediate_results: 1 # Number of batch to be saved as intermediate results.107108109