Prepare Floating-point Model

Before you read this section, we recommend that you read Toolchain Operator Support Constraint List-ONNX Operator Support List section for an understanding of the operators and constraints supported by Horizon Robotics. Or, after you export your ONNX model, you can first refer to the Check the Model section to check that the model can be deployed with Horizon support for normal conversion.

A floating-point model trained on an open source DL framework is the input to the conversion tool, which currently supports the following DL frameworks:

FRAMEWORKHORIZON'S TOOLCHAIN
CaffeSupported
PyTorchSupported (convert into ONNX)
TensorFlowSupported (convert into ONNX)
PaddlePaddleSupported (convert into ONNX)
MXNetSupported (convert into ONNX)
OTHERSContact Horizon

As shown above, the caffemodel exported from Caffe framework can be supported directly, While the models trained from PyTorch, TensorFlow and MXNet must be first converted into ONNX before using the conversion tool. Presently Horizon supports ONNX opset10-19.

There are standard solutions to convert models of different frameworks into ONNX, refer to the following: