Defect Segmentation

You are viewing an old version of the documentation. You can switch to the documentation of the latest version by clicking the top-right corner of the page.

The following parameters need to be adjusted when the defect segmentation model package is imported into this Step.

Model Package Settings

Model Package Management Tool

Parameter description: This parameter is used to open the deep learning model package management tool and import the deep learning model package. The model package file is a “.dlkpack” or “.dlkpackC” file exported from Mech-DLK.

Tuning instruction: Please refer to Deep Learning Model Package Management Tool for the usage.

Model Name

Parameter description: This parameter is used to select the model package that has been imported for this Step.

Tuning instruction: Once you have imported the deep learning model by using the deep learning model package management tool, you can select the corresponding model name in the drop-down list.

Model Package Type

Parameter description: Once a Model Name is selected, the Model Package Type will be filled automatically.

GPU ID

Parameter description: This parameter is used to select the device ID of the GPU that will be used for the inference.

Tuning instruction: Once you have selected the model name, you can select the GPU ID in the drop-down list of this parameter.

Inference Configuration

Parameter description: This parameter is used to configure parameters related to defect segmentation model package inference. You can click Open the editor to open the inference configuration window.

Tuning instruction: Please refer to Defect Segmentation Determination Rule for the configuration instructions.

ROI Settings

ROI Path

Parameter description: This parameter is used to set or modify the ROI.

Tuning instruction: Once the deep learning model is imported, a default ROI will be applied. If you need to edit the ROI, click ROI Path. Edit the ROI in the pop-up Set ROI window, and fill in the ROI name.

Before the inference, please check whether the ROI set here is consistent with the one set in Mech-DLK. If not, the recognition result may be affected.

During the inference, the ROI set during model training, i.e. the default ROI, is usually used. If the position of the object changes in the camera’s field of view, please adjust the ROI.

If you would like to use the default ROI again, please delete the ROI file name below the Open the editor button.

Visualization Settings

Draw Defect Mask on Image

Parameter description: This parameter is used to determine whether to draw the defect mask on the image. If selected, a defect mask will be drawn on the input image.

Default value: Unselected.

Tuning instruction: Select to draw a mask on the input image. The figure below shows the result before and after selecting this option.

deep learning model package inference draw mask
  • From Mech-Vision 1.7.2, the Defect Judgement Rules Settings, Quantity Threshold Settings, and Area Range Settings parameters are removed from the Deep Learning Model Package Inference Step. If you want to adjust these parameters, please configure them in Mech-DLK.

  • In Mech-Vision 1.7.2, when the Deep Learning Model Package Inference Step is used for inference with model packages that are exported from Mech-DLK 2.2.0 or previous versions with Defect Judgement Rules Settings configured, the old defect judgement rules will not take effect. Please configure the defect determination rules of the package model in Mech-DLK 2.4.1 or above and re-export the model package. Then, you can use the model package for inference in the Deep Learning Model Package Inference Step.

Show All Results

Parameter description: This parameter is used to visualize all inference results of the cascaded model package. It can only be set when the Deep Learning Model Package Inference Step is used for cascaded model package inference.

Tuning recommendation: Please set this parameter according to your actual needs.

We Value Your Privacy

We use cookies to provide you with the best possible experience on our website. By continuing to use the site, you acknowledge that you agree to the use of cookies. If you decline, a single cookie will be used to ensure you're not tracked or remembered when you visit this website.