Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IndexError: list index out of range #10

Closed
LevinJ opened this issue Dec 25, 2017 · 3 comments
Closed

IndexError: list index out of range #10

LevinJ opened this issue Dec 25, 2017 · 3 comments

Comments

@LevinJ
Copy link

LevinJ commented Dec 25, 2017

Hi, Thanks for sharing the great work!

I downloaded the data based on the suggestion of this link.

Then I tried running the training script, but encountered below error,

    train_feeder = utils.DataIterator(data_dir=train_dir)
  File "/home/levin/workspace/snrprj/CNN_LSTM_CTC_Tensorflow/utils.py", line 73, in __init__
    code = image_name.split('/')[-1].split('_')[1].split('.')[0]
IndexError: list index out of range

It looks to me that the script expects to get label for each image from its filename. So to get the code run properly and train the model, we will have to first rename the image files based on the labels.txt file, is this correct?

@LevinJ
Copy link
Author

LevinJ commented Dec 25, 2017

Okay, just found out there is already a helper.py file in the project source codes that can be used to rename the files and split the train/eval set.

@LevinJ LevinJ closed this as completed Dec 25, 2017
@BerthaHsu
Copy link

I have downloaded this code recently , and i tried to run the training script . i met some problems about the running. eg.I had no the datasets and i did not understand the label. Thankyou for your issues ,i got it more after looking your analysis!

@luoqingyu
Copy link

Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants