专栏算法工具链yolov5模型修改节点输出后报错

yolov5模型修改节点输出后报错

已解决
1234asfa2023-06-08
54
4

用户您好,请详细描述您所遇到的问题:

  1. 系统软件版本:ubuntu20.04

  2. 问题涉及的技术领域:其他

  3. 问题描述: 修改节点输出后运行报错

  4. 复现概率:

  5. 提供必要的问题日志:

  6. 软件上是否有做自定义修改:

算法工具链
评论3
0/1000
  • 1234asfa
    Lv.1

    这一步之后报错

    2023-06-08
    0
    1
    • Horizon_guosheng回复1234asfa:

      你好,使用的repo是?模型也可以发出来,我们快速看一下

      2023-06-08
      0
  • 1234asfa
    Lv.1
    2023-06-07 19:24:52,557 file: tool_utils.py func: tool_utils line No: 72 log will be stored in /usr/local/yolov5s_v2.0/04_detection/03_yolov5s/mapper/hb_mapper_makertbin.log
    2023-06-07 19:24:52,557 file: hb_mapper.py func: hb_mapper line No: 107 Start hb_mapper....
    2023-06-07 19:24:52,558 file: hb_mapper.py func: hb_mapper line No: 108 hbdk version 3.41.3
    2023-06-07 19:24:52,558 file: hb_mapper.py func: hb_mapper line No: 109 horizon_nn version 0.15.3
    2023-06-07 19:24:52,558 file: hb_mapper.py func: hb_mapper line No: 110 hb_mapper version 1.13.1
    2023-06-07 19:24:52,558 file: hb_mapper_makertbin.py func: hb_mapper_makertbin line No: 479 Start Model Convert....
    2023-06-07 19:24:52,569 file: mapper_conf_parser.py func: mapper_conf_parser line No: 99 validating model_parameters...
    2023-06-07 19:24:52,569 file: mapper_conf_parser.py func: mapper_conf_parser line No: 1063 Using abs path /usr/local/yolov5s_v2.0/04_detection/03_yolov5s/mapper/best001.onnx
    2023-06-07 19:24:52,569 file: mapper_conf_parser.py func: mapper_conf_parser line No: 249 Using onnx model file: /usr/local/yolov5s_v2.0/04_detection/03_yolov5s/mapper/best001.onnx
    2023-06-07 19:24:52,724 file: helper.py func: helper line No: 133 Model input names: ['data']
    2023-06-07 19:24:52,724 file: mapper_conf_parser.py func: mapper_conf_parser line No: 254 Model has 1 inputs according to model file
    2023-06-07 19:24:52,724 file: mapper_conf_parser.py func: mapper_conf_parser line No: 1063 Using abs path /usr/local/yolov5s_v2.0/04_detection/03_yolov5s/mapper/model_output
    2023-06-07 19:24:52,724 file: mapper_conf_parser.py func: mapper_conf_parser line No: 112 validating model_parameters finished
    2023-06-07 19:24:52,725 file: mapper_conf_parser.py func: mapper_conf_parser line No: 116 validating input_parameters...
    2023-06-07 19:24:52,725 file: mapper_conf_parser.py func: mapper_conf_parser line No: 351 Model name not given in yaml_file, using model name from model file: ['data']
    2023-06-07 19:24:52,725 file: mapper_conf_parser.py func: mapper_conf_parser line No: 394 Model input shape not given in yaml_file, using shape from model file: [[1, 3, 704, 704]]
    2023-06-07 19:24:52,725 file: mapper_conf_parser.py func: mapper_conf_parser line No: 487 nv12 input type rt received.
    2023-06-07 19:24:52,725 file: mapper_conf_parser.py func: mapper_conf_parser line No: 127 validating input_parameters finished
    2023-06-07 19:24:52,725 file: mapper_conf_parser.py func: mapper_conf_parser line No: 131 validating calibration_parameters...
    2023-06-07 19:24:52,725 file: mapper_conf_parser.py func: mapper_conf_parser line No: 1063 Using abs path /usr/local/yolov5s_v2.0/04_detection/03_yolov5s/mapper/calibration_data_rgb_f32
    2023-06-07 19:24:52,725 file: mapper_conf_parser.py func: mapper_conf_parser line No: 820 The calibration dir name suffix is the same as the value float32 of the cal_data_type parameter and will be read with the value of cal_data_type.
    2023-06-07 19:24:52,726 file: mapper_conf_parser.py func: mapper_conf_parser line No: 147 validating calibration_parameters finished
    2023-06-07 19:24:52,726 file: mapper_conf_parser.py func: mapper_conf_parser line No: 151 validating custom_op...
    2023-06-07 19:24:52,726 file: mapper_conf_parser.py func: mapper_conf_parser line No: 880 custom_op does not exist, skipped
    2023-06-07 19:24:52,726 file: mapper_conf_parser.py func: mapper_conf_parser line No: 157 validating custom_op finished
    2023-06-07 19:24:52,726 file: mapper_conf_parser.py func: mapper_conf_parser line No: 160 validating compiler_parameters...
    2023-06-07 19:24:52,726 file: mapper_conf_parser.py func: mapper_conf_parser line No: 966 Input node data's input_source not set, it will be set to pyramid by default
    2023-06-07 19:24:52,726 file: mapper_conf_parser.py func: mapper_conf_parser line No: 173 validating compiler_parameters finished
    2023-06-07 19:24:52,726 file: mapper_conf_parser.py func: mapper_conf_parser line No: 177 validating deprecated parameters...
    2023-06-07 19:24:52,726 file: mapper_conf_parser.py func: mapper_conf_parser line No: 183 validating deprecated parameters finished
    2023-06-07 19:24:52,727 file: hb_mapper_makertbin.py func: hb_mapper_makertbin line No: 54 Dump config:
    2023-06-07 19:24:52,727 file: hb_mapper_makertbin.py func: hb_mapper_makertbin line No: 55 calibration_parameters:
    cal_data_dir: ./calibration_data_rgb_f32
    cal_data_type: float32
    calibration_type: default
    compiler_parameters:
    compile_mode: latency
    debug: false
    optimize_level: O3
    input_parameters:
    input_layout_train: NCHW
    input_name: ''
    input_shape: ''
    input_type_rt: nv12
    input_type_train: rgb
    mean_value: ''
    norm_type: data_scale
    scale_value: '0.003921568627451'
    model_parameters:
    layer_out_dump: false
    march: bernoulli2
    onnx_model: ./best001.onnx
    output_model_file_prefix: yolov5s_672x672_nv12
    working_dir: model_output

    2023-06-07 19:24:52,729 file: hb_mapper_makertbin.py func: hb_mapper_mak
    2023-06-08
    0
    0
  • 颜值即正义
    Lv.2

    在另外一个帖子中支持:https://developer.horizon.ai/forumDetail/163807121354434743

    2023-06-08
    0
    0