Keras-ICNet icon indicating copy to clipboard operation
Keras-ICNet copied to clipboard

Input normalization

Open MathiasGilson opened this issue 6 years ago • 1 comments

why do you normalize the input with this function ?

https://github.com/aitorzip/Keras-ICNet/blob/bcc13bf5dd39abd3496dd669b245b91c31d7ff16/model.py#L16

It looks like an input value of 255 (let’s say in the green channel) would be normalized to 0.5 instead of 1 in that same channel. I don’t understand why, can you help me ?

MathiasGilson avatar May 02 '18 13:05 MathiasGilson

@MathiasGilson I guess the reason is because he want to rescale to range from 0-255 to -0.5-+0.5. The intuition behind this is similar to batchnormalization, which helps training to converge faster due to normalized linear projection.

pgr2015 avatar Sep 25 '19 12:09 pgr2015