udacity / deep-learning-v2-pytorch

Projects and exercises for the latest Deep Learning ND program https://www.udacity.com/course/deep-learning-nanodegree--nd101
MIT License
5.27k stars 5.32k forks source link

Normalization #296

Closed saikrishnadas closed 3 years ago

saikrishnadas commented 3 years ago

Each color channel was normalized separately, the means are [0.485, 0.456, 0.406] and the standard deviations are [0.229, 0.224, 0.225].

How did you find those normalization values and can i use them in all cases other than cat and dog ?

kHarshit commented 3 years ago

These are Imagenet's mean and std. Check this answer https://stackoverflow.com/a/57533806/6210807

abhiojha8 commented 3 years ago

Though we are a little late to respond, we suggest you reach out to Udacity support for user-specific issues. Thanks