# Import a SuaKIT Segmentation Project

If you have SuaKIT projects that you want to import to VisionPro Deep Learning Tool, you can use import plug in. SuaKIT segmentation Segmentation is the process of selecting a view from an image. project will be as a Standard type Red Analyze tool.

SuaKIT Single Segmentation Project (Imported as Red Analyze) | Labels | Labeled regions | ROI The Region of Interest (ROI) defines the area of operation for the tool. The ROI preserves the positions, angles, stretch and skew of the original image. | Mask | Training set | Tool parameters* | SuaKIT Model
--- | --- | --- | --- | --- | --- | --- | ---
| O | O | O | O | O | X | X

* Tool parameters: This means all options in tool parameter panels except for number of training Training is the process that your tool, which is a neural network, is learning about the features (pixels) based on the labels you made. For example, a tool will learn the defect/normal pixels in each image based on the defect/normal labels you drew. The goal of the tool Training is learning enough to give the correct inspection results of whether an unseen image is defective or not. The key to training is to ensure that you include all possible variations within your training set, and that your images are accurately labeled. Training times vary by the application, tool setup and the GPU in the PC being used to train the network. set.

If you change labels, labeled regions, ROI, etc. after you created a model A specific spatial arrangement of a set of features (Blue Locate and Blue Read tools only.) During a post-processing step, the Blue Locate and Blue Read tools can fit all of the features detected in an image to the models defined for the tool. The overall pose and identity of the model is then returned. in SuaKIT, you can only import those with the latest version. This is because that SuaKIT only saves the current version of images, defect regions, and training set.

It takes about 20 minutes to import 15,000 images.

Note: Pixel-wise label of SuaKIT segmentation project cannot be imported. When you import SuaKIT segmentation project with pixel-wise labels, it will lose only pixel-wise label information but import the other information (image, ROI, masks, image-wise labels(tags), and training set).

## Import a SuaKIT Segmentation Project without Trained Model

1. Go to Plugins - Manage Plugins
2. Click Add button on Plugin Manager

3. Select and add SuaKitMigration.VPlugin.dll.

4. Click Close to exit Plugin Manager

5. Go to Plugins - Import SuaKIT Project

6. Find directories to import SuaKIT Single Segmentation Project file (.sua)

7. When you click ‘OK’ button, it will start to import information of SuaKIT project including labeled regions, images, ROI, Masks and labels (Good/Bad labels). You can see the progress bar at the bottom of the dialog.
8. After the import is finished, you can find the imported workspace in the workspace list. When you open the workspace, you will see that there is a Standard type Red Analyze tool in the workspace.
9. You can import training set but not tool parameters including validation set The validation set is a set of images reserved for validation. The validation set is separate from the training set and test set. Since the validation set is separate, it allows you to evaluate how well the tool performs when using unseen images. The VisionPro Deep Learning application calculates a special metric, the Loss. The Loss is based on the performance of the tool on the validation set. ratio.
10. Train set and validation Validation refers to a process during the training of a tool that helps to evaluate performance. Validation is like a mock exam that the tool takes during the training phase, separate from the final test. For example, validation helps you to recognize overfitting and avoid wasting time when training a tool. If you recognize that the tool is overfitting, you can stop the training early. set in SuaKIT will be imported as training set. Also, you can check them in ‘SuaKIT Train’ set in Database Overview. Test set in SuaKIT will be not trained views. Also, you can check them in ‘SuaKIT Test’ set in Database Overview.

## Import a SuaKIT Segmentation Project with Trained Model

1. Go to Plugins - Manage Plugins
2. Click Add button on Plugin Manager

3. Select and add SuaKitMigration.VPlugin.dll.

4. Click Close to exit Plugin Manager

5. Go to Plugins - Import SuaKIT Project

6. Find directories to import SuaKIT Single Segmentation Project file (.sua)

7. Click ‘OK’ button, and it will import images, ROI, labels, labeled regions, and training set information you created.

## Import a SuaKIT Segmentation Project with Trained Model and Multiple Defect Classes

1. Multiple defect classes (more than two kinds of defects) are not supported in VisionPro Deep Learning yet. Currently, VisionPro Deep Learning supports only binary class (Good and Bad) in a Standard type Red Analyze tool.

2. If you select the SuaKIT Segmentation project file having more than two defect classes, you cannot import the trained model in this project, but you can still import this project with its labeled regions, images, ROI, Masks, and labels. Also, when it is imported, its multiple classes are merged to form binary classes.