Skip to content

Goal 1: Create and train your model

Lobe is a free, private desktop application that has everything you need to take your machine learning ideas from prototype to production.

For this goal, your team will train a model using images either captured with your computer camera or imported into the desktop application. Future goals will focus on testing and running your trained model in a web application.

What is machine learning?

Machine learning is software that learns to perform a task from a collection of examples rather than through a person explicitly defining rules and formulas. This learning software is called a model. Teaching a model through examples is called training.

What is image classification?

Image classification is categorizing an image into a single label to represent its content. Apps using image classification could:

  1. Identify a plant’s species in the wild
  2. Send you photos of a new bird that just started showing up at your bird feeder
  3. Count the number of push-ups you’ve done in a workout
  4. Alert you when a shelf is empty
  5. Read signs in your environment

Lobe

Lobe is not doing any reasoning or understanding of the content in your images. Image classification learns to find any patterns from your images - things like textures, colors, and shapes - that can be used to separate your labels.

Here are some helper questions to answer to make choosing your labels easier:

  1. What information would clarify what is in the image?
  2. How complex is the object?
  3. How similar are the objects with the same label? How different are the objects that have different labels?

💡 The None label

Make sure to use a catch-all label like None to show unrelated images.

Lobe will always predict one of your labels even if your image does not contain any related content. If you expect your model to see these types of images, create a None label and add variations of these images as examples. You can use this None label as a placeholder when waiting for relevant predictions.

Success criteria

Your team will work together to create and train a model using Lobe. Your team will have achieved this goal when the following success criteria are met:

  • The model has 10-20 images for each label
  • The model has at least 3-4 labels, not including the None label

Resources

Your team might find these resources helpful:

Final result

After you finish training your model, you should see a page which looks like the following:

Screenshot of the starting page, showing a link to login, a picture of a dog with the heading Isn't this a cute Pekinese dog?

Tips

💡 Be mindful of the capabilities of your team’s computers! Here are some things that can impact the amount of compute power and/or time it will take to train your model:

  • The number of images in your dataset
  • The number of labels
  • The average file size of the images in your dataset

💡 The label progress bars fill up as you add images. The number of photos needed will vary:

Screenshot of the Lobe application user interface, which shows progress bars underneath labels with the number of photos for each label

Next challenge

Once you’ve trained your model, it’s time to fine tune it.