Skip to content

Handwritten number recognition with STMF429 TFlite micro mnist

License

Notifications You must be signed in to change notification settings

reymor/stm32f429-tflite-micro-mnist

Repository files navigation

Handwritten number recognition: a TinyML application using TFLM

Tensorflow Lite for Micrcontroller (TFLM) is a framework that is a subset of Tensorflow which is designed to execute machine learning model on resources constrained devices i.e. microcontrollers.

The following repository will provide anyone having a STM32F429I-DISC1 the ability of executing this TinyML application which is:

A model train with The MNIST database which could make the inference on the number drawn on the LCD. From 0 to 9.

CMSIS-NN: Efficient Neural Network Kernels for Arm Cortex-M CPUs are a collection of efficient neural network kernels developed to maximize the performance and minimize the memory footprint of neural networks on Cortex-M processor cores.

Here, it maximize the performance almost 10 times.

Model Time [ms]
2020 ~1956
2020-CMSIS-NN ~199

graph_cmp

Model now (2024) using CMSIS-NN

model_running_cmsis-nn.webm

static_cmsis-nn

Model in 2020 without CMSIS-NN

model_running.webm

static

Model

The model was trained in this Colab

Author

reymor

About

Handwritten number recognition with STMF429 TFlite micro mnist

Resources

License

Stars

Watchers

Forks

Languages