Accuracy is close to 0 when training batch sizes are 64 and 1024
I just want to test caffe for different batch size. When batch sizes are 128, 256, 512, the accuracy results are right. But when the batch sizes are 64 and 1024, the accuracy is close to 0. Our platform information: CentOS release 6.3, K40,cuda-6.0. How can I solve this problem?
Thanks.
Probably need to adapt the learning rate accordingly.
On Thursday, August 7, 2014, Dcocoa [email protected] wrote:
I just want to test caffe for different batch size. When batch sizes are 128, 256, 512, the accuracy results are right. But when the batch sizes are 64 and 1024, the accuracy is close to 0. Our platform information: CentOS release 6.3, K40,cuda-6.0. How can I solve this problem?
Thanks.
— Reply to this email directly or view it on GitHub https://github.com/BVLC/caffe/issues/877.
Sergio
I also met with this problem. Sometimes, I have met another problem. When the batchsize number and learning rate was Ok for fixed number of class (such as 150), these parameters didnlt work for other class number (such as 300 classed). Why this happens and how should i do?
Hi, @davidduo , have you find solution for fix this problem? I also want to know how to change parameters for training my own data (10 classes).
@Cheng-Wang sorry, havn't fixed it
SGD isn't magic and requires tuning. For further understanding of the optimization and divergence, and what gradient variance, minibatch size, and learning rate have to do with it, read:
[1] L. Bottou. Stochastic gradient tricks. In G. Montavon, G. B. Orr, and K.-R. Mu ̈ller, editors, Neural Networks, Tricks of the Trade, Reloaded, Lecture Notes in Computer Science (LNCS 7700), pages 430– 445. Springer, 2012.
Please continue the discussion on the caffe-users mailing list. As of the latest release we prefer to keep issues reserved for Caffe development. Thanks!