meijieru / crnn.pytorch

Convolutional recurrent network in pytorch
MIT License
2.4k stars 657 forks source link

errors about training your own model #223

Open FortuneSeeker opened 4 years ago

FortuneSeeker commented 4 years ago

I run into these errors while training the network with my own dataset(converted by the create_dataset.py in the project): image image image python 3.7 Have anyone met this problem? I don't know what caused it. Thank you in advance for your answer.

FortuneSeeker commented 4 years ago

And this, image

imneonizer commented 3 years ago

While creating the lmdb dataset, script loads the image file as binary so change the with open('image/path/file.png', 'r') to with open('image/path/file.png', 'rb') this will read the file as bytes instead of string.