模型是给的,链接如下:百度网盘-链接不存在
报错如下:
root@ubuntu:/home/sunrise/Desktop/mono2d_trash_detection-develop# ros2 run dnn_node_example example --ros-args -p feed_type:=0 -p image:=config/trashDet0028.jpg -p image_type:=0 -p dump_render_img:=1 -p config_file:=config/ppyoloworkconfig.json
[WARN] [1680576680.326825658] [example]: This is dnn node example!
[WARN] [1680576680.388451554] [example]: Parameter:
feed_type(0:local, 1:sub): 0
image: config/trashDet0028.jpg
image_type: 0
dump_render_img: 1
is_sync_mode_: 0
is_shared_mem_sub: 0
model_file_name: config/ppyolo_trashdet_416x416_nv12.bin
model_name: ppyolo_trashdet_416x416_nv12
[INFO] [1680576680.391330540] [dnn]: Node init.
[INFO] [1680576680.391439230] [example]: Set node para.
[INFO] [1680576680.391502845] [dnn]: Model init.
[C][5719][04-04][10:51:20:396][configuration.cpp:49][EasyDNN]EasyDNN version: 0.4.11
[BPU_PLAT]BPU Platform Version(1.3.3)!
[HBRT] set log level as 0. version = 3.14.5
[DNN] Runtime version = 1.9.7_(3.14.5 HBRT)
[INFO] [1680576680.630029901] [dnn]: The model input 0 width is 416 and height is 416
[INFO] [1680576680.630379385] [example]: Set output parser.
[INFO] [1680576680.630527236] [dnn]: Task init.
[INFO] [1680576680.632426175] [dnn]: Set task_num [2]
[INFO] [1680576680.632514410] [example]: The model input width is 416 and height is 416
[WARN] [1680576680.632562527] [example]: Create ai msg publisher with topic_name: hobot_dnn_detection
[INFO] [1680576680.632606145] [example]: Dnn node feed with local image: config/trashDet0028.jpg
[INFO] [1680576680.653793046] [example]: task_num: 2
[INFO] [1680576680.681419600] [Yolo3Darknet_detection_parser]: dep out size: 2 2
[ERROR] [1680576680.681550120] [Yolo3Darknet_detection_parser]: depend out tensor size invalid cast
[ERROR] [1680576680.681632023] [dnn]: Failed to parse outputs, ret[-6000257]
[E][5746][04-04][10:51:20:681][model_infer_task.cpp:360][EasyDNN]Parse output failed, model:ppyolo_trashdet_416x416_nv12, output branch:1, type:yolov3
[ERROR] [1680576680.681681932] [dnn]: Run infer fail
[INFO] [1680576680.682179225] [example]: Output from image_name: config/trashDet0028.jpg, frame_id: feedback, stamp: 0.0
[INFO] [1680576680.682241882] [PostProcessBase]: outputs size: 0
[ERROR] [1680576680.682287124] [PostProcessBase]: Invalid outputs
[ERROR] [1680576680.682331950] [example]: Invalid pub_data
[ERROR] [1680576680.682376235] [dnn]: Run RunInferTask failed!
[ERROR] [1680576680.682431934] [dnn]: Task id: 1 is not running
[INFO] [1680576687.170898790] [rclcpp]: signal_handler(signal_value=2)
tros和板子系统版本如下:
tros-performance-test/unknown 1.1.6 arm64
tros/unknown 1.1.6 arm64
sunrise@ubuntu:~/Desktop$ cat /etc/version
x3_ubuntu_v1.1.4