Welcome to our Support Center

Convert ONNX To H5

Description

This VI transforms a .onnx model into the HDF5 format (.h5) commonly used in TensorFlow/Keras workflows. It enables ONNX models to be reused in training or inference pipelines within the Keras ecosystem. Optionally, the converted 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 input .onnx file containing the model to be converted.
H5 Model Path : path, path to the destination .h5 file where the converted Keras model will be saved.

 

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