Coder Social home page Coder Social logo

ascend_openpose's Introduction

Ascend OpenPose

Requirement Version
OS Ubuntu 18.04
OpenCV 4.x compiled with GCC 7.5
OpenMP default with GCC
CANN 3.3.0 or above

supported Ascend Hardware:Atlas300-3000/3010、Atlas800-3000/3010

Performance:

result

Hardware e2e latency model input geometry FPS
Ascend310 45.4ms 368x448 22

1.Caffe model trans to ascend model

OpenPose body25 model can be download here , passwd:123456

trans yolov5.onnx to om with ATC
source /usr/local/Ascend/ascend-toolkit/set_env.sh
atc --model=body_25.prototxt --weight=body_25.caffemodel --framework=0 --output=body25 --soc_version=Ascend310 --insert_op_conf=aipp_rgb.cfg --input_format=NCHW --input_shape="images:1,3,368,448"
param statement
--model prototxt
--weight caffemodel
--output output om file
--input_shape model input shape: (batch, channel, width, height)

2.Compile and Run program

2.1 modify CMakeLists.txt
set(OpenCV_DIR /root/opencv4.4/lib/cmake/opencv4) #your own opencv path
...
set(ACL_PATH /usr/local/Ascend/ascend-toolkit/latest) #your own cann-toolkit path
2.2 Compile it
mkdir build
cd build
cmake ..
make -j8
2.3 Run it
./ACL_OPENPOSE model/body25.om test.mp4

===============================
ModelProcess:Begin to inference.
detected people:5
fps:21.1667
===============================

Reference:

EasyOpenPose: https://github.com/dlunion/EasyOpenPose

ascend_openpose's People

Contributors

yukminglaw avatar

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.