Skip to content

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

Description

@jfhauris

@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'

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions