Closed zqh0253 closed 2 years ago
It is a bit weird as the normalization amounts to:
x_offset = (x+1)/2
x_norm = (x_offset - std) / mean
I would have expected as you wrote
x_norm = (x - mean) / std
Code for norm_with_stats()
:
Code for get_backbone_normstats()
:
it's unnormalization + normalization in a single op. But currently, it is somewhat cryptic and there is a small bug. I made a push to fix it :)
I see the commit.
restructure normalization
So "un-normalization" is:
x_offset = (x+1)/2
And "normalization" is Normalize
:
x_norm = (x_offset - mean) / std
The small bug was that mean and std were exchanged, right?
x_norm = (x_offset - std) / mean
correct :)
Hi, I notice that the normalization of input images is different from traditional normalization way ( x = (x-mean)/std. ):
Is there any paper or previous work introduces this kind of normalization method?