Skip to main content

An Open Neural Network Exchange (ONNX) Optimization and Transformation Tool.

Project description

OPENVINO2ONNX

A simple tool to convert your IR XML to ONNX file.

Checked with pyright

Supported OpenVINO IR Version

  • IRv10: openvino>=2020,<2023
  • IRv11: openvino>=2023

Usage

  1. Install from PyPI
pip install openvino2onnx
  1. Convert IR using CLI
openvino2onnx model.xml
usage: openvino2onnx input_model.xml [output_model.onnx]

openvino2onnx command-line api

options:
  -h, --help            show this help message and exit
  -a [ACTIVATE ...], --activate [ACTIVATE ...]
                        select passes to be activated, activate L1, L2 and L3 passes if not set.
  -r [REMOVE ...], --remove [REMOVE ...]
                        specify passes to be removed from activated passes.
  -n, --no-passes       do not run any optimizing passes, just convert the model
  --print [PRINT]       print the name of all optimizing passes
  --format {protobuf,textproto,json,onnxtxt}
                        onnx file format
  -s, --infer-shapes    infer model shapes
  -c CONFIG_FILE, --config-file CONFIG_FILE
                        specify a json-format config file for passes
  -u, --uncheck         no checking output model
  --check               check optimized model with random inputs
  --checker-backend {onnx,openvino,onnxruntime}
                        backend for accuracy checking, defaults to openvino
  -v OPSET_VERSION, --opset-version OPSET_VERSION
                        target opset version, defaults to 19
  -vv [{DEBUG,INFO,WARNING,ERROR,CRITICAL}], --log-level [{DEBUG,INFO,WARNING,ERROR,CRITICAL}]
                        specify the level of log messages to be printed, defaults to INFO

To print pass information:

openvino2onnx --print all
openvino2onnx --print fuse_swish
openvino2onnx --print l1

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

openvino2onnx-1.1.0.tar.gz (101.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

openvino2onnx-1.1.0-py3-none-any.whl (225.0 kB view details)

Uploaded Python 3

File details

Details for the file openvino2onnx-1.1.0.tar.gz.

File metadata

  • Download URL: openvino2onnx-1.1.0.tar.gz
  • Upload date:
  • Size: 101.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.32.3

File hashes

Hashes for openvino2onnx-1.1.0.tar.gz
Algorithm Hash digest
SHA256 ab88f11290a5fd0d32005ac22ae59945b2c143cbbdd9b460e71ec618767aa0f8
MD5 c0e4ad531195104c536cead1c4913532
BLAKE2b-256 50268e006809bcdd8a8c953cd57a588b8f93a1fc34a473539385c37530231a97

See more details on using hashes here.

File details

Details for the file openvino2onnx-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: openvino2onnx-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 225.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.32.3

File hashes

Hashes for openvino2onnx-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 282a5b825b2795a95cfcc82b5dba239b7bcec316233445dddba932e20dc45832
MD5 01168bacc913c134883335edf7a6e001
BLAKE2b-256 967de96f1b0de0440397dcd5dfd66127fe07a722b8b44ee1714cc3b945d21030

See more details on using hashes here.

Supported by

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