Welcome to our Support Center

Convert ONNX To Keras

Description

This VI transforms a .onnx model file into the native .keras format introduced in Keras 3.x. It enables seamless reuse of ONNX models inside modern TensorFlow/Keras workflows. Optionally, the source ONNX model can be visualized in Netron.

Input parameters

 

 Open Netron : boolean, indicating whether to automatically open the resulting ONNX file in Netron after conversion. If true opens in Netron else conversion only.
ONNX Model Path : path, path to the .onnx file to convert. The file must contain a valid ONNX model.
Keras Model Path : path, path to the output .keras file where the converted model will be saved (Keras 3.x format).

 

Output parameters

 

 standard output : string, text output from the underlying Python process. Can include logs, conversion info, or warnings.
 standard error : string, text output capturing any error messages from the Python process, useful for debugging failed conversions.

 

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