tf-image-segmentation icon indicating copy to clipboard operation
tf-image-segmentation copied to clipboard

Cannot restore checkpoint

Open fxding opened this issue 8 years ago • 2 comments

Hello, This is really a great library, but when I try to restore checkpoint I get error: Checkpoint: https://www.dropbox.com/s/7r6lnilgt78ljia/fcn_8s.tar.gz?dl=0 Code:

with tf.Session() as sess:
    saver = tf.train.import_meta_graph('./models/fcn_8s_checkpoint/model_fcn8s_final.ckpt.meta')
    saver.restore(sess, './models/fcn_8s_checkpoint/model_fcn8s_final.ckpt.data-00000-of-00001')

Error:

DataLossError (see above for traceback): Unable to open table file ./models/fcn_8s_checkpoint/model_fcn8s_final.ckpt.data-00000-of-00001: Data loss: not an sstable (bad magic number): perhaps your file is in a different file format and you need to use a different restore operator?
	 [[Node: save_1/RestoreV2_35 = RestoreV2[dtypes=[DT_FLOAT], _device="/job:localhost/replica:0/task:0/cpu:0"](_recv_save_1/Const_0, save_1/RestoreV2_35/tensor_names, save_1/RestoreV2_35/shape_and_slices)]]

fxding avatar Jan 25 '17 10:01 fxding

Try this.

with tf.Session() as sess:
    saver = tf.train.import_meta_graph('./models/fcn_8s_checkpoint/model_fcn8s_final.ckpt.meta')
    saver.restore(sess, './models/fcn_8s_checkpoint/model_fcn8s_final.ckpt')

VittalP avatar Jan 31 '17 15:01 VittalP

Hi,

where do I get model_fcn8s_final.ckpt from? I am getting an error like:

IOError: File ./models/fcn_8s_checkpoint/model_fcn8s_final.ckpt.meta does not exist.

I am completely new to this and don't understand where do I get the checkpoint file from. Is there some repository for it?

vinita84 avatar Nov 28 '17 15:11 vinita84