C++ use of external delegate for NPU

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

C++ use of external delegate for NPU

18 Views
AB22
Contributor III

I am trying to run a tflite model on the NPU of an i.MX8M Plus. I need to write a Qt/C++ application to run the model on images from a camera.

I have built the SDK with the following:

IMAGE_INSTALL:append = " tensorflow-lite tensorflow-lite-vx-delegate opencv python3-pillow adwaita-icon-theme abseil-cpp"

I am having dependency issues in which header files exist but the binary is not linked even though the following libraries are linked:

 libtensorflow-lite, libvx_delegate, libtim-vx, libovx, libopenvx

I believe that I need to recompile the tim-vx recipe to include the tflite-vx-delegate. This is described on the following pages:

https://github.com/VeriSilicon/TIM-VX

https://github.com/VeriSilicon/tflite-vx-delegate#readme

I do not understand the directions. For instance, for the cmake option

-DEXTERNAL_VIV_SDK=<low-level-driver/out/sdk>. What is meant by <low-level-driver/out/sdk>?

Also, for the cmake variable

-DFETCHCONTENT_SOURCE_DIR_TENSORFLOW=/my/copy/of/tensorflow

To what precisely is /my/copy/of/tensorflow intended to point?

Thank you

 

 

 

0 Kudos
Reply
0 Replies