Path: blob/master/examples/fastspeech2/conf/fastspeech2.kss.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 KSS 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:19dataset: "kss"20n_speakers: 121encoder_hidden_size: 25622encoder_num_hidden_layers: 323encoder_num_attention_heads: 224encoder_attention_head_size: 16 # in v1, = 384//225encoder_intermediate_size: 102426encoder_intermediate_kernel_size: 327encoder_hidden_act: "mish"28decoder_hidden_size: 25629decoder_num_hidden_layers: 330decoder_num_attention_heads: 231decoder_attention_head_size: 16 # in v1, = 384//232decoder_intermediate_size: 102433decoder_intermediate_kernel_size: 334decoder_hidden_act: "mish"35variant_prediction_num_conv_layers: 236variant_predictor_filter: 25637variant_predictor_kernel_size: 338variant_predictor_dropout_rate: 0.539num_mels: 8040hidden_dropout_prob: 0.241attention_probs_dropout_prob: 0.142max_position_embeddings: 204843initializer_range: 0.0244output_attentions: False45output_hidden_states: False4647###########################################################48# DATA LOADER SETTING #49###########################################################50batch_size: 16 # Batch size for each GPU with assuming that gradient_accumulation_steps == 1.51remove_short_samples: true # Whether to remove samples the length of which are less than batch_max_steps.52allow_cache: true # Whether to allow cache in dataset. If true, it requires cpu memory.53mel_length_threshold: 32 # remove all targets has mel_length <= 3254is_shuffle: true # shuffle dataset after each epoch.55###########################################################56# OPTIMIZER & SCHEDULER SETTING #57###########################################################58optimizer_params:59initial_learning_rate: 0.00160end_learning_rate: 0.0000561decay_steps: 150000 # < train_max_steps is recommend.62warmup_proportion: 0.0263weight_decay: 0.0016465gradient_accumulation_steps: 166var_train_expr: null # trainable variable expr (eg. 'embeddings|encoder|decoder' )67# must separate by |. if var_train_expr is null then we68# training all variable69###########################################################70# INTERVAL SETTING #71###########################################################72train_max_steps: 200000 # Number of training steps.73save_interval_steps: 5000 # Interval steps to save checkpoint.74eval_interval_steps: 500 # Interval steps to evaluate the network.75log_interval_steps: 200 # Interval steps to record the training log.76delay_f0_energy_steps: 3 # 2 steps use LR outputs only then 1 steps LR + F0 + Energy.77###########################################################78# OTHER SETTING #79###########################################################80num_save_intermediate_results: 1 # Number of batch to be saved as intermediate results.818283