Skip to content

Commit bd8df36

Browse files
authored
Merge branch 'master' into speaker_ids_config
2 parents 43f955a + 3a37400 commit bd8df36

File tree

4 files changed

+4
-5
lines changed

4 files changed

+4
-5
lines changed

examples/fastspeech2_libritts/libri_experiment/prepare_libri.ipynb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,7 @@
7979
" f_path = os.path.join(id_path, k, j)\n",
8080
" sf_file = sf.SoundFile(f_path)\n",
8181
" dur = len(sf_file) / sf_file.samplerate\n",
82-
" if max_file_len < dur < min_file_len:\n",
83-
" print(dur)\n",
82+
" if max_file_len < dur or dur < min_file_len:\n",
8483
" continue\n",
8584
" else:\n",
8685
" id_included.append(f_path)\n",

examples/multiband_melgan/conf/multiband_melgan.v1.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ lambda_adv: 2.5 # Loss balancing coefficient for adversarial loss.
6969
###########################################################
7070
batch_size: 64 # Batch size.
7171
batch_max_steps: 8192 # Length of each audio in batch for training. Make sure dividable by hop_size.
72-
batch_max_steps_valid: 81920 # Length of each audio for validation. Make sure dividable by hope_size.
72+
batch_max_steps_valid: 8192 # Length of each audio for validation. Make sure dividable by hope_size.
7373
remove_short_samples: true # Whether to remove samples the length of which are less than batch_max_steps.
7474
allow_cache: true # Whether to allow cache in dataset. If true, it requires cpu memory.
7575
is_shuffle: true # shuffle dataset after each epoch.

notebooks/TensorFlowTTS_FastSpeech_with_TFLite.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@
200200
"# initialize melgan model\n",
201201
"with open('../examples/melgan/conf/melgan.v1.yaml') as f:\n",
202202
" melgan_config = yaml.load(f, Loader=yaml.Loader)\n",
203-
"melgan_config = MelGANGeneratorConfig(**melgan_config[\"generator_params\"])\n",
203+
"melgan_config = MelGANGeneratorConfig(**melgan_config[\"melgan_generator_params\"])\n",
204204
"melgan = TFMelGANGenerator(config=melgan_config, name='melgan_generator')\n",
205205
"melgan._build()\n",
206206
"melgan.load_weights(\"../examples/melgan/checkpoints/generator-1500000.h5\")"

notebooks/TensorFlowTTS_Tacotron2_with_TFLite.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@
197197
"# initialize melgan model\n",
198198
"with open('../examples/melgan/conf/melgan.v1.yaml') as f:\n",
199199
" melgan_config = yaml.load(f, Loader=yaml.Loader)\n",
200-
"melgan_config = MelGANGeneratorConfig(**melgan_config[\"generator_params\"])\n",
200+
"melgan_config = MelGANGeneratorConfig(**melgan_config[\"melgan_generator_params\"])\n",
201201
"melgan = TFMelGANGenerator(config=melgan_config, name='melgan_generator')\n",
202202
"melgan._build()\n",
203203
"melgan.load_weights(\"../examples/melgan/checkpoints/generator-1500000.h5\")"

0 commit comments

Comments
 (0)