Object Detection on STM32MP1using STM32MP1_artificial_intelligence_expansion_packages
Hi,
I have followed the steps described here https://wiki.st.com/stm32mpu/wiki/STM32MP1_artificial_intelligence_expansion_packages to setup AI package on STM32MP1. Everything is working fine.
However, I have my own object detector model file i.e. model.tflite file. I know there are two ways to run object detector model 1) using Python code and 2) using C/C++ code. I tried to run my object detector model using above both approaches. Model works fine with python code but it doesn't detect anything using C/C++ code.
I used the following command to run object detector using python code:
root@stm32mp1:/usr/local/demo-ai/ai-cv#python3 python/objdetect_tfl_multiprocessing.py -m models/model.tflite -l models/labels.txt -i models/images/Similarly I used the following command to run object detector using C/C++ code:
root@stm32mp1:/usr/local/demo-ai/ai-cv/bin# ./objdetect_tfl_gst_gtk -m ../models
/model.tflite -l ../models/labels.txt -i ../models/images/In my opinion C/C++ code should take less inference time than the python code. However C/C++ code takes ~2.5 seconds and python code takes ~2.7 seconds.
Am I missing something? How can I use C/C++ code to run my model?
Thanking you,
Saurabh
