اگر numpy دارید به صورت زیر عمل کنید.
image = np.float32(image)
در واقع داده ها cast میشه
image = image.astype(float)