Exercise One - Maximo Visual Inspection Platform

In this lab, we have provided you with a set of images for training, a test image, and a model to use during the exercise.

In this exercise you will be able to:

  • Upload images to a data set
  • Label those images for Object Detection
  • Increase the number of images using data augmentation
  • Train and deploy a Deep Learning Model
  • Make a project for Inspections

Before you begin, make sure you followed the steps in the Prerequisites page.

Exercise 1.1 - Creating a Data Set and Image Preparation

  1. Log into Maximo Visual Inspections using your credentials.

    img


  2. Click Get Started.

    img


  3. You should now be in the Data Setstab.

    img


  4. Select Create new data set.

    img


  5. Name your net data set Cans data set-YourInitials. Then, Create.

    img


  6. Select the bottom half of the data set you just created.

    img


  7. You will now drag and drop the 5 images of cans we provided you onto the Drop files here box or click Import files and select the images.

    img


  8. Select Add files.

    img


    Once the images are done uploading, we will begin the labeling process for Object Detection.


  9. Click the Select check box next to the Label actions button. Then, click on the Label objects button.

    img


    We will now add labels of cans that are dented and cans that are not dented.


  10. On the right-hand side of the page click Add Label.

    img


  11. Type “good” and then hit the Enter key (or click the Add button). Then, type “bad_dented” and then hit the Enter key (or click the Add button). Click the Ok button when the labels are created.

    img img


  12. Look at the image and determine whether the can is “good” or “bad_dented”. Then, click the specific object name for the image and click the Box label.

    img


  13. Click and drag your mouse over the can for each label. Labeling each can "good" or "bad_dented."

    img


  14. Try to get the boxes around the cans as close as possible. If you need to adjust your label, just uncheck the Box label first (box turns BLUE when ACTIVE, BLACK when not active) and use the 4 white corners to adjust the label. You may need to click on one of the can boxes to select it, if the 4 white corner boxes are not showing. You can also select the trash can symbol next to the label on the top right to delete it.

    img


  15. Use the Blue Arrow to scroll up and down through all of the images or hover your mouse over and scroll. Label all of the “good” and “bad_dented” cans in all of the images.

    img

  16. Once finished, go back to the data set by clicking the back arrow.

    img

Data Augmentation

When building out a Deep Learning model the more images you add to your data set, the more accurate your model will be. Maximo Visual Inspection has a data augmentation feature which allows you to expand your original data set by applying one or more operations against the images. You can Blur, Sharpen, Noise, Color, Crop, Vertical Flip, Horizontal Flip, and Rotate your images. This will create a new data set with the added affects you choose. For the purpose of this lab, we will only be using the Horizontal flip and Vertical flip.

  1. Now that your imaged have been labeled, let's begin to augment the data. You should be on our Cans data Set-YourInitials in the Data set tab.

    img


  2. Now, click on the Augment Data button.

    img


  3. Click the Vertical flip checkbox, the Horizontal flip checkbox, and then the Continue button. (you may have to use the scroll bar to the right and scroll down a little to display the vertical and horizontal flip options)

    img

Note

Under New Creations, you can see how many new images will be created.

  1. When prompted, enter Cans-Augmented-YourInitials for the name of the new data set and then click the Create data set button. Wait until the augmentation process completes. (the running status appears in the top right corner)

    img


  2. Click on the back button to return to the main data sets page.

    img


  3. Your new augmented data set Cans-Augmented-YourInitials should be there, with three times the number of images than in your original data set.


  4. Open this new data set that you just created by clicking in the lower half of the tile. You can see how MVI created these new images with each new image having a img symbol on it, saving you time from taking more photos.

    img

Congrats, you have made a data set that is ready to be trained!