Git Product home page Git Product logo

groundingdino-onnxrun's Introduction

在运行程序时,要注意输入的提示词的格式,类别之间以" . "隔开,并且确保类别名称在词典文件 vocab.txt里是存在的,而且输入提示词里的类别名称是你想要检测的目标类别,否则可能会检测不到目标的。

如果要导出onnx文件,把export_onnx.py放在https://github.com/wenyi5608/GroundingDINO 里运行就可以生成onnx文件的,注意pytorch的版本需要在2.0以上的。这个仓库里的代码跟官方仓库https://github.com/IDEA-Research/GroundingDINO 里的代码的不同之处在于 groundingdino\models\GroundingDINO\groundingdino.py里的forward函数的输入参数不同。

已经导出的onnx文件在百度云盘,下载链接:https://pan.baidu.com/s/1_dDxaSMG2vbw47FJ7FdUUg 提取码:u6lr

groundingdino-onnxrun's People

Contributors

hpc203 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

groundingdino-onnxrun's Issues

GPU版本报错

你好,我跑你的实现,CPU版本没有问题,但是设置为GPU模式时报下面的错误:
2024-03-19 08:12:34.290537612 [E:onnxruntime:, sequential_executor.cc:514 ExecuteKernel] Non-zero status code returned while running Expand node. Name:'/class_embed.0_4/Expand' Status Message: /class_embed.0_4/Expand: left operand cannot broadcast on dim 2 LeftShape: {1,900,8}, RightShape: {1,900,256}
terminate called after throwing an instance of 'Ort::Exception'
what(): Non-zero status code returned while running Expand node. Name:'/class_embed.0_4/Expand' Status Message: /class_embed.0_4/Expand: left operand cannot broadcast on dim 2 LeftShape: {1,900,8}, RightShape: {1,900,256}

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.