Skip to main content

Converts a JSON file to an ONNX file.

Project description

json2onnx

Converts a JSON file to an ONNX file.

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

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

json2onnx-1.0.0.tar.gz (2.7 kB view hashes)

Uploaded Source

Built Distribution

json2onnx-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