FangShancheng / conv-ensemble-str

The code for “Attention and Language Ensemble for Scene Text Recognition with Convolutional Sequence Modeling”
Apache License 2.0
43 stars 8 forks source link

Pre-traind model gives a random character for the demo images #3

Closed sabirdvd closed 5 years ago

sabirdvd commented 5 years ago

First of all, Thank you for sharing this great work. The pre-trained model generates random character when testing with the demo images. Also, I tried with a back/white image demo1.jpg

python demo.py --path=data/demo.jpg --checkpoint=PATH_TO_PRETRAINED_MODEL

demo.jpg: 000VC00VVzhWWAWVWAWWWWAhVh0hWW demo1.jpg: HHyIyHypYyIYyZZyZLHyyHyyIYyIHZ (simple black and white) demo2.jpg: YYvmZ4mv5ZSmvvmZoZS0mYjIu4ZSZS demo3.jpg: 111k11GGkYG11k1k1Y1Y1GDG111111 demo4.png: u0yJyDDDDGD5DyyJHyJyDJ7yJquJDJ

update: Without this --checkpoint flag, everything works fine

python demo.py --path=data/demo.jpg

Thanks