A collection of demo-apps and inference scripts for various frameworks using infery.
infery is Deci's Inference Engine for Python with robust API for inference and benchmarks,
on any hardware.
# 1. Install dependencies:
# - python3 -m pip install <infery[all] | infery-gpu[all] | infery[openvino] | infery-gpu[tensorrt_8.0] | ... >
# - apt-get install git-lfs
# 2. Clone this repo and download the example models
git clone https://github.com/Deci-AI/infery-examples.git && cd infery-examples/ && git lfs fetch && git lfs checkout
# 3. cd to the example's directory and run an example (The ONNX one, in this case).
cd basic && python3 predict_onnx.py
./scripts/lint.sh.| PyTorch | TensorFlow 2 | OnnxRuntime | OpenVino | TensorRT | CoreML | TorchScript | TFLite | Keras | |
|---|---|---|---|---|---|---|---|---|---|
| Supported Versions | torch 1.10.1 | tensorflow ≥ 2.6.0 | OnnxRunntime ≥ 1.10.* | openvino ≥ 2022.1.0 | TensorRT 8.0.1.6 | coremltools ≥ 5.2.0 | torch 1.10.1 | tensorflow ≥ 2.6.0, or tflite-runtime | tensorflow ≥ 2.6.0 |
| CPU Support | ✅ | ✅ | ✅ | ✅ | ❌ | ✅ | ✅ | ✅ (*) | ✅ (*) |
| GPU Support | ✅ | ✅ (*) | ✅ | ❌ | ✅ | ❌ | ✅ | ✅ (*) | ✅ (*) |
| Model Predict - Synchronous | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ |
| Model Predict - Asynchronous | ❌ | ❌ | ❌ | ❌ | ✅ | ❌ | ❌ | ❌ | ❌ |
| Model Benchmark | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ |
| Detect Model Input Dimensions Automatically | ❌ - manual | ✅ | ✅ | ✅ | ✅ | ❌ | ❌ - manual | ✅ | ✅ |
| Detect Model Batch Size Automatically | ❌ - manual | ✅ | ✅ | ✅ | ✅ | ❌ | ❌ - manual | ✅ | ✅ |
| Detect Model Input Data Type Automatically | ❌ - manual | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ - manual | ✅ | ✅ |
| Dynamic Batch Size | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ |
| Open In Netron | ✅ | ✅ | ✅ | ✅ | ❌ | ✅ | ✅ | ✅ | ✅ |
| Multiple Inputs \ Outputs | ✅ | ✅ (**) | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ |
| Dynamic Dimensions (in addition to Batch Size) | ✅ | ❌ | ✅ | ❌ | ❌ | ❌ | ✅ | ❌ | ❌ |
| Change Model Input Dimensions, Batch Size and Data Type | ✅ | ❌ | ❌ | ❌ | ❌ | ❌ | ✅ | ❌ | ❌ |
| Model Meta-Data (Legend) | Basic | Basic | Basic | Basic | Basic + TRT specific fields | Basic | Basic | Basic | Basic |
| Per-Layer Inference Profiling | ❌ | ❌ | ✅ | ❌ | ✅ | ❌ | ❌ | ❌ | ❌ |
| Benchmark Modes | synchronous | synchronous | synchronous | synchronous | synchronous with IO, synchronous without IO, Asynchronous | synchronous | synchronous | synchronous | synchronous |
| Safe Predict | ❌ | ❌ | ❌ | ❌ | ✅ | ❌ | ❌ | ❌ | ❌ |
infery-gpu installed Deci Infery License
This Python Package and the associated documentation (the "Software") is
licensed to you by Deci.AI, Inc. ("Deci") under the following terms:
© 2022 – Deci.AI, Inc.
Subject to your full compliance with all of the terms herein, Deci hereby grants you a non-exclusive, revocable, non-sublicensable, non-transferable worldwide and limited right and license to use the Software in connection with the inference of models . If you are using the Deci platform for model optimization, your use of the Software is subject to the Terms of Use available here (the "Terms of Use").
You shall not, without Deci's prior written consent: (i) resell, lease, sublicense or distribute the Software to any person; (ii) use the Software to provide third parties with managed services or provide remote access to the Software to any person or compete with Deci in any way; (iii) represent that you possess any proprietary interest in the Software; (iv) directly or indirectly, take any action to contest Deci's intellectual property rights or infringe them in any way; (V) reverse-engineer, decompile, disassemble, alter, enhance, improve, add to, delete from, or otherwise modify, or derive (or attempt to derive) the technology or source code underlying any part of the Software; (vi) use the Software (or any part thereof) in any illegal, indecent, misleading, harmful, abusive, harassing and/or disparaging manner or for any such purposes. Except as provided under the terms of any separate agreement between you and Deci, including the Terms of Use to the extent applicable, you may not use the Software for any commercial use, including in connection with any models used in a production environment.
DECI PROVIDES THE SOFTWARE "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS OF THE SOFTWARE BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
The Software may contain other software licensed under different terms.
Content type
Image
Digest
sha256:ce714c623…
Size
3.8 GB
Last updated
almost 4 years ago
docker pull deciai/infery