How to load save model (.ckpt file) from Index file, Meta file and DATA file? there is no file having .ckpt extension. I am running one code where .ckpt file is required.
Hi @RonakPandya072,
Please make sure to follow the template which is present while opening the new issue, this will helps us to resolve the issue faster and understand it more clearly, hope this helps you.
Checkpoints stored will have following file formats:
-
*.ckpt.meta -
*.ckpt.index -
*.ckpt.data-*
To load the checkpoints you can use the following commands
# This step is useful when you have multiple checkpoints and to take latest checkpoint
checkpoint_path = tf.train.latest_checkpoint(checkpoint_dir) # checkpoint_dir is where above files are present
checkpoint = tf.train.Checkpoint(model=model) # model which has already been constructed
status = checkpoint.restore(checkpoint_path) # restore the weights from checkpoint
Thanks.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you.
To my knowledge you should have files on the format: model.ckpt.index, model.ckpt.meta, model.ckpt.data or similar
You should be able to load load the path "model.ckpt"
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you.
Closing as stale. Please reopen if you'd like to work on this further. Thanks