Kyubyong / expressive_tacotron

Tensorflow Implementation of Expressive Tacotron
198 stars 33 forks source link

getting file not found error when i run train.py even when i m having file #14

Open anchalrani opened 5 years ago

anchalrani commented 5 years ago

(tf-gpu) [pranaw@login expressive_tacotron-master]$ python train.py Traceback (most recent call last): File "train.py", line 101, in g = Graph(); print("Training Graph loaded") File "train.py", line 35, in init self.x, self.y, self.z, self.fnames, self.num_batch = get_batch() File "/home/pranaw/TTS/expressive_tacotron-master/data_load.py", line 65, in get_batch fpaths, texts = load_data() # list File "/home/pranaw/TTS/expressive_tacotron-master/data_load.py", line 40, in load_data lines = codecs.open(transcript, 'r', 'utf-8').readlines() File "/home/pranaw/TTS/anaconda3/envs/tf-gpu/lib/python3.6/codecs.py", line 897, in open file = builtins.open(filename, mode, buffering) FileNotFoundError: [Errno 2] No such file or directory: '/data/private/voice/LJSpeech-1.0/metadata.csv'

djebel-amila commented 5 years ago

I had to remove the first "/", at the beginning of the url for the path to work. In hyperparams.py, line 16, replace test_data = '/data/private/voice/LJSpeech-1.0/metadata.csv' by test_data = 'data/private/voice/LJSpeech-1.0/metadata.csv'