-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
How to train with custom data - AssertionError: datasets should not be an empty iterable #172
Comments
Make sure your gt file does not contain space in the middle or at the end.Every line should have path and label seperated by space.This is because a particular line in gt file contains only space. |
I had to be modified this line The output was 2 files in result folder, I changed that line because of space problems. Now I'm running that in my local computer and not in Google Colab. And also I did this 1 step of this [link] by @ku21fan (#85) except the last one of
And now when I trying to run: But the output is:
Why this error happends? AssertionError: datasets should not be an empty iterable |
Hello,
So I recommend replacing
Hope it helps, |
Hello @ku21fan, I have followed your instructions and changed the gt file to follow the format I am currently trying to train the model on Thai. I have changed the character list as follows: and also updated but I am still facing the same error when I try to train using the command Is there anything I am missing out? |
did you resolve it? |
So I've encountered the same problem. It looks like So if you have |
I'm facing the same issue did anyone resolve it? |
Did anyone ever resolve this issue? |
Same issue here |
Maybe you have a blank line at the end if you are using pandas.to_csv(separator = '\t') function. You should remove any blank line at the end of the file (\n alone in the last line) |
Has anyone find solution for datasets should not be any empty iterable |
Same issue here |
Same here. Issue remains. |
I use this command to train:
!python3 '/content/deep-text-recognition-benchmark/create_lmdb_dataset.py' --inputPath '/content/deep-text-recognition-benchmark/train' --gtFile '/content/gt.txt' --outputPath '/content/deep-text-recognition-benchmark/result'
I want to use it to detect license plates.
Input_path
have inputPath with input images, with names like 'CJFY10,jpg'outputPath
it is an empty folder.gtFile
it is an txt with this format:And error when I run the command it is:
What I'm doing wrong? Any help is welcome
The text was updated successfully, but these errors were encountered: