Navigation

    全志在线开发者论坛

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

    npu yolo5部署

    V Series
    5
    25
    6614
    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.
    • M
      misay LV 4 last edited by

      This post is deleted!
      WhycanService 1 Reply Last reply Reply Quote Share 0
      • WhycanService
        WhycanService LV 8 @misay last edited by

        @misay

        1. 输入是tensor,需要符合yolov5的input tensor格式
        2. vpm_run是一个npu运行器,输入nb模型与input tensor他会输出npu推理的数据,输出的也是tensor,图像文件需要进行前处理转换成yolov5支持的tensor输入进去,后处理则是解析输出tensor后进行nms输出推理的数据
        M 1 Reply Last reply Reply Quote Share 0
        • M
          misay LV 4 @WhycanService last edited by

          This post is deleted!
          WhycanService L 2 Replies Last reply Reply Quote Share 0
          • WhycanService
            WhycanService LV 8 @misay last edited by

            @misay 可以参考源码里的yolov3的demo

            M 1 Reply Last reply Reply Quote Share 0
            • M
              misay LV 4 @WhycanService last edited by

              @whycanservice 俺看了demo,SDK源码里面那个也没编译的过程展示捏,主要就是想要一个完整的非vpm_run的交叉编译到部署的完整教程😖

              WhycanService 1 Reply Last reply Reply Quote Share 0
              • WhycanService
                WhycanService LV 8 @misay last edited by

                @misay 编译使用的是tina框架的编译,不建议单独写makefile编译(主要是lib头文件引用很麻烦)

                可以仿照yolov3的文件夹复制到改名yolov5,然后menuconfig里勾选就行

                F L 2 Replies Last reply Reply Quote Share 0
                • F
                  fawen LV 5 @WhycanService last edited by

                  @whycanservice 我想问个问题,我在yolov3的demo的vnn_post_process.c文件增加了数据保存的功能,然后保存了数据,c86e802a-5530-450c-be78-20b0bc23ef8e-image.png
                  这样的,输出数据58c859cc-2edb-440b-9624-19392579b7db-image.png
                  我想将上面程序输出的数据文件,放到--NPU 转换部署 YOLO V5 模型--这个的demo的程序中运行是否可行,
                  3d6f345d-b136-4653-a7bf-1c0a4175044f-image.png
                  我这个流程是否正确

                  1 Reply Last reply Reply Quote Share 0
                  • L
                    lingzhi12321 LV 5 @misay last edited by

                    @misay 你的Yolov5部署成功了吗?我在make menuconfig勾选yolov5之后编译,报错,原因是vnn_post_process.c这个文件引用了vsi_nn_pub.h这个头文件却没找到。这是什么文件,确实没有啊
                    d35589ab-1919-423e-8b54-201c13a4f5ac-image.png
                    5dde51cc-8b96-40e1-940c-7e4e00b9897e-image.png

                    M 1 Reply Last reply Reply Quote Share 0
                    • M
                      misay LV 4 @lingzhi12321 last edited by

                      @lingzhi12321 没有,同是病友了属于是,但这个文件的话在你安装的IDE里面有个include找得到

                      M 1 Reply Last reply Reply Quote Share 0
                      • M
                        misay LV 4 @misay last edited by

                        @misay b46aac7f-6301-45ee-b2bd-1b83fb39bcde-image.png

                        L 1 Reply Last reply Reply Quote Share 0
                        • L
                          lingzhi12321 LV 5 @misay last edited by

                          @misay 看到了,谢谢!咱要不要加个微信交流下,我一个人弄,也是小白,太孤单了~

                          M 1 Reply Last reply Reply Quote Share 0
                          • M
                            misay LV 4 @lingzhi12321 last edited by

                            @lingzhi12321 在 npu yolo5部署 中说:

                            @misay 看到了,谢谢!咱要不要加个微信交流下,我一个人弄,也是小白,太孤单了~

                            🐧1103955244

                            F 3 Replies Last reply Reply Quote Share 0
                            • F
                              fawen LV 5 @misay last edited by

                              @misay yolov5_opencv_new.zip

                              1 Reply Last reply Reply Quote Share 0
                              • F
                                fawen LV 5 @misay last edited by

                                @misay opencv_yolov5.zip

                                1 Reply Last reply Reply Quote Share 0
                                • F
                                  fawen LV 5 @misay last edited by

                                  @misay jpeg-9d_install.zip

                                  1 Reply Last reply Reply Quote Share 0
                                  • L
                                    lingzhi12321 LV 5 @WhycanService last edited by

                                    @whycanservice yolov5导出模板代码生成的vnn_pre_process.c文件引用了vsi_nn_pub.h头文件,编译不通过,需要在哪里把该.h文件的路径添加上吗?

                                    L 1 Reply Last reply Reply Quote Share 0
                                    • L
                                      lhw_uestc LV 4 @lingzhi12321 last edited by

                                      @lingzhi12321 这个模型部署成功了嘛?我之前也遇到了这个问题,还有一个问题就是yolov3生成的文件如何部署到板子上,官方没有给一个完整的教程很迷

                                      L 1 Reply Last reply Reply Quote Share 0
                                      • L
                                        lingzhi12321 LV 5 @lhw_uestc last edited by

                                        @lhw_uestc 没有啊,上边有大佬上传了编译好的,但是我运行了下,缺libjpeg库,还没搞定

                                        F 1 Reply Last reply Reply Quote Share 0
                                        • F
                                          fawen LV 5 @lingzhi12321 last edited by

                                          @lingzhi12321 jpeg-9d_install.zip你说的这个库在这里面有的

                                          L 1 Reply Last reply Reply Quote Share 0
                                          • L
                                            lingzhi12321 LV 5 @fawen last edited by

                                            @fawen 我看到了,但是复制到/usr对应目录下还是显示没有这个库,不知道怎么解决了。能提点一下吗?多谢了~

                                            F 1 Reply Last reply Reply Quote Share 0
                                            • F
                                              fawen LV 5 @lingzhi12321 last edited by

                                              @lingzhi12321 在 npu yolo5部署 中说:

                                              @fawen 我看到了,但是复制到/usr对应目录下还是显示没有这个库,不知道怎么解决了。能提点一下吗?多谢了~
                                              我记得是lib目录,然后要把里面libjpeg.so.9.4.0复制过去,改名libjpeg.so

                                              L 2 Replies Last reply Reply Quote Share 0
                                              • L
                                                lingzhi12321 LV 5 @fawen last edited by

                                                @fawen 是libjpeg.so.9.4.0改成libjpeg.so.9。跑通了!好激动!太感谢~~

                                                1 Reply Last reply Reply Quote Share 0
                                                • L
                                                  lingzhi12321 LV 5 @fawen last edited by

                                                  @fawen 大神再问一下,我自己编译yolov5导出的模板代码的时候,有个头文件在其它路径,总编译不过去,您是怎么编译过去的?自己改程序吗?

                                                  F 2 Replies Last reply Reply Quote Share 0
                                                  • F
                                                    fawen LV 5 @lingzhi12321 last edited by

                                                    @lingzhi12321 不用那个我上面有分享源码,用的yolov3的那个和教程里的yolov5后处理改过来的。

                                                    1 Reply Last reply Reply Quote Share 0
                                                    • F
                                                      fawen LV 5 @lingzhi12321 last edited by

                                                      @lingzhi12321 自己弄的话还要交叉编译opencv

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

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

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