OOSYOO / json2onnx

Converts a JSON file to an ONNX file.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

json2onnx

Converts a JSON file to an ONNX file. Click here for onnx2json.

PyPI - Downloads GitHub PyPI

1. Install

$ pip install protobuf onnx
$ pip install json2onnx --upgrade

2. Usage

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)

3. Sample

$ json2onnx --json_path aaa.json --model_path aaa.onnx

About

Converts a JSON file to an ONNX file.

License:MIT License


Languages

Language:Python 94.4%Language:Shell 5.6%