-
Notifications
You must be signed in to change notification settings - Fork 88
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
crnn训练部分 lable问题 #12
Comments
同问,这个怎么解决?用字典编号解决? |
data_train.txt 里应该就是 图像名+每个汉字的对应字典索引数字 但是 decode()函数中 |
@Miscoding preds[i]!=0 好像是ctc loss里的空白占位符,我也是刚看。 |
@Miscoding if preds[i] != 0 and ((i == 0) or (i != 0 and preds[i] != preds[i-1]))这个是CTC LOSS里的,两个连续的输出值一样的话视为同一字符,除非用占位符0分隔开。 |
@guess3w 那训练的时候label 中汉字的字典索引是不是要从1开始呢? |
@Miscoding 个人理解不用,我用的是label = [char_set.index(x) for x in list(keys[0])] |
博主可以请教下是怎么训练的吗?我按您的改了以后还是无法成功训练 |
The text was updated successfully, but these errors were encountered: