Looking for delegate libaray

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

Looking for delegate libaray

133 Views
Bernd69
Contributor I

Hello
I have an iMX8Plus development board here and I am trying to use the NPU for some object detection in python.
This works fine with the tflite_runtime.interpreter using libvx_delegat.so.

I tried on some other device the newer ai_edge_litert.interpreter (LiteRT instead of TensorflowLite) and if worked significantly faster, so I want to give it a try.
I installed a virtual environment for this LiteRT environment and my python program starts using this ai_edge_litert module.
But when I load the libvx_delegate.so i get a segmentation fault.
(Chat GPT told me) I probably need the liblitert_vx_delegate.so for this environment...
I searched everywhere, but I can't find it anywhere.

I know its probably in the latest yocto image for iMX8Plus, but I dont want to break my development board - i just want that library (and its required libraries)
Does anyone have an idea where to get this delegate library (liblitert_vx_delegate.so)?

Labels (1)
0 Kudos
Reply
1 Reply

110 Views
JorgeCas
NXP TechSupport
NXP TechSupport

Hello,

We do not publish these libraries separately, they are included in the Yocto build or in eIQ SDK.

The delegate is located in /usr/lib/liblitert_vx_delegate.so as is mentioned in i.MX Machine Learning User's Guide.

Please consider upgrade the BSP version to update the TFlite verison.

Best regards.

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2234490%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ELooking%20for%20delegate%20libaray%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2234490%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%3CBR%20%2F%3EI%20have%20an%20iMX8Plus%20development%20board%20here%20and%20I%20am%20trying%20to%20use%20the%20NPU%20for%20some%20object%20detection%20in%20python.%3CBR%20%2F%3EThis%20works%20fine%20with%20the%20tflite_runtime.interpreter%20using%20libvx_delegat.so.%3CBR%20%2F%3E%3CBR%20%2F%3EI%20tried%20on%20some%20other%20device%20the%20newer%20ai_edge_litert.interpreter%20(LiteRT%20instead%20of%20TensorflowLite)%20and%20if%20worked%20significantly%20faster%2C%20so%20I%20want%20to%20give%20it%20a%20try.%3CBR%20%2F%3EI%20installed%20a%20virtual%20environment%20for%20this%20LiteRT%20environment%20and%20my%20python%20program%20starts%20using%20this%20ai_edge_litert%20module.%3CBR%20%2F%3EBut%20when%20I%20load%20the%20libvx_delegate.so%20i%20get%20a%20segmentation%20fault.%3CBR%20%2F%3E(Chat%20GPT%20told%20me)%20I%20probably%20need%20the%20liblitert_vx_delegate.so%20for%20this%20environment...%3CBR%20%2F%3EI%20searched%20everywhere%2C%20but%20I%20can't%20find%20it%20anywhere.%3CBR%20%2F%3E%3CBR%20%2F%3EI%20know%20its%20probably%20in%20the%20latest%20yocto%20image%20for%20iMX8Plus%2C%20but%20I%20dont%20want%20to%20break%20my%20development%20board%20-%20i%20just%20want%20that%20library%20(and%20its%20required%20libraries)%3CBR%20%2F%3EDoes%20anyone%20have%20an%20idea%20where%20to%20get%20this%20delegate%20library%20(liblitert_vx_delegate.so)%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2234490%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CLINGO-LABEL%3EDevelopment%20Board%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2236991%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Looking%20for%20delegate%20libaray%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2236991%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%2C%3C%2FP%3E%0A%3CP%3EWe%20do%20not%20publish%20these%20libraries%20separately%2C%20they%20are%20included%20in%20the%20Yocto%20build%20or%20in%20eIQ%20SDK.%3C%2FP%3E%0A%3CP%3EThe%20delegate%20is%20located%20in%26nbsp%3B%2Fusr%2Flib%2Fliblitert_vx_delegate.so%20as%20is%20mentioned%20in%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fwww.nxp.com%2Fdocs%2Fen%2Fuser-guide%2FUG10166.pdf%22%20target%3D%22_self%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ei.MX%20Machine%20Learning%20User's%20Guide.%3C%2FA%3E%3C%2FP%3E%0A%3CP%3EPlease%20consider%20upgrade%20the%20BSP%20version%20to%20update%20the%20TFlite%20verison.%3C%2FP%3E%0A%3CP%3EBest%20regards.%3C%2FP%3E%3C%2FLINGO-BODY%3E