Multiple Model Packages
Function
Use multiple model packages for inference of input images. The Multi-Model Package integrates multiple sub-models (such as Image Classification, Object Detection, and Defect Segmentation) and executes them collaboratively based on predefined combination logic: series, parallel, or series-parallel. It outputs the results of each sub-model along with the overall validation status.
Applicable to complex quality inspection scenarios. It effectively reduces the number of projects, avoids repetitive model configuration, and improves the efficiency of model usage and on-site maintenance.
Input and Output
After the model package is imported into the Deep Learning Model Package Inference Step, the following input and output ports are displayed.
Input
| Input ports | Data type | Description |
|---|---|---|
Image |
Image/Color |
Image input to this port will be used for deep learning model package inference. Displays when the input data type is 2D image. |
Surface data |
Surface |
Surface data input to this port will be used for deep learning model package inference. Displays when the input data type is Surface data. |
Output
| Output ports | Data type | Description |
|---|---|---|
Comprehensive validation results |
Bool |
The comprehensive validation result of multiple model inferences. Outputs True if all inferences pass validation; otherwise, outputs False. |
Classification |
DLResult/Classification |
Model package inference result. |
Fast positioning |
DLResult/FastLocating |
Model package inference result. |
Text detection |
DLResult/TextDetection |
Model package inference result. |
Unsupervised segmentation |
DLResult/UnsupSegmentation |
Model package inference result. |
Defect segmentation |
DLResult/DefectSegmentation |
Model package inference result. |
Object detection |
DLResult/ObjectDetection |
Model package inference result. |
Instance segmentation |
DLResult/InstanceSegmentation |
Model package inference result. |
Text recognition |
DLResult/TextRecognition |
Model package inference result. |
Parameter Description
The following parameters need to be adjusted when the multiple model package is imported into this Step.
Model Package Settings
| Parameter | Description |
|---|---|
Model manager tool |
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 file exported by Mech-DLK.
|
Model name |
Description: After a Deep Learning Model Package is imported, this parameter is used to select the imported model package for this step.
|
Release original model package after switching |
Description: Controls whether the resources used by the original model package are released upon the switch.
|
Model package type |
Description: Once a Model Name is selected, the Model Package Type will be filled automatically. |
Input data type |
Description: This parameter is used to specify the type of input data. The corresponding input ports will be displayed after the parameter is selected. Supports 2D image and surface data input. |
GPU ID |
Description: This parameter is used to select the device ID of the GPU that will be used for the inference.
|
Preprocessing
| Parameter | Description | ||||
|---|---|---|---|---|---|
ROI path |
Description: This parameter is used to set or modify the ROI of the input image. Tuning instruction: Once the deep learning model is imported, a default ROI will be applied. If you need to edit the ROI, click the Open the editor button. Edit the ROI in the pop-up Set ROI window, and fill in the ROI name. Instructions for Setting ROI: Hold down the left mouse button and drag to select an ROI, and then click the left mouse button again to confirm. If you need to re-select the ROI, please click the left mouse button and drag again. The coordinates of the selected ROI will be displayed in the ROI Properties section. Click the OK button to save and exit.
|
Postprocessing
| Parameter | Description |
|---|---|
Inference configuration |
Description: Configures the inference settings for the text recognition model package inference. Click Open the editor to open the inference configuration window.
|
Class display mode |
Description: This parameter is used to determine whether to display classes in the output results by name or by index. |
Visualization Settings
| Parameter | Description |
|---|---|
Draw result on image |
Description: Once enabled, the detection result will be displayed on the image.
|
Visualization Method for Results |
Description: This parameter is used to specify the way to visualize the output results.
|
Customize font size |
Description: This parameter determines whether to customize the font size in the visualized outputs. Once this option is selected, you should set the Font Size (0–10). The default value is 1.5.
|
Examples
Visualization Method for Results
| Visualization Method for Results | Description | Illustration |
|---|---|---|
Display each instance |
Visualizes each instance with a unique color. |
|
Display instances by class |
Visualizes instances by class, with instances of the same class sharing the same color. |
|
Display instance center points |
Visualize instance center points, with the instance color related to Confidence threshold. |
|


