Skip to main content

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)

Uploaded Source

Built Distribution

onnx2json-1.0.0-py3-none-any.whl (2.9 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page