Qualia Core (formerly MicroAI)
End-to-end training, quantization and deployment framework for deep neural networks on microcontrollers.
Repository should be cloned with --recursive to get TFLite Micro and its dependencies.
Dependencies
Python:
numpy
scikit-learn
tomlkit
colorful
gitpython
Dataset
GTSRB
Python:
imageio
scikit-image
Training
TensorFlow
Python:
tensorflow
tensorflow_addons
PyTorch
Python:
pytorch
pytorch_lightning
Deployment
Embedded targets
SparkFun Edge
Python:
pycryptodome
Nucleo-L452RE-P
System:
stm32cubeide
stm32cubeprog
Embedded frameworks
STM32Cube.AI
STM32CubeIDE extension pack:
X-CUBE-AI == 5.2.0
TensorFlow Lite Micro
System:
arm-none-eabi-binutils
arm-none-eabi-gcc
arm-none-eabi-newlib
libopenexr-dev
wget
Qualia-CodeGen
Python:
jinja2
System:
arm-none-eabi-binutils
arm-none-eabi-gcc
arm-none-eabi-newlib
Evaluation
Python:
pyserial
Usage
If Qualia installed with pip, you can run the qualia command directly. Otherwise run PYTHONPATH=. ./bin/qualia <config.toml> <action> from the qualia directory.
Dataset pre-processing
qualia <config.toml> preprocess_data
Training
qualia <config.toml> train
Prepare deployment (generate firmware)
qualia <config.toml> prepare_deploy
Deploy and evaluate
qualia <config.toml> deploy_and_evaluate
Run test suite
CUBLAS_WORKSPACE_CONFIG=:4096:8 PYTHONHASHSEED=2 python -m unittest discover qualia/tests
Included support for datasets, learning framework, neural networks, embedded frameworks and targets
Datasets
Learning frameworks
- TensorFlow.Keras
- PyTorch
Neural networks
- MLP
- CNN (1D&2D)
- Resnetv1 (1D&2D)
Embedded frameworks
- STM32Cube.AI
- TensorFlow Lite for Microcontrollers
- Qualia-CodeGen
Targets
- Nucleo-L452RE-P
- SparkFun Edge
Reference & Citation
Quantization and Deployment of Deep Neural Networks on Microcontrollers, Pierre-Emmanuel Novac, Ghouthi Boukli Hacene, Alain Pegatoquet, Benoît Miramond and Vincent Gripon, Sensors, 2021.
@article{qualia,
author = {Novac, Pierre-Emmanuel and Boukli Hacene, Ghouthi and Pegatoquet, Alain and Miramond, Benoît and Gripon, Vincent},
title = {Quantization and Deployment of Deep Neural Networks on Microcontrollers},
journal = {Sensors},
volume = {21},
year = {2021},
number = {9},
article-number = {2984},
url = {https://www.mdpi.com/1424-8220/21/9/2984},
issn = {1424-8220},
doi = {10.3390/s21092984}
}
Metadata
Release files for qualia-core 2.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 |
|---|---|---|---|---|
| qualia_core-2.6.0.tar.gz | 1.5 MB | Without provenance | Details for qualia_core-2.6.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| qualia_core-2.6.0-py3-none-any.whl | Python 3 | none | any | Details for qualia_core-2.6.0-py3-none-any.whl |
Total release size: 3.2 MB
Release files / qualia_core-2.6.0.tar.gz
| Download URL | qualia_core-2.6.0.tar.gz |
|---|---|
| Size | 1.5 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
73cfe904f0231547864a9a0b3413857cf1d0649fdfa6fd7b034b8c48f6b19c2b
|
|
BLAKE2b-256 checksum How to use checksums |
4b02db2e42866967caf233295a63006d2a0ebaf92a6e7c6b900d8fc0c60da197
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
pdm/2.26.7 CPython/3.14.4 Linux/6.18.26-2-lts
|
Release files / qualia_core-2.6.0-py3-none-any.whl
| Download URL | qualia_core-2.6.0-py3-none-any.whl |
|---|---|
| Size | 1.8 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
93d68e742f1cf2874e59947b7479035c77056bc253d78fc3d26bd410c2eb1a4f
|
|
BLAKE2b-256 checksum How to use checksums |
677ef5b697a005b20f12fe066adcd12d1a195e12a08ab968e6bcf69ba273aa9d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
pdm/2.26.7 CPython/3.14.4 Linux/6.18.26-2-lts
|
Security for qualia-core 2.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.