Tool/software:
Hi,
I have used edgeai-tidl-tools to compile the artifacts in the examples/osrt_python section (both ort & tfl). Then I've copied the artifacts (models/ and model-artifacts/) to the devboard as outlined in the readme section.
Once I execute the inference scripts (examples/ort/onnxrt_ep.py and the tflite script) on the AM62A board, I get a segmentation fault.
Running 4 Models - ['cl-tfl-mobilenet_v1_1.0_224', 'ss-tfl-deeplabv3_mnv2_ade20k_float', 'od-tfl-ssd_mobilenet_v2_300_float', 'od-tfl-ssdlite_mobiledet_dsp_320x320_coco'] Running_Model : cl-tfl-mobilenet_v1_1.0_224 Number of subgraphs:1 , 34 nodes delegated out of 34 nodes APP: Init ... !!! MEM: Init ... !!! MEM: Initialized DMA HEAP (fd=6) !!! MEM: Init ... Done !!! IPC: Init ... !!! IPC: Init ... Done !!! REMOTE_SERVICE: Init ... !!! REMOTE_SERVICE: Init ... Done !!! 5212122.232075 s: GTC Frequency = 200 MHz APP: Init ... Done !!! 5212122.232439 s: VX_ZONE_INIT:Enabled 5212122.232479 s: VX_ZONE_ERROR:Enabled 5212122.232637 s: VX_ZONE_WARNING:Enabled 5212122.234513 s: VX_ZONE_INIT:[tivxInitLocal:130] Initialization Done !!! 5212122.235476 s: VX_ZONE_INIT:[tivxHostInitLocal:101] Initialization Done for HOST !!! TIDL_RT_OVX: ERROR: Config file size (94616 bytes) does not match size of sTIDL_IOBufDesc_t (37272 bytes) 5212122.237739 s: VX_ZONE_ERROR:[tivxAddKernelTIDL:269] invalid values for num_input_tensors or num_output_tensors 5212122.249661 s: VX_ZONE_ERROR:[vxQueryKernel:137] Invalid kernel reference 5212122.249717 s: VX_ZONE_ERROR:[vxMapUserDataObject:456] Invalid user data object reference Segmentation fault (core dumped)
What is the issue here? Note that I can run python3 tflrt_delegate.py -d , for example, which is the mode where it doesnt offload computation, right?
Some other questions:
- How do I find out what SDK version of edgeai-tidl-tools I need to compile the models? Ive found this table: edgeai-tidl-tools/docs/version_compatibility_table.md at master · TexasInstruments/edgeai-tidl-tools (github.com) but could not figure out how to find the SDK version installed on my AM62A devboard.
- Why are there no pre-build docker images? Setting all this up on our own a bit confusing and tedious.