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

Checkpoint load error #267

Open
varshiths opened this issue Feb 12, 2019 · 0 comments
Open

Checkpoint load error #267

varshiths opened this issue Feb 12, 2019 · 0 comments

Comments

@varshiths
Copy link

Downloaded checkpoints are not being opened successfully.
I use python2.7.

$ lumi predict pic0.jpg 
Found 1 files to predict.
Neither checkpoint not config specified, assuming `accurate`.
Checkpoint not present locally. Want to download it? [y/N]: y
Downloading checkpoint...  [####################################]  100%             
Importing checkpoint... Traceback (most recent call last):
  File "/home/varshith/.local/bin/lumi", line 11, in <module>
    load_entry_point('luminoth', 'console_scripts', 'lumi')()
  File "/home/varshith/.local/lib/python2.7/site-packages/click/core.py", line 722, in __call__
    return self.main(*args, **kwargs)
  File "/home/varshith/.local/lib/python2.7/site-packages/click/core.py", line 697, in main
    rv = self.invoke(ctx)
  File "/home/varshith/.local/lib/python2.7/site-packages/click/core.py", line 1066, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/home/varshith/.local/lib/python2.7/site-packages/click/core.py", line 895, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/home/varshith/.local/lib/python2.7/site-packages/click/core.py", line 535, in invoke
    return callback(*args, **kwargs)
  File "/home/varshith/WK/MVD/github/luminoth/luminoth/predict.py", line 241, in predict
    config = get_checkpoint_config('accurate')
  File "/home/varshith/WK/MVD/github/luminoth/luminoth/tools/checkpoint/__init__.py", line 204, in get_checkpoint_config
    download_remote_checkpoint(db, checkpoint)
  File "/home/varshith/WK/MVD/github/luminoth/luminoth/tools/checkpoint/__init__.py", line 321, in download_remote_checkpoint
    members = [m for m in f.getmembers() if m.name != 'metadata.json']
  File "/usr/lib/python2.7/tarfile.py", line 1838, in getmembers
    self._load()        # all members, we first have to
  File "/usr/lib/python2.7/tarfile.py", line 2419, in _load
    tarinfo = self.next()
  File "/usr/lib/python2.7/tarfile.py", line 2352, in next
    raise ReadError("unexpected end of data")
tarfile.ReadError: unexpected end of data
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