简体   繁体   English

CreateML 数据分析已停止

[英]CreateML data analysis stopped

When I attempt to train a CreateML model, I get the following screen after inputting my training data:当我尝试训练 CreateML model 时,输入训练数据后出现以下屏幕:

Create ML error message创建 ML 错误消息

I am then unable to add my test data or train the model.然后我无法添加我的测试数据或训练 model。 Any ideas on what is going on here?关于这里发生了什么的任何想法?

[EDIT] As mentioned in my comment below, this issue went away when I removed some of my training data. [编辑] 正如我在下面的评论中提到的,当我删除了一些训练数据时,这个问题就消失了。 Any newcomers who are running into this issue are encouraged to try some of the solutions below and comment on whether it worked for them.鼓励遇到此问题的任何新手尝试以下一些解决方案并评论它是否对他们有用。 I'm happy to accept an answer if it seems like it's working for people.如果它似乎对人们有用,我很乐意接受答案。

This happens when the first picture in the dataset has no label.当数据集中的第一张图片没有 label 时,就会发生这种情况。 If you place a labeled photo as the first in the dataset and in the coreML json, you shouldn't get that issue.如果您将带标签的照片作为数据集中和 coreML json 中的第一张照片,则不会出现该问题。

Correct:正确的:

[{"annotations":[{"label":"Enemy","coordinates":{"y":156,"x":302,"width":26,"height":55}}],"imagefilename":"Enemy1.png"},{"annotations":[{"label":"Enemy","coordinates":{"y":213,"x":300,"width":69,"height":171}}],"imagefilename":"Enemy7.png"},{"annotations":

Incorrect:不正确:

[{"annotations":[],"imagefilename":"Enemy_v40.png"},{"annotations":[],"imagefilename":"Enemy_v41.png"},{"annotations":[],"imagefilename":"Enemy_v42.png"},{"annotations":

If you are using any random Split or something similar, make sure, its parsing the data correctly.如果您使用任何随机拆分或类似的东西,请确保它正确解析数据。 you can test this easily by debugging.您可以通过调试轻松地对此进行测试。

I suggest you check to see if your training data is consistent and all entries have all needed values.我建议您检查一下您的训练数据是否一致并且所有条目都具有所有需要的值。 The error is likely in the section of data you removed.该错误可能在您删除的数据部分中。

That would cause the error Nate commented he is seeing when he gets that pop up.这将导致 Nate 评论他在弹出该弹出窗口时看到的错误。

Getting the log would be the next step in any other evaluation.获取日志将是任何其他评估的下一步。

At the minimum you should check for these 2 situations, which triggered the same generic error for me ( data analysis stopped ), in the context of an Object Detection Model:在 Object 检测 Model 的上下文中,您至少应该检查这两种情况,它们对我触发了相同的一般错误( data analysis stopped ):

  • One or more of the image names referenced in annotations.json is incorrect (eg typo in image name) annotations.json中引用的一个或多个图像名称不正确(例如图像名称中的拼写错误)
  • The first entry in annotations.json has an empty annotations array (ie an image that does not contain any of the objects to be detected) annotations.json 中的第一个条目有一个空的annotations数组(即不包含任何要检测的对象的图像)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM