For a good training result always note the following:
- The more accurately you perform the labeling the better the result will be. You can start with only a few annotations and then check the result for problematic areas where you should add more labels to refine the labeling.
- Fewer, more precise labels result in more accurate models than numerous imprecise labels.
- Take care to also label some areas which contain edges of objects and transitions between two classes.
- Adopt an iterative approach: review segmentation and training outcomes before labeling large quantities of pixels.
- Try to label roughly the same amount of pixels per class.
- Do not label very large homogenous areas.
- You have completed the general preparations.
- You have licensed the AI Toolkit and activated it under Tools > Toolkit Manager.
- On the Analysis tab, in the Intellesis Segmentation tool, click
and select New.
- A text field is displayed.
- Enter a name and a description for the new model and click
.
- A new empty model is created.
- Click Start Training.
- The user interface for training opens.
- In the Right Tool Area under Open Images click Import Images.
- Select the image for training from the file system and click Open.
- If the image contains more than one channel, the Select Channel dialog opens.
- For Training Mode, select either Single Channel or Multispectral. In case of single channel, select the channel you want to use for training. Otherwise all channels of the image will be used for training the model.
- Training mode and channel are selected.
- Click OK.
- All images you import need to have the same channel structure and pixel type of the initially imported image. When importing multiple images, the channel selection applies to all images.
- The image is displayed in the list. Note that all imported images will be included in your training model.
- Select the image from the list.
- The image is displayed in the Center Screen Area. Note that at a later stage you can add more images via Import Images to refine the training.
- In the Left Tool Area, define the classes based on your image and segmentation goals. You can specify the number of classes needed for your task. When initiating a new model, two predefined classes (Object and Background) are available by default. If you click on Add Class a new class is added. You can rename these classes by a double-click and entering a new name. Note that you must not use the name Root for one of your classes as this a reserved keyword from the image analysis.
- Move the courser inside the image and start labeling the areas which you want to assign to the selected class. To label within the image simply hold down the left mouse key and move the mouse.
- After labeling a few areas with different classes, click Train & Segment.
- The software starts the training. The system tries to automatically recognize other areas of the same class. Depending on the image, the pixel classification can take a while. When finished the image has the additional channel Seg (menation) containing the segmentation preview.
- If you are not satisfied with the result, you can label more details of the corresponding classes. For this you can zoom into the image or change the brush size of the courser. The more accurately you label the different classes within the image, the better the recognition will be. When you finish the labeling, you have to click on Train & Segment again. You can repeat that process until you are satisfied with the segmentation result.
Note that at this point as a result you will only see a pseudo segmented image and only the area visible in the main window is segmented (max. area 5000x5000 px). The full segmentation of an image/data set is performed on the Processing tab by using the trained model with the Intellesis Segmentation function.