I used this program (https://github.com/clcarwin/convert_torch_to_pytorch) to convert a resnet34(official from facebook https://github.com/facebook/fb.resnet.torch/tree/master/pretrained) model to pytorch. However I get a problem:
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,long_size=8)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/torch/utils/serialization/read_lua_file.py", line 608, in load_lua
return reader.read()
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/torch/utils/serialization/read_lua_file.py", line 593, in read
return self.read_object()
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/torch/utils/serialization/read_lua_file.py", line 523, in wrapper
result = fn(self, *args, **kwargs)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/torch/utils/serialization/read_lua_file.py", line 546, in read_object
return reader_registry[cls_name](self, version)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/torch/utils/serialization/read_lua_file.py", line 245, in read_nn_class
_load_backend(obj)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/torch/utils/serialization/read_lua_file.py", line 220, in _load_backend
for key in dir(obj):
TypeError: '<' not supported between instances of 'int' and 'str'
Is there any chance that I can covert this model?