RuntimeError: Error(s) in loading state_dict for RecognitionPredictor: #1417
-
Hello, I've trained a custom recognizer, but I am getting an issue with I've successfully finetuned my model with this tutorial and its path is My implementation is like this:
The line
Similarly, this is my finetuned model:
It seems the finetuned model's keys and pretrained=True keys are identical after doing Any help would be greatly appreciated! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Hello, just a quick update. Just realized the keys don't have "model." in front of them, causing this issue. My previous approach of I did Please see the error:
|
Beta Was this translation helpful? Give feedback.
-
Just resolved this issue and posting this for future reference:
This line I mentioned in my previous answer is no longer necessary:
|
Beta Was this translation helpful? Give feedback.
Just resolved this issue and posting this for future reference:
I realized I had to use this guide and changed my code:
This line I mentioned in my previous answer is no longer necessary: