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
Fashionpedia: Not able to restore model from given checkpoint #814
Comments
I'm able to run inference now on CPU after selecting the "spinenet config" file in the command line. |
@richardaecn thanks! for pointing out the config selection issue |
@mitraavi |
Able to run inferences with suggestions from @richardaecn, hence closing this issue |
@mitraavi Do you please mind sharing the colab where you were able to inference in Colab? |
@richardaecn I get this error when running from the detection folder:
How will it know to call the inference.py in the fashionpedia folder? |
@gireek i did not run in colab, but i could run it in laptop without error and steps to run i already shared earlier. |
@gireek further to the running env ...initially i tried to run it in colab, but due to path setting issue i was facing in colab similar to issue you reported earlier i switched to using laptop to run the same. |
Thanks! for sharing the model training and inference codes, however, model restoration issue still persisting, here is what error I'm getting when I'm just trying to restore model from spinenet-143 ckpt:
CODE used to restore:
saver = tf.train.Saver()
with tf.Session() as sess:
saver.restore(sess, './model_spinenet_143/model.ckpt')
ERROR:
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:
root error(s) found.
(0) Not found: Key Variable not found in checkpoint
[[node save/RestoreV2 (defined at /usr/local/lib/python3.6/dist-packages/tensorflow_core/python/framework/ops.py:1748) ]]
I'm using tensorflow-gpu 1.15.0 version in colab, any hint as this error is occurring ?
Thanks
The text was updated successfully, but these errors were encountered: