Belval / CRNN

A TensorFlow implementation of https://github.com/bgshih/crnn

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

连续两个相同的字符会漏掉一个

chyun opened this issue · comments

commented

连续两个相同的字符会漏掉一个:
例如: aaby识别为aby, 887y识别为87y

Change:

decoded, log_prob = tf.nn.ctc_beam_search_decoder(logits, seq_len)

To:
decoded, log_prob = tf.nn.ctc_beam_search_decoder(logits, seq_len, merge_repeated=False)

And the problem should be fixed.

commented

done, thanks!