The pipelines consist of multiple steps that take on inputs and generate outputs. A step can pre- or post-process data, run data through an AI model or perform a combination of these. The "Pipeline visualization" page comprises 4 tabs: "General Information", "Inputs & Outputs", "Parameters" and "Statistics & Visualization".
If one or more pipelines have been activated, a drop-down menu with activated pipelines appears. Select a pipeline for the visualization.
"General Information" tab
The "General Information" tab contains an overview of the pipeline and the individual steps that form the pipeline.
If you click the "Read description" button ④, AI Inference Server displays the pipeline description (content of the "Readme.html" file) in a new browser tab.
① |
Name of the pipeline |
② |
Status of the pipeline |
③ |
Display of parallel step execution (shown only if the pipeline was defined in this way) |
④ |
"Read description" button (active if the description was provided by the creator) |
⑤ |
Runtime control: "Initialize and Start", "Start", "Stop", "Pause" |
⑥ |
Show or hide context area |
⑦ |
"Edit parallel step instances" button |
⑧ |
Information area |
The list of steps in the information area has eight columns: "Name", "Framework", "Parallel step instances", Model version", "Selected target device", "Processor", "Runtime" and "Summary".
The order of the rows in the table corresponds to the order of the steps in the pipeline. You can display the order of the steps graphically in the context area by clicking ⑥.
The instance number of the parallel steps can only be edited if the execution of the parallel step is activated in the configuration package. Otherwise, the button ⑦ is disabled. The button is active when the number of parallel step instances is any number greater than 1.
The context area
The structure of the pipeline, which consists of individual steps, is displayed in the context area:
① |
"Display/hide context area" button |
② |
Representation of the pipeline |
③ |
"Show in new window" button |
④ |
Buttons for selecting the scale of the representation |
Every step has a status symbol: The check mark in the green circle means that the variables of the given program step are mapped correctly. An exclamation mark in a yellow circle means that the mapping of the variables must be corrected.
Connectors with data sources and targets are shown in blue.
On the lower edge of the window, there is a visualization scale for enlarging or reducing the diagram of the pipeline ④.
You can display the pipeline structure in a new window by pressing the button ③:
① |
Context-sensitive online help |
② |
Visualization of the pipeline |
③ |
Checkbox for displaying variable names |
④ |
Buttons for selecting the scale of the visualization |
Edit parallel step execution
Parallel step execution is used to create one or more running instances from a step within the same pipeline. This reduces the calculation time of the entire pipeline. For example, "Step A, Instance 1" can calculate the output using the first value coming from the data bus, "Step A, Instance 2" can calculate the output using the second value from the data bus. The steps must sort the calculated data of the parallel instances according to their needs. The maximum number of parallel step instances is the number of CPU cores. It can be a maximum of 8 step instances in this version of the app.
Change the number of parallel processing step instances directly on the AI Inference Server only if you are sure that the pipeline is prepared for the parallel execution. First contact your Data Scientist, as unexpected behavior could otherwise occur.
"Inputs & Outputs" tab
The "Inputs & Outputs" tab helps you to see which variable needs data from a data connector and which variable is handled as an input / output of another step. You can see all the variables used in the model and filter them by use (input and output - all, input, output).
The upper part of the table in the information area contains inputs and outputs of the entire pipeline. Expand the rows in the lower half of the table to display the variables for the individual steps. Step variables that are not mappable include internal variables.
① |
Runtime control: "Initialize and Start", "Start", "Stop", "Pause" |
② |
Settings for inputs and outputs: "Reset to default", "Browse tags" and "Modify" |
You can copy the mapping of a variable by clicking on the adjacent icon.
If the mapping or the connection is missing, the field is highlighted.
① |
Filter area (inputs and outputs) |
Internal variables
Internal variables are used by steps for exchanging data with one another. These variables cannot be mapped. You see only the name and type of the variable and no mapping address.
① |
Internal variable |
"Parameters" tab
Use this tab to check the parameters of the pipeline. The table in the "Information area" shows the name, default value and current value for each parameter. If the pipeline or steps do not have any parameters, "There are no parameters available" is displayed instead of the table.
Change the value of the parameters (if the pipeline is not running).
You can perform parameter mapping (if their values come from data connectors). The values of the parameters are processed by the steps; every step receives all the parameters. AI Inference Server transfers the standard values of the parameters when you initialize and start the pipeline.
The pipeline can be started when the variables AND the parameters (if demanded) are mapped.
① |
Runtime control: "Initialize and Start", "Start", "Stop", "Pause" |
② |
Settings for inputs and outputs: "Reset to default", "Browse tags" and "Modify" |
③ |
Information area |
④ |
Show parameter value |
The general information comes from AI Model Manager and AI Software Development Kit and is contained in the metadata.
"Statistics & Visualization" tab
This tab allows the following:
Displaying inference statistics of the pipeline and its steps
Visualization of inputs and outputs
The inference statistics are available when the pipeline is executed. If the pipeline has not yet been started, "There is no collected information" is displayed. Otherwise, the statistics are displayed. Use this tab to check the inference statistics of the pipeline and individual steps. The statistics are reset if the pipeline is started or stopped.
① |
Runtime control: "Initialize and Start", "Start", "Stop", "Pause" |
② |
Pipeline data |
③ |
Step data |
The "Inference statistics" contain the following information:
Pipeline data ②
Pipeline inputs consumed
The number of inputs that come directly from the plug connector. The data sent between the steps is not contained.
Pipeline inputs after Inter-Signal-Alignment
Data set that is collected for the pipeline after the Signal-Alignment for the pipeline. It is only displayed if Inter-Signal-Alignment is activated.
Pipeline outputs produced
The number of outputs that is sent directly to the connector. The data sent between the steps is not contained.
Step data ③
Inputs consumed
The combined inputs come from connectors and steps.
Outputs produced
The number of outputs that is sent from the step directly to the connector.
Shortest execution time
The shortest time that the step needs to convert inputs into outputs, calculated from the start of the pipeline.
Longest execution time
The longest time that the step needs to convert inputs into outputs, calculated from the start of the pipeline.
Average execution time
The average time that the step needs to convert inputs into outputs, calculated from the start of the pipeline.
Data throughput (value/seconds)
The average number of inputs that the step processes in a second.
The Inputs and Outputs visualization facilitates the display of the input and the processed image data provided by the IE Vision Connector via the Databus (string payload). The application provides two panels that can be used to review the input and output image on the same screen based on the user selection.
Prerequisites: One of the pipeline input variables should invoke the data from IE Vision Connector (Payload: Low throughput), and the pipeline must be run. Otherwise, this section is hidden.
Not every IE Vision Connector supports data transmission on the data bus. You can find more details in the user manual of the Vision Connector app.
When using the statistics page, please note:
Transfer times from data sources and to data destinations are not included in the statistics.
Transfer time and associated data processing time between pipeline steps are not included in the statistics.
The overall statistics are only visible for the specific step. There are no aggregate values that contain all the replicas for the same step if replica > 1.
The first few input payloads can significantly affect the "Longest execution time" and the "Average execution time".
The "Throughput" value shows the time that has elapsed since the pipeline started for calculation. (Keep this in mind as the input data may not arrive continuously.)
In the "Inputs and Outputs visualization" area ①, you can have image information displayed.
Select the step-variable pair of the input and output ② from the drop-down list.
The image data stream is started. The current image is automatically refreshed and the "Pause visualization" button ③ is active.
The images can be displayed in a higher resolution by clicking the button ④. The pop-up window contains the same control elements for pausing and continuing as on the previous page, but the step-variable pair cannot be changed.
The live stream can be continued by clicking the "Resume visualization" ⑤ button.
When you pause the data stream, the image progression ⑥ is displayed. You can select from the last 5 images by clicking the blue circles below the image.
The Visualization display can be selected from the drop-down list ⑦:
- "Side-by-side": Display the input and output side-by-side,
- "Input visualization": Only the input is displayed,
- "Output visualization": Only the output is displayed.
The following figure shows an example of the Input visualization.
Status of the step
The steps of the pipeline can be in different states:
Status of the pipeline
The pipeline can be in different states:
The meaning of the individual states is as follows:
Icon |
Status |
Description of the step status |
Description of the pipeline status |
|---|---|---|---|
WARNING |
At least one item of mapping information is missing for the variables or parameters |
There is missing information at the variables or parameters in at least one step. A warning is displayed in the context area |
|
MAPPED |
All variables and parameters contain mapping information, the step can be executed |
Each step contains all mapping information, the pipeline is ready to run |
|
RUNNING |
Step calculates and delivers its output values based on its input data |
All steps are in progress (reading data from the data bus or waiting for input data from other steps, calculating and providing output data) |
|
WAIT |
Step waits for input data from the data bus or other step(s) |
Steps are not in progress |
|
ERROR |
The problem occurred in the step, the step has been stopped |
The problem occurred during the execution, the steps have been stopped and no longer run. Download the logs from AI Inference Server and check the cause of the problem. |
The meaning of the stored states is as follows:
Icon |
Status |
Description of the stored pipeline status |
|---|---|---|
AVAILABLE |
The pipeline is available on the Edge device |
|
REMOVED |
The pipeline was removed remotely from the AI Model ManagerEdge application |