python-torchfile icon indicating copy to clipboard operation
python-torchfile copied to clipboard

torchfile.T7ReaderException: unknown object type / typeidx: -1112529805

Open harbarex opened this issue 5 years ago • 1 comments

Error in loading a .t7 file

Traceback (most recent call last):
  File "main.py", line 77, in <module>
    algo.sample(datapath, cfg.STAGE)
  File "C:\Users\Ankit\Desktop\EAD Project\StackGAN-Pytorch-master\code\trainer.py", line 242, in sample
    t_file = torchfile.load(datapath)
  File "C:\Users\Ankit\Anaconda3\lib\site-packages\torchfile.py", line 424, in load
    return reader.read_obj()
  File "C:\Users\Ankit\Anaconda3\lib\site-packages\torchfile.py", line 386, in read_obj
    v = self.read_obj()
  File "C:\Users\Ankit\Anaconda3\lib\site-packages\torchfile.py", line 386, in read_obj
    v = self.read_obj()
  File "C:\Users\Ankit\Anaconda3\lib\site-packages\torchfile.py", line 414, in read_obj
    "unknown object type / typeidx: {}".format(typeidx))
torchfile.T7ReaderException: unknown object type / typeidx: -1112529805

harbarex avatar Apr 15 '19 06:04 harbarex

I've gotten this error too, where is the problem?

masoudpz avatar Aug 18 '19 08:08 masoudpz