mmdetection icon indicating copy to clipboard operation
mmdetection copied to clipboard

could you please tell me the relationship of batch_size, epoch, iteration, and samples_per_gpu? And how to set them?

Open lijoe123 opened this issue 2 years ago • 2 comments

could you please tell me the relationship of batch_size, epoch, iteration, and samples_per_gpu? And how to set them?

lijoe123 avatar Jul 11 '22 02:07 lijoe123

I think there must be a calculation method between the values such as batch_size, epoch and Iteration. I am also interested in this calculation method. Looking forward to an official reply!

Leon-Brant avatar Jul 14 '22 01:07 Leon-Brant

In mmdet, samples per gpu * GPUs = batch size epoch is training epoch, that you are setting total_iteration per epoch = total_sample / batch_size

BIGWangYuDong avatar Aug 02 '22 04:08 BIGWangYuDong