Example #1
0
def normalise(im):
    im = im / np.float32(127.5) - np.float32(1.)
    return im.astype(np.float32)