Skip to content

Error on train phase #181

@mohammad228

Description

@mohammad228

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions