Exports the ONNX file to a JSON file.
Project description
onnx2json
Exports the ONNX file to a JSON file.
1. Install
$ pip install onnx2json --upgrade
2. Usage
onnx2json [-h] \
--model_path MODEL_PATH \
[--json_path JSON_PATH] \
[--json_indent JSON_INDENT]
optional arguments:
-h, --help
show this help message and exit
--model_path MODEL_PATH
Input onnx model path (*.onnx)
--json_path JSON_PATH
Output JSON file path (*.json)
--json_indent JSON_INDENT
Number of indentations in JSON (default=2)
3. Sample
$ onnx2json --model_path aaa.onnx --json_path aaa.json --json_indent 2
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
onnx2json-1.0.0.tar.gz
(2.7 kB
view hashes)
Built Distribution
Close
Hashes for onnx2json-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8e91c876f155789625f2f3959c00e8302ff39d8b61bc99edcc1406151a7d8ad9 |
|
MD5 | 4e88af8391d38a8351118d35b798900d |
|
BLAKE2b-256 | 01b64610829472ac21e8fdf6297cceef0e544de165592fc76507b5ae08fc74b7 |