zhongyy / Face-Transformer

Face Transformer for Recognition
MIT License
252 stars 54 forks source link

Issues about input normalization #8

Closed zcy8123878 closed 3 years ago

zcy8123878 commented 3 years ago

Hi,

I have some questions about your input normalization. Specifically, I checked your code and notice that you leave out normalization for input images which means the input value is ranged [0, 255]. I tried to normalize the input to [-1, 1], and the results dropped a little, so is this a training trick or there is some insights behind it?

zhongyy commented 3 years ago

Hi,

Yes, I also tried normalize the input into to [-1,1], and found similar conclusion as yours. While I am not sure whether this is a trick.

zcy8123878 commented 3 years ago

Thanks a lot, your work really do me a great favour