keonlee9420 / PortaSpeech

PyTorch Implementation of PortaSpeech: Portable and High-Quality Generative Text-to-Speech
MIT License
331 stars 36 forks source link

A run Problem(LJSpeech) #16

Closed yanzhuangzhuang-beep closed 2 years ago

yanzhuangzhuang-beep commented 2 years ago

File "preprocess.py", line 20, in preprocessor.build_from_path() File "D:\UW-Detection\PortaSpeech\preprocessor\preprocessor.py", line 129, in build_from_path n_frames += n UnboundLocalError: local variable 'n' referenced before assignment when I use NATSpeech show this problem (BiaoBei dataset) when I use LJSpeech dataset and this code show this problem I use global but cannot ......

keonlee9420 commented 2 years ago

Hi @yanzhuangzhuang-beep , this seems to happen when you don't have TextGrid with the current filename in the expected directory. Could you please make sure that you have that in the correct location?

yanzhuangzhuang-beep commented 2 years ago

thanks