Navigation

    全志在线开发者论坛

    • Register
    • Login
    • Search
    • Categories
    • Tags
    • 在线文档
    • 社区主页

    NPU模块vpm_run例程运行时sample.txt读取错误

    V Series
    2
    2
    714
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • D
      ddrddr LV 5 last edited by

      编写sample.txt文件:

      [network]
      ./network_binary.nb
      [input]
      ./iter_0_images_262_out0_1_3_640_640.tensor
      

      将模型、输入文件、vpm_run例程传入板端

      运行vpm_run例程:

      ./vpm_run -s sample.txt
      

      报错LOG如下:

      unsupported input file type=tenso.
      error input file type
      segmentation fault
      
      1 Reply Last reply Reply Quote Share 0
      • Y
        giao LV 6 last edited by

        读取sample.txt失败,检查一下vpm_run.c源码,查看获取文件名的换行符类型

        windows操作系统的换行为:CR/LF或\r\n,而Linux的换行符为LF或\n

        1 Reply Last reply Reply Quote Share 0
        • 1 / 1
        • First post
          Last post

        Copyright © 2024 深圳全志在线有限公司 粤ICP备2021084185号 粤公网安备44030502007680号

        行为准则 | 用户协议 | 隐私权政策