Path: blob/master/examples/fastspeech/conf/fastspeech.v1.yaml
1559 views
# This is the hyperparameter configuration file for FastSpeech v1.1# Please make sure this is adjusted for the LJSpeech dataset. If you want to2# apply to the other dataset, you might need to carefully change some parameters.3# This configuration performs 200k iters but a best checkpoint is around 150k iters.45###########################################################6# FEATURE EXTRACTION SETTING #7###########################################################8hop_size: 256 # Hop size.9format: "npy"101112###########################################################13# NETWORK ARCHITECTURE SETTING #14###########################################################15model_type: "fastspeech"1617fastspeech_params:18n_speakers: 119encoder_hidden_size: 38420encoder_num_hidden_layers: 421encoder_num_attention_heads: 222encoder_attention_head_size: 192 # hidden_size // num_attention_heads23encoder_intermediate_size: 102424encoder_intermediate_kernel_size: 325encoder_hidden_act: "mish"26decoder_hidden_size: 38427decoder_num_hidden_layers: 428decoder_num_attention_heads: 229decoder_attention_head_size: 192 # hidden_size // num_attention_heads30decoder_intermediate_size: 102431decoder_intermediate_kernel_size: 332decoder_hidden_act: "mish"33num_duration_conv_layers: 234duration_predictor_filters: 25635duration_predictor_kernel_sizes: 336num_mels: 8037hidden_dropout_prob: 0.138attention_probs_dropout_prob: 0.139duration_predictor_dropout_probs: 0.140max_position_embeddings: 204841initializer_range: 0.0242output_attentions: False43output_hidden_states: False4445###########################################################46# DATA LOADER SETTING #47###########################################################48batch_size: 16 # Batch size for each GPU with asuming that gradient_accumulation_steps is 149remove_short_samples: true # Whether to remove samples the length of which are less than batch_max_steps.50allow_cache: true # Whether to allow cache in dataset. If true, it requires cpu memory.51mel_length_threshold: 32 # remove all targets has mel_length <= 3252is_shuffle: true # shuffle dataset after each epoch.53###########################################################54# OPTIMIZER & SCHEDULER SETTING #55###########################################################56optimizer_params:57initial_learning_rate: 0.00158end_learning_rate: 0.0000559decay_steps: 150000 # < train_max_steps is recommend.60warmup_proportion: 0.0261weight_decay: 0.0016263gradient_accumulation_steps: 164var_train_expr: null # trainable variable expr (eg. 'embeddings|encoder|decoder' )65# must separate by |. if var_train_expr is null then we66# training all variable67###########################################################68# INTERVAL SETTING #69###########################################################70train_max_steps: 200000 # Number of training steps.71save_interval_steps: 5000 # Interval steps to save checkpoint.72eval_interval_steps: 500 # Interval steps to evaluate the network.73log_interval_steps: 200 # Interval steps to record the training log.7475###########################################################76# OTHER SETTING #77###########################################################78num_save_intermediate_results: 1 # Number of batch to be saved as intermediate results.798081