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

Confusion about fixed_image_standardization #183

Open
njuaplusplus opened this issue Nov 7, 2021 · 0 comments
Open

Confusion about fixed_image_standardization #183

njuaplusplus opened this issue Nov 7, 2021 · 0 comments

Comments

@njuaplusplus
Copy link

The following is the function fixed_image_standardization:

def fixed_image_standardization(image_tensor):
    processed_tensor = (image_tensor - 127.5) / 128.0
    return processed_tensor

fixed_image_standardization seems to normalize images in the range [0., 255.] into the range [-1.0, 1.0].

But the extract_face returns images in the range [0.0, 1.0].

Could anyone explain this? Is this normalization wrong?

Thank you.

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

1 participant