Calculate mean and std of Image Dataset

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...
 •  0 comments  •  flag
Share on Twitter
Published on November 24, 2022 20:02
No comments have been added yet.