IndexError: list index out of range #1729
-
Beta Was this translation helpful? Give feedback.
Replies: 7 comments 1 reply
-
I have the same error, did you find a solution? |
Beta Was this translation helpful? Give feedback.
-
Same error, any solution? |
Beta Was this translation helpful? Give feedback.
-
@Konstant1982 Thanks to the Tacotron forums here I was able to get past this error by removing the final blank line in my metadata.csv file. Weird, because the train command still worked when I ran it with LJSpeech's own metadata.csv file, which has its own empty blank last line too...weird! |
Beta Was this translation helpful? Give feedback.
-
in my case, this exact error was due to an inconsistency in the metadata.csv file (rows having fewer than 2 columns). You can run a sanity check like this to detect the faulty rows (and correct them manually)
|
Beta Was this translation helpful? Give feedback.
-
So digging into the relevant code, it seems like the issue is coming from the format of the metadata file and the formatter that you choose. It looks like you're using the I locally installed the library and edited the code to the |
Beta Was this translation helpful? Give feedback.
-
Follow this 'LJ speech format' for writing on each line of the transcript file: wav_file_name|transcript|transcript LJ001-0002|in being comparatively modern.|in being comparatively modern. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
@Konstant1982 Thanks to the Tacotron forums here I was able to get past this error by removing the final blank line in my metadata.csv file. Weird, because the train command still worked when I ran it with LJSpeech's own metadata.csv file, which has its own empty blank last line too...weird!