CloserLookFewShot icon indicating copy to clipboard operation
CloserLookFewShot copied to clipboard

accuracy about miniImagenet protonet ResNet18 train_aug

Open ChaiXingliang opened this issue 6 years ago • 4 comments

Hello, I have run your code python ./train.py --dataset miniImagenet --method protonet --model ResNet18 --train_aug python ./save_features --dataset miniImagenet --method protonet --model ResNet18 --train_aug python ./test.py --dataset miniImagenet --method protonet --model ResNet18 --train_aug but I got the max test accuracy is 72.30%, while the reported is 73.68. the version of my pytorch is 1.0.0. could you give me some explains and advice? Thank you!

ChaiXingliang avatar Apr 30 '19 06:04 ChaiXingliang

Hello, in terms of the 1% error, it may happen if the "best model" selected by validation is not the best model. If you want to ensure it is the best model, you can have a more strict validation. For example, change the range(100) in line 112 meta_template.py to the range(600), so your validation would be based on 600 times test now.

wyharveychen avatar Apr 30 '19 18:04 wyharveychen

Oh, thanks for your answer, I have tried it but the test accuracy still has no change, I run it with python 2.7.15 and pytorch0.3, and it has no improvement.

ChaiXingliang avatar May 03 '19 08:05 ChaiXingliang

Hello, also notes that even with the same model, the accuracy reported by the test.py each time would be slightly different. Can you check it?

wyharveychen avatar May 05 '19 00:05 wyharveychen

If the seed parameter is set, it wouldn't be different. It would benefit for the train code also, since the sampling of episodes is random at every run

ashok-arjun avatar May 30 '21 15:05 ashok-arjun