boards/all: Enable built-in TFLM models.

The new built-in model system allows fine-grained control over which models
get built into the firmware image. This patch enables FOMO for all boards
and audio processing models for boards with mics.
This commit is contained in:
iabdalkader 2024-06-23 17:37:58 +02:00
parent 073b161309
commit 13cc273318
14 changed files with 31 additions and 75 deletions

View File

@ -114,14 +114,12 @@
#define IMLIB_ENABLE_FEATURES_BUILTIN_FACE_CASCADE
#define IMLIB_ENABLE_FEATURES_BUILTIN_EYES_CASCADE
// Enable CMSIS NN
// #if !defined(CUBEAI)
// #define IMLIB_ENABLE_CNN
// #endif
// Enable Tensor Flow
#if !defined(CUBEAI)
#define IMLIB_ENABLE_TF (IMLIB_TF_DEFAULT)
#define IMLIB_ENABLE_TFLM
#define IMLIB_ENABLE_TFLM_BUILTIN_MICRO_SPEECH
#define IMLIB_ENABLE_TFLM_BUILTIN_AUDIO_PREPROCESSOR
#define IMLIB_ENABLE_TFLM_BUILTIN_FOMO_FACE_DETECTION
#endif
// Enable FAST (20+ KBs).

View File

@ -115,14 +115,9 @@
//#define IMLIB_ENABLE_FEATURES_BUILTIN_FACE_CASCADE
//#define IMLIB_ENABLE_FEATURES_BUILTIN_EYES_CASCADE
// Enable CMSIS NN
// #if !defined(CUBEAI)
// #define IMLIB_ENABLE_CNN
// #endif
// Enable Tensor Flow
#if !defined(CUBEAI)
//#define IMLIB_ENABLE_TF
//#define IMLIB_ENABLE_TFLM
#endif
// Enable FAST (20+ KBs).

View File

@ -114,14 +114,9 @@
//#define IMLIB_ENABLE_FEATURES_BUILTIN_FACE_CASCADE
//#define IMLIB_ENABLE_FEATURES_BUILTIN_EYES_CASCADE
// Enable CMSIS NN
// #if !defined(CUBEAI)
// #define IMLIB_ENABLE_CNN
// #endif
// Enable Tensor Flow
#if !defined(CUBEAI)
//#define IMLIB_ENABLE_TF
//#define IMLIB_ENABLE_TFLM
#endif
// Enable FAST (20+ KBs).

View File

@ -114,14 +114,12 @@
#define IMLIB_ENABLE_FEATURES_BUILTIN_FACE_CASCADE
#define IMLIB_ENABLE_FEATURES_BUILTIN_EYES_CASCADE
// Enable CMSIS NN
// #if !defined(CUBEAI)
// #define IMLIB_ENABLE_CNN
// #endif
// Enable Tensor Flow
#if !defined(CUBEAI)
#define IMLIB_ENABLE_TF (IMLIB_TF_DEFAULT)
#define IMLIB_ENABLE_TFLM
#define IMLIB_ENABLE_TFLM_BUILTIN_MICRO_SPEECH
#define IMLIB_ENABLE_TFLM_BUILTIN_AUDIO_PREPROCESSOR
#define IMLIB_ENABLE_TFLM_BUILTIN_FOMO_FACE_DETECTION
#endif
// Enable FAST (20+ KBs).

View File

@ -114,14 +114,12 @@
#define IMLIB_ENABLE_FEATURES_BUILTIN_FACE_CASCADE
#define IMLIB_ENABLE_FEATURES_BUILTIN_EYES_CASCADE
// Enable CMSIS NN
// #if !defined(CUBEAI)
// #define IMLIB_ENABLE_CNN
// #endif
// Enable Tensor Flow
#if !defined(CUBEAI)
#define IMLIB_ENABLE_TF (IMLIB_TF_DEFAULT)
#define IMLIB_ENABLE_TFLM
#define IMLIB_ENABLE_TFLM_BUILTIN_MICRO_SPEECH
#define IMLIB_ENABLE_TFLM_BUILTIN_AUDIO_PREPROCESSOR
#define IMLIB_ENABLE_TFLM_BUILTIN_FOMO_FACE_DETECTION
#endif
// Enable FAST (20+ KBs).

View File

@ -73,7 +73,7 @@
//#define IMLIB_ENABLE_FEATURES_BUILTIN_EYES_CASCADE
// Enable Tensor Flow
//#define IMLIB_ENABLE_TF
//#define IMLIB_ENABLE_TFLM
// Enable STM32 DMA2D
#define IMLIB_ENABLE_DMA2D

View File

@ -112,7 +112,7 @@
//#define IMLIB_ENABLE_FEATURES_BUILTIN_EYES_CASCADE
// Enable Tensor Flow
//#define IMLIB_ENABLE_TF
//#define IMLIB_ENABLE_TFLM
// Enable FAST (20+ KBs).
//#define IMLIB_ENABLE_FAST

View File

@ -114,14 +114,10 @@
#define IMLIB_ENABLE_FEATURES_BUILTIN_FACE_CASCADE
#define IMLIB_ENABLE_FEATURES_BUILTIN_EYES_CASCADE
// Enable CMSIS NN
// #if !defined(CUBEAI)
// #define IMLIB_ENABLE_CNN
// #endif
// Enable Tensor Flow
#if !defined(CUBEAI)
#define IMLIB_ENABLE_TF (IMLIB_TF_DEFAULT)
#define IMLIB_ENABLE_TFLM
#define IMLIB_ENABLE_TFLM_BUILTIN_FOMO_FACE_DETECTION
#endif
// Enable FAST (20+ KBs).

View File

@ -114,14 +114,10 @@
#define IMLIB_ENABLE_FEATURES_BUILTIN_FACE_CASCADE
#define IMLIB_ENABLE_FEATURES_BUILTIN_EYES_CASCADE
// Enable CMSIS NN
// #if !defined(CUBEAI)
// #define IMLIB_ENABLE_CNN
// #endif
// Enable Tensor Flow
#if !defined(CUBEAI)
#define IMLIB_ENABLE_TF (IMLIB_TF_DEFAULT)
#define IMLIB_ENABLE_TFLM
#define IMLIB_ENABLE_TFLM_BUILTIN_FOMO_FACE_DETECTION
#endif
// Enable FAST (20+ KBs).

View File

@ -114,14 +114,10 @@
#define IMLIB_ENABLE_FEATURES_BUILTIN_FACE_CASCADE
#define IMLIB_ENABLE_FEATURES_BUILTIN_EYES_CASCADE
// Enable CMSIS NN
// #if !defined(CUBEAI)
// #define IMLIB_ENABLE_CNN
// #endif
// Enable Tensor Flow
#if !defined(CUBEAI)
#define IMLIB_ENABLE_TF (IMLIB_TF_DEFAULT)
#define IMLIB_ENABLE_TFLM
#define IMLIB_ENABLE_TFLM_BUILTIN_FOMO_FACE_DETECTION
#endif
// Enable FAST (20+ KBs).

View File

@ -114,14 +114,10 @@
#define IMLIB_ENABLE_FEATURES_BUILTIN_FACE_CASCADE
#define IMLIB_ENABLE_FEATURES_BUILTIN_EYES_CASCADE
// Enable CMSIS NN
// #if !defined(CUBEAI)
// #define IMLIB_ENABLE_CNN
// #endif
// Enable Tensor Flow
#if !defined(CUBEAI)
#define IMLIB_ENABLE_TF (IMLIB_TF_DEFAULT)
#define IMLIB_ENABLE_TFLM
#define IMLIB_ENABLE_TFLM_BUILTIN_FOMO_FACE_DETECTION
#endif
// Enable FAST (20+ KBs).

View File

@ -114,14 +114,10 @@
#define IMLIB_ENABLE_FEATURES_BUILTIN_FACE_CASCADE
#define IMLIB_ENABLE_FEATURES_BUILTIN_EYES_CASCADE
// Enable CMSIS NN
// #if !defined(CUBEAI)
// #define IMLIB_ENABLE_CNN
// #endif
// Enable Tensor Flow
#if !defined(CUBEAI)
#define IMLIB_ENABLE_TF (IMLIB_TF_DEFAULT)
#define IMLIB_ENABLE_TFLM
#define IMLIB_ENABLE_TFLM_BUILTIN_FOMO_FACE_DETECTION
#endif
// Enable FAST (20+ KBs).

View File

@ -113,18 +113,15 @@
#define IMLIB_ENABLE_FEATURES_BUILTIN_FACE_CASCADE
#define IMLIB_ENABLE_FEATURES_BUILTIN_EYES_CASCADE
// Enable CMSIS NN
// #if !defined(CUBEAI)
// #define IMLIB_ENABLE_CNN
// #endif
// Enable Tensor Flow
#if !defined(CUBEAI)
#define IMLIB_ENABLE_TF (IMLIB_TF_FULLOPS)
#define IMLIB_ENABLE_TFLM
#define IMLIB_ENABLE_TFLM_BUILTIN_FOMO_FACE_DETECTION
#define IMLIB_ENABLE_TFLM_BUILTIN_PERSON_DETECT
#endif
// Enable FAST (20+ KBs).
// #define IMLIB_ENABLE_FAST
#define IMLIB_ENABLE_FAST
// Enable find_template()
#define IMLIB_FIND_TEMPLATE

View File

@ -115,14 +115,9 @@
//#define IMLIB_ENABLE_FEATURES_BUILTIN_FACE_CASCADE
//#define IMLIB_ENABLE_FEATURES_BUILTIN_EYES_CASCADE
// Enable CMSIS NN
// #if !defined(CUBEAI)
// #define IMLIB_ENABLE_CNN
// #endif
// Enable Tensor Flow
#if !defined(CUBEAI)
//#define IMLIB_ENABLE_TF
//#define IMLIB_ENABLE_TFLM
#endif
// Enable FAST (20+ KBs).