Object detection image normalize

For object detection tasks, is it necessary to sub the mean and devided by the average for the images?
If necessary, the mean and average value should be calcuate every epoch?

Thank you