专栏算法工具链03_classification/01_mobilenet上板运行报错

03_classification/01_mobilenet上板运行报错

已解决
hope2021-08-26
122
3

horizon_x3_tc_1.1.19e/samples/03_classification/01_mobilenet上板运行报错,打印信息如下:

root@x3sdbx3-samsung2G-3200:/userdata/samples/mobilenetv1_224x224_nv12# sh dev_board_01_infer.sh

./release/bin/example --model_file=./mobilenetv1_224x224_nv12.bin --model_name=mobilenetv1_224x224_nv12 --input_type=image --input_config_string={"image_list_file":"image_list.txt","width":224,"height":224,"data_type":2} --output_type=image --output_config_string={"image_output_dir":"image_out"} --core_num=1 --post_process_config_string={"score_threshold":0} --enable_post_process=true

[1970-01-01 08:13:13 INFO 547961933840 hr_api.cpp:466] HorizonRT version = 1.1.43

[1970-01-01 08:13:13 INFO 547961933840 hr_api.cpp:471] hbrt version = 3.9.9

[HBRT] set log level as 0. version = 3.9.9

[BPU_PLAT]Makesure BPU Core Opened!!!)

[BPU_PLAT]BPU Platform Version(1.2.1)!

[ 793.874074] module id: 4, event id: 1 register err[had registed]

[BPU_PLAT]Makesure BPU Core(1) Opened!!!

[ 793.878785] module id: 4, event id: 2 register err[had registed]

[HorizonRT] The model builder version = 1.3.28

[HorizonRT] Hybrid model hbm_hbrt_version = 3.13.4

I0101 08:13:13.910814 1587 simple_example.cc:74] Model info:Input num:1, input[0]: name:data, data type:BPU_TYPE_IMG_YUV_NV12, shape:(1,3,224,224,), layout:BPU_LAYOUT_NCHW, aligned shape:(1,4,224,224,), layout:BPU_LAYOUT_NCHW, Output num:1, output[0]: name:prob, op:1, data type:BPU_TYPE_TENSOR_F32, shape:(1,1000,1,1,), layout:BPU_LAYOUT_NCHW, aligned shape:(1,1000,1,1,), layout:BPU_LAYOUT_NCHW

E0101 08:13:13.911426 1587 post_process.cc:85] unspport model type:mobilenetv1_224x224_nv12

Segmentation fault (core dumped)

root@x3sdbx3-samsung2G-3200:/userdata/samples/mobilenetv1_224x224_nv12#

算法工具链
评论1
0/1000
  • admin
    Lv.1

    地平线入门教程(四)docke环境使用与demo运行示例

    https://www.bilibili.com/video/BV1HA411c79s/

    21min开始有该处报错的讲解

    2021-08-26
    0
    2
    • hope回复admin:

      Horizon Robotic System Ver:X3SDB_0309_version release x3sdbx3-samsung2G-3200 /dev/ttyS0

      x3sdbx3-samsung2G-3200 login: root

      root@x3sdbx3-samsung2G-3200:~# ls

      root@x3sdbx3-samsung2G-3200:~# cd /userdata/

      root@x3sdbx3-samsung2G-3200:/userdata# ls

      F37_lib cache deploy log lost+found output sample samples samples_r warehouse.db ws_test

      root@x3sdbx3-samsung2G-3200:/userdata# cd samples

      root@x3sdbx3-samsung2G-3200:/userdata/samples# ls

      lenet_data lenet_gray mobilenetv1_224x224_nv12 test_data

      root@x3sdbx3-samsung2G-3200:/userdata/samples# cd mobilenetv1_224x224_nv12/

      root@x3sdbx3-samsung2G-3200:/userdata/samples/mobilenetv1_224x224_nv12# ls

      dev_board_01_infer.sh dev_board_03_perf.sh env.conf image_out release

      dev_board_02_eval.sh dev_board_kill.sh image_list.txt mobilenetv1_224x224_nv12.bin

      root@x3sdbx3-samsung2G-3200:/userdata/samples/mobilenetv1_224x224_nv12#

      我的路径下是有模型的。

      2021-08-27
      0
    • Horizon_guosheng回复hope:

      报错显示模型类别不对,可以把您的原模型与量化模型发给我们测试下,微信即可

      2021-08-29
      0