From 8e8117b923fa50eec512ec50c36d66bb7d2fc40b Mon Sep 17 00:00:00 2001 From: Nikita Shulga Date: Wed, 12 Oct 2022 12:03:26 -0700 Subject: [PATCH 1/3] Updating WaveGlow checkpoint to latest Which was unavailable for the couple of days Fixes https://github.com/pytorch/tutorials/issues/2070 --- intermediate_source/text_to_speech_with_torchaudio.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/intermediate_source/text_to_speech_with_torchaudio.py b/intermediate_source/text_to_speech_with_torchaudio.py index 1563864a7d6..bc6f94f2dd5 100644 --- a/intermediate_source/text_to_speech_with_torchaudio.py +++ b/intermediate_source/text_to_speech_with_torchaudio.py @@ -297,7 +297,7 @@ def text_to_sequence(text): # publishe on Torch Hub. One can instantiate the model using ``torch.hub`` # module. # -if False: +if torch.cuda.is_available(): waveglow = torch.hub.load('NVIDIA/DeepLearningExamples:torchhub', 'nvidia_waveglow', model_math='fp32') else: # Workaround to load model mapped on GPU @@ -309,7 +309,7 @@ def text_to_sequence(text): pretrained=False, ) checkpoint = torch.hub.load_state_dict_from_url( - "https://api.ngc.nvidia.com/v2/models/nvidia/waveglowpyt_fp32/versions/1/files/nvidia_waveglowpyt_fp32_20190306.pth", + "https://api.ngc.nvidia.com/v2/models/nvidia/waveglow_ckpt_fp32/versions/19.09.0/files/nvidia_waveglowpyt_fp32_20190427", progress=False, map_location=device, ) From 415d384721709a86baf75492923f8477f74a675b Mon Sep 17 00:00:00 2001 From: Nikita Shulga Date: Wed, 12 Oct 2022 12:05:11 -0700 Subject: [PATCH 2/3] Update text_to_speech_with_torchaudio.py --- intermediate_source/text_to_speech_with_torchaudio.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/intermediate_source/text_to_speech_with_torchaudio.py b/intermediate_source/text_to_speech_with_torchaudio.py index bc6f94f2dd5..fa6b5a5c153 100644 --- a/intermediate_source/text_to_speech_with_torchaudio.py +++ b/intermediate_source/text_to_speech_with_torchaudio.py @@ -294,7 +294,7 @@ def text_to_sequence(text): # ~~~~~~~~ # # Waveglow is a vocoder published by Nvidia. The pretrained weight is -# publishe on Torch Hub. One can instantiate the model using ``torch.hub`` +# published on Torch Hub. One can instantiate the model using ``torch.hub`` # module. # if torch.cuda.is_available(): From 2bb143f5ed9bdceec6b20669d4b1542d7a9a0fa5 Mon Sep 17 00:00:00 2001 From: Nikita Shulga Date: Wed, 12 Oct 2022 12:11:02 -0700 Subject: [PATCH 3/3] Update text_to_speech_with_torchaudio.py --- intermediate_source/text_to_speech_with_torchaudio.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/intermediate_source/text_to_speech_with_torchaudio.py b/intermediate_source/text_to_speech_with_torchaudio.py index fa6b5a5c153..ade495af6a8 100644 --- a/intermediate_source/text_to_speech_with_torchaudio.py +++ b/intermediate_source/text_to_speech_with_torchaudio.py @@ -293,7 +293,7 @@ def text_to_sequence(text): # Waveglow # ~~~~~~~~ # -# Waveglow is a vocoder published by Nvidia. The pretrained weight is +# Waveglow is a vocoder published by Nvidia. The pretrained weights are # published on Torch Hub. One can instantiate the model using ``torch.hub`` # module. #