ros2 launch dnn_node_example dnn_node_example.launch.py \ dnn_example_config_file:=/home/sunrise/myyolo/yolov5workconfig.json \ dnn_example_image_width:=640 \ dnn_example_image_height:=480 \ bpu_core_id:=0 \ video_device:=/dev/video8 \ usb_image_width:=640 \ usb_image_height:=480 \ usb_pixel_format:=mjpeg \ usb_framerate:=30
以下是报错日志
[example-3] [E][DNN][multi_model_task_delegation.cpp:155][Task](2025-06-04,14:55:55.178.508) for dual-core models, the bpuCoreId must be 0, given: 2 [example-3] [E][DNN][multi_model_task_delegation.cpp:65][Task](2025-06-04,14:55:55.446.960) invalid inferCtrlParam
以下是.json文件(根据官方的yolov5workconfig.json改的)
{ "model_file": "/home/sunrise/myyolo/_640bpu_x3.bin",
"task_num": 4,
"dnn_Parser": "yolov5",
"model_output_count": 3,
"class_num": 10,
"cls_names_list": "/home/sunrise/myyolo/classes.list",
"strides": [8, 16, 32],
"anchors_table": [[[10, 13], [16, 30], [33, 23]], [[30, 61], [62, 45], [59, 119]], [[116, 90], [156, 198], [373, 326]]],
"score_threshold": 0.4,
"nms_threshold": 0.5,
"nms_top_k": 5000,
"output_order": [0,1,2],
"bpu_core_id":0
}
