ry / tensorflow-resnet

ResNet model in TensorFlow
MIT License
1.66k stars 625 forks source link

Error restoring the pre-trained resnet models. #9

Closed SilviaLauraPintea closed 8 years ago

SilviaLauraPintea commented 8 years ago

Hi,

Great job providing the code and the pre-trained resnet models. However, I have a problem loading/restoring the torrent models.

with tf.Session() as sess:
    dataSaver = tf.train.import_meta_graph('ResNet-L50.meta')
    dataSaver.restore(sess, 'ResNet-L50')

I get the error:

tensorflow.python.framework.errors.DataLossError: Unable to open table file ResNet-L50.meta: 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?

Any suggestion/help is much appreciated. Best, Silvia

wenxinxu commented 8 years ago

dataSaver.restore(sess, 'ResNet-L50.ckpt') workd for me

SilviaLauraPintea commented 8 years ago

Hi,

Thanks a lot! Indeed, it seems the .ckpt extension is mandatory. This tutorial got me a bit confused (https://www.tensorflow.org/versions/r0.9/how_tos/meta_graph/index.html).

Best, Silvia

anqiwang0218 commented 7 years ago

Hi, Silvia Can you provide a complete file of restoring the model?