Metadata-Version: 2.1
Name: onnx2json
Version: 1.0.0
Summary: Exports the ONNX file to a JSON file.
Home-page: https://github.com/PINTO0309/onnx2json
Author: Katsuya Hyodo
Author-email: rmsdh122@yahoo.co.jp
License: MIT License
Platform: linux
Platform: unix
Requires-Python: >3.6
Description-Content-Type: text/markdown

# 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
```

