Normalize¶
- class Normalize(mean=0.0, std=1.0, *, order=None)[source]¶
Normalize the input data with mean and standard deviation. Given mean:
(M1,...,Mn)
and std:(S1,..,Sn)
forn
channels, this transform will normalize each channel of the input data.output[channel] = (input[channel] - mean[channel]) / std[channel]
- Parameters
mean – sequence of means for each channel.
std – sequence of standard deviations for each channel.
order – the same with
VisionTransform
.