Create ML, loading initial image data

I'm getting an error very early in the the process and these tutorials seems very simple so I'm stumped.

This tutorial seems straightforward but I can't make it past the step where I drag in image sets in. https://developer.apple.com/documentation/createml/creating_an_image_classifier_model

video tutorial: https://www.youtube.com/watch?v=DSOknwpCnJ4

I have 1 folder titled "Training Data" with 2 sub-folders "img1" and "img2". When I drag my folder "Training Data" into the Training Data section I get the error: "No training data found. 0 invalid files found."

I have no idea what is causing this. Images are .jpg and taken from my phone. I only have 6 total images in the initial test. I've tried it with and without an annotations.json file created in COCO Annotator, that didn't make a difference same error with or without.

Big Sur 11.5.2 Create ML 3.0

Replies

Regarding your 6 images for the initial test, are 3 of them in each of the two folders (img1 and img2)? That is, your directory structure should be: Training Data / img1 image01.jpg image02.jpg ... / img2 image03.jpg image04.jpg ...

The directory names and actual image names don't matter. As for annotation, that's an unnecessary step for Image Classification as you will be training the model on each entire image in your training set, not a region of the images as you would do for Object Detection.

  • Yep. Training Data/img1/image1.jpg... Training Data/img2/image4.jpg...

    As for the json, that makes sense. I'm just trying to be thorough. I think it's just beta software in a final release.

Add a Comment