Swift -CoreML ImageClassifier始终返回模型精度训练100%评估0%

时间:2019-07-19 17:07:35

标签: ios swift coreml createmlui

我正在为我的ML模型使用不同类别的食物,这将是一种食物模型。其中一类是african dishes(这些是我用来训练的确切图片,尽管我手动删除了其中带有单词的内容)。我使用python刮板从Google图像中刮取图像。我总共有大约600个特定类别(我也使用意大利菜,亚洲菜,水果,蔬菜,海鲜等)

要开始图像训练,我使用游乐场> macOS:

import CreateMLUI

let builder = MLImageClassifierBuilder()
builder.showInLiveView()

我将图像数据分割为80/20或480图像训练和122图像测试。

我注意到,当training始终从默认的10次迭代开始时,ImageClassifier始终会为我提供Training 100% Valuation 0%的结果。稍后,当我添加testing数据时,评估始终为Evaluation --

这是 10次迭代

的结果

enter image description here

enter image description here

enter image description here

enter image description here

然后我将迭代次数提高到1000 iterations,并且得到的结果与Training 100% Valuation 0%相同。

在估值不会超过0%的地方我怎么了?

1000 iterations的培训(无测试),等待2小时后的结果!添加测试数据后,评估仍为Evaluation --

enter image description here

enter image description here

enter image description here

0 个答案:

没有答案