def pil_to_nparray(pil_image):
 pil_image.load()
 return np.asarray(pil_image, dtype='float32')

def pil_to_nparray ( pil_image ) : pil_image . load ( ) return np . asarray ( pil_image , dtype = 'float32' )
convert a pil .