warmspringwinds / tf-image-segmentation

Image Segmentation framework based on Tensorflow and TF-Slim library
MIT License
549 stars 186 forks source link

Cannot restore checkpoint #2

Open fxding opened 7 years ago

fxding commented 7 years ago

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)]]
VittalP commented 7 years ago

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')
vinita84 commented 6 years ago

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?