Introduction
Tree-structured algorithm modules are defined as the flexible combination and orchestration of multiple algorithm modules within a single project to support complex application scenarios with diverse business requirements.
This system organizes algorithm execution logic in a tree structure and supports three combination modes within one project: serial, parallel, and hybrid serial-parallel combinations. You can add modules step by step according to business needs, and perform data labeling, model training, and result validation for each module independently.
Based on this structure, models are exported as one multi-model package for centralized deployment and unified management. This approach effectively reduces the number of projects, avoids repeated model configuration, and improves both model utilization and on-site maintenance efficiency.
Serial Module Mode
Serial module mode refers to connecting multiple modules in sequence. Each module is executed in order, and the output of the previous module (parent module) is used as the input of the next module (submodule). This combination mode corresponds to the original cascade function and is suitable for scenarios with clear sequential dependencies between processing steps.
|
Definitions of parent module and submodule:
As shown below, Fast Positioning is a submodule of the Input module and a parent module of Object Detection.
|
As shown below, the Input module, Classification module, and Instance Segmentation module are connected in series; the Object Detection module and Defect Segmentation module are also connected in series.
Parallel Module Mode
Parallel module mode refers to connecting multiple modules at the same level. Each module is executed independently on the same input and outputs its own result. This combination is suitable for scenarios where multiple analyses or processes are required for the same input and each process is independent.
As shown below, the Fast Positioning, Classification, and Unsupervised Segmentation modules are parallel to each other; the Object Detection and Text Detection modules are parallel to each other.
Restrictions for Tree-Structured Algorithm Modules
In the tree-structured algorithm modules, serial and parallel combinations are subject to the following restrictions:
-
Only the Text Recognition module can be connected in series under a Text Detection module.
-
No other modules can be connected in series after a Text Recognition module.
-
The Pick Anything V2 module and the Object-Bin Segmentation module can only be connected in series with the Input module and cannot be connected in series or in parallel with other modules.