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

Error on train phase #181

Open
mohammad228 opened this issue Dec 5, 2020 · 0 comments
Open

Error on train phase #181

mohammad228 opened this issue Dec 5, 2020 · 0 comments

Comments

@mohammad228
Copy link

I have some pic with text file contain annotation tag of pictures.But when i start train phase, show me this error:
Traceback (most recent call last):
File "/home/girizliii/.local/bin/aocr", line 8, in
sys.exit(main())
File "/home/girizliii/.local/lib/python2.7/site-packages/aocr/main.py", line 257, in main
num_epoch=parameters.num_epoch
File "/home/girizliii/.local/lib/python2.7/site-packages/aocr/model/model.py", line 376, in train
for batch in s_gen.gen(self.batch_size):
File "/home/girizliii/.local/lib/python2.7/site-packages/aocr/util/data_gen.py", line 70, in gen
if self.max_width and (Image.open(IO(img)).size[0] <= self.max_width):
File "/usr/local/lib/python2.7/dist-packages/PIL/Image.py", line 2818, in open
raise IOError("cannot identify image file %r" % (filename if filename else fp))
IOError: cannot identify image file <StringIO.StringIO instance at 0x7fce59bf9280>

how i can solve this?
thanks

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

1 participant