Could it be possible then that the torch.hub.load_state_dict( ) is using the new serialization mode to load the model state?
If what I’m thinking is the case u might want to upgrade to v1.6
The error is obviously a serialization error b4 u update to v1.6 try setting the serialization to true in the torch.save() and re-save ur model let’s see if it’s the torch.hub.load… that is causing the issue