emedvedev / attention-ocr

A Tensorflow model for text recognition (CNN + seq2seq with visual attention) available as a Python package and compatible with Google Cloud ML Engine.
MIT License
1.08k stars 256 forks source link

ValueError: ' ' is not in list #143

Closed mjack3 closed 5 years ago

mjack3 commented 5 years ago

I'm training my own dataset. Here there is my actual alphabet from

CHARMAP = ['', '', ''] + list("ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789,.-! ")

note my alphabet it has a space lane at the end because cmd return me the next message

ValueError: ' ' is not in list

any help would be great as its for an urgent project. Thanks all!

mjack3 commented 5 years ago

Actually i have found that this message changes, sometimes says ' ' is not in list, '.' is not in list..... But you can check it exists in my before character list

mjack3 commented 5 years ago

I will attach a screenshot of my problems.

Here what the cmd return https://pasteboard.co/IoFcXoa.png

Here my data_gen.py https://pasteboard.co/IoFe3z1.png

mjack3 commented 5 years ago

fixed, i was ritting in the wrong place

smoolya17 commented 5 years ago

I am curious how CHARMAP = ['', '', ''] + list("ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789,.-! ") is wrong?

mjack3 commented 5 years ago

I was writing in an incorrect file :)