› Forums › Speech Synthesis › Merlin › File Exists Error
- This topic has 3 replies, 3 voices, and was last updated 8 years, 6 months ago by Srikanth R.
-
AuthorPosts
-
-
June 21, 2016 at 17:52 #3287
I’m trying to train a duration model using run_lstm.py and it keeps crashing and giving the error message: “OSError: [Errno 17] File exists: ‘/Users/s1564218/Documents/dnn_combo2/nnets_model'”. I’ve tried both the one on /Volumes/Network/courses/ss/dnn/dnn_tts and a local one I’ve downloaded – the error occurs on both.
How can I fix this?
Thanks!
(the full error message is as follows:)
2016-06-21 17:47:35,137 CRITICAL main : train_DNN threw an exception
Traceback (most recent call last):
File “../dnn_tts/run_lstm.py”, line 1062, in <module>
main_function(cfg)
File “../dnn_tts/run_lstm.py”, line 789, in main_function
cmp_mean_vector = cmp_mean_vector, cmp_std_vector = cmp_std_vector)
File “../dnn_tts/run_lstm.py”, line 267, in train_DNN
shared_train_set_xy, temp_train_set_x, temp_train_set_y = train_data_reader.load_one_partition()
File “/mnt/courses.homes/s1564218/Documents/dnn_tts/utils/providers.py”, line 153, in load_one_partition
shared_set_xy, temp_set_x, temp_set_y = self.load_next_utterance()
File “../dnn_tts/run_lstm.py”, line 773, in main_function
os.makedirs(model_dir)
File “/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/os.py”, line 157, in makedirs
mkdir(name, mode)
OSError: [Errno 17] File exists: ‘/Users/s1564218/Documents/dnn_combo2/nnets_model’ -
June 21, 2016 at 17:56 #3288
The fix is easy, and just needs a simple improvement to the code. One obvious fix would be to wrap a “try….except” around the os.makedirs function call. The exception that you need to catch (and then ignore, perhaps printing an informational message to the log) is
OSError
-
June 21, 2016 at 18:05 #3289
That’s what I was thinking, but I don’t see any calls to makedir that are not wrapped in either a conditional or a “try…except”. I’ll do some debugging and see if I can track down which one is causing the problem.
-
June 22, 2016 at 14:45 #3295
If the number of frames in the input file and output file doesn’t match, the same error appears along with another error indicating a mismatch in the frame length. So, please check other errors as well if appeared any.
Please attend the upcoming session on Merlin where I’ll explain step-by-step procedure to implement/debug duration modelling.
-
-
AuthorPosts
- You must be logged in to reply to this topic.