qingchenw

qingchenw

1个粉丝

2

问答

0

专栏

0

资料

qingchenw  发布于  2024-07-10 12:58:27
采纳率 50%
2个问答
666

Hi3519DV500运行sample_svp_npu例程推理几帧后超时

运行的是sample_svp_npu例程中的yolov5模型, 从sensor获取图像, 但是在推理几帧后报错超时, 例程输出如下:

~ # ./sample_svp_npu_main 8 5
[level]:Info,[func]:sample_common_svp_check_sys_init [line]:182 [info]:Svp mpi init ok!
[level]:Info,[func]:sample_svp_npu_acl_init [line]:202 [info]:svp acl init success!
[level]:Info,[func]:sample_svp_npu_acl_init [line]:211 [info]:open device 0 success!
[level]:Info,[func]:sample_svp_npu_acl_init [line]:221 [info]:get run mode success!
[level]:Info,[func]:sample_svp_npu_create_desc [line]:274 [info]:create model description success!
[level]:Info,[func]:sample_common_svp_npu_load_model [line]:307 [info]:load mem_size:8180456, id:32!
[level]:Info,[func]:sample_common_svp_npu_load_model [line]:311 [info]:load model ./data/model/yolov5.om success!
linear mode
===IMX347 Slave 4M 30fps 12bit LINE Init OK!===
ISP Dev 0 running !
---------------press Enter key to exit!---------------
[Func]:svp_npu_rt_impl_execute_model_process [Line]:1735 [Info]:Error, stream[0] sync execute timeout
[Func]:svp_npu_model_execute [Line]:1181 [Info]:Error, runtime execute model failed
 [level]:Error,[func]:sample_common_svp_npu_model_execute [line]:1114 [info]:svp_acl_mdl_execute failed, model_id is 32, error code is 507012!

 [level]:Error,[func]:sample_svp_npu_acl_frame_proc [line]:503 [info]:model execute failed!

 [level]:Error,[func]:sample_svp_npu_acl_vdec_to_vo [line]:576 [info]:Error(0xffffffff),sample_svp_npu_acl_frame_proc failed!

logmpp输出:

<3>[    pm] [Func]:pm_set_freq_val_check [Line]:612 [Info]:close the NPU clock!
<3>[svp_npu] [Func]:svp_npu_ts_get_aicpu_task_wait_queue_process [Line]:990 [Info]:wait sync[1] task timeout! timeout:120000

/proc/umap/svp_npu信息:

[SVP_NPU] Version: [HI3519DV500_MPP_V2.0.1.1 B040 Release], Build Time[Jan 25 2024, 09:30:09]


----------------------------------------svp_npu module param------------------------------------------------------------
  npu_save_power  max_task_node_num  max_stream_num   max_event_num   prof_buf_size
               1                 32              64              32            2048

----------------------------------------dev[0] svp_npu resource info----------------------------------------------------
   max_model_num   max_sec_model_num  max_stream_num   max_event_num  max_report_num
              64                  32              64              32             128
  free_model_num  free_sec_model_num free_stream_num  free_event_num free_report_num
              63                  32              63              32             128

----------------------------------------svp_npu process info [pid:1767]-------------------------------------------------
   pid   model_num  stream_num  report_num   event_num   aicpu_num   prof_en  sync_timeout
  1767           1           1           0           0           0         0        120000

----------------------------------------svp_npu process stream info-----------------------------------------------------
  id sq_id  head  tail prior       cb_tid  cb_block cb_block_id  push_cnt sqe_cnt             recv_cnt  status
   0     0    20    18     0            0         0           0         2       0                   20       1

----------------------------------------svp_npu process model info------------------------------------------------------
  id prior  preempt_en up_step  up_top stream_id last_task_time   preempted_en  name
  32     3           1       0       0         0          49568              0  yolov5

  id  in_num out_num     om_size work_buf_size   bandwidth    original_ops        cube_ops
  32       2       2     8180456      10086400    87569104     32897843200     40713584640

  id      input_00_shape      input_01_shape     output_00_shape     output_01_shape
  32         1x3x640x640             1x4x1x1             1x1x1x1            1x1x6x30

----------------------------------------svp_npu irq info----------------------------------------------------------------
  device_id  irq_cnt_last_sec  max_irq_cnt_per_sec  total_irq_cnt
          0                 1                    1             18

  cur_irq_time  max_irq_time  irq_time_last_sec  max_irq_time_per_sec    total_irq_time
            73           153                 89                    89              1227

----------------------------------------svp_npu runtime info------------------------------------------------------------
  device_id  hw_status      last_sq_id  last_task_node_id  prof_flag
          0          1               0                  0          0

  timeout_err_cnt  hw_err_cnt  aicpu_err_cnt    last_hw_task_time hw_utilization   total_running_time
                0           0              0                49568              0                95478

板端环境:

Chip:          HI3516DV500
HardWare_ver:  G16DV5-IPC-38E_V1.0
SDK:           Hi3519DV500_SDK_V2.0.1.1 + Hi3519DV500_REF_V2.0.1.1
SoftWare_ver:  V2.1
App_ver:       V1.1
date:          2024-03-19
我来回答
回答4个
时间排序
认可量排序

Anine

0个粉丝

0

问答

0

专栏

0

资料

Anine 2024-07-29 15:51:16
认可0

完全一样的问题,想问下您解决了吗现在?

qingchenw
qingchenw   回复   Anine  2024-07-30 11:15:17
0

还没解决呢…

0个粉丝

0

问答

0

专栏

0

资料

2024-10-17 13:42:05
认可0

我也遇到一样问题。请问这个问题解决了吗?

qingchenw
qingchenw   回复    2024-10-17 21:39:58
1

最后也没解决, 换方案不用海思了…

或将文件直接拖到这里
悬赏:
E币
网盘
* 网盘链接:
* 提取码:
悬赏:
E币

Markdown 语法

  • 加粗**内容**
  • 斜体*内容*
  • 删除线~~内容~~
  • 引用> 引用内容
  • 代码`代码`
  • 代码块```编程语言↵代码```
  • 链接[链接标题](url)
  • 无序列表- 内容
  • 有序列表1. 内容
  • 缩进内容
  • 图片![alt](url)
+ 添加网盘链接/附件

Markdown 语法

  • 加粗**内容**
  • 斜体*内容*
  • 删除线~~内容~~
  • 引用> 引用内容
  • 代码`代码`
  • 代码块```编程语言↵代码```
  • 链接[链接标题](url)
  • 无序列表- 内容
  • 有序列表1. 内容
  • 缩进内容
  • 图片![alt](url)
举报反馈

举报类型

  • 内容涉黄/赌/毒
  • 内容侵权/抄袭
  • 政治相关
  • 涉嫌广告
  • 侮辱谩骂
  • 其他

详细说明

易百纳技术社区