meijieru / crnn.pytorch

Convolutional recurrent network in pytorch
MIT License
2.38k stars 658 forks source link

How to get better results? #93

Open Omnipresent opened 6 years ago

Omnipresent commented 6 years ago

I am running demo.py on a sample image like below:

demo8

and getting result that has an extra s in the end:

➜  crnn.pytorch git:(master) ✗ python demo.py data/demo8.png
loading pretrained model from ./data/crnn.pth
s-----a--h---a---r--a--s-- => saharas

Is there a way for me to troubleshoot why it is putting an extra s in the end?

xiaoshuizhu202 commented 5 years ago

I am running demo.py on a sample image like below:

demo8

and getting result that has an extra s in the end:

➜  crnn.pytorch git:(master) ✗ python demo.py data/demo8.png
loading pretrained model from ./data/crnn.pth
s-----a--h---a---r--a--s-- => saharas

Is there a way for me to troubleshoot why it is putting an extra s in the end?

i think you and do some padding with constant(eg,zero)