caffe icon indicating copy to clipboard operation
caffe copied to clipboard

Should "batch_size"s be the same in trainning and testing in MNIST?

Open davidduo opened this issue 12 years ago • 5 comments

In the example of MNIST, should the "batch_size"s in "lenet_train.prototxt" and "lenet_test.prototxt" set the same with each other ? Thanks!

davidduo avatar Aug 12 '14 03:08 davidduo

Batch size for the training will control your convergence and oscillation during the training, for the test it should only control the resources that you use (in a few word your GPU memory consumption) and how you can access data for post-process and saving. Different size are not an issue.

hnoel avatar Aug 12 '14 15:08 hnoel

Right, the only requirement on the test batch_size is that the total number of test instances should be the test batch size x the number of test iterations.

shelhamer avatar Aug 12 '14 20:08 shelhamer

thank you very much @hnoel @shelhamer?

davidduo avatar Aug 13 '14 10:08 davidduo

thank you very much @hnoel @shelhamer!

davidduo avatar Aug 13 '14 10:08 davidduo

No problem. Please ask further questions on the mailing list: https://groups.google.com/forum/m/#!forum/caffe-users

shelhamer avatar Aug 13 '14 14:08 shelhamer