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

Chapter 7- issue in loading pre trained model #20

Open
xinformatics opened this issue Jul 26, 2020 · 3 comments
Open

Chapter 7- issue in loading pre trained model #20

xinformatics opened this issue Jul 26, 2020 · 3 comments

Comments

@xinformatics
Copy link

While following the textbook and the steps on Github on the cell counting task, when I run

model.restore()

it throws the following error:

INFO:tensorflow:Restoring parameters from model/model-7700
and
NotFoundError: 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:

2 root error(s) found.
(0) Not found: Key Conv2D_3/conv2d_4/bias not found in checkpoint
[[node save_3/RestoreV2 (defined at /tensorflow-1.15.2/python3.6/tensorflow_core/python/framework/ops.py:1748) ]]
(1) Not found: Key Conv2D_3/conv2d_4/bias not found in checkpoint
[[node save_3/RestoreV2 (defined at /tensorflow-1.15.2/python3.6/tensorflow_core/python/framework/ops.py:1748) ]]
[[save_3/RestoreV2/_101]]
0 successful operations.
0 derived errors ignored.

@rbharath
Copy link
Member

Hmm, I think we've updated the Github code to TF 2.2 (CC @peastman) and the latest DeepChem HEAD. Could you try rerunning this code on the latest DeepChem/TF 2.2 (pip install --pre deepchem)

@peastman
Copy link
Contributor

Was that loading the pretrained model? I don't think it will work with the current DeepChem release. As part of releasing DeepChem 2.4, we should create new versions of the pretrained models for the book.

@rbharath
Copy link
Member

+1 to creating new versions of pretrained models!

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