You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried to convert a Torch pretrained model from https://github.com/tyshiwo/FSRNet. However it crashed when I run the scripts. Here is the error info:
Traceback (most recent call last):
File ".\convert_torch.py", line 314, in <module>
torch_to_pytorch(args.model,args.output)
File ".\convert_torch.py", line 259, in torch_to_pytorch
model = load_lua(t7_filename,unknown_classes=True)
File "C:\Users\Administrator\Miniconda3\envs\pytorch-old\lib\site-packages\torch\utils\serialization\read_lua_file.py"
, line 608, in load_lua
return reader.read()
File "C:\Users\Administrator\Miniconda3\envs\pytorch-old\lib\site-packages\torch\utils\serialization\read_lua_file.py"
, line 593, in read
return self.read_object()
File "C:\Users\Administrator\Miniconda3\envs\pytorch-old\lib\site-packages\torch\utils\serialization\read_lua_file.py"
, line 523, in wrapper
result = fn(self, *args, **kwargs)
File "C:\Users\Administrator\Miniconda3\envs\pytorch-old\lib\site-packages\torch\utils\serialization\read_lua_file.py"
, line 548, in read_object
return TorchObject(cls_name, self.read())
File "C:\Users\Administrator\Miniconda3\envs\pytorch-old\lib\site-packages\torch\utils\serialization\read_lua_file.py"
, line 595, in read
return self.read_table()
File "C:\Users\Administrator\Miniconda3\envs\pytorch-old\lib\site-packages\torch\utils\serialization\read_lua_file.py"
, line 523, in wrapper
result = fn(self, *args, **kwargs)
File "C:\Users\Administrator\Miniconda3\envs\pytorch-old\lib\site-packages\torch\utils\serialization\read_lua_file.py"
, line 571, in read_table
k = self.read()
File "C:\Users\Administrator\Miniconda3\envs\pytorch-old\lib\site-packages\torch\utils\serialization\read_lua_file.py"
, line 593, in read
return self.read_object()
File "C:\Users\Administrator\Miniconda3\envs\pytorch-old\lib\site-packages\torch\utils\serialization\read_lua_file.py"
, line 523, in wrapper
result = fn(self, *args, **kwargs)
File "C:\Users\Administrator\Miniconda3\envs\pytorch-old\lib\site-packages\torch\utils\serialization\read_lua_file.py"
, line 548, in read_object
return TorchObject(cls_name, self.read())
File "C:\Users\Administrator\Miniconda3\envs\pytorch-old\lib\site-packages\torch\utils\serialization\read_lua_file.py"
, line 595, in read
return self.read_table()
File "C:\Users\Administrator\Miniconda3\envs\pytorch-old\lib\site-packages\torch\utils\serialization\read_lua_file.py"
, line 523, in wrapper
result = fn(self, *args, **kwargs)
File "C:\Users\Administrator\Miniconda3\envs\pytorch-old\lib\site-packages\torch\utils\serialization\read_lua_file.py"
, line 572, in read_table
v = self.read()
File "C:\Users\Administrator\Miniconda3\envs\pytorch-old\lib\site-packages\torch\utils\serialization\read_lua_file.py"
, line 595, in read
return self.read_table()
File "C:\Users\Administrator\Miniconda3\envs\pytorch-old\lib\site-packages\torch\utils\serialization\read_lua_file.py"
, line 523, in wrapper
result = fn(self, *args, **kwargs)
File "C:\Users\Administrator\Miniconda3\envs\pytorch-old\lib\site-packages\torch\utils\serialization\read_lua_file.py"
, line 572, in read_table
v = self.read()
File "C:\Users\Administrator\Miniconda3\envs\pytorch-old\lib\site-packages\torch\utils\serialization\read_lua_file.py"
, line 595, in read
return self.read_table()
File "C:\Users\Administrator\Miniconda3\envs\pytorch-old\lib\site-packages\torch\utils\serialization\read_lua_file.py"
, line 523, in wrapper
result = fn(self, *args, **kwargs)
File "C:\Users\Administrator\Miniconda3\envs\pytorch-old\lib\site-packages\torch\utils\serialization\read_lua_file.py"
, line 572, in read_table
v = self.read()
File "C:\Users\Administrator\Miniconda3\envs\pytorch-old\lib\site-packages\torch\utils\serialization\read_lua_file.py"
, line 595, in read
return self.read_table()
File "C:\Users\Administrator\Miniconda3\envs\pytorch-old\lib\site-packages\torch\utils\serialization\read_lua_file.py"
, line 523, in wrapper
result = fn(self, *args, **kwargs)
File "C:\Users\Administrator\Miniconda3\envs\pytorch-old\lib\site-packages\torch\utils\serialization\read_lua_file.py"
, line 572, in read_table
v = self.read()
File "C:\Users\Administrator\Miniconda3\envs\pytorch-old\lib\site-packages\torch\utils\serialization\read_lua_file.py"
, line 595, in read
return self.read_table()
File "C:\Users\Administrator\Miniconda3\envs\pytorch-old\lib\site-packages\torch\utils\serialization\read_lua_file.py"
, line 523, in wrapper
result = fn(self, *args, **kwargs)
File "C:\Users\Administrator\Miniconda3\envs\pytorch-old\lib\site-packages\torch\utils\serialization\read_lua_file.py"
, line 572, in read_table
v = self.read()
File "C:\Users\Administrator\Miniconda3\envs\pytorch-old\lib\site-packages\torch\utils\serialization\read_lua_file.py"
, line 595, in read
return self.read_table()
File "C:\Users\Administrator\Miniconda3\envs\pytorch-old\lib\site-packages\torch\utils\serialization\read_lua_file.py"
, line 523, in wrapper
result = fn(self, *args, **kwargs)
File "C:\Users\Administrator\Miniconda3\envs\pytorch-old\lib\site-packages\torch\utils\serialization\read_lua_file.py"
, line 572, in read_table
v = self.read()
File "C:\Users\Administrator\Miniconda3\envs\pytorch-old\lib\site-packages\torch\utils\serialization\read_lua_file.py"
, line 595, in read
return self.read_table()
File "C:\Users\Administrator\Miniconda3\envs\pytorch-old\lib\site-packages\torch\utils\serialization\read_lua_file.py"
, line 523, in wrapper
result = fn(self, *args, **kwargs)
File "C:\Users\Administrator\Miniconda3\envs\pytorch-old\lib\site-packages\torch\utils\serialization\read_lua_file.py"
, line 572, in read_table
v = self.read()
File "C:\Users\Administrator\Miniconda3\envs\pytorch-old\lib\site-packages\torch\utils\serialization\read_lua_file.py"
, line 595, in read
return self.read_table()
File "C:\Users\Administrator\Miniconda3\envs\pytorch-old\lib\site-packages\torch\utils\serialization\read_lua_file.py"
, line 523, in wrapper
result = fn(self, *args, **kwargs)
File "C:\Users\Administrator\Miniconda3\envs\pytorch-old\lib\site-packages\torch\utils\serialization\read_lua_file.py"
, line 572, in read_table
v = self.read()
File "C:\Users\Administrator\Miniconda3\envs\pytorch-old\lib\site-packages\torch\utils\serialization\read_lua_file.py"
, line 595, in read
return self.read_table()
File "C:\Users\Administrator\Miniconda3\envs\pytorch-old\lib\site-packages\torch\utils\serialization\read_lua_file.py"
, line 523, in wrapper
result = fn(self, *args, **kwargs)
File "C:\Users\Administrator\Miniconda3\envs\pytorch-old\lib\site-packages\torch\utils\serialization\read_lua_file.py"
, line 572, in read_table
v = self.read()
File "C:\Users\Administrator\Miniconda3\envs\pytorch-old\lib\site-packages\torch\utils\serialization\read_lua_file.py"
, line 595, in read
return self.read_table()
File "C:\Users\Administrator\Miniconda3\envs\pytorch-old\lib\site-packages\torch\utils\serialization\read_lua_file.py"
, line 523, in wrapper
result = fn(self, *args, **kwargs)
File "C:\Users\Administrator\Miniconda3\envs\pytorch-old\lib\site-packages\torch\utils\serialization\read_lua_file.py"
, line 572, in read_table
v = self.read()
File "C:\Users\Administrator\Miniconda3\envs\pytorch-old\lib\site-packages\torch\utils\serialization\read_lua_file.py"
, line 595, in read
return self.read_table()
File "C:\Users\Administrator\Miniconda3\envs\pytorch-old\lib\site-packages\torch\utils\serialization\read_lua_file.py"
, line 523, in wrapper
result = fn(self, *args, **kwargs)
File "C:\Users\Administrator\Miniconda3\envs\pytorch-old\lib\site-packages\torch\utils\serialization\read_lua_file.py"
, line 572, in read_table
v = self.read()
File "C:\Users\Administrator\Miniconda3\envs\pytorch-old\lib\site-packages\torch\utils\serialization\read_lua_file.py"
, line 595, in read
return self.read_table()
File "C:\Users\Administrator\Miniconda3\envs\pytorch-old\lib\site-packages\torch\utils\serialization\read_lua_file.py"
, line 523, in wrapper
result = fn(self, *args, **kwargs)
File "C:\Users\Administrator\Miniconda3\envs\pytorch-old\lib\site-packages\torch\utils\serialization\read_lua_file.py"
, line 572, in read_table
v = self.read()
File "C:\Users\Administrator\Miniconda3\envs\pytorch-old\lib\site-packages\torch\utils\serialization\read_lua_file.py"
, line 595, in read
return self.read_table()
File "C:\Users\Administrator\Miniconda3\envs\pytorch-old\lib\site-packages\torch\utils\serialization\read_lua_file.py"
, line 523, in wrapper
result = fn(self, *args, **kwargs)
File "C:\Users\Administrator\Miniconda3\envs\pytorch-old\lib\site-packages\torch\utils\serialization\read_lua_file.py"
, line 572, in read_table
v = self.read()
File "C:\Users\Administrator\Miniconda3\envs\pytorch-old\lib\site-packages\torch\utils\serialization\read_lua_file.py"
, line 595, in read
return self.read_table()
File "C:\Users\Administrator\Miniconda3\envs\pytorch-old\lib\site-packages\torch\utils\serialization\read_lua_file.py"
, line 523, in wrapper
result = fn(self, *args, **kwargs)
File "C:\Users\Administrator\Miniconda3\envs\pytorch-old\lib\site-packages\torch\utils\serialization\read_lua_file.py"
, line 572, in read_table
v = self.read()
File "C:\Users\Administrator\Miniconda3\envs\pytorch-old\lib\site-packages\torch\utils\serialization\read_lua_file.py"
, line 595, in read
return self.read_table()
File "C:\Users\Administrator\Miniconda3\envs\pytorch-old\lib\site-packages\torch\utils\serialization\read_lua_file.py"
, line 523, in wrapper
result = fn(self, *args, **kwargs)
File "C:\Users\Administrator\Miniconda3\envs\pytorch-old\lib\site-packages\torch\utils\serialization\read_lua_file.py"
, line 571, in read_table
k = self.read()
File "C:\Users\Administrator\Miniconda3\envs\pytorch-old\lib\site-packages\torch\utils\serialization\read_lua_file.py"
, line 593, in read
return self.read_object()
File "C:\Users\Administrator\Miniconda3\envs\pytorch-old\lib\site-packages\torch\utils\serialization\read_lua_file.py"
, line 523, in wrapper
result = fn(self, *args, **kwargs)
File "C:\Users\Administrator\Miniconda3\envs\pytorch-old\lib\site-packages\torch\utils\serialization\read_lua_file.py"
, line 548, in read_object
return TorchObject(cls_name, self.read())
File "C:\Users\Administrator\Miniconda3\envs\pytorch-old\lib\site-packages\torch\utils\serialization\read_lua_file.py"
, line 595, in read
return self.read_table()
File "C:\Users\Administrator\Miniconda3\envs\pytorch-old\lib\site-packages\torch\utils\serialization\read_lua_file.py"
, line 523, in wrapper
result = fn(self, *args, **kwargs)
File "C:\Users\Administrator\Miniconda3\envs\pytorch-old\lib\site-packages\torch\utils\serialization\read_lua_file.py"
, line 572, in read_table
v = self.read()
File "C:\Users\Administrator\Miniconda3\envs\pytorch-old\lib\site-packages\torch\utils\serialization\read_lua_file.py"
, line 595, in read
return self.read_table()
File "C:\Users\Administrator\Miniconda3\envs\pytorch-old\lib\site-packages\torch\utils\serialization\read_lua_file.py"
, line 523, in wrapper
result = fn(self, *args, **kwargs)
File "C:\Users\Administrator\Miniconda3\envs\pytorch-old\lib\site-packages\torch\utils\serialization\read_lua_file.py"
, line 571, in read_table
k = self.read()
File "C:\Users\Administrator\Miniconda3\envs\pytorch-old\lib\site-packages\torch\utils\serialization\read_lua_file.py"
, line 591, in read
return self.read_function()
File "C:\Users\Administrator\Miniconda3\envs\pytorch-old\lib\site-packages\torch\utils\serialization\read_lua_file.py"
, line 523, in wrapper
result = fn(self, *args, **kwargs)
File "C:\Users\Administrator\Miniconda3\envs\pytorch-old\lib\site-packages\torch\utils\serialization\read_lua_file.py"
, line 532, in read_function
upvalues = self.read()
File "C:\Users\Administrator\Miniconda3\envs\pytorch-old\lib\site-packages\torch\utils\serialization\read_lua_file.py"
, line 579, in read
typeidx = self.read_int()
File "C:\Users\Administrator\Miniconda3\envs\pytorch-old\lib\site-packages\torch\utils\serialization\read_lua_file.py"
, line 475, in read_int
return self._read('i')
File "C:\Users\Administrator\Miniconda3\envs\pytorch-old\lib\site-packages\torch\utils\serialization\read_lua_file.py"
, line 466, in _read
result = struct.unpack(fmt, self.f.read(sz))
struct.error: unpack requires a buffer of 4 bytes
Greatly appreciate if you can fix it.
The text was updated successfully, but these errors were encountered:
I tried to convert a Torch pretrained model from https://github.com/tyshiwo/FSRNet. However it crashed when I run the scripts. Here is the error info:
Greatly appreciate if you can fix it.
The text was updated successfully, but these errors were encountered: