Closed wujiahao15 closed 5 years ago
@framywhale You should check your sample file in my opinion
Thanks for your reply.
I followed the sample style in your README
, namely, path/to/img label
.
However, I did a little change when making the sample.txt
, e.g. I change path/to/img label
to path/to/img,label
and adjust the split()
to split(",")
in data_provider.py:169 & 189
.
Here is my sample.txt. Are there any problems with it?
@flamywhale I get the same problem as you , I use the ICDAR's dataset ,and i change the split() to split(“, ”),there is also comma in the lable,you can not split the dataset by comma, OP_REQUIRES failed at ctc_loss_op.cc:166 : Invalid argument: Saw a non-null label (index >= num_classes - 1) following a null label, batch: 11 num_classes: 37 labels: Traceback (most recent call last):
@bluseking I have encountered the same problem. Have you solved the problem? My problem is that: Saw a non-null label (index >= num_classes - 1) following a null label, batch: 6 num_classes: 37 labels: 18,7,4,4,17
@flamywhale you should definitely check your labels for commas. If you want to have them in your character set, you can add maxplit=1
to your call to spit()
as in line.strip().split(',', maxsplit=1)
@FannyDuan you can find the answer to this issue in the following link: https://github.com/MaybeShewill-CV/CRNN_Tensorflow/issues/69#issuecomment-383992527
My environment is as follows:
When I am training on dataset of
ICDAR15 Task4.3
whose tfrecords are generated bywrite_text_features.py
, I encoutered this problem:This problem probably is caused by
ctc loss
in tf, but I don't know how to solve it.