Skip to content
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

Cannot read model files #11

Open
Winvoker opened this issue Jan 30, 2023 · 2 comments
Open

Cannot read model files #11

Winvoker opened this issue Jan 30, 2023 · 2 comments

Comments

@Winvoker
Copy link

Winvoker commented Jan 30, 2023

I am trying to read pretrained model files but I got error and could not load any of them.

image
This is just an example of one of pretrained models. I tried every one of them.

raise type(e)(node_def, op, message)
tensorflow.python.framework.errors_impl.DataLossError: Unable to open table file EVDodgeNet/code/HomographyNetUnsup/Checkpoints/HomographySUSL1LR1e-4/199model.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/RestoreV2 (defined at /drone/EVDodgeNet/code/HomographyNetUnsup/RunEVHomographyNet.py:277) ]]

Original stack trace for u'save/RestoreV2':
  File "/drone/EVDodgeNet/code/HomographyNetUnsup/RunEVHomographyNet.py", line 378, in <module>
    main()
  File "/drone/EVDodgeNet/code/HomographyNetUnsup/RunEVHomographyNet.py", line 375, in main
    TestOperation(PatchPH, I1PH, I2PH, PatchSize, ModelPath, ReadPath, WritePath, TrainNames, NumTrainSamples, CropType)
  File "/drone/EVDodgeNet/code/HomographyNetUnsup/RunEVHomographyNet.py", line 277, in TestOperation
    Saver = tf.train.Saver()
  File "/miniconda3/envs/tf14/lib/python2.7/site-packages/tensorflow/python/training/saver.py", line 825, in __init__
    self.build()
  File "/miniconda3/envs/tf14/lib/python2.7/site-packages/tensorflow/python/training/saver.py", line 837, in build
    self._build(self._filename, build_save=True, build_restore=True)
  File "/miniconda3/envs/tf14/lib/python2.7/site-packages/tensorflow/python/training/saver.py", line 875, in _build
    build_restore=build_restore)
  File "/miniconda3/envs/tf14/lib/python2.7/site-packages/tensorflow/python/training/saver.py", line 508, in _build_internal
    restore_sequentially, reshape)
  File "/miniconda3/envs/tf14/lib/python2.7/site-packages/tensorflow/python/training/saver.py", line 328, in _AddRestoreOps
    restore_sequentially)
  File "/miniconda3/envs/tf14/lib/python2.7/site-packages/tensorflow/python/training/saver.py", line 575, in bulk_restore
    return io_ops.restore_v2(filename_tensor, names, slices, dtypes)
  File "/miniconda3/envs/tf14/lib/python2.7/site-packages/tensorflow/python/ops/gen_io_ops.py", line 1696, in restore_v2
    name=name)
  File "/miniconda3/envs/tf14/lib/python2.7/site-packages/tensorflow/python/framework/op_def_library.py", line 788, in _apply_op_helper
    op_def=op_def)
  File "/miniconda3/envs/tf14/lib/python2.7/site-packages/tensorflow/python/util/deprecation.py", line 507, in new_func
    return func(*args, **kwargs)
  File "/miniconda3/envs/tf14/lib/python2.7/site-packages/tensorflow/python/framework/ops.py", line 3616, in create_op
    op_def=op_def)
  File "/miniconda3/envs/tf14/lib/python2.7/site-packages/tensorflow/python/framework/ops.py", line 2005, in __init__
    self._traceback = tf_stack.extract_stack()
@kitaharasetusna
Copy link

Hi! I met the same problem when loading the ckp file, have you solved this problem?

@Winvoker
Copy link
Author

Nope

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants