Panel |
---|
borderColor | purple |
---|
bgColor | white |
---|
borderWidth | 1 |
---|
titleBGColor | #ddccff |
---|
borderStyle | solid |
---|
title | New Feature |
---|
|
This is a new feature in Joget DX |
Introduction
English |
---|
The Simple Tensorflow AI Decision plugin allows one to map it on a process route, execute a pre-trained Tensorflow AI model and use the output result for decision making. |
Warning |
---|
The following are the list of required items before using Simple Tensorflow AI Decision: - an exported frozen model of Tensorflow AI model file in .pb format
- the list of Input Names and each of their Data Type
- the list of Output Names and each of their Data Type
- Dictionary file in .csv format (if any)
|
Warning |
---|
Please take note that the Decision Tool Plugin will take precedence over existing conventional conditional setup in the Process Builder |
Panel |
---|
borderColor | purple |
---|
bgColor | white |
---|
borderWidth | 1 |
---|
titleBGColor | #ddccff |
---|
borderStyle | solid |
---|
title | New Feature |
---|
|
This is a new feature in Joget DX |
Simple Tensorflow AI Decision Properties
Simple Tensorflow AI Decision
Image Added
Screens (click to view) | Tensorflow Session | The Tensorflow Session properties are defined here: Sub-element | Description |
---|
Add Session | Add a Session. see Add Session properties below. | Add Post Processing | When hovering the mouse over the Add Post Processing, a list of Post Processing types will be available as shown below: |
|
see - see Add Post Processing -
|
|
Beanshell Script properties- BeanShell Script properties
- Values to Labels - see Add Post Processing - Values to Labels properties
- Euclidean Distance - see Add Post Processing - Euclidean Distance properties
- Probabilities to Labels - see Add Post Processing - Probabilities to Labels properties
|
|
Image Removed have the same properties as seen in Simple Rules Decisionare defined defined here: Sub-element | Description |
---|
Add Rule | Add a Rule. see Add Rule properties below | Add Action | Adds an Action within the ELSE THEN statement. see Add Action properties below |
|
Add Session
Image Modified
Figure 2 : Simple Tensorflow AI Decision Properties - Add Session properties are defined here:
Screens (click to view) |
---|
Model | - Choose File - Select an AI model to run
- Clear - clear selected AI model
|
Image Modified | Delete Session |
Add Input Output | When hovering the mouse over the Add Input, a list of Pre-Processing Input types will be available as shown below: - BeanShell Script - see Add Input - Beanshell Script properties
- Image - see Add Input - Image properties
- Boolean - see Add Input - Boolean properties
- Audio MelSpectogram - see Add Input - Audio Melspectogram properties
- Numbers - see Add Input - Numbers properties
- Text - see Add Input - Text properties
|
Add Output | see Add Output properties |
Add Input
BeanShell Script
Image Modified
Figure 3 : Simple Tensorflow AI Decision Properties - Add Input - BeanShell Script properties are defined here:
Screens (click to view) | Input Name | Defined Input Tensor |
Input Name
Image
Image Modified
Figure 4 : Simple Tensorflow AI Decision Properties - Add Input - Image properties are defined here:
Screens (click to view) | Input Name | Defined Input Tensor |
Input Name |
Type | - Float
- Double
- Integer
- UInt8
- Long
|
File Source | - Retrieve from URL
- <list of all available Forms>
|
URL or Image Upload Field ID | - URL input if Retrieve from URL was selected as the File Source
- Image Upload Field ID if a Form was selected as the File Source
|
Width | |
Height | Height in Integer |
Mean | Mean in Integer Note |
---|
| If its not defined, set to 1 |
|
Scale | Scale in Integer Note |
---|
| If its not defined, set to 1 |
|
Image Modified | Delete Input |
Boolean
Image Modified
Figure 5 : Simple Tensorflow AI Decision Properties - Add Input - Image properties are defined here:
Screens (click to view) | Input Name | ValueInput Name | Defined Input Tensor |
Type | |
Image Modified | Delete Input |
Audio MelSpectrogram
Image ModifiedFigure 6 : Simple Tensorflow AI Decision Properties - Add Input - Audio MelSpectrogram properties are defined here:
Screens (click to view) | Input Name | Defined Input Tensor |
Input Name |
File Source | - Retrieve from URL
- <list of all available Forms>
|
URL or File Upload Field ID | - URL input if Retrieve from URL was selected as the File Source
- File Upload Field ID if a Form was selected as the File Source
|
Width | Width in Integer |
Height | Height in Integer |
FFT Size | FFT Size in Integer |
Overlap Size | Overlap Size in Integer |
Min Frequency (Hz) | Minimum Frequency (Hz) in |
Max Frequency (Hz) | Maximum Frequency (Hz) in |
Image Modified | Delete Input |
Numbers
Image Modified
Figure 7 : Simple Tensorflow AI Decision Properties - Add Input - Numbers properties are defined here:
Screens (click to view) | Input Name | Defined Input Tensor |
Input Name |
Type | - Float
- Double
- Integer
- UInt8
- Long
|
Number Values (Separated by) | separate number values by ; |
Image Modified | Delete Input |
Text
Image Modified
Figure 8 : Simple Tensorflow AI Decision Properties - Add Input - Text properties are defined here:
Screens (click to view) | Input Name | Defined Input Tensor |
Type | - Float
- Double
- Integer
- UInt8
- Long
|
Text Value | The text value inputted to be inserted into the Tensor. Can use Hash Variable. |
Input Name | Type | Text Value |
Dictionary (JSON/CSV) | Dictionary in JSON or CSV format |
Max Length | Maximum Length |
Leave Empty |
On In Front | check to leave the front of the Value as Empty (or whatever value based on dictionary) |
Image Modified | Delete Input |
Add Output
Text
Image ModifiedFigure 9 : Simple Tensorflow AI Decision Properties - Add Output - Text properties are defined here:
Screens (click to view) | Output Name | Defined Output Tensor |
Temporary Variable Name | The Output Tensor Value will be inserted into this user-defined Temporary Variable to be later used during Post-Processing |
Output Name | Temporary Variable Name |
Image Modified | Delete Output |
Add Post Processing
BeanShell Script
Image Modified
Figure 10 : Simple Tensorflow AI Decision Properties - Add Post-Processing - BeanShell Script properties are defined here:
Screens (click to view) | Post Processing Name | User-defined variable. Can be used as a Variable in the Rules |
Script | Script in Java. Please see Bean Shell Programming Guide for code example. Injected variables available for consumption are:- - String Name
- Map tfVariables
- Map Variables
- Map tempDataHolder
|
Image Modified | Delete Post-Processing |
Values to Labels
Image Modified
Figure 11 : Simple Tensorflow AI Decision Properties - Add Post-Processing - Values to Labels properties are defined here:
Screens (click to view) |
---|
Post Processing Name | User-defined variable. Can be used as a Variable in the Rules |
Get Unique Only | Check to get only unique value only |
Labels (CSV) | Dictionary file in .csv format |
Temporary Variable Name | List of Temporary Variables from Output |
Number of Values | List of Temporary Variables from Output |
Image Modified | Delete Post-Processing |
Euclidean Distance
Image ModifiedFigure 12 : Simple Tensorflow AI Decision Properties - Add Post-Processing - Euclidean Distance properties are defined here:
Screens (click to view) | Post-Processing Name | User-defined variable. Can be used as a Variable in the Rules |
Temporary Variable Name | List of Temporary Variables from Output |
Temporary Variable Name | List of Temporary Variables from Output |
Image Modified | Delete Post-Processing |
Probabilities to Labels
Image Modified
Figure 13 : Simple Tensorflow AI Decision Properties - Add Post-Processing - Probabilities to Labels properties are defined here:
Screens (click to view) |
---|
Post Processing Name | User-defined variable. Can be used as a Variable in the Rules |
Threshold | set the Threshold value e.g. 0.01 |
Get Highest Only | Check to get the highest value only |
Labels (CSV) | Dictionary file in .csv format |
Temporary Variable Name | List of Temporary Variables from Output |
Image Modified | Delete Post-Processing |
Add Rule
Image Added
Add Condition
Image Added
Name | Description |
---|
Image Added | Toggle between EQUAL and NOT EQUAL |
Variable | User input the variable name. Also accepts the use Temporary Variable or Post Processing Name |
Operation | - Equal
- Greater Than
- Greather Than Or Equal To
- Less Than
- Less Than Or Equal To
- Is True
- Is False
- Contains
- In
- Regex Match
|
Value | User to input the value of the Variable |
Image Added | Delete Condition |
Add Action
Image Added
Name | Description |
---|
Type | - Transition
- Workflow Variable
|
Transition | Will display a selection of all available transitions based on the selected Route inserted as part of the process flow Note |
---|
| This field will be displayed if Transition is selected in the Type field. |
|
Workflow Variable | Will display a selection of all available workflow variables based on the current Process Note |
---|
| This field will be displayed if Workflow Variable is selected in the Type field. |
|
Value | User to input the value of the selected Workflow Variable. Also accepts the use Temporary Variable or Post Processing Name Note |
---|
| This field will be displayed if Workflow Variable is selected in the Type field. |
|
Image Added | Delete Action |
Download Sample App
Demo AI - Facial Recognition app:
APP_demo_ai_face_recog-demoApp_noPB.zip
Note: The pre-trained AI model below must be added to this app before ready to use.
Pre-trained AI model:
AI Model Download Link
Note: Please download the AI model here, extract the zip, and add the 20180402-114759.pb file into the app's Resource in the Properties and Export app design menu.
Credits:
Facenet Tensorflow for pre-trained AI model: https://github.com/davidsandberg/facenet
VGGFace2 for the training dataset: https://github.com/ox-vgg/vgg_face2