INNER CODE UNIT · Python
preprocess_input
otaha178/Emotion-recognition · load_and_process.py:24
def preprocess_input(x, v2=True):
x = x.astype('float32')
x = x / 255.0
if v2:
x = x - 0.5
x = x * 2.0
return x
INNER CODE UNIT · Python
otaha178/Emotion-recognition · load_and_process.py:24
def preprocess_input(x, v2=True):
x = x.astype('float32')
x = x / 255.0
if v2:
x = x - 0.5
x = x * 2.0
return x