Giter Club home page Giter Club logo

crowdcounting-p2pnet-opencv's Introduction

crowdcounting-p2pnet-opencv

使用OpenCV部署P2PNet人群检测和计数,包含C++和Python两种版本的实现

人群检测和计数是计算机视觉领域的一个热门研究课题,腾讯优图实验室在ICCV 2021发布了一篇论文 《Rethinking Counting and Localization in Crowds:A Purely Point-Based Framework》。 在运行了他们发布的程序之后,我编写了一套使用OpenCV部署的程序,依然是包含C++和Python两种版本的实现。

onnx模型文件在百度云盘,链接:https://pan.baidu.com/s/1M3CG3QAPnsTTuOKcwVkjDg 提取码:pd8v

crowdcounting-p2pnet-opencv's People

Contributors

hpc203 avatar

Stargazers

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

Watchers

 avatar

crowdcounting-p2pnet-opencv's Issues

运行报错

环境:python3.9 + python-opencv(4.6)
运行报错如下:
`[ERROR:[email protected]] global /io/opencv/modules/dnn/src/onnx/onnx_importer.cpp (2845) parseShape DNN/ONNX(Shape): dynamic 'zero' shapes are not supported, input 180 [ 0 0 0 8 ]
[ERROR:[email protected]] global /io/opencv/modules/dnn/src/onnx/onnx_importer.cpp (1018) handleNode DNN/ONNX: ERROR during processing node with 1 inputs and 1 outputs: [Shape]:(onnx_node!Shape_41) from domain='ai.onnx'
Traceback (most recent call last):
File "/home/user/code/crowdcounting-p2pnet-opencv/main.py", line 112, in
net = P2PNet(args.onnx_path, confThreshold=args.conf_threshold)
File "/home/user/code/crowdcounting-p2pnet-opencv/main.py", line 68, in init
self.model = cv2.dnn.readNet(modelPath)
cv2.error: OpenCV(4.6.0) /io/opencv/modules/dnn/src/onnx/onnx_importer.cpp:1040: error: (-2:Unspecified error) in function 'handleNode'

Node [[email protected]]:(onnx_node!Shape_41) parse error: OpenCV(4.6.0) /io/opencv/modules/dnn/src/onnx/onnx_importer.cpp:2846: error: (-215:Assertion failed) !isDynamicShape in function 'parseShape'
`

onnx文件导出

请问一下这个项目onnx是如何导出的?方便提供导出代码吗?谢谢

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.