nnoir-onnx
nnoir-onnx is a converter from ONNX model to NNOIR model.
Install
From PyPI:
pip install nnoir-onnx
From Dockerhub:
docker pull idein/nnoir-tools:20240208
Example
wget https://www.cntk.ai/OnnxModels/mnist/opset_7/mnist.tar.gz
tar xvzf mnist.tar.gz
onnx2nnoir -o model.nnoir mnist/model.onnx
With docker:
docker run --rm -it -u $UID:$GID -v $(pwd):/work idein/nnoir-tools:20240208 onnx2nnoir --graph_name "mobilenet" -o mobilenetv2-1.0.nnoir mobilenetv2-1.0.onnx
Supported ONNX Operators
- Add
- AveragePool
- BatchNormalization
scale,B,mean, andvarmust be"constant"
- Clip
- must be opset version 6 or 11
- if opset version is 11
maxmust be"constant"
minmust be0
- Concat
- Conv
- Cos
- Div
- 1st input must not be
"constant"
- 1st input must not be
- Dropout
- equivalent identity function
- Elu
- Erf
- Exp
- Flatten
- Gemm
- GlobalAveragePool
- HardSigmoid
- HardSwish
- LeakyRelu
- LRN
- LSTM
- only
seq_length == 1 directionmust be forward- Supported
activationsare belowSigmoidTanhRelu
- Not support
clipandinput_forget
- only
- MatMul
- MaxPool
ceil_mode = 1is not supporteddilationsmust be array of 1.
- Mul
- Pad
modemust be"constant"
- Pow
- 2nd input must be
2.0
- 2nd input must be
- PRelu
slopemust be"constant"and a single value tensor
- ReduceMean
- ReduceSum
- Relu
- Reshape
- Resize
- must be from opset version >= 11
modemust be"linear"or"nearest"nearest_modemust be"floor"coordinate_transformation_modemust be either"pytorch_half_pixel"or"align_corners"for"linear"modecoordinate_transformation_modemust be either"asymmetric"for"nearest"mode
- Sigmoid
- Sin
- Slice
- Softmax
- Split
- Sqrt
- Squeeze
- Sub
- Sum
- 2 inputs
- Tan
- Tanh
- Transpose
- Unsqueeze
- Where
conditionmust be Constant valueconditionmust all true or all false- the input value not selected must be constant
Metadata
Release files for nnoir-onnx 1.6.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| nnoir_onnx-1.6.0.tar.gz | 20.6 kB | Without provenance | Details for nnoir_onnx-1.6.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| nnoir_onnx-1.6.0-py3-none-any.whl | Python 3 | none | any | Details for nnoir_onnx-1.6.0-py3-none-any.whl |
Total release size: 64.2 kB
Release files / nnoir_onnx-1.6.0.tar.gz
| Download URL | nnoir_onnx-1.6.0.tar.gz |
|---|---|
| Size | 20.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8dd94124188885a8f96f5ad1559614facfd750a3fd3aeb7899d1db64d237565a
|
|
BLAKE2b-256 checksum How to use checksums |
24e9400c169d841258aeee3bcdda20c6bbf1ba7c507bc4bbdd8b0f93ce4cb4bf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.1.4 CPython/3.9.23 Linux/6.8.0-1031-aws
|
Release files / nnoir_onnx-1.6.0-py3-none-any.whl
| Download URL | nnoir_onnx-1.6.0-py3-none-any.whl |
|---|---|
| Size | 43.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5b6fadd7b81f50b7a329053c09dd2708082dabbcf09de7ade81a4f48372f18d5
|
|
BLAKE2b-256 checksum How to use checksums |
aab49f6b1af7fe4e927f2357e13f2c0cb3515bd051c081d6e2798d7b5f614e6d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.1.4 CPython/3.9.23 Linux/6.8.0-1031-aws
|
Security for nnoir-onnx 1.6.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.