solivr / tf-crnn

TensorFlow convolutional recurrent neural network (CRNN) for text recognition
GNU General Public License v3.0
292 stars 98 forks source link

ctc_loss_calculator.cc no valid path found #50

Closed jylei66 closed 5 years ago

jylei66 commented 5 years ago

When I train my own net, I got the following error: 2019-06-08 11:33:48.746469: W tensorflow/core/util/ctc/ctc_loss_calculator.cc:144] No valid path found. Is it because that the label should be shorter than input length referring to below? https://stackoverflow.com/questions/45130184/ctc-loss-error-no-valid-path-found If so, how can I modify train.py to solve this problem? Thanks in advance~

solivr commented 5 years ago

Yes this is the reason. The updated version checks for these possible errors before starting the training and ignores the offending samples.