ming024/FastSpeech2

[nltk_data] Error loading averaged_perceptron_tagger: <urlopen error

lunar333 opened this issue · 0 comments

I met an error when run the synthesize.py, I had already put the 900000.pt.tar model to the directry

(torch) zhonghuihang@kdf-X12DAi-N6:~/fastSpeech2-master$ python3 synthesize.py --text "hello" --restore_step 900000 --mode single -p config/LJSpeech/preprocess.yaml -m config/LJSpeech/model.yaml -t config/LJSpeech/train.yaml

[nltk_data] Error loading averaged_perceptron_tagger: <urlopen error
[nltk_data] [Errno 111] Connection refused>
[nltk_data] Error loading cmudict: <urlopen error [Errno 111]
[nltk_data] Connection refused>
Traceback (most recent call last):
File "synthesize.py", line 188, in
model = get_model(args, configs, device, train=False)
File "/home/zhonghuihang/fastSpeech2-master/utils/model.py", line 20, in get_model
ckpt = torch.load(ckpt_path)
File "/home/zhonghuihang/miniconda3/envs/torch/lib/python3.7/site-packages/torch/serialization.py", line 367, in load
return _load(f, map_location, pickle_module)
File "/home/zhonghuihang/miniconda3/envs/torch/lib/python3.7/site-packages/torch/serialization.py", line 528, in _load
magic_number = pickle_module.load(f)
_pickle.UnpicklingError: A load persistent id instruction was encountered,
but no persistent_load function was specified.