def pil_to_nparray(pil_image):
    pil_image.load()
    return np.asarray(pil_image, dtype="float32")
Convert a PIL.Image to numpy array.
dataset/ETHPy150Open tflearn/tflearn/tflearn/data_utils.py/pil_to_nparray