Path: blob/master/examples/tacotron2/conf/tacotron2.lju.v1.yaml
1559 views
# This is the hyperparameter configuration file for Tacotron2 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 65k iters is enough to get a good models.45###########################################################6# FEATURE EXTRACTION SETTING #7###########################################################8hop_size: 512 # Hop size.9format: "npy"101112###########################################################13# NETWORK ARCHITECTURE SETTING #14###########################################################15model_type: "tacotron2"1617tacotron2_params:18dataset: ljspeechu19embedding_hidden_size: 51220initializer_range: 0.0221embedding_dropout_prob: 0.122n_speakers: 123n_conv_encoder: 524encoder_conv_filters: 51225encoder_conv_kernel_sizes: 526encoder_conv_activation: 'relu'27encoder_conv_dropout_rate: 0.528encoder_lstm_units: 25629n_prenet_layers: 230prenet_units: 25631prenet_activation: 'relu'32prenet_dropout_rate: 0.533n_lstm_decoder: 134reduction_factor: 135decoder_lstm_units: 102436attention_dim: 12837attention_filters: 3238attention_kernel: 3139n_mels: 8040n_conv_postnet: 541postnet_conv_filters: 51242postnet_conv_kernel_sizes: 543postnet_dropout_rate: 0.144attention_type: "lsa"4546###########################################################47# DATA LOADER SETTING #48###########################################################49batch_size: 32 # Batch size for each GPU with assuming that gradient_accumulation_steps == 1.50remove_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.54use_fixed_shapes: true # use_fixed_shapes for training (2x speed-up)5556# refer (https://github.com/dathudeptrai/TensorflowTTS/issues/34#issuecomment-642309118)5758###########################################################59# OPTIMIZER & SCHEDULER SETTING #60###########################################################61optimizer_params:62initial_learning_rate: 0.00163end_learning_rate: 0.0000164decay_steps: 150000 # < train_max_steps is recommend.65warmup_proportion: 0.0266weight_decay: 0.0016768gradient_accumulation_steps: 169var_train_expr: null # trainable variable expr (eg. 'embeddings|decoder_cell' )70# must separate by |. if var_train_expr is null then we71# training all variables.72###########################################################73# INTERVAL SETTING #74###########################################################75train_max_steps: 200000 # Number of training steps.76save_interval_steps: 2000 # Interval steps to save checkpoint.77eval_interval_steps: 500 # Interval steps to evaluate the network.78log_interval_steps: 200 # Interval steps to record the training log.79start_schedule_teacher_forcing: 200001 # don't need to apply schedule teacher forcing.80start_ratio_value: 0.5 # start ratio of scheduled teacher forcing.81schedule_decay_steps: 50000 # decay step scheduled teacher forcing.82end_ratio_value: 0.0 # end ratio of scheduled teacher forcing.83###########################################################84# OTHER SETTING #85###########################################################86num_save_intermediate_results: 1 # Number of results to be saved as intermediate results.878889