Skip to content
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

Key cnn_lstm/B not found in checkpoint #27

Closed
chreul opened this issue Oct 15, 2018 · 3 comments
Closed

Key cnn_lstm/B not found in checkpoint #27

chreul opened this issue Oct 15, 2018 · 3 comments

Comments

@chreul
Copy link
Member

chreul commented Oct 15, 2018

self._traceback = tf_stack.extract_stack()

NotFoundError (see above for traceback): Restoring from checkpoint failed. This is most likely due to a Variable name or other graph key that is missing from the checkpoint. Please ensure that you have not altered the graph expected based on the checkpoint. Original error:

Key cnn_lstm/B not found in checkpoint
[[{{node save_1/RestoreV2}} = RestoreV2[dtypes=[DT_FLOAT, DT_FLOAT, DT_FLOAT, DT_FLOAT, DT_FLOAT, DT_FLOAT, DT_FLOAT, DT_FLOAT, DT_FLOAT, DT_FLOAT], _device="/job:localhost/replica:0/task:0/device:CPU:0"](_arg_save_1/Const_0_0, save_1/RestoreV2/tensor_names, save_1/RestoreV2/shape_and_slices)]]

how can I solve this problem?

Originally posted by @hsl20130659 in #11 (comment)

@chreul
Copy link
Member Author

chreul commented Oct 15, 2018

@hsl20130659 please perform a dry run (--dry_run) and post (part of) the output.

@stweil
Copy link
Contributor

stweil commented Oct 19, 2018

It looks like the model needs an upgrade as described here. I get a similar error Key B not found in checkpoint, but the instructions refer to a script calamari_ocr/scripts/tensorflow_rename_variables.py which is not part of the code.

@ChWick
Copy link
Member

ChWick commented Oct 20, 2018

@stweil If you use calamari<=0.1.8 you can not use the current models of the model repository, you need to 'downgrade' them or simply access an older commit or even here.
The upgrade script is available in the current Calamari version.

@ChWick ChWick closed this as completed in 3af8e25 Oct 29, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants