Path: blob/master/examples/tacotron2/conf/tacotron2.baker.v1.yaml
1559 views
# This is the hyperparameter configuration file for Tacotron2 v1.1# Please make sure this is adjusted for the Baker 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: 256 # Hop size.9format: "npy"101112###########################################################13# NETWORK ARCHITECTURE SETTING #14###########################################################15model_type: "tacotron2"1617tacotron2_params:18dataset: baker19embedding_hidden_size: 51220initializer_range: 0.521embedding_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: 235decoder_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)55# refer (https://github.com/tensorspeech/TensorflowTTS/issues/34#issuecomment-642309118)5657###########################################################58# OPTIMIZER & SCHEDULER SETTING #59###########################################################60optimizer_params:61initial_learning_rate: 0.00162end_learning_rate: 0.0000163decay_steps: 150000 # < train_max_steps is recommend.64warmup_proportion: 0.0265weight_decay: 0.0016667gradient_accumulation_steps: 168var_train_expr: null # trainable variable expr (eg. 'embeddings|decoder_cell' )69# must separate by |. if var_train_expr is null then we70# training all variable71###########################################################72# INTERVAL SETTING #73###########################################################74train_max_steps: 200000 # Number of training steps.75save_interval_steps: 5000 # Interval steps to save checkpoint.76eval_interval_steps: 500 # Interval steps to evaluate the network.77log_interval_steps: 100 # Interval steps to record the training log.78start_schedule_teacher_forcing: 200001 # don't need to apply schedule teacher forcing.79start_ratio_value: 0.5 # start ratio of scheduled teacher forcing.80schedule_decay_steps: 50000 # decay step scheduled teacher forcing.81end_ratio_value: 0.0 # end ratio of scheduled teacher forcing.82###########################################################83# OTHER SETTING #84###########################################################85num_save_intermediate_results: 1 # Number of results to be saved as intermediate results.868788