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

DataLossError: not an sstable (bad magic number) #6

Closed
shiningdai opened this issue Oct 21, 2021 · 0 comments
Closed

DataLossError: not an sstable (bad magic number) #6

shiningdai opened this issue Oct 21, 2021 · 0 comments

Comments

@shiningdai
Copy link

shiningdai commented Oct 21, 2021

First thank you very much for providing such a convenient tool .
I am tring to test the base example according to the README.md by run following scripts:
./my models/lenet5.yaml datasets/mnist.yaml system.checkpoint.load=pretrained eval

However, I got following error report:

Traceback (most recent call last):
  File "./my.py", line 13, in <module>
    cli.CLI().main()
  File "mayo/cli.py", line 300, in main
    commands[each]()
  File "mayo/cli.py", line 210, in cli_eval
    return self._get_session('validate').eval()
  File "/home/daisurong/workspace_2021/mayo/mayo/session/base.py", line 50, in wrapped
    return func(self, *args, **kwargs)
  File "/home/daisurong/workspace_2021/mayo/mayo/session/eval.py", line 19, in eval
    self.load_checkpoint(key)
  File "/home/daisurong/workspace_2021/mayo/mayo/session/base.py", line 50, in wrapped
    return func(self, *args, **kwargs)
  File "/home/daisurong/workspace_2021/mayo/mayo/session/base.py", line 224, in load_checkpoint
    restore_vars = self.checkpoint.load(name)
  File "/home/daisurong/workspace_2021/mayo/mayo/session/checkpoint.py", line 102, in load
    reader = tf.train.NewCheckpointReader(path)
  File "/home/daisurong/.local/lib/python3.6/site-packages/tensorflow/python/pywrap_tensorflow_internal.py", line 636, in NewCheckpointReader
    return CheckpointReader(compat.as_bytes(filepattern))
  File "/home/daisurong/.local/lib/python3.6/site-packages/tensorflow/python/pywrap_tensorflow_internal.py", line 648, in __init__
    this = _pywrap_tensorflow_internal.new_CheckpointReader(filename)
DataLossError: not an sstable (bad magic number)

> /home/daisurong/.local/lib/python3.6/site-packages/tensorflow/python/pywrap_tensorflow_internal.py(648)__init__()
    647     def __init__(self, filename):
--> 648         this = _pywrap_tensorflow_internal.new_CheckpointReader(filename)
    649         try:

ipdb> i
*** NameError: name 'i' is not defined
ipdb> s  

Then, the program exited itself.
Could you please give me some tips on how to make it work correctly.
Thank you so much!

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

1 participant