We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent da165c3 commit 362dfe6Copy full SHA for 362dfe6
hubconf.py
@@ -120,6 +120,7 @@ def nvidia_tacotron2(pretrained=True, **kwargs):
120
121
from PyTorch.SpeechSynthesis.Tacotron2.tacotron2 import model as tacotron2
122
from PyTorch.SpeechSynthesis.Tacotron2.models import lstmcell_to_float, batchnorm_to_float
123
+ from PyTorch.SpeechSynthesis.Tacotron2.tacotron2.text import text_to_sequence
124
125
fp16 = "model_math" in kwargs and kwargs["model_math"] == "fp16"
126
force_reload = "force_reload" in kwargs and kwargs["force_reload"]
@@ -163,6 +164,8 @@ def nvidia_tacotron2(pretrained=True, **kwargs):
163
164
if pretrained:
165
m.load_state_dict(state_dict)
166
167
+ m.text_to_sequence = text_to_sequence
168
+
169
return m
170
171
0 commit comments