我在使用tros时遇到了奇怪的问题
我执行ros2 launch dnn_node_example dnn_node_example.launch.py dnn_example_config_file:=/home/sunrise/v5.json dnn_example_image_width:=480 dnn_example_image_height:=272
碰到了如下报错
[example-3] [ERROR] [1751423868.510330995] [dnn_example_node]: Error! Invalid parser: yolov5 . Only yolov2, yolov3, yolov5, yolov5x, yolov8, yolov10, ssd, fcos efficient_det, classification, unet, yolov8-seg are supported
[example-3] [ERROR] [1751423868.510456953] [dnn_example_node]: Load config fail!
有点奇怪为什么说可以支持yolov5,但是又Invalid parser: yolov5
我的config文件如下
{
“model_file”: “./7.0s.bin”,
“model_name”: “7.0s”,
“dnn_Parser”: “yolov5”,
“model_output_count”: 3,
“class_num”: 1,
“cls_names_list”: “./coco1.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
}