Path: blob/master/examples/fastspeech2/conf/fastspeech2.v2.yaml
1559 views
# This is the hyperparameter configuration file for FastSpeech2 v2.1# the different of v2 and v1 is that v2 apply linformer technique.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 200k iters but a best checkpoint is around 150k iters.56###########################################################7# FEATURE EXTRACTION SETTING #8###########################################################9hop_size: 256 # Hop size.10format: "npy"111213###########################################################14# NETWORK ARCHITECTURE SETTING #15###########################################################16model_type: "fastspeech2"1718fastspeech2_params:19n_speakers: 120encoder_hidden_size: 25621encoder_num_hidden_layers: 322encoder_num_attention_heads: 223encoder_attention_head_size: 16 # in v1, = 384//224encoder_intermediate_size: 102425encoder_intermediate_kernel_size: 326encoder_hidden_act: "mish"27decoder_hidden_size: 25628decoder_num_hidden_layers: 329decoder_num_attention_heads: 230decoder_attention_head_size: 16 # in v1, = 384//231decoder_intermediate_size: 102432decoder_intermediate_kernel_size: 333decoder_hidden_act: "mish"34variant_prediction_num_conv_layers: 235variant_predictor_filter: 25636variant_predictor_kernel_size: 337variant_predictor_dropout_rate: 0.538num_mels: 8039hidden_dropout_prob: 0.240attention_probs_dropout_prob: 0.141max_position_embeddings: 204842initializer_range: 0.0243output_attentions: False44output_hidden_states: False4546###########################################################47# DATA LOADER SETTING #48###########################################################49batch_size: 16 # Batch size for each GPU with assuming that gradient_accumulation_steps == 150remove_short_samples: true # Whether to remove samples the length of which are less than batch_max_steps.51allow_cache: true # Whether to allow cache in dataset. If true, it requires cpu memory.52mel_length_threshold: 32 # remove all targets has mel_length <= 3253is_shuffle: true # shuffle dataset after each epoch.54###########################################################55# OPTIMIZER & SCHEDULER SETTING #56###########################################################57optimizer_params:58initial_learning_rate: 0.00159end_learning_rate: 0.0000560decay_steps: 150000 # < train_max_steps is recommend.61warmup_proportion: 0.0262weight_decay: 0.0016364gradient_accumulation_steps: 165var_train_expr: null # trainable variable expr (eg. 'embeddings|encoder|decoder' )66# must separate by |. if var_train_expr is null then we67# training all variable68###########################################################69# INTERVAL SETTING #70###########################################################71train_max_steps: 200000 # Number of training steps.72save_interval_steps: 5000 # Interval steps to save checkpoint.73eval_interval_steps: 500 # Interval steps to evaluate the network.74log_interval_steps: 200 # Interval steps to record the training log.75delay_f0_energy_steps: 3 # 2 steps use LR outputs only then 1 steps LR + F0 + Energy.76###########################################################77# OTHER SETTING #78###########################################################79num_save_intermediate_results: 1 # Number of batch to be saved as intermediate results.808182