Normalize in the above case, mean subtract the mean from each pixel and divide the result by the standard deviation. The input image is float not integer in the range of [0, 1]. So when you load the image, you need to divide it by 255.