野火电子论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 1025|回复: 1

[求助] rknn_model_zoo,运行同样的程序,为什么会得到不同的结果

[复制链接]
发表于 2025-7-21 20:09:38 | 显示全部楼层 |阅读模式
平台是 RK3576
模型是 自己训练的yolov8_seg模型
配置参数
#define OBJ_CLASS_NUM 3
#define NMS_THRESH 0.6
#define BOX_THRESH 0.6



担心图看不清,上输出
cat@lubancat:~/rknn/rknn_model_zoo/install/rk3576_linux_aarch64/rknn_yolov8_seg_demo$ ./rknn_yolov8_seg_demo ./model/yolov8_seg.rknn ~/20250711133825.jpg
load lable ./model/coco_80_labels_list.txt model input num: 1, output num: 13, height=640, width=640, channel=3
fill dst image (x y w h)=(0 0 640 640) with color=0x72727272
rga_api version 1.10.1_[0]
-- matmul_by_cpu_uint8 use: 10.290000 ms
-- resize_by_opencv_uint8 use: 1.154000 ms
-- crop_mask_uint8 use: 1.359000 ms
-- seg_reverse use: 1.601000 ms
commodity @ (272 170 315 243) 0.655
write_image path: out.png width=640 height=480 channel=3 data=0x55b4e6cb40
cat@lubancat:~/rknn/rknn_model_zoo/install/rk3576_linux_aarch64/rknn_yolov8_seg_demo$ ./rknn_yolov8_seg_demo ./model/yolov8_seg.rknn ~/20250711133825.jpg
load lable ./model/coco_80_labels_list.txt model input num: 1, output num: 13, height=640, width=640, channel=3
fill dst image (x y w h)=(0 0 640 640) with color=0x72727272
rga_api version 1.10.1_[0]
-- matmul_by_cpu_uint8 use: 18.888000 ms
-- resize_by_opencv_uint8 use: 1.983000 ms
-- crop_mask_uint8 use: 2.680000 ms
-- seg_reverse use: 1.619000 ms
commodity1 @ (272 170 315 243) 0.781
commodity @ (272 169 315 242) 0.633
write_image path: out.png width=640 height=480 channel=3 data=0x55be91cb40
cat@lubancat:~/rknn/rknn_model_zoo/install/rk3576_linux_aarch64/rknn_yolov8_seg_demo$ ./rknn_yolov8_seg_demo ./model/yolov8_seg.rknn ~/20250711133825.jpg
load lable ./model/coco_80_labels_list.txt model input num: 1, output num: 13, height=640, width=640, channel=3
fill dst image (x y w h)=(0 0 640 640) with color=0x72727272
rga_api version 1.10.1_[0]
-- matmul_by_cpu_uint8 use: 6.526000 ms
-- resize_by_opencv_uint8 use: 0.878000 ms
-- crop_mask_uint8 use: 1.226000 ms
-- seg_reverse use: 1.447000 ms
commodity @ (272 170 315 243) 0.655
write_image path: out.png width=640 height=480 channel=3 data=0x55881acb40
cat@lubancat:~/rknn/rknn_model_zoo/install/rk3576_linux_aarch64/rknn_yolov8_seg_demo$ ./rknn_yolov8_seg_demo ./model/yolov8_seg.rknn ~/20250711133825.jpg
load lable ./model/coco_80_labels_list.txt model input num: 1, output num: 13, height=640, width=640, channel=3
fill dst image (x y w h)=(0 0 640 640) with color=0x72727272
rga_api version 1.10.1_[0]
-- matmul_by_cpu_uint8 use: 14.192000 ms
-- resize_by_opencv_uint8 use: 1.968000 ms
-- crop_mask_uint8 use: 2.679000 ms
-- seg_reverse use: 1.627000 ms
commodity1 @ (272 170 315 243) 0.778
commodity @ (272 169 315 242) 0.633
write_image path: out.png width=640 height=480 channel=3 data=0x55a021eb40

2.png
回复

使用道具 举报

 楼主| 发表于 2025-7-24 10:18:46 | 显示全部楼层
自定义的模型类的数量与程序的类的模型数量不一致导致的。
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

联系站长|手机版|野火电子官网|野火淘宝店铺|野火电子论坛 ( 粤ICP备14069197号 ) 大学生ARM嵌入式2群

GMT+8, 2025-12-6 06:45 , Processed in 0.088647 second(s), 29 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表