Different predictions after loading model in different jupyter notebook #11802
Unanswered
shmahaj
asked this question in
code help: CV
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When trying to generate predictions on the test set after loading model from best checkpoint in a fresh python script yields different results compared to the context of python script the model was trained in. The accuracy in the script with training gave a 57% accuracy for 5 epochs while, it was 6% on the different script.
I have also checked the state dictionaries for the loaded model in both contexts, and compared it to the weight values saved in the checkpoint and they are the same. But the predictions for the images are still very different.
Script 1 with Training
The above script yields 57% accuracy.
Script 2 which only loads and tests model
This only gives an accuracy of 6%.
Beta Was this translation helpful? Give feedback.
All reactions