Navigation

    全志在线开发者论坛

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

    各位大佬,安装 onnxsim 工具,简化yolo v5模型时报错。

    V Series
    3
    6
    2458
    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.
    • C
      cavert121 LV 5 last edited by

      Screenshot from 2023-04-18 17-09-26.png

      显示没有onnxsim模块,这个模块应该怎么安装才正确?

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

        @cavert121 onnxsim更新后操作方法有所变动,可以用python代码调用

        import onnxsim
          
        model = onnx.load(filepath)
        model_simp, check = onnxsim.simplify(param)
         
        onnx.save(model_simp, filepath)
        

        其中 onnxsim.simplify(param) 的param请参考onnxsim文档

        C L 3 Replies Last reply Reply Quote Share 0
        • C
          cavert121 LV 5 @WhycanService last edited by

          @whycanservice 谢谢大佬!终于有方向了!

          1 Reply Last reply Reply Quote Share 0
          • C
            cavert121 LV 5 @WhycanService last edited by

            @whycanservice 大佬有没有安装onnx和onnxsim的详细安装步骤,不管怎么安装,验正时一直显示找不到模块

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

              @cavert121 看onnx的文档

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

                @whycanservice yolov5模型预处理,执行python -m onnxsim yolov5s.onnx yolov5s-sim.onnx --input-shape 1,3,640,640这一步时报错如下:
                47bac32d-4d0a-48eb-b265-de007595970d-image.png
                请问如何解决?

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

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

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