我有点傻,所以在这里容忍我。我一直在youtube上观看Siraj Raval,并尝试使用他在视频https://www.youtube.com/watch?v=cAICT4Al5Ow中创建的神经网络。我有两个单独的图像文件夹,一个是含有疟疾的细胞,另一个是健康细胞。我不知道用什么来验证数据。在包含图像的路径上使用load_data
函数之后,我遇到了一个错误,我不知道如何解决这个问题。似乎我使用的软件包中有一个应该具有该功能的软件包工作不正常。你知道吗
我已经将每个单元格的代码(我正在使用jupyter笔记本)压缩到这个文本文件中。文本之间的长空格表示它们在不同的单元格中。我不知道这是否重要。你知道吗
再次检查minute 2:45 你失踪了
但这似乎是一个自定义模块,没有提供。您需要的是将文件夹中的所有文件读取到数组/列表中。下面是一个代码,可以让您开始:
请记住,图像的大小必须相同。你可能需要重塑它们。你知道吗
你需要一个发电机。参见^{} function section documentation of Keras ,或者更好地使用
ImageDataGenerator
。下一段代码是从Building an image classification model using very little data复制粘贴的:目录结构
代码
请参阅Building an image classification model using very little data中的原始代码。你知道吗
相关问题 更多 >
编程相关推荐