在运行04_inference.sh时报错:
下面是log:
2023-08-15 16:46:30,101 file: tool_utils.py func: tool_utils line No: 73 log will be stored in /open_explorer/ddk/samples/ai_toolchain/horizon_model_convert_sample/04_detection/03_yolov5x/mapper/inference.log
2023-08-15 16:46:32,561 file: tool_utils.py func: tool_utils line No: 131 exception in command: main
2023-08-15 16:46:32,562 file: tool_utils.py func: tool_utils line No: 132 Traceback (most recent call last):
File “/usr/local/lib/python3.8/dist-packages/horizon_tc_ui/utils/tool_utils.py”, line 129, in __decorator
func(*args, **kargs)
File “../../det_inference.py”, line 67, in main
inference(sess, image, input_layout, input_offset)
File “../../det_inference.py”, line 36, in inference
postprocess(output, model_hw_shape, origin_image)
File “/open_explorer/ddk/samples/ai_toolchain/horizon_model_convert_sample/04_detection/03_yolov5x/mapper/postprocess.py”, line 57, in postprocess
model_output[0] = model_output[0].reshape([1, 84, 84, 3,
ValueError: cannot reshape array of size 345600 into shape (1,84,84,3,18)
2023-08-15 16:46:32,562 file: tool_utils.py func: tool_utils line No: 133 cannot reshape array of size 345600 into shape (1,84,84,3,18)