Skip to content

The dict obtained from pretrained-model.pth had no the key "model_type" #26

@MichaelWU0726

Description

@MichaelWU0726

Hi, in inference_model.py", line 20, in init self.model = create_model(model_type=model_state['model_type'], drop_out=0) called by in cli.py line89 model = InferenceModel(path_to_model_state=path_to_model_state). I used pretrained-model.pth that you provided to validate it, and caused that KeyError: 'model_type'. I also printed the keys of dict obtained from loaded model you provided and it didn't have the key "model_type". Then, can you explain it for me? Thanks.

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