The file generated in build/lib/tflm/tflm_builtin_models.c
is fomo_face_detection_only.c
. Initially, when building the firmware using the default method, which involves loading custom models only in the src/lib/tflm/models
directory, the firmware was throwing various errors https://forums.openmv.io/t/openmv-h7-build-error/10498
so i tried listing the model in the index.csv
file, the errors disappeared.
For the OpenMV H7+, I attempted to make changes in the src/omv/boards/OPENMV4P
directory since the second case is working for me. If I enable it in the board.config
, it should work, I assume.
I made changes in the same way they were done for builtin_models
in the imlib_config.h
file
//Enable custom model
#define IMLIB_ENABLE_TFLM_BUILTIN_MODEL_SEGMENTATION
but i have encountered many errors
openmv/src/lib/tflm/libtflm/include/tensorflow/lite/c/common.h:31,
from /home/openmv/src/lib/tflm/libtflm/include/tensorflow/lite/micro/micro_op_resolver.h:18,
from tflm_backend.cc:38:
/home/openmv/src/lib/tflm/libtflm/include/tensorflow/lite/core/c/common.h:1463:10: fatal error: utility: No such file or directory
1463 | #include <utility>
| ^~~~~~~~~
How can I enable them correctly?