Skip to content

Commit

Permalink
Bug fix on XTTS v2.0 Trainer
Browse files Browse the repository at this point in the history
  • Loading branch information
Edresson authored and erogol committed Nov 6, 2023
1 parent f444f29 commit b146de4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 1 addition & 2 deletions TTS/tts/layers/xtts/trainer/gpt_trainer.py
Original file line number Diff line number Diff line change
Expand Up @@ -237,8 +237,7 @@ def test_run(self, assets) -> Tuple[Dict, Dict]: # pylint: disable=W0613
self.config,
s_info["speaker_wav"],
s_info["language"],
gpt_cond_len=3,
decoder="ne_hifigan",
gpt_cond_len=3
)["wav"]
test_audios["{}-audio".format(idx)] = wav

Expand Down
2 changes: 2 additions & 0 deletions tests/xtts_tests/test_xtts_v2-0_gpt_train.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,9 @@
gpt_use_masking_gt_prompt_approach=True,
gpt_use_perceiver_resampler=True,
)

audio_config = XttsAudioConfig(sample_rate=22050, dvae_sample_rate=22050, output_sample_rate=24000)

config = GPTTrainerConfig(
epochs=1,
output_path=OUT_PATH,
Expand Down

0 comments on commit b146de4

Please sign in to comment.