python inference_mnpu.py -i file2 -f 3.mp4 -y 8
W rknn-toolkit-lite2 version: 2.3.0
I RKNN: [16:52:55.251] RKNN Runtime Information, librknnrt version: 2.3.0 (c949ad889d@2024-11-07T11:35:33)
I RKNN: [16:52:55.251] RKNN Driver Information, version: 0.9.2
I RKNN: [16:52:55.251] RKNN Model Information, version: 6, toolkit version: 1.6.0+81f21f4d(compiler version: 1.6.0 (585b3edcf@2023-12-11T07:42:56)), target: RKNPU v2, target platform: rk3588, framework name: ONNX, framework layout: NCHW, model inference type: static_shape
W RKNN: [16:52:55.263] query RKNN_QUERY_INPUT_DYNAMIC_RANGE error, rknn model is static shape type, please export rknn with dynamic_shapes
W Query dynamic range failed. Ret code: RKNN_ERR_MODEL_INVALID. (If it is a static shape RKNN model, please ignore the above warning message.)
models/yolov8n.rknn done
W rknn-toolkit-lite2 version: 2.3.0
I RKNN: [16:52:55.331] RKNN Runtime Information, librknnrt version: 2.3.0 (c949ad889d@2024-11-07T11:35:33)
I RKNN: [16:52:55.331] RKNN Driver Information, version: 0.9.2
I RKNN: [16:52:55.332] RKNN Model Information, version: 6, toolkit version: 1.6.0+81f21f4d(compiler version: 1.6.0 (585b3edcf@2023-12-11T07:42:56)), target: RKNPU v2, target platform: rk3588, framework name: ONNX, framework layout: NCHW, model inference type: static_shape
W RKNN: [16:52:55.343] query RKNN_QUERY_INPUT_DYNAMIC_RANGE error, rknn model is static shape type, please export rknn with dynamic_shapes
W Query dynamic range failed. Ret code: RKNN_ERR_MODEL_INVALID. (If it is a static shape RKNN model, please ignore the above warning message.)
models/yolov8n.rknn done
W rknn-toolkit-lite2 version: 2.3.0
I RKNN: [16:52:55.409] RKNN Runtime Information, librknnrt version: 2.3.0 (c949ad889d@2024-11-07T11:35:33)
I RKNN: [16:52:55.409] RKNN Driver Information, version: 0.9.2
I RKNN: [16:52:55.409] RKNN Model Information, version: 6, toolkit version: 1.6.0+81f21f4d(compiler version: 1.6.0 (585b3edcf@2023-12-11T07:42:56)), target: RKNPU v2, target platform: rk3588, framework name: ONNX, framework layout: NCHW, model inference type: static_shape
W RKNN: [16:52:55.420] query RKNN_QUERY_INPUT_DYNAMIC_RANGE error, rknn model is static shape type, please export rknn with dynamic_shapes
W Query dynamic range failed. Ret code: RKNN_ERR_MODEL_INVALID. (If it is a static shape RKNN model, please ignore the above warning message.)
models/yolov8n.rknn done
E Catch exception when setting inputs.
E Traceback (most recent call last):
File “/home/vicharak/.local/lib/python3.10/site-packages/rknnlite/api/rknn_lite.py”, line 212, in inference
self.rknn_runtime.set_inputs(inputs, data_type, data_format, inputs_pass_through=inputs_pass_through)
File “rknnlite/api/rknn_runtime.py”, line 1082, in rknnlite.api.rknn_runtime.RKNNRuntime.set_inputs
Exception: The input[0] need 4dims input, but 3dims input buffer feed.
E Catch exception when setting inputs.
E Traceback (most recent call last):
File “/home/vicharak/.local/lib/python3.10/site-packages/rknnlite/api/rknn_lite.py”, line 212, in inference
self.rknn_runtime.set_inputs(inputs, data_type, data_format, inputs_pass_through=inputs_pass_through)
File “rknnlite/api/rknn_runtime.py”, line 1082, in rknnlite.api.rknn_runtime.RKNNRuntime.set_inputs
Exception: The input[0] need 4dims input, but 3dims input buffer feed.
E Catch exception when setting inputs.
E Traceback (most recent call last):
File “/home/vicharak/.local/lib/python3.10/site-packages/rknnlite/api/rknn_lite.py”, line 212, in inference
self.rknn_runtime.set_inputs(inputs, data_type, data_format, inputs_pass_through=inputs_pass_through)
File “rknnlite/api/rknn_runtime.py”, line 1082, in rknnlite.api.rknn_runtime.RKNNRuntime.set_inputs
Exception: The input[0] need 4dims input, but 3dims input buffer feed.
E Catch exception when setting inputs.
E Traceback (most recent call last):
File “/home/vicharak/.local/lib/python3.10/site-packages/rknnlite/api/rknn_lite.py”, line 212, in inference
self.rknn_runtime.set_inputs(inputs, data_type, data_format, inputs_pass_through=inputs_pass_through)
File “rknnlite/api/rknn_runtime.py”, line 1082, in rknnlite.api.rknn_runtime.RKNNRuntime.set_inputs
Exception: The input[0] need 4dims input, but 3dims input buffer feed.
E Catch exception when setting inputs.
E Traceback (most recent call last):
File “/home/vicharak/.local/lib/python3.10/site-packages/rknnlite/api/rknn_lite.py”, line 212, in inference
self.rknn_runtime.set_inputs(inputs, data_type, data_format, inputs_pass_through=inputs_pass_through)
File “rknnlite/api/rknn_runtime.py”, line 1082, in rknnlite.api.rknn_runtime.RKNNRuntime.set_inputs
Exception: The input[0] need 4dims input, but 3dims input buffer feed.
Traceback (most recent call last):
File “/home/vicharak/Downloads/YOLOv8-RK3588-Python-main/inference_mnpu.py”, line 243, in
frame, flag = pool.get()
File “/home/vicharak/Downloads/YOLOv8-RK3588-Python-main/lib/rknnpool.py”, line 54, in get
return fut.result(), True
File “/usr/lib/python3.10/concurrent/futures/_base.py”, line 451, in result
return self.__get_result()
File “/usr/lib/python3.10/concurrent/futures/_base.py”, line 403, in __get_result
raise self._exception
File “/usr/lib/python3.10/concurrent/futures/thread.py”, line 58, in run
result = self.fn(*self.args, **self.kwargs)
File “/home/vicharak/Downloads/YOLOv8-RK3588-Python-main/inference_mnpu.py”, line 162, in YoloFunc
boxes, classes, scores = post_process(outputs)
File “/home/vicharak/Downloads/YOLOv8-RK3588-Python-main/lib/postprocess.py”, line 237, in post_process
pair_per_branch = len(input_data)//defualt_branch
TypeError: object of type ‘NoneType’ has no len()