Skip to content
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

I can operate on *.pkl files but not *.pth files ? #56

Open
jfhauris opened this issue Apr 26, 2021 · 0 comments
Open

I can operate on *.pkl files but not *.pth files ? #56

jfhauris opened this issue Apr 26, 2021 · 0 comments

Comments

@jfhauris
Copy link

@PingoLH How do you run the code with the model: hardnet_petite_base.pth
I get the following error:

Traceback (most recent call last):
  File "test.py", line 139, in <module>
    test(args)
  File "test.py", line 47, in test
    device, model, loader = init_model(args)
  File "test.py", line 34, in init_model
    state = convert_state_dict(torch.load(args.model_path, map_location=device)["model_state"])
KeyError: 'model_state'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant