tryolabs / luminoth

Deep Learning toolkit for Computer Vision.
https://tryolabs.com
BSD 3-Clause "New" or "Revised" License
2.4k stars 400 forks source link

Checkpoint load error #267

Open varshiths opened 5 years ago

varshiths commented 5 years ago

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