We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
背景: 楼主程序改动了两处,识别率可达到96%(因笔记本电脑性能,训练不到10个epoch)。
characters = string.digits + string.ascii_uppercase n_class = len(characters)
x = Dense(n_class, activation='softmax')(x) 改为: x = Dense(n_class+1, activation='softmax')(x)
out = K.get_value(K.ctc_decode(y_pred, input_length=np.ones(y_pred.shape[0])*y_pred.shape[1], )[0][0])[:, :4] 改为: out = K.get_value(K.ctc_decode(y_pred, input_length=np.ones(y_pred.shape[0])*y_pred.shape[1], )[0][0])[:, :]。
问题: 去掉后面的多个Z就是识别的不定长结果? 如果是ZZZZ,那有怎么办?
举例:输出结果为
The text was updated successfully, but these errors were encountered:
我搞清楚了, 可能是character没加空格,我再测试一下:
characters = string.digits + string.ascii_uppercase characters += ' ' n_class = len(characters)
Sorry, something went wrong.
No branches or pull requests
背景:
楼主程序改动了两处,识别率可达到96%(因笔记本电脑性能,训练不到10个epoch)。
characters = string.digits + string.ascii_uppercase
n_class = len(characters)
x = Dense(n_class, activation='softmax')(x)
改为:
x = Dense(n_class+1, activation='softmax')(x)
out = K.get_value(K.ctc_decode(y_pred, input_length=np.ones(y_pred.shape[0])*y_pred.shape[1], )[0][0])[:, :4]
改为:
out = K.get_value(K.ctc_decode(y_pred, input_length=np.ones(y_pred.shape[0])*y_pred.shape[1], )[0][0])[:, :]。
问题:
去掉后面的多个Z就是识别的不定长结果?
如果是ZZZZ,那有怎么办?
举例:输出结果为
The text was updated successfully, but these errors were encountered: