You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, in inference_model.py", line 20, in initself.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.
The text was updated successfully, but these errors were encountered:
It had been too long and I forgot whether it was solved. For that, I guess it can be caused by the saved way of model file. There is a my article about it for referring No module named ‘models‘. If any question about this article, please ask me again.
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 line89model = 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.The text was updated successfully, but these errors were encountered: