n
#fitting training set in convolution layers
classifier.fit_generator(generator = train_set ,
steps_per_epoch = 8000 ,
epochs = 25 ,
validation_data = test_set ,
validation_steps = 2000)
{array_to_img {1}}
答案 0 :(得分:0)
您的错误消息显示ImportError: Could not import PIL.Image
,这意味着您缺少要导入的模块。但是,PIL
已过时,pillow
是后继的,因此您需要通过以下命令进行安装。
pip install Pillow