How to load a model from the .pth
#2
by
MaelM
- opened
Hello and thank you for the amazing work!
I am struggling to load the model weights.
I am trying to use the weights from best_transpath.pth.
I imported the ctranspath model from the official GitHub repository, but the keys in its state_dict do not match the keys in the best_transpath.pth state_dict.
For example, the ctranspath state_dict has 202 keys, whereas the best_transpath.pth state_dict has 329 keys.
Could you please help me understand what I am doing wrong?
Thank you very much in advance, and if you do not have time right now, I will gladly wait for the full release.