我正在尝试使用Keras训练卷积神经网络,但在运行model.fit_generator
代码时遇到以下错误:
OSError: cannot identify image file
'D:\\PDF\\Train\\notfactors\\notfactors59.jpg
奇怪的是,文件夹中不存在名为.jpg
的文件。以下是完整代码:
我正在使用与以下 GitHub 地址完全相同的代码(不同的数据):
https://github.com/deeplizard/Keras_Jupyter_Notebooks/blob/master/CNN.ipynb
这个问题在这里被讨论过: OSError: cannot identify image file 'dataSet/.DS_Store' 但是对于这个问题,图片实际上是存在的。我很迷茫。有人有想法吗?