Tool/software:
Hi,
I'm generating custom yolov8 model and complie onnx and prototxt file under edgeai-tidl-tool and edgeai-benchmark repo.
Since I could generate files, so I run my custom model under AM62A EVM. However, I got error.
Here is my environment.
AM62A Linux SDK : 9.02.00.05
Model generate environment :
Ubuntu : 22.04
edgeai-tidl-tools : Tag "09_02_09_00"
edgeai-benchmark : r9.2
Here is error log on EVM.
---
root@am62axx-evm:/opt/edgeai-gst-apps/apps_python# ./app_edgeai.py ../configs/yolov8.yaml libtidl_onnxrt_EP loaded 0x31ef6410 ERROR : artifacts_folder not a directory ******** WARNING ******* : Could not open ConstantFolding/allowedNode.txt for reading... Entire model will run on ARM without any delegation to TIDL ! Final number of subgraphs created are : 1, - Offloaded Nodes - 0, Total Nodes - 0 [ 157.245285] usb 1-1: reset high-speed USB device number 2 using xhci-hcd 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 !!! 163.854141 s: GTC Frequency = 200 MHz APP: Init ... Done !!! 163.857993 s: VX_ZONE_INIT:Enabled 163.858035 s: VX_ZONE_ERROR:Enabled 163.858044 s: VX_ZONE_WARNING:Enabled 163.859298 s: VX_ZONE_INIT:[tivxPlatformCreateTargetId:116] Added target MPU-0 163.859463 s: VX_ZONE_INIT:[tivxPlatformCreateTargetId:116] Added target MPU-1 163.859573 s: VX_ZONE_INIT:[tivxPlatformCreateTargetId:116] Added target MPU-2 163.859687 s: VX_ZONE_INIT:[tivxPlatformCreateTargetId:116] Added target MPU-3 163.859703 s: VX_ZONE_INIT:[tivxInitLocal:136] Initialization Done !!! 163.860566 s: VX_ZONE_INIT:[tivxHostInitLocal:101] Initialization Done for HOST !!! ==========[INPUT PIPELINE(S)]========== [PIPE-0] v4l2src device=/dev/video-usb-cam0 brightness=128 contrast=32 saturation=32 ! capsfilter caps="image/jpeg, width=(int)1280, height=(int)720;" ! jpegdec ! tiovxdlcolorconvert ! capsfilter caps="video/x-raw, format=(string)NV12;" ! tiovxmultiscaler name=split_01 split_01. ! queue ! capsfilter caps="video/x-raw, width=(int)1280, height=(int)720;" ! tiovxdlcolorconvert out-pool-size=4 ! capsfilter caps="video/x-raw, format=(string)RGB;" ! appsink max-buffers=2 drop=True name=sen_0 split_01. ! queue ! capsfilter caps="video/x-raw, width=(int)640, height=(int)640;" ! tiovxdlpreproc out-pool-size=4 scale-0=0.00392200006172061 scale-1=0.00392200006172061 scale-2=0.00392200006172061 ! capsfilter caps="application/x-tensor-tiovx;" ! appsink max-buffers=2 drop=True name=pre_0 ==========[OUTPUT PIPELINE]========== appsrc do-timestamp=True format=3 block=True name=post_0 ! tiovxdlcolorconvert ! capsfilter caps="video/x-raw, format=(string)NV12, width=(int)1280, height=(int)720;" ! queue ! mosaic_0.sink_0 tiovxmosaic target=1 background=/tmp/background_0 name=mosaic_0 src::pool-size=4 sink_0::startx="<320>" sink_0::starty="<150>" sink_0::widths="<1280>" sink_0::heights="<720>" ! capsfilter caps="video/x-raw, format=(string)NV12, width=(int)1920, height=(int)1080;" ! queue ! tiperfoverlay title=Object Detection ! kmssink sync=False max-lateness=5000000 qos=True processing-deadline=15000000 driver-name=tidss connector-id=40 plane-id=31 force-modesetting=True +--------------------------------------------------------------------------+ | Object Detection | +--------------------------------------------------------------------------+ +--------------------------------------------------------------------------+ | Input Src: /dev/video-usb-cam0 | | Model Name: yolov8_s_syncbn_fast_8xb16-100e_coco | | Model Type: detection | +--------------------------------------------------------------------------+ +--------------------------------------------------------------------------+[ 159.075818] kauditd_printk_skb: 1 callbacks suppressed [ 159.075837] audit: type=1701 audit(1651172439.240:15): auid=4294967295 uid=0 gid=0 ses=4294967295 pid=1468 comm="app_edgeai.py" exe="/usr/bin/python3.10" sig=11 res=1 [ 159.153624] audit: type=1334 audit(1651172439.316:16): prog-id=13 op=LOAD [ 159.160519] audit: type=1334 audit(1651172439.324:17): prog-id=14 op=LOAD [ 177.902456] audit: type=1334 audit(1651172458.068:18): prog-id=14 op=UNLOAD [ 177.910230] audit: type=1334 audit(1651172458.068:19): prog-id=13 op=UNLOAD Segmentation fault (core dumped) root@am62axx-evm:/
---
And here is directory information.
----
root@am62axx-evm:/opt/model_zoo/yolov8_s_syncbn_fast_8xb16-100e_coco# ls arfifacts config.yaml dataset.yaml imagedet-custom_cat_onnxrt_DGX_yolov8_s_syncbn_fast_8xb16-100e_coco_best_coco_bbox_mAP_epoch_93_onnx.tar.gz model param.yaml run.log root@am62axx-evm:/opt/model_zoo/yolov8_s_syncbn_fast_8xb16-100e_coco# cd arfifacts/ root@am62axx-evm:/opt/model_zoo/yolov8_s_syncbn_fast_8xb16-100e_coco/arfifacts# ls allowedNode.txt subgraph_0_tidl_io_1.bin graphvizInfo.txt subgraph_0_tidl_net.bin onnxrtMetaData.txt subgraph_0_tidl_net.bin.layer_info.txt runtimes_visualization.svg subgraph_0_tidl_net.bin.svg subgraph_0_calib_raw_data.bin subgraph_0_tidl_net.bin_netLog.txt root@am62axx-evm:/opt/model_zoo/yolov8_s_syncbn_fast_8xb16-100e_coco/arfifacts#
----
Is there any information how i can avoid this error ?
BR,