Converts a JSON file to an ONNX file. Click here for onnx2json.
$ pip install protobuf onnx
$ pip install json2onnx --upgrade
json2onnx [-h] \
--json_path JSON_PATH \
[--model_path MODEL_PATH]
optional arguments:
-h, --help
show this help message and exit
--json_path JSON_PATH
Input JSON file path (*.json)
--model_path MODEL_PATH
Output ONNX model path (*.onnx)
$ json2onnx --json_path aaa.json --model_path aaa.onnx