-
Notifications
You must be signed in to change notification settings - Fork 161
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
TypeError: '<' not supported between instances of 'NoneType' and 'str' #56
Comments
I encounted the same problem too.
After that, you may encount
This solution is based on here: |
you are right!THANKS!!! |
hi, I need to convert model VGG_FACEt.7 (This model, I download form this link: https://www.robots.ox.ac.uk/~vgg/software/vgg_face/) to Pytorch model. When I run command "python convert_torch.py -m VGGFACE.t7", I obtain the error follow as below.
Traceback (most recent call last):
File "convert_torch.py", line 314, in
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\User\anaconda3\envs\env_pytorch\lib\site-packages\torch\utils\serialization\read_lua_file.py", line 608, in load_lua
return reader.read()
File "C:\Users\User\anaconda3\envs\env_pytorch\lib\site-packages\torch\utils\serialization\read_lua_file.py", line 593, in read
return self.read_object()
File "C:\Users\User\anaconda3\envs\env_pytorch\lib\site-packages\torch\utils\serialization\read_lua_file.py", line 523, in wrapper
result = fn(self, *args, **kwargs)
File "C:\Users\User\anaconda3\envs\env_pytorch\lib\site-packages\torch\utils\serialization\read_lua_file.py", line 546, in read_object
return reader_registry[cls_name](self, version)
File "C:\Users\User\anaconda3\envs\env_pytorch\lib\site-packages\torch\utils\serialization\read_lua_file.py", line 245, in read_nn_class
_load_backend(obj)
File "C:\Users\User\anaconda3\envs\env_pytorch\lib\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 'NoneType' and 'str'
The text was updated successfully, but these errors were encountered: