Neural Network Compatibility Check

This tool offers the possibility to check the compatibility of ONNX models with the functions of the product "TF7810 | TwinCAT 3 Vision Neural Network". The "TF7810_NeuralNetworkSupplements.zip" can be downloaded directly from the Beckhoff website.

The package contains the executable file "OnnxCompatibilityCheck.exe", the Power Shell script "CheckModelCompatibility.ps1" for simplified use and a folder "ONNX_Samples" with sample models.

Execution of the Power Shell script

After executing the script, the version information is displayed first. First from the application itself and then to the TwinCAT 3 Vision library versions to which the compatibility refers. As a user, you will be asked to specify a folder or model path. If a folder containing several ONNX models is specified, these are tested in alphabetical order. It is also possible to explicitly specify a model, e.g. "C:\ONNX_Samples\LemonModel.onnx".

Neural Network Compatibility Check 1:

A successful execution looks as follows, e.g. using the Lemon Sample model:

Neural Network Compatibility Check 2:

At the end, the execution is paused so that you can view the output.

Options of the Power Shell script

When the user opens the script for editing, he will find the parameters $modelPath and $inputShape in lines 2 and 3. The first parameter $modelPath is empty by default, so that the user is prompted to enter the path. Alternatively, a folder or model path can be stored in the script. In this case, the user is not prompted to make an entry and the stored path is used directly.

Neural Network Compatibility Check 3:

By default, the word "skip" is stored for the second optional $inputShape parameter, so that this query does not appear and the application is executed without the option. A fixed value can also be entered here, as in the comment with "1 3 224 224". Alternatively, the word "skip" can be deleted so that the user is prompted to enter it. This prompt for the "Model Input Shape" can also be skipped by pressing "Enter" when executing the script.

Application of the "OnnxCompatibilityCheck.exe"

The "OnnxCompatibilityCheck.exe" can be executed directly without a Power Shell script. In the Windows command prompt, the successful test of the Lemon Sample model looks like this, for example:

Neural Network Compatibility Check 4:

If only the name of the application is specified or -?, -h, -help is added and then confirmed with Enter, the following information and notes on the application are displayed.

Neural Network Compatibility Check 5:

Results

The following describes the results that can be output in different scenarios: