Belval / CRNN

A TensorFlow implementation of https://github.com/bgshih/crnn
MIT License
297 stars 101 forks source link

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

Closed chyun closed 6 years ago

chyun commented 6 years ago

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

Belval commented 6 years ago

Change: https://github.com/Belval/CRNN/blob/063349508bd95e8dfb6b2e1135a7f8d8dd1fbc39/CRNN/crnn.py#L167

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

And the problem should be fixed.

chyun commented 6 years ago

done, thanks!