我无法在卷积层中放入train_set和test_set

时间:2019-02-02 08:54:37

标签: python machine-learning neural-network deep-learning conv-neural-network

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}}

1 个答案:

答案 0 :(得分:0)

您的错误消息显示ImportError: Could not import PIL.Image,这意味着您缺少要导入的模块。但是,PIL已过时,pillow是后继的,因此您需要通过以下命令进行安装。

pip install Pillow