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

can't achieve the reported accuracy on VGG19

Open zeal-up opened this issue 7 years ago • 10 comments

Have anyone train a VGG19 network used this code? I used the total exactly the same code in the repository except using a lr_schuduler to change the learning rate automatically. But I can only achieve the accuracy around 88%. Can anyone tell me what's wrong?

zeal-up avatar Aug 01 '18 10:08 zeal-up

For me it would achieve ~90.8%, but I still cannot get the reported 92.64%. @kuangliu care to share your idea?

EnJiang avatar Aug 01 '18 12:08 EnJiang

I've got 93.37% with ubuntu 16.04, cuda 9.2, cudnn 7.2, pytorch 0.4.1, and 4 * gtx 1080 ti. I use batch_size=128 (means 32 for each gpu) epoch=450 learning rate schedule 0.1 when epoch < 150, 0.01 when epoch < 300, 0.001 when epoch < 450 momentum=0.9, weight_decay=5e-4

hjinlee88 avatar Aug 23 '18 04:08 hjinlee88

@zeal-github @EnJiang I think the main problem is that you didn't set the learning rate schedule right. I got 93.69% using the same learning rate schedule as default. You can see pull request #26 for a automatic learning rate schedule.

gaosh avatar Aug 28 '18 20:08 gaosh

@hjinlee88 @gaosh Are you sure your results reproducible? I used the same learning rate schedule with yours, but none of my experiments could reach 92% acc. I especially have done many experiments on vgg16, the best result is 90.68%, which is much lower than 92.64% reported by the author.

lhyfst avatar Jan 25 '19 00:01 lhyfst

@hjinlee88 @gaosh Are you sure your results reproducible? I used the same learning rate schedule with yours, but none of my experiments could reach 92% acc. I especially have done many experiments on vgg16, the best result is 90.68%, which is much lower than 92.64% reported by the author.

I think We should use The same random seed, or IT is not reproducible. any body share The random seed

myhub avatar Mar 09 '19 14:03 myhub

@myhub @lhyfst if the base result is 90.68%, I don't think change random seed would help. The margin is near 3%, such huge difference can't be solely explained by random seed.

gaosh avatar Mar 12 '19 20:03 gaosh

What training error is everyone achieving?

atulshanbhag avatar Apr 01 '19 08:04 atulshanbhag

is it training accuracy or testing accuracy?

cbasemaster avatar May 28 '19 05:05 cbasemaster

@cbasemaster , It's testing accuracy. Training accuracy is meaningless. I follow the hjinlee88 suggestion, the best test accuracy is 93.98%.

wangyongjie-ntu avatar Jun 13 '19 05:06 wangyongjie-ntu

I'm not seeing VGG19 listed anywhere on the README, only VGG16. Are you guys testing on VGG16 or VGG19?

samuela avatar Feb 23 '22 08:02 samuela