-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to setup? #1
Comments
Hi @yacaeh vi ~/.bashrc #put the following at the bottom source ~/.bashrc |
Thanks for the quick reply! Loading weights from openpose.weight...Done! |
Hi @yacaeh
|
Happy new year :)
|
I tried with cudnn enabled for my darknet and it works perfect now! 👍 |
@yacaeh nice to know you can run it correctly now, and thank you to reveal those problems. |
@yacaeh OpenCV Error: Assertion failed (ssize.width> 0 && ssize.height> 0) in resize, file /root/opencv-3.2.0/modules/imgproc/src/imgwarp.cpp, line 3492 How did you solve this problem? Can you give me a solution? I will wait for you. |
@hongsungmoon Hi Sungmoon, As I commented before it should running in GPU mode. Make sure you enable your cudnn as well from your darknet Makefile :) |
@yacaeh Thank you very much for your quick reply. I installed cuda and compiled darknet to use opencv, cudnn. Could you tell me which version of cuda you are using and cudnn version? And what do you mean you have to take the path of cudnn? Additionally, the value of net_outh does not change from 0. |
@hongsungmoon It's cuda 8.0 cudnn 5.1, if you take a look at Makefile of darknet there is setting for enabling cudnn. About net_outh I'm not sure but it would work after you enable it. FYI I've changed openpose.cfg [net] to the following. |
@yacaeh It matches exactly my environment ... I have not found the cause yet, but the width and height of the output are zero. Thank you. Your answer helped me a lot. I will tell you if I find the exact problem. |
@hongsungmoon I am facing a very similar issue. I am getting the exact same error. Did you manage to find a solution ? |
@shreyasrajesh In my case, there was a change in the structure padding as the darknet model moved from c to c ++. Therefore, the size of the structure changed and the model could not be loaded. I think you need to check the size of the structure as well. |
@hongsungmoon I have the same problem, the out_w/h will be zero after loading the weights file, but actually it is 25 I can see from the command line after loading the config file. |
@anguoyang I think darknet is not installed as a GPU version. You should first install cuda and cudnn and opencv. Then, before building darknet, you need to modify the makefile to cudnn = 1, opencv = 1, and gpu = 1. |
I had the same issue. You need to take an older version of darknet, at this commit |
I had issue: |
Thanks for the great work!
I was also looking for the openpose + darknet version, But I have some problem with setup this project. And also, is it possible to work with not just images but with video and webcam as well?
First I had error with C++11 but adding QMAKE_CXXFLAGS += -std=c++11 solved the problem. Also Tuple error with main.cpp so I included tuple by
#include <tuple>
Also had to undefined reference to symbol '_ZN2cv6imreadERKNS_6StringEi error so added
LIBS += -lopencv_imgcodecs
Finally all compiled and when I used
./openpose-darknet person.jpg openpose.cfg openpose.weight
get the following error
./openpose-darknet: error while loading shared libraries: libdarknet.so: cannot open shared object file: No such file or directory
I already have llibdarknet.so file in my darknet folder and darknet folder is already included in the openpose-darknet.pro.
The text was updated successfully, but these errors were encountered: