# Unsupervised Mode

When using the Red Analyze tool in Unsupervised Mode, follow these steps:

1. If a pose from a Blue Locate tool is being used to transform the orientation of the View being used as an input to the Red Analyze tool, go to the and process the images (press the Scissors icon) before opening the Red Analyze tool.

2. If necessary, adjust the Region of Interest (ROI). Within the Display Area, right-click and select Edit ROI from the menu.

   1. After adjusting the ROI, press the Apply button and the adjusted ROI will be applied to all of the images.
   2. Press the Close button on the toolbar to continue.
3. If there is extraneous information in the image, add appropriate masks to exclude those areas of the image. Within the Display Area, right-click and select Edit Mask from the menu.

   1. From the Mask toolbar, select and edit the appropriate masks.

   2. After adding the necessary mask(s), press the Apply button and the mask will be applied to the current image.

      If you click Apply All and click Yes button on the ensuing Apply Mask dialog after adding the necessary masks, the same mask will be applied on all the images. If you click No on the dialog, the mask will not be applied and you go back to the Edit Mask window.

   3. Press the Close button on the toolbar to continue.
4. Go through all of the images and label the images as Good or Bad.
5. Make sure that all of the images have been labeled.
6. Prior to training, ensure that the Feature Size parameter has been set. The Feature Size parameter gives the network a clue to the size of the defects that you are interested in detecting. So, if the Feature Size parameter setting is larger than the defects in your application, there is a good chance the tool will not identify the defects in your image. You can set the Feature Size by either manually adjusting the parameter value, or graphically by re-sizing the interactive Feature Size graphic.
7. Train the tool by pressing the Brain icon.
8. After training, review the results.
   1. Go through all of the images and determine whether or not the tool correctly marked the defects in the image.
      1. If the tool has correctly marked the features, right-click the image and select Accept View.
      2. If the tool has incorrectly marked the defects, or failed to identify a present defect:
         1. Right-click the image and select Accept View.
         2. Right-click the image again and select Clear Markings and Labels.
         3. Manually label the defective image.
   2. If you encountered the scenario in (a.), you are ready to use the tool. If you encountered the scenario in (b.), you will need to retrain the tool and repeat steps 7 and 8.