Comments (8)
OK yeah, this is based on the old basic installer, the new installer way (using CMake) provides much higher configuration settings, following how big libraries do it (e.g., OpenCV, Caffe, etc.).
So please, check https://github.com/CMU-Perceptual-Computing-Lab/openpose/blob/master/doc/installation.md#openpose-from-other-projects-ubuntu-and-mac for all the details.
from openpose.
This is from a Makefile file where I used the OpenPose binaries in a different project, I think you forgot to add the USE_CAFFE define in your cmake, you can get the required defines from my Makefile (there might be some duplication since I did it quickly, but it is working):
Perform make distribute -j8
on the OpenPose folder to get in ./distribute
the include
and lib
folders. The Caffe lib
and include
are already in 3rdparty/caffe/distribute
(used by OpenPose).
OpenPose (assuming its include
and lib
are located in ./3rdparty/openpose)
-Wl,-rpath=./3rdparty/openpose/lib -Wl,-Bdynamic -L./3rdparty/openpose/lib/ -lopenpose -DUSE_CAFFE
Caffe (assuming its include
and lib
are located in ./3rdparty/caffe/distribute)
-Wl,-rpath=./3rdparty/caffe/distribute/lib -Wl,-Bdynamic -L./3rdparty/caffe/distribute/lib/ -lcaffe -DUSE_CUDNN
OpenCV (add more OpenCV flags if you need them)
-lopencv_core -lopencv_highgui -lopencv_imgproc -lopencv_contrib -lopencv_calib3d
CUDA, something like:
-I/usr/local/cuda-8.0/include/ -L/usr/local/cuda-8.0/lib64 -lcudart -lcublas -lcurand
3rdparty that Caffe uses
-lcudnn -lglog -lgflags -lboost_system -lboost_filesystem -lm -lboost_thread
Other required
-pthread -fPIC -std=c++11 -fopenmp
Optimization flags (optional)
-DNDEBUG -O3 -march=native
Let me know whether it works
from openpose.
Thank you very much. I have solved the problem and I found that:
- In my CMakeLists.txt, I need to change the Caffe directory: SET(caffe_DIR ${OpenPose_DIR}/3rdparty/caffe/distribute);
- I delete "#ifdef USE_CAFFE" in some files named as xxCaffe.hpp in openpose/include/.
Then I make openpose again and everything is OK. Without the 2nd step, I will have the same problem.But I do not know what is the effect of my change, maybe I just need to add USE_CAFFE in my CMakeLists.txt.
from openpose.
Thank you for posting it! Closing this then.
EDITED: As an extra detail, instead of using this CMake example to construct the cmake file, I'd rather consider file example in the doc/installation_cmake.md document itself.
from openpose.
Hello!
I am trying to use my current OpenPose installation for the compilation of another project (for the https://github.com/stevenjj/openpose_ros to be specific). I have build and tested my OpenPose installation as the documentation instructs me and everything seems fine, however I cannot do make distribute
. I have searched the documentation for a solution, but I am probably missing something.
Since the instructions above are about one and a half year old @gineshidalgo99 can you please give me an update?
Thanks!
from openpose.
Hi, I believe doc/install.md has an explanation on how to include the library through CMake
You talk about make distribute
, could you quickly send me a link to the instructions (in current master OP) where it says make distribute
? So I can update that part.
from openpose.
Okay, I'll check doc/install.md again.
The instructions in current master do not mention anything about make distribute, as far as I have read them. I first read about it here and I figured that since it used to be an option but apparently it is no more, I better ask you for a pointer to the thing that you substituted it with.
from openpose.
from openpose.
Related Issues (20)
- Openposedemo.exe-application error-0xc0000279 HOT 1
- just copy and paste the model's directory to the release directory
- unable to install openpose in colab settings HOT 2
- I can't download any model. The URL is just loading and nothing appears HOT 2
- 3D pose estimation
- cann't use getModels.sh to download from posefs1.perception.cs.cmu.edu HOT 6
- How to select stable keypoints from a HeatMap?
- No Keypoints Detected After Running Python Examples
- Gait Analysis Output Video frame is very slow. How can I optimize the code?
- 18 keypoins output HOT 2
- Openpose with Infrared Images HOT 1
- help wanted: which data belongs to which person in the video?
- Problems with the installation HOT 5
- download Caffe, OpenCV, and Caffe prerequisites wrong bying official link, help me HOT 2
- Why cannot detect right hand keypoints in the following image?
- Problem building with CPU_ONLY:
- Release - Dockerfiles with Fixed Model Downloads - CPU / CPU + CUDA + cuDNN HOT 3
- How to modify the identification file path
- Cmake- GUI - Error in Configuration process, project files maybe in invalid
- unknown type name 'PROTOBUF_NAMESPACE_OPEN'
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from openpose.