You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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
The text was updated successfully, but these errors were encountered: