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
As you can see torch is looking for backbone.conv1.weight but it is finding model.backbone.conv1.weight.
Basically all the keys in the pth dictionary have model. appended because of how the weights were saved.
Just open the dictionary and manually fix the keys.
Something like that
While training, I used
SaveModelCallback()
to save the model with the best valid loss value as suggested here.Now, I am trying to upload my model for inference but it doesn't work. I used to the same data preprocessing.
Here is my code:
Output:
Can someone help me ?
The text was updated successfully, but these errors were encountered: