[go: nahoru, domu]

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 should it be treated as follows function? #24

Open
luckhhn opened this issue Jan 3, 2020 · 1 comment
Open

Why should it be treated as follows function? #24

luckhhn opened this issue Jan 3, 2020 · 1 comment

Comments

@luckhhn
Copy link
luckhhn commented Jan 3, 2020

def preprocess_input(x, v2=True):
# scale the raw pixel intensities to the range [0, 1]
x = x.astype('float32')
x = x / 255.0
if v2:
x = x - 0.5
x = x * 2.0
return x

Thank you very much for your work, Looking forward to your reply

@luckhhn
Copy link
Author
luckhhn commented Jan 3, 2020

What is the purpose of the above processing?

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