From 8bac589838e7f7c17afaf1035420a68a23bf343a Mon Sep 17 00:00:00 2001 From: Brandon Thomas Date: Tue, 21 Mar 2023 05:53:07 -0400 Subject: [PATCH] fix vocoder paths --- tts/tacotron2_v1_early_fakeyou/vocodes_inference_updated.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tts/tacotron2_v1_early_fakeyou/vocodes_inference_updated.py b/tts/tacotron2_v1_early_fakeyou/vocodes_inference_updated.py index ea87d23..ffd0389 100755 --- a/tts/tacotron2_v1_early_fakeyou/vocodes_inference_updated.py +++ b/tts/tacotron2_v1_early_fakeyou/vocodes_inference_updated.py @@ -78,10 +78,10 @@ pipeline = FakeYouTt2Pipeline() # NB: Not sure if there was a historical decision to load the models first outside of the pipeline. # Probably not, though. Seems like this could be cleaned up. if args.vocoder_type == 'hifigan-superres': - pipeline.maybe_load_waveglow_model(args.waveglow_vocoder_checkpoint_path) + pipeline.maybe_load_hifigan(args.hifigan_vocoder_checkpoint_path) + pipeline.maybe_load_hifigan_super_resolution(args.hifigan_superres_vocoder_checkpoint_path) elif args.vocoder_type == 'waveglow': - pipeline.maybe_load_waveglow_model(args.hifigan_vocoder_checkpoint_path) - pipeline.maybe_load_waveglow_model(args.hifigan_superres_vocoder_checkpoint_path) + pipeline.maybe_load_waveglow_model(args.waveglow_vocoder_checkpoint_path) else: raise Exception('Wrong vocoder type: {}'.format(args.vocoder_type))