Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

CreateML data analysis stopped

Tags:

createml

When I attempt to train a CreateML model, I get the following screen after inputting my training data:

Create ML error message

I am then unable to add my test data or train the 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.

like image 240
Peter Lu Avatar asked Jan 02 '21 01:01

Peter Lu


Video Answer


2 Answers

This happens when the first picture in the dataset has no label. If you place a labeled photo as the first in the dataset and in the coreML json, you shouldn't get that issue.

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":

like image 55
Connor Barthet Avatar answered Sep 19 '22 17:09

Connor Barthet


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:

  • One or more of the image names referenced in annotations.json is incorrect (e.g. typo in image name)
  • The first entry in annotations.json has an empty annotations array (i.e. an image that does not contain any of the objects to be detected)
like image 29
Hugo Avatar answered Sep 21 '22 17:09

Hugo