Replies: 13 comments
-
>>> othiele |
Beta Was this translation helpful? Give feedback.
-
>>> julian.weber |
Beta Was this translation helpful? Give feedback.
-
>>> othiele |
Beta Was this translation helpful? Give feedback.
-
>>> julian.weber |
Beta Was this translation helpful? Give feedback.
-
>>> othiele |
Beta Was this translation helpful? Give feedback.
-
>>> erogol |
Beta Was this translation helpful? Give feedback.
-
>>> julian.weber |
Beta Was this translation helpful? Give feedback.
-
>>> julian.weber |
Beta Was this translation helpful? Give feedback.
-
>>> erogol |
Beta Was this translation helpful? Give feedback.
-
>>> julian.weber |
Beta Was this translation helpful? Give feedback.
-
>>> julian.weber |
Beta Was this translation helpful? Give feedback.
-
>>> erogol |
Beta Was this translation helpful? Give feedback.
-
>>> julian.weber |
Beta Was this translation helpful? Give feedback.
-
>>> julian.weber
[September 22, 2020, 1:17pm]
Hi,
I'm trying to use a TTS model trainned on the dev branch when the module
was named 'mozilla_voice_tts' but now I can't load the model since the
module is named now 'TTS' and I need the new features. Here's the error
I get:
ModuleNotFoundError Traceback (most recent call last)
in
29 num_chars = len(phonemes) if C.use_phonemes else len(symbols)
30 model = setup_model(num_chars, num_speakers, C, speaker_embedding_dim)
---> 31 cp = torch.load(MODEL_PATH, map_location=torch.device('cpu'))
32 model.load_state_dict(cp['model'])
33 model.eval()
~/miniconda3/envs/TTS/lib/python3.6/site-packages/torch/serialization.py in load(f, map_location, pickle_module, **pickle_load_args)
582 opened_file.seek(orig_position)
583 return torch.jit.load(opened_file)
--> 584 return _load(opened_zipfile, map_location, pickle_module, **pickle_load_args)
585 return _legacy_load(opened_file, map_location, pickle_module, **pickle_load_args)
586
~/miniconda3/envs/TTS/lib/python3.6/site-packages/torch/serialization.py in _load(zip_file, map_location, pickle_module, **pickle_load_args)
841 unpickler.persistent_load = persistent_load
842 print(dir(unpickler))
--> 843 result = unpickler.load()
844
845 return result
ModuleNotFoundError: No module named 'mozilla_voice_tts'
What can I do here ? Thanks
[This is an archived TTS discussion thread from discourse.mozilla.org/t/using-a-model-trainned-back-when-the-module-was-named-mozilla-voice-tts]
Beta Was this translation helpful? Give feedback.
All reactions