alexw914 / RK_VideoPipe

Apache License 2.0
67 stars 10 forks source link

注释掉vp_utils::vp_analysis_board 以及 board0.display(),报RKNN错误 #8

Open nj1tony opened 1 month ago

nj1tony commented 1 month ago

报以下错误: [2024-08-22 08:52:39] [info] [thread 290920] Loading model.. [2024-08-22 08:52:39] [info] [thread 290920] Input Tensors are as follows... [2024-08-22 08:52:39] [info] [thread 290920] index=0, name=images, n_dims=4, dims=[1, 384, 640, 3], n_elems=737280, size=737280, w_stride=640, size_with_stride=737280, fmt=NHWC, type=INT8, qnt_type=AFFINE, zp=-128, scale=0.003921569 [2024-08-22 08:52:39] [info] [thread 290920] Output Tensors are as follows... [2024-08-22 08:52:39] [info] [thread 290920] index=0, name=output, n_dims=4, dims=[1, 18, 48, 80], n_elems=69120, size=69120, w_stride=0, size_with_stride=122880, fmt=NCHW, type=INT8, qnt_type=AFFINE, zp=-128, scale=0.003921569 [2024-08-22 08:52:39] [info] [thread 290920] index=1, name=343, n_dims=4, dims=[1, 18, 24, 40], n_elems=17280, size=17280, w_stride=0, size_with_stride=36864, fmt=NCHW, type=INT8, qnt_type=AFFINE, zp=-128, scale=0.003921569 [2024-08-22 08:52:39] [info] [thread 290920] index=2, name=345, n_dims=4, dims=[1, 18, 12, 20], n_elems=4320, size=4320, w_stride=0, size_with_stride=12288, fmt=NCHW, type=INT8, qnt_type=AFFINE, zp=-128, scale=0.003921569 [2024-08-22 08:52:39] [info] [thread 290920] Model is NHWC input format... [2024-08-22 08:52:39] [info] [thread 290920] Post processor type is YOLOv5, labels: [person], conf thresh: 0.25, nms thresh: 0.45. [2024-08-22 08:52:39] [Warn] [rk_yolo_1] cv::dnn::readNet load network failed! [2024-08-22 08:52:39] [info] [thread 290920] Loading model.. [2024-08-22 08:52:39] [info] [thread 290920] Input Tensors are as follows... [2024-08-22 08:52:39] [info] [thread 290920] index=0, name=images, n_dims=4, dims=[1, 384, 640, 3], n_elems=737280, size=737280, w_stride=640, size_with_stride=737280, fmt=NHWC, type=INT8, qnt_type=AFFINE, zp=-128, scale=0.003921569 [2024-08-22 08:52:39] [info] [thread 290920] Output Tensors are as follows... [2024-08-22 08:52:39] [info] [thread 290920] index=0, name=output, n_dims=4, dims=[1, 18, 48, 80], n_elems=69120, size=69120, w_stride=0, size_with_stride=122880, fmt=NCHW, type=INT8, qnt_type=AFFINE, zp=-128, scale=0.003921569 [2024-08-22 08:52:39] [info] [thread 290920] index=1, name=343, n_dims=4, dims=[1, 18, 24, 40], n_elems=17280, size=17280, w_stride=0, size_with_stride=36864, fmt=NCHW, type=INT8, qnt_type=AFFINE, zp=-128, scale=0.003921569 [2024-08-22 08:52:39] [info] [thread 290920] index=2, name=345, n_dims=4, dims=[1, 18, 12, 20], n_elems=4320, size=4320, w_stride=0, size_with_stride=12288, fmt=NCHW, type=INT8, qnt_type=AFFINE, zp=-128, scale=0.003921569 [2024-08-22 08:52:39] [info] [thread 290920] Model is NHWC input format... [2024-08-22 08:52:39] [info] [thread 290920] Post processor type is YOLOv5, labels: [person], conf thresh: 0.25, nms thresh: 0.45. E RKNN: [08:52:39.325] invalid device fd! E RKNN: [08:52:39.325] invalid device fd! E RKNN: [08:52:39.325] failed to malloc npu memory, size: 737280, flags: 0x2 E RKNN: [08:52:39.326] invalid device fd! Segmentation fault (core dumped)

请问这个问题您遇到过吗?怎么解决?

nj1tony commented 1 month ago

将这两条语句打开就没问题。

alexw914 commented 1 month ago

发自我的 iPhone在 2024年8月22日,08:56,nj1tony @.***> 写道: 去掉这两句要把上面的两行取消注释,保证主线程不退出。

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you are subscribed to this thread.Message ID: @.***>