You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Problem
I'm running my_first_few_shot_classifier.ipynb without modifying anything, and I found that my test accuracy after training was only 86.90%, i.e., almost no improvement compared with no training at all (86.44%), a large gap compared to the claimed 98% test accuracy in the notebook.
Eval before training
100/100 [00:00<00:00, 197.05it/s]
Model tested on 100 tasks. Accuracy: 86.44%
Training log (the loss jumped between 0.2X ~ 0.3X)
100/100 [00:00<00:00, 194.86it/s]
Model tested on 100 tasks. Accuracy: 86.90%
Considered solutions
Not yet, maybe it's caused by seed or differnt package versions?
The loss was not going down during training may a big clue of the reproducibiilty problem.
Hi. I ran the notebook on Colab and could not reproduce the error:
the loss decreases during training (from ~1.2 to ~0.25)
98.18% accuracy during evaluation
My versions for easyfsl, torch and torchvision match yours.
The random seed seems like an unlikely cause for this kind of difference in the result. You may try your theory by fixing the seeds and running the training again.
@ebennequin Update: I just ran Colab (change nothing) and after training with T4 GPU I got Accuracy: 90.90%, better than my local environment but still a large gap compared with your result:
Problem
I'm running my_first_few_shot_classifier.ipynb without modifying anything, and I found that my test accuracy after training was only 86.90%, i.e., almost no improvement compared with no training at all (86.44%), a large gap compared to the claimed 98% test accuracy in the notebook.
Eval before training
Training log (the loss jumped between 0.2X ~ 0.3X)
Eval after training
Considered solutions
Not yet, maybe it's caused by seed or differnt package versions?
The loss was not going down during training may a big clue of the reproducibiilty problem.
How can we help
Any ideas what I may miss?
My environment
The text was updated successfully, but these errors were encountered: