系统版本分析
从 sudo rdkos_info 输出看到:
| 组件 | 当前版本 | 状态 |
|---|---|---|
| HBRT 运行时 | 3.15.54.0 | |
| 模型编译版本 | 3.15.55.0 (1.24.3) | |
| 包更新时间 | 20251208 |
关键发现:虽然包已升级,但 HBRT 运行时版本仍是 3.15.54.0,与你的模型编译版本 3.15.55.0 不匹配。
版本警告 ≠ 一定会崩溃
从日志看:
- 官方 fcos 模型(编译版本 1.23.5)
正常运行 30 FPS - 你的 obstacle.bin(编译版本 1.24.3)
有版本警告,但模型能加载
版本警告不一定会导致崩溃,需要实际测试推理。
下一步:测试你的模型推理
步骤 1:用你的配置文件启动
# 使用你的 yolo11workconfig.json 启动
ros2 launch origincar_bringup usb_websocket_display.launch.py \
dnn_example_config_file:=/home/sunrise/yiqiang_ws/src/origincar/models/yolo11workconfig.json
观察是否还有 exit code -11 错误
步骤 2:如果还是崩溃,检查配置文件
# 查看配置文件内容
cat /home/sunrise/yiqiang_ws/src/origincar/models/yolo11workconfig.json
确保配置正确:
{
"model_file": "/home/sunrise/yiqiang_ws/src/origincar/models/obstacle.bin",
"dnn_Parser": "yolov8",
"model_output_count": 6,
"reg_max": 16,
"class_num": 1,
"cls_names_list": "/home/sunrise/yiqiang_ws/src/origincar/models/obstacles.list",
"strides": [8, 16, 32],
"score_threshold": 0.25,
"nms_threshold": 0.7,
"nms_top_k": 300
}
步骤 3:如果还是不行,重新量化模型
版本不兼容可能是根本原因,需要用板子当前工具链重新量化:
# 1. 确认 obstacles.list 文件存在
cat /home/sunrise/yiqiang_ws/src/origincar/models/obstacles.list
# 2. 如果没有,创建它(单类别)
echo "obstacle" > /home/sunrise/yiqiang_ws/src/origincar/models/obstacles.list
重新量化教程:【保姆级教程】YOLO 自定义模型在 RDK X5 上的完整部署
快速诊断表
| 检查项 | 状态 | 说明 |
|---|---|---|
| 模型输出数量 | 格式正确 | |
| 模型加载 | 能加载 | |
| 运行时版本 | 与模型编译版本不匹配 | |
| 官方模型推理 | TROS 环境正常 | |
| 你的模型推理 | 请执行步骤 1 |
请先执行
# 测试你的模型推理
ros2 launch origincar_bringup usb_websocket_display.launch.py \
dnn_example_config_file:=/home/sunrise/yiqiang_ws/src/origincar/models/yolo11workconfig.json
把完整日志贴出来,特别是:
- 是否有
exit code -11 - 是否有
Websocket did not receive AI data错误 - 是否有推理 FPS 输出
这样才能确定是版本问题还是配置问题!