I followed the steps to obtain yolov5s.onnx and copied it to rmf_human_detector/assets/, also configure the launch file to point to it. However, it showed this error, and then the human_detector_node quit.
[human_detector_node-1] [ERROR:0@0.337] global /home/samuel/Downloads/opencv/modules/dnn/src/onnx/onnx_importer.cpp (906) handleNode DNN/ONNX: ERROR during processing node with 2 inputs and 3 outputs: [Split]:(/model.24/Split_output_0) from domain='ai.onnx'
[human_detector_node-1] terminate called after throwing an instance of 'cv::Exception'
[human_detector_node-1] what(): OpenCV(4.5.5) /home/samuel/Downloads/opencv/modules/dnn/src/onnx/onnx_importer.cpp:928: error: (-2:Unspecified error) in function 'handleNode'
[human_detector_node-1] > Node [Split@ai.onnx]:(/model.24/Split_output_0) parse error: OpenCV(4.5.5) /home/samuel/Downloads/opencv/modules/dnn/src/layers/slice_layer.cpp:217: error: (-215:Assertion failed) splits > 0 && inpShape[axis_rw] % splits == 0 in function 'getMemoryShapes'
[human_detector_node-1] >
[ERROR] [human_detector_node-1]: process has died [pid 35164, exit code -6, cmd '/home/samuel/colcon_ws/install/rmf_human_detector/lib/rmf_human_detector/human_detector_node --ros-args -r __node:=human_detector --params-file /tmp/launch_params_5s8h1ab3 --params-file /tmp/launch_params_bz_97y6x --params-file /tmp/launch_params_fwd2xavf --params-file /tmp/launch_params_gotthy_6 --params-file /tmp/launch_params_px9vr6zy --params-file /tmp/launch_params_zzvnmwes']
What's the issue? And how shall i resolve this issue?
Hi
I followed the steps to obtain
yolov5s.onnx
and copied it tormf_human_detector/assets/
, also configure the launch file to point to it. However, it showed this error, and then the human_detector_node quit.What's the issue? And how shall i resolve this issue?
Best, Samuel