Conversion from ONNX to TF Lite

To convert an ONNX model to TF Lite using ONNX2TFLite, you only need to provide the input model and, optionally, specify the output path:

[ ]:
output_model_path = Path("converted_model.tflite")
!onnx2tflite $model_path -o $output_model_path

print(f"Converted model saved to {output_model_path} file.")

To list all configurable options, use the help command:

[ ]:
!onnx2tflite -h