onnx compiler
Project description
onnion
Installation
From PyPI:
$ pip3 install onnion
From Dockerhub:
docker pull idein/onnion:20221014
Usage
$ onnion ssd-10-post.onnx -o ssd_post_model.py
$ python
>>> from ssd_post_model import init_graph
>>> graph = init_graph()
>>> inputs = ... # List[np.array]
>>> outputs = graph.run(*inputs)
With docker:
$ docker run --rm -it -u $UID:$GID -v $(pwd):/work idein/onnion:20221014 ssd-10-post.onnx -o ssd_post_model.py
The order of the inputs and the outputs in the run
method corresponds to the order of the inputs and the outputs in the onnx graph.
See also tutorial.
Development Guide
$ poetry install
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
onnion-0.8.1.tar.gz
(4.7 kB
view details)
Built Distribution
File details
Details for the file onnion-0.8.1.tar.gz
.
File metadata
- Download URL: onnion-0.8.1.tar.gz
- Upload date:
- Size: 4.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.2.2 CPython/3.9.15 Linux/5.13.0-1023-aws
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c1483bca89092c679554396eb75ccb9c3a8b35f4713d0ec71e351694448394d1 |
|
MD5 | 3391b1f0fdf937928a681ff3dcc59566 |
|
BLAKE2b-256 | 2ccceccc82783585613f904091ebd30cfbeb9411737df8ff8d9cacee8807587b |
File details
Details for the file onnion-0.8.1-py3-none-any.whl
.
File metadata
- Download URL: onnion-0.8.1-py3-none-any.whl
- Upload date:
- Size: 5.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.2.2 CPython/3.9.15 Linux/5.13.0-1023-aws
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4746d06b667ec9972dca6b796a530c81dab5ea492b7cfc1472ee234d96748494 |
|
MD5 | 8e8e7b5dd53158e6ec4b765634ae4d7c |
|
BLAKE2b-256 | 96b9495a0d50b6cfb0e329aff80c0897113b246075de9312652a59ac03a51fb7 |