【发布时间】:2021-10-14 06:33:52
【问题描述】:
我正在学习 ML 模型训练,遵循来自 Tensorflow 的 tutorial。我已将自己的数据集从计算机上传到 Google Colab 中名为“sample_arrow”的文件夹并指定了路径:
image_path = 'sample_arrow'
文件夹包含图片,大小不为0。但是执行这行代码时出现错误:
data = DataLoader.from_folder(image_path) train_data, test_data = data.split(0.9)
ValueError: Image size is zero
这里有什么问题?也许没有正确指定文件夹路径?我对这个话题完全陌生,不熟悉 Pyhon(有 Java 技能),希望能得到详细的回答。
【问题讨论】:
标签: python machine-learning google-colaboratory tensorflow-lite image-classification