pytorch-classification icon indicating copy to clipboard operation
pytorch-classification copied to clipboard

About tiny imagenet training problem

Open zorrocai opened this issue 7 years ago • 1 comments

I have modified the imagenet.py by adding the lines after the "create model" codes: num_ftrs = model.fc.in_features model.fc = nn.Linear(num_ftrs,200) changing the net to train on tiny imagenet. But it has a problem: training top1 accuracy is about 79.6110 and top5 accuracy is about 91.6950; while validation accuracys are only 0.7(top1) and 1.47(top5). Do you have any ideas on this weird problem?

zorrocai avatar Jun 12 '18 01:06 zorrocai

https://github.com/tjmoon0104/pytorch-tiny-imagenet/blob/master/val_format.py

taomo avatar Apr 01 '20 10:04 taomo