# Label in Red Analyze Focused Unsupervised

In Red Focused Unsupervised, the views provided to the training set are only Good views (in other words, the image does not contain any defects). Before training the tool you must first label the views as Good for constructing the training set. For the test set, you also need to include views with Bad label (in other words, the image contains defects) for proper evaluation of the tool's performance. It is very important that you correctly label the Views prior to training, because mislabeled Views can negatively affect training, by teaching the tools incorrectly what is or is not a defect.

When a View is labeled, the Views will be denoted by a Green or Red stripe on the top-right corner of the View:

"Good" Label | "Bad" Label
--- | ---

There are two different methods you can use to label Views:

1. Clicking once or twice on the View in the Image Display Area ().

   A single click labels the image as Good, double-clicking labels the image as Bad, and three clicks launches a dialog allowing you to reset the label to Good.

2. Using the Actions for N Views menu option from the Views List area:

   This option is particularly useful when you have a large number of images to label. Selecting this option launches the Label Views dialog, where you can define all of the images as either Good or Bad.

Note: Within the Red Analyze tool, the default region names are “deviation”, the name applied to Unsupervised mode regions, and “defect”, the name applied to Supervised mode regions. There is a potential to have a mix of region names in the tool. This can be encountered under the following conditions:

1. Create a Red Analyze tool and leave it in its default Unsupervised mode and set the tool’s ROI.
2. Open the Database Overview.
3. Launch the Edit Regions functionality, draw some defects and apply the changes.
4. With the Edit Regions editor still open, switch the tool from its default mode (Unsupervised) to Supervised.
5. Select another view, draw some defects and apply the changes.
6. Note that the thumbnails in the View list and in the Database Overview will be out of sync with the name in the Edit Regions editor.

To resolve the naming discrepancies, close the Edit Region editor and toggle the mode, which will cause the tool to merge and then correctly rename the regions.

Note: You can also import labels as image files, JSON files, or files in VisionPro Deep Learning internal label formats, see .