专栏算法工具链X3 开发板上使用TROS部署自量化 YOLOv5 s模型, 遇到 BPU Core ID 错误

X3 开发板上使用TROS部署自量化 YOLOv5 s模型, 遇到 BPU Core ID 错误

已解决
默认836162025-12-18
37
1
 .bin是自己量化的双核的。 在板端部署时

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

}

算法工具链
技术深度解析
评论1
0/1000
  • YCJ
    Lv.4

    您好!从您的报错来看, bpu_core_id 需要的是0,接受到的是2。建议您检查一下代码调用,在推理之前打印输出一下 bpu_core_id 的值,看看是否是您传入的0。

    2025-12-29
    0
    0