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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file onnx2json-1.0.0.tar.gz.

File metadata

  • Download URL: onnx2json-1.0.0.tar.gz
  • Upload date:
  • Size: 2.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.4.2 requests/2.22.0 setuptools/56.0.0 requests-toolbelt/0.8.0 tqdm/4.58.0 CPython/3.8.5

File hashes

Hashes for onnx2json-1.0.0.tar.gz
Algorithm Hash digest
SHA256 b1d58e7df44e865014ee5216b1d19f11fd8a3bd220d9877a15a44d05d46d52e7
MD5 e20dd3f632105018fbf533e64267689a
BLAKE2b-256 25bc7958144fa434d68f3333a710bb074d3f1881a8f5484c837ed12ee02df2b5

See more details on using hashes here.

File details

Details for the file onnx2json-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: onnx2json-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 2.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.4.2 requests/2.22.0 setuptools/56.0.0 requests-toolbelt/0.8.0 tqdm/4.58.0 CPython/3.8.5

File hashes

Hashes for onnx2json-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8e91c876f155789625f2f3959c00e8302ff39d8b61bc99edcc1406151a7d8ad9
MD5 4e88af8391d38a8351118d35b798900d
BLAKE2b-256 01b64610829472ac21e8fdf6297cceef0e544de165592fc76507b5ae08fc74b7

See more details on using hashes here.

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