X Cube Ai
X Cube Ai
Data brief
STM32Cube Command-line
ecosystem interface STM32 C code
of the optimized model
and AI runtime (.a)
Neural network model converter
for STM32 MCU
via . via .
DT60962V1
Graph Memory
Quantizer
optimizer optimizer
X-CUBE-AI
Features
• Generation of an STM32-optimized library from pretrained neural network and classical machine learning models
• Native support for various deep learning frameworks such as Keras and TensorFlow™ Lite, and support for all frameworks
that can export to the ONNX standard format such as PyTorch™, MATLAB®, and more
• Support for various built-in scikit-learn models such as isolation forest, support vector machine (SVM), K-means, and
more
• Support for 8-bit quantized neural network format (TensorFlow™ Lite and ONNX Tensor-oriented QDQ)
• Support for deeply quantized neural networks (down to 1-bit) from QKeras and Larq
• Relocatable option enabling standalone model update during product lifecycle by creating a model binary code separated
from the application code
• Possibility to use larger networks by storing weights in external flash memory and activation buffers in external RAM
• Easy portability across different STM32 microcontroller series through STM32Cube integration
• With a TensorFlow™ Lite neural network, code generation using either the STM32Cube.AI runtime or TensorFlow™ Lite
for Microcontrollers runtime
• Free-of-charge, user-friendly license terms
Description
X-CUBE-AI is an STM32Cube Expansion Package, which is part of the STM32Cube.AI ecosystem. It extends STM32CubeMX
capabilities with automatic conversion of pretrained artificial intelligence algorithms, including neural network and classical
machine learning models. It integrates also a generated optimized library into the user's project.
The easiest way to use X-CUBE-AI is to download it inside the STM32CubeMX tool (version 5.4.0 or newer) as described in the
user manual Getting started with X-CUBE-AI Expansion Package for artificial intelligence (AI) (UM2526).
The X-CUBE-AI Expansion Package offers also several means to validate artificial intelligence algorithms both on a desktop PC
and an STM32. With X-CUBE-AI, it is as well possible to measure performance on STM32 devices without any user handmade
specific C code.
1 General information
2 License
X-CUBE-AI is delivered under the Mix Ultimate Liberty+OSS+3rd-party V1 software license agreement
(SLA0048).
The software components provided in this package come with different license schemes as shown in Table 1.
Software
Copyright License
component
Copyright (c) 2012-2013 Matplotlib Development Team; All Rights Python Software Foundation,
matplotlib
Reserved Version 2(1)
numpy BSD-3-Clause
QKeras Copyright © 2019 The QKeras Authors Apache License 2.0
Copyright (c) 2007–2018 The scikit-learn developers.
scikit-learn
All rights reserved.
Copyright (C) 2011, the scikit-image team
scikit-image BSD-3-Clause
All rights reserved.
Copyright © 2003-2013 SciPy Developers.
scipy
All rights reserved.
six Copyright (c) 2010-2018 Benjamin Peterson The MIT License
tensorflow(2) Copyright 2018 The TensorFlow Authors. All rights reserved. Apache License 2.0
Software
Copyright License
component
1. Matplotlib only uses BSD-compatible code, and its license is based on the PSF license.
2. TensorFlow is a trademark of Google Inc.
Revision history
Table 2. Document revision history