Skip to main content

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

Metadata

Release files for openvino2onnx 1.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for openvino2onnx 1.1.0
File Size Uploaded Provenance Actions
openvino2onnx-1.1.0.tar.gz 101.9 kB Without provenance Details for openvino2onnx-1.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for openvino2onnx 1.1.0
File Interpreter ABI Platform Actions
openvino2onnx-1.1.0-py3-none-any.whl Python 3 none any Details for openvino2onnx-1.1.0-py3-none-any.whl

Total release size: 326.9 kB

Release files / openvino2onnx-1.1.0.tar.gz

Download URL openvino2onnx-1.1.0.tar.gz
Size 101.9 kB
Tags Source
SHA-256 checksum
How to use checksums
ab88f11290a5fd0d32005ac22ae59945b2c143cbbdd9b460e71ec618767aa0f8
BLAKE2b-256 checksum
How to use checksums
50268e006809bcdd8a8c953cd57a588b8f93a1fc34a473539385c37530231a97
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-requests/2.32.3

Release files / openvino2onnx-1.1.0-py3-none-any.whl

Download URL openvino2onnx-1.1.0-py3-none-any.whl
Size 225.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
282a5b825b2795a95cfcc82b5dba239b7bcec316233445dddba932e20dc45832
BLAKE2b-256 checksum
How to use checksums
967de96f1b0de0440397dcd5dfd66127fe07a722b8b44ee1714cc3b945d21030
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-requests/2.32.3

Security for openvino2onnx 1.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page