ming024 / FastSpeech2

An implementation of Microsoft's "FastSpeech 2: Fast and High-Quality End-to-End Text to Speech"

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[nltk_data] Error loading averaged_perceptron_tagger: <urlopen error

lunar333 opened this issue · 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.