Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

why there is no division by standard deviation in color_normalize() after subtracting by mean ?? #99

Open
v1093 opened this issue Jul 2, 2019 · 1 comment

Comments

@v1093
Copy link

v1093 commented Jul 2, 2019

As per the data normalization process, we should also be performing division by std after subtracting with mean. Why this is not the case here? Or Am I missing something?

def color_normalize(x, mean, std):
if x.size(0) == 1:
x = x.repeat(3, 1, 1)
for t, m, s in zip(x, mean, std):
t.sub_(m)
return x

@xiaoxin05
Copy link

您好,看到您的评论,我想在cpu下把这个跑起来,您认为可以么?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants