Git Product home page Git Product logo

yolov5_onnx_dnn's Issues

Android 上使用 opencv 加载 onnx 模型,总是返回 -1 ,无法检测任何物体

我尝试了 opencv 4.5.3 4.6.0 4.7.0 版本都不行。

我使用 yolov3 yolov4 weight 可以正常识别物体。

然后想要使用 yolov5 模型来测试,首先使用官方的转换脚本把官方的 release 里的 pt 转成 onnx,使用 opencv 加载出错。原因是 pytroch 兼容性问题,我修复后成功转换出 onnx 给 opencv,也没有加载错误了。理论上这一步 模型加载是没问题了,但是 forward 后, outputs 里面一直是 -1,没有检查到任何东西。尝试下载你的模型也不行。真是奇怪,v3 v4 都正常的。 我是 cv 新手,目前在探索学习阶段。

dnnNet.forward(outputs, outputLayers);

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.