-
Notifications
You must be signed in to change notification settings - Fork 97
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
请问我这个错误是怎么回事,找了好久还是解决不了 #7
Comments
@YIYIMZ 十分感谢,你写的ctc代码非常简洁明了,对我这个初学者帮助很大! |
你知道 主函数入口在哪麽? |
2019-04-22 10:46:08.222826: W tensorflow/core/framework/op_kernel.cc:1401] OP_REQUIRES failed at ctc_loss_op.cc:168 : Invalid argument: Saw a non-null label (index >= num_classes - 1) following a null label, batch: 0 num_classes: 10 labels: 1
Traceback (most recent call last):
File "E:/Python/HandChracterRecognition/HandChracterRecognition.py", line 97, in
train()
File "E:/Python/HandChracterRecognition/HandChracterRecognition.py", line 91, in train
verbose = 1)
File "E:\Python Edition\lib\site-packages\keras\engine\training.py", line 1039, in fit
validation_steps=validation_steps)
File "E:\Python Edition\lib\site-packages\keras\engine\training_arrays.py", line 199, in fit_loop
outs = f(ins_batch)
File "E:\Python Edition\lib\site-packages\keras\backend\tensorflow_backend.py", line 2715, in call
return self._call(inputs)
File "E:\Python Edition\lib\site-packages\keras\backend\tensorflow_backend.py", line 2675, in _call
fetched = self._callable_fn(*array_vals)
File "E:\Python Edition\lib\site-packages\tensorflow\python\client\session.py", line 1439, in call
run_metadata_ptr)
File "E:\Python Edition\lib\site-packages\tensorflow\python\framework\errors_impl.py", line 528, in exit
c_api.TF_GetCode(self.status.status))
tensorflow.python.framework.errors_impl.InvalidArgumentError: Saw a non-null label (index >= num_classes - 1) following a null label, batch: 0 num_classes: 10 labels: 1
[[{{node ctc/CTCLoss}}]]
我使用的是lstm代码,用于识别数字验证码,因此char_set = '0123456789',训练的图片是用四位数字验证码,求解决
The text was updated successfully, but these errors were encountered: