Welcome to our Support Center

Load ONNX File

Description

Loads an ONNX model from file and creates the corresponding execution graph.
This VI initializes an ONNXModel object from a .onnx file, making it ready for use within the Deep Learning environment. It allows importing external models into the LabVIEW graphical workflow, with an optional loading popup.

Input parameters

 

File Path : path, path to the .onnx file to be loaded. The file must contain a valid ONNX graph.
Display Loading Popup : boolean, indicating whether to show a loading popup during model import. If true, shows a loading window else, loads the model silently in the background.

 

Output parameters

 

ONNX out : reference to the loaded ONNX model, encapsulated in the ONNXModel class of the Deep Learning toolkit. Functionally equivalent to a model built manually from nodes.

Example

All these exemples are snippets PNG, you can drop these Snippet onto the block diagram and get the depicted code added to your VI (Do not forget to install Deep Learning library to run it).

Table of Contents