tensorflow2 keras 读取cifar10数据集
train_generator.next() 报出异常如下 :
在用keras的 load_img()加载图片时出现ImportError: Could not import PIL.Image. The use of array_to_img
requires PIL.Image
解决方法:
pip install pillow
tensorflow2 keras 读取cifar10数据集
train_generator.next() 报出异常如下 :
在用keras的 load_img()加载图片时出现ImportError: Could not import PIL.Image. The use of array_to_img
requires PIL.Image
解决方法:
pip install pillow