Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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

...

NameDescriptionScreens (click to view)
Tensorflow Session

The Tensorflow Session properties are defined here:

Sub-elementDescription
Add SessionAdd 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:

  • BeanShell Script - see Add Post Processing - see BeanShell Script propertiesScript  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

Rules

The Rules properties have are defined the same properties as seen in in Simple Rules Decision.


Add Session

Sub-elementDescriptionScreens (click to view)
Model
  • Choose File - Select an AI model to run
  • Clear - clear selected AI model

Delete Session
Add Input

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 Outputsee Add Output properties

...

Sub-elementDescriptionScreens (click to view)
Input NameDefined Input Tensor




Script

Script in Java. Please see  Bean Shell Programming Guide for code example.

Delete Input

Image

...

...


Image

...

Sub-elementDescriptionScreens (click to view)
Input NameDefined Input Tensor

Image Added

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

Width in Integer

Height

Height in Integer

Mean

Mean in Integer

Note
titleNote
If its not defined, set to 1
Scale

Scale in Integer

Note
titleNote
If its not defined, set to 1
Delete Input


Boolean

Image Removed

...

Sub-elementDescriptionScreens (click to view)
Input NameDefined Input Tensor

Image Added

Value
  • True
  • False
Delete Input

Audio MelSpectrogram

...

...


Audio MelSpectrogram

...

Sub-elementDescriptionScreens (click to view)
Input NameDefined Input Tensor

Image Added


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
WidthWidth in Integer
Height

Height in Integer

FFT SizeFFT Size in Integer
Overlap SizeOverlap Size in Integer
Min Frequency (Hz)Minimum Frequency (Hz) in
Max Frequency (Hz)Maximum Frequency (Hz) in
Delete Input


Numbers

...

Figure 7 : Simple Tensorflow AI Decision Properties - Add Input - Numbers properties are defined here:

Sub-elementDescriptionScreens (click to view)
Input NameDefined Input Tensor

Image Added

Type
  • Float
  • Double
  • Integer
  • UInt8
  • Long
Number Valuesseparate number values by ;
Delete Input

Text

...

...


Text

...

Sub-elementDescriptionScreens (click to view)
Input NameDefined Input Tensor

Image Added






Type
  • Float
  • Double
  • Integer
  • UInt8
  • Long
Text ValueThe text value inputted to be inserted into the Tensor. Can use Hash Variable.
Dictionary (JSON/CSV)Dictionary in JSON or CSV format
Max LengthMaximum Length 
Leave Empty On Front
Delete Input

Add Output

Text

...

...

Text

...

Sub-elementDescriptionScreens (click to view)
Output NameDefined OutputTensorOutput Tensor

Image Added


Temporary Variable NameThe Output Tensor Value will be inserted into this user-defined Temporary Variable to be later used during Post-Processing
Delete Output

Add Post Processing

BeanShell Script

...

Figure 10 : Simple Tensorflow AI Decision Properties - Add Post-Processing - BeanShell Script properties are defined here:

Sub-elementDescriptionScreens (click to view)
Post Processing NameUser-defined variable. Can be used as a Variable in the Rules

Image Added


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
Delete Post-Processing


Values to Labels

...

Figure 11 : Simple Tensorflow AI Decision Properties - Add Post-Processing - Values to Labels properties are defined here:

Sub-elementDescriptionScreens (click to view)
Post Processing NameUser-defined variable. Can be used as a Variable in the Rules

Image Added





Get Unique OnlyCheck to get only unique value only
Labels (CSV)Dictionary file in .csv format
Temporary Variable NameList of Temporary Variables from Output
Number of ValuesList of Temporary Variables from Output
Delete Post-Processing

...

Image Removed

...


Euclidean Distance

...

Sub-elementDescriptionScreens (click to view)
Post-Processing NameUser-defined variable. Can be used as a Variable in the Rules

Image Added



Temporary Variable NameList of Temporary Variables from Output
Temporary Variable NameList of Temporary Variables from Output
Delete Post-Processing


Probabilities to Labels

...

Figure 13 : Simple Tensorflow AI Decision Properties - Add Post-Processing - Probabilities to Labels properties are defined here:

Sub-elementDescriptionScreens (click to view)
Post Processing NameUser-defined variable. Can be used as a Variable in the Rules

Image Added





Thresholdset the Threshold value e.g. 0.01
Get Highest OnlyCheck to get the highest value only
Labels (CSV)Dictionary file in .csv format
Temporary Variable NameList of Temporary Variables from Output
Delete Post-Processing