Difficulty testing my trained model #1111
Replies: 4 comments
-
What is the accuracy of training weights for 50 epochs? which would print in the training log. |
Beta Was this translation helpful? Give feedback.
-
I don't actually remember exactly because I lost the output, but I'm sure it was above 80%. If you want I can run it again, keeping the exit. |
Beta Was this translation helpful? Give feedback.
-
what about using Or try following:
|
Beta Was this translation helpful? Give feedback.
-
Thank you very much. It worked. |
Beta Was this translation helpful? Give feedback.
-
Greetings,
I used the script made available on colab for a complete training, backbone and head with the dataset of dogs and cats. (https://colab.research.google.com/github/open-mmlab/mmclassification/blob/master/docs/en/tutorials/MMClassification_python.ipynb)
Here are the scripts I used for cfg and training ( it worked great ):
Once I finished training the 50 epochs, I tried to recreate the same configuration, and then load the pre-trained weights (both the backbone and the head), so that I could use the classifier, however, something went wrong in the phase of the loading the trained model. The net comes up with a result adapted to my case (cats and dogs), but it seems that the result is random, as if the weights were not loaded correctly.
Below is the code that recreates the cfg and loads the trained model:
Sorry if I was redundant.
Finally, I tried to test the model like this. What am I wrong in the loading phase of the trained model? Thanks so much for your attention.
Beta Was this translation helpful? Give feedback.
All reactions