bgshih / crnn

Convolutional Recurrent Neural Network (CRNN) for image-based sequence recognition.
MIT License
2.06k stars 552 forks source link

How to support beam search decoding #125

Open vinayakarannil opened 6 years ago

vinayakarannil commented 6 years ago

I am following the pytorch implementation. I couldnt find any support for beam search decoding in either of the implementations. Does the decoding by default use beam search?

githubharald commented 6 years ago

CRNN uses best path decoding: https://github.com/bgshih/crnn/blob/master/src/cpp/ctc.cpp#L152

vinayakarannil commented 6 years ago

is it better than a beam search with/without a language model?

githubharald commented 6 years ago

best path decoding < beam search < beam search with (good) language model