mirror of
https://github.com/openmv/openmv.git
synced 2025-11-04 14:49:50 +08:00
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:
parent
073b161309
commit
13cc273318
@ -114,14 +114,12 @@
|
|||||||
#define IMLIB_ENABLE_FEATURES_BUILTIN_FACE_CASCADE
|
#define IMLIB_ENABLE_FEATURES_BUILTIN_FACE_CASCADE
|
||||||
#define IMLIB_ENABLE_FEATURES_BUILTIN_EYES_CASCADE
|
#define IMLIB_ENABLE_FEATURES_BUILTIN_EYES_CASCADE
|
||||||
|
|
||||||
// Enable CMSIS NN
|
|
||||||
// #if !defined(CUBEAI)
|
|
||||||
// #define IMLIB_ENABLE_CNN
|
|
||||||
// #endif
|
|
||||||
|
|
||||||
// Enable Tensor Flow
|
// Enable Tensor Flow
|
||||||
#if !defined(CUBEAI)
|
#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
|
#endif
|
||||||
|
|
||||||
// Enable FAST (20+ KBs).
|
// Enable FAST (20+ KBs).
|
||||||
|
|||||||
@ -115,14 +115,9 @@
|
|||||||
//#define IMLIB_ENABLE_FEATURES_BUILTIN_FACE_CASCADE
|
//#define IMLIB_ENABLE_FEATURES_BUILTIN_FACE_CASCADE
|
||||||
//#define IMLIB_ENABLE_FEATURES_BUILTIN_EYES_CASCADE
|
//#define IMLIB_ENABLE_FEATURES_BUILTIN_EYES_CASCADE
|
||||||
|
|
||||||
// Enable CMSIS NN
|
|
||||||
// #if !defined(CUBEAI)
|
|
||||||
// #define IMLIB_ENABLE_CNN
|
|
||||||
// #endif
|
|
||||||
|
|
||||||
// Enable Tensor Flow
|
// Enable Tensor Flow
|
||||||
#if !defined(CUBEAI)
|
#if !defined(CUBEAI)
|
||||||
//#define IMLIB_ENABLE_TF
|
//#define IMLIB_ENABLE_TFLM
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// Enable FAST (20+ KBs).
|
// Enable FAST (20+ KBs).
|
||||||
|
|||||||
@ -114,14 +114,9 @@
|
|||||||
//#define IMLIB_ENABLE_FEATURES_BUILTIN_FACE_CASCADE
|
//#define IMLIB_ENABLE_FEATURES_BUILTIN_FACE_CASCADE
|
||||||
//#define IMLIB_ENABLE_FEATURES_BUILTIN_EYES_CASCADE
|
//#define IMLIB_ENABLE_FEATURES_BUILTIN_EYES_CASCADE
|
||||||
|
|
||||||
// Enable CMSIS NN
|
|
||||||
// #if !defined(CUBEAI)
|
|
||||||
// #define IMLIB_ENABLE_CNN
|
|
||||||
// #endif
|
|
||||||
|
|
||||||
// Enable Tensor Flow
|
// Enable Tensor Flow
|
||||||
#if !defined(CUBEAI)
|
#if !defined(CUBEAI)
|
||||||
//#define IMLIB_ENABLE_TF
|
//#define IMLIB_ENABLE_TFLM
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// Enable FAST (20+ KBs).
|
// Enable FAST (20+ KBs).
|
||||||
|
|||||||
@ -114,14 +114,12 @@
|
|||||||
#define IMLIB_ENABLE_FEATURES_BUILTIN_FACE_CASCADE
|
#define IMLIB_ENABLE_FEATURES_BUILTIN_FACE_CASCADE
|
||||||
#define IMLIB_ENABLE_FEATURES_BUILTIN_EYES_CASCADE
|
#define IMLIB_ENABLE_FEATURES_BUILTIN_EYES_CASCADE
|
||||||
|
|
||||||
// Enable CMSIS NN
|
|
||||||
// #if !defined(CUBEAI)
|
|
||||||
// #define IMLIB_ENABLE_CNN
|
|
||||||
// #endif
|
|
||||||
|
|
||||||
// Enable Tensor Flow
|
// Enable Tensor Flow
|
||||||
#if !defined(CUBEAI)
|
#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
|
#endif
|
||||||
|
|
||||||
// Enable FAST (20+ KBs).
|
// Enable FAST (20+ KBs).
|
||||||
|
|||||||
@ -114,14 +114,12 @@
|
|||||||
#define IMLIB_ENABLE_FEATURES_BUILTIN_FACE_CASCADE
|
#define IMLIB_ENABLE_FEATURES_BUILTIN_FACE_CASCADE
|
||||||
#define IMLIB_ENABLE_FEATURES_BUILTIN_EYES_CASCADE
|
#define IMLIB_ENABLE_FEATURES_BUILTIN_EYES_CASCADE
|
||||||
|
|
||||||
// Enable CMSIS NN
|
|
||||||
// #if !defined(CUBEAI)
|
|
||||||
// #define IMLIB_ENABLE_CNN
|
|
||||||
// #endif
|
|
||||||
|
|
||||||
// Enable Tensor Flow
|
// Enable Tensor Flow
|
||||||
#if !defined(CUBEAI)
|
#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
|
#endif
|
||||||
|
|
||||||
// Enable FAST (20+ KBs).
|
// Enable FAST (20+ KBs).
|
||||||
|
|||||||
@ -73,7 +73,7 @@
|
|||||||
//#define IMLIB_ENABLE_FEATURES_BUILTIN_EYES_CASCADE
|
//#define IMLIB_ENABLE_FEATURES_BUILTIN_EYES_CASCADE
|
||||||
|
|
||||||
// Enable Tensor Flow
|
// Enable Tensor Flow
|
||||||
//#define IMLIB_ENABLE_TF
|
//#define IMLIB_ENABLE_TFLM
|
||||||
|
|
||||||
// Enable STM32 DMA2D
|
// Enable STM32 DMA2D
|
||||||
#define IMLIB_ENABLE_DMA2D
|
#define IMLIB_ENABLE_DMA2D
|
||||||
|
|||||||
@ -112,7 +112,7 @@
|
|||||||
//#define IMLIB_ENABLE_FEATURES_BUILTIN_EYES_CASCADE
|
//#define IMLIB_ENABLE_FEATURES_BUILTIN_EYES_CASCADE
|
||||||
|
|
||||||
// Enable Tensor Flow
|
// Enable Tensor Flow
|
||||||
//#define IMLIB_ENABLE_TF
|
//#define IMLIB_ENABLE_TFLM
|
||||||
|
|
||||||
// Enable FAST (20+ KBs).
|
// Enable FAST (20+ KBs).
|
||||||
//#define IMLIB_ENABLE_FAST
|
//#define IMLIB_ENABLE_FAST
|
||||||
|
|||||||
@ -114,14 +114,10 @@
|
|||||||
#define IMLIB_ENABLE_FEATURES_BUILTIN_FACE_CASCADE
|
#define IMLIB_ENABLE_FEATURES_BUILTIN_FACE_CASCADE
|
||||||
#define IMLIB_ENABLE_FEATURES_BUILTIN_EYES_CASCADE
|
#define IMLIB_ENABLE_FEATURES_BUILTIN_EYES_CASCADE
|
||||||
|
|
||||||
// Enable CMSIS NN
|
|
||||||
// #if !defined(CUBEAI)
|
|
||||||
// #define IMLIB_ENABLE_CNN
|
|
||||||
// #endif
|
|
||||||
|
|
||||||
// Enable Tensor Flow
|
// Enable Tensor Flow
|
||||||
#if !defined(CUBEAI)
|
#if !defined(CUBEAI)
|
||||||
#define IMLIB_ENABLE_TF (IMLIB_TF_DEFAULT)
|
#define IMLIB_ENABLE_TFLM
|
||||||
|
#define IMLIB_ENABLE_TFLM_BUILTIN_FOMO_FACE_DETECTION
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// Enable FAST (20+ KBs).
|
// Enable FAST (20+ KBs).
|
||||||
|
|||||||
@ -114,14 +114,10 @@
|
|||||||
#define IMLIB_ENABLE_FEATURES_BUILTIN_FACE_CASCADE
|
#define IMLIB_ENABLE_FEATURES_BUILTIN_FACE_CASCADE
|
||||||
#define IMLIB_ENABLE_FEATURES_BUILTIN_EYES_CASCADE
|
#define IMLIB_ENABLE_FEATURES_BUILTIN_EYES_CASCADE
|
||||||
|
|
||||||
// Enable CMSIS NN
|
|
||||||
// #if !defined(CUBEAI)
|
|
||||||
// #define IMLIB_ENABLE_CNN
|
|
||||||
// #endif
|
|
||||||
|
|
||||||
// Enable Tensor Flow
|
// Enable Tensor Flow
|
||||||
#if !defined(CUBEAI)
|
#if !defined(CUBEAI)
|
||||||
#define IMLIB_ENABLE_TF (IMLIB_TF_DEFAULT)
|
#define IMLIB_ENABLE_TFLM
|
||||||
|
#define IMLIB_ENABLE_TFLM_BUILTIN_FOMO_FACE_DETECTION
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// Enable FAST (20+ KBs).
|
// Enable FAST (20+ KBs).
|
||||||
|
|||||||
@ -114,14 +114,10 @@
|
|||||||
#define IMLIB_ENABLE_FEATURES_BUILTIN_FACE_CASCADE
|
#define IMLIB_ENABLE_FEATURES_BUILTIN_FACE_CASCADE
|
||||||
#define IMLIB_ENABLE_FEATURES_BUILTIN_EYES_CASCADE
|
#define IMLIB_ENABLE_FEATURES_BUILTIN_EYES_CASCADE
|
||||||
|
|
||||||
// Enable CMSIS NN
|
|
||||||
// #if !defined(CUBEAI)
|
|
||||||
// #define IMLIB_ENABLE_CNN
|
|
||||||
// #endif
|
|
||||||
|
|
||||||
// Enable Tensor Flow
|
// Enable Tensor Flow
|
||||||
#if !defined(CUBEAI)
|
#if !defined(CUBEAI)
|
||||||
#define IMLIB_ENABLE_TF (IMLIB_TF_DEFAULT)
|
#define IMLIB_ENABLE_TFLM
|
||||||
|
#define IMLIB_ENABLE_TFLM_BUILTIN_FOMO_FACE_DETECTION
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// Enable FAST (20+ KBs).
|
// Enable FAST (20+ KBs).
|
||||||
|
|||||||
@ -114,14 +114,10 @@
|
|||||||
#define IMLIB_ENABLE_FEATURES_BUILTIN_FACE_CASCADE
|
#define IMLIB_ENABLE_FEATURES_BUILTIN_FACE_CASCADE
|
||||||
#define IMLIB_ENABLE_FEATURES_BUILTIN_EYES_CASCADE
|
#define IMLIB_ENABLE_FEATURES_BUILTIN_EYES_CASCADE
|
||||||
|
|
||||||
// Enable CMSIS NN
|
|
||||||
// #if !defined(CUBEAI)
|
|
||||||
// #define IMLIB_ENABLE_CNN
|
|
||||||
// #endif
|
|
||||||
|
|
||||||
// Enable Tensor Flow
|
// Enable Tensor Flow
|
||||||
#if !defined(CUBEAI)
|
#if !defined(CUBEAI)
|
||||||
#define IMLIB_ENABLE_TF (IMLIB_TF_DEFAULT)
|
#define IMLIB_ENABLE_TFLM
|
||||||
|
#define IMLIB_ENABLE_TFLM_BUILTIN_FOMO_FACE_DETECTION
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// Enable FAST (20+ KBs).
|
// Enable FAST (20+ KBs).
|
||||||
|
|||||||
@ -114,14 +114,10 @@
|
|||||||
#define IMLIB_ENABLE_FEATURES_BUILTIN_FACE_CASCADE
|
#define IMLIB_ENABLE_FEATURES_BUILTIN_FACE_CASCADE
|
||||||
#define IMLIB_ENABLE_FEATURES_BUILTIN_EYES_CASCADE
|
#define IMLIB_ENABLE_FEATURES_BUILTIN_EYES_CASCADE
|
||||||
|
|
||||||
// Enable CMSIS NN
|
|
||||||
// #if !defined(CUBEAI)
|
|
||||||
// #define IMLIB_ENABLE_CNN
|
|
||||||
// #endif
|
|
||||||
|
|
||||||
// Enable Tensor Flow
|
// Enable Tensor Flow
|
||||||
#if !defined(CUBEAI)
|
#if !defined(CUBEAI)
|
||||||
#define IMLIB_ENABLE_TF (IMLIB_TF_DEFAULT)
|
#define IMLIB_ENABLE_TFLM
|
||||||
|
#define IMLIB_ENABLE_TFLM_BUILTIN_FOMO_FACE_DETECTION
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// Enable FAST (20+ KBs).
|
// Enable FAST (20+ KBs).
|
||||||
|
|||||||
@ -113,18 +113,15 @@
|
|||||||
#define IMLIB_ENABLE_FEATURES_BUILTIN_FACE_CASCADE
|
#define IMLIB_ENABLE_FEATURES_BUILTIN_FACE_CASCADE
|
||||||
#define IMLIB_ENABLE_FEATURES_BUILTIN_EYES_CASCADE
|
#define IMLIB_ENABLE_FEATURES_BUILTIN_EYES_CASCADE
|
||||||
|
|
||||||
// Enable CMSIS NN
|
|
||||||
// #if !defined(CUBEAI)
|
|
||||||
// #define IMLIB_ENABLE_CNN
|
|
||||||
// #endif
|
|
||||||
|
|
||||||
// Enable Tensor Flow
|
// Enable Tensor Flow
|
||||||
#if !defined(CUBEAI)
|
#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
|
#endif
|
||||||
|
|
||||||
// Enable FAST (20+ KBs).
|
// Enable FAST (20+ KBs).
|
||||||
// #define IMLIB_ENABLE_FAST
|
#define IMLIB_ENABLE_FAST
|
||||||
|
|
||||||
// Enable find_template()
|
// Enable find_template()
|
||||||
#define IMLIB_FIND_TEMPLATE
|
#define IMLIB_FIND_TEMPLATE
|
||||||
|
|||||||
@ -115,14 +115,9 @@
|
|||||||
//#define IMLIB_ENABLE_FEATURES_BUILTIN_FACE_CASCADE
|
//#define IMLIB_ENABLE_FEATURES_BUILTIN_FACE_CASCADE
|
||||||
//#define IMLIB_ENABLE_FEATURES_BUILTIN_EYES_CASCADE
|
//#define IMLIB_ENABLE_FEATURES_BUILTIN_EYES_CASCADE
|
||||||
|
|
||||||
// Enable CMSIS NN
|
|
||||||
// #if !defined(CUBEAI)
|
|
||||||
// #define IMLIB_ENABLE_CNN
|
|
||||||
// #endif
|
|
||||||
|
|
||||||
// Enable Tensor Flow
|
// Enable Tensor Flow
|
||||||
#if !defined(CUBEAI)
|
#if !defined(CUBEAI)
|
||||||
//#define IMLIB_ENABLE_TF
|
//#define IMLIB_ENABLE_TFLM
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// Enable FAST (20+ KBs).
|
// Enable FAST (20+ KBs).
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user