Installation

Supported configurations

  • Operating systems:
    • Any Linux variant compatible with manylinux 2.28 (Ubuntu 22.04, Ubuntu 24.04, …)

  • Python versions: 3.10 to 3.12

  • cnn2snn version: 2.18.1

  • onnxruntime version: 1.19.2

Quick installation

MetaONNX relies on onnx2akida python package that can be setup with python’s pip package manager:

pip install onnx2akida==0.6.0

MetaONNX is also built on top of Brainchip usual set of tool included in MetaTF, that is QuantizeML, CNN2SNN and Akida. The current MetaTF version used is 2.18.1.

Note

We recommend using virtual environment such as Conda. Please note that the python version must be explicitly specified when creating a conda environment. The specification must be for one of the supported python versions listed above.

Using Conda:

conda create --name onnx2akida_venv python=3.11
conda activate onnx2akida_venv

Using python venv:

python3.11 -m venv onnx2akida_venv
source onnx2akida_venv/bin/activate

Running examples

The onnx2akida tutorials can be downloaded from the examples section as python scripts or Jupyter Notebooks. Dependencies needed to replay the examples can be installed using the requirements.txt file:

pip install -r requirements.txt

Note

Please refer to this link for Jupyter Notebook installation and configuration.