Here is very simple trick to do only mean subtraction instead of Normalization

imagnet_mean=([a,b,c],[1.0,1.0,1.0])

Normalize function of databunch takes mean subtracts it and divides by std .

so if we pass only 1 it is as good as doing only the mean subtractionâ€¦