In this article, we have explained how to calculate the mean and standard deviation (std) of an image dataset which can be used to normalize images in the dataset for effective training of Neural Networks.
The challenge is to compute mean and std in batches as loading the entire image dataset will have significant memory overhead. We have presented the Python code using Pytorch.
Table of contents:
Why we need mean and std of Image Dataset?Calculate mean and std of Image DatasetCode to calcula...
Published on November 24, 2022 20:02