OpenPose Installation Guide
Updates
Dependency
Protobuf-2.6.1
check protobuf version (must be 2.6.1)
protoc --versionif not 2.6.1, build from source and install
cd ~/protobuf-2.6.1
./configure
make -j12
sudo make installClone project
cd ~/Documents
git clone https://github.com/CMU-Perceptual-Computing-Lab/openposeUpdate submodule
git submodule update --initDisable multithread (multithread meaningless in python)
edit openpose/include/openpose/flags.hpp
DEFINE_bool(disable_multi_thread, true, "It would slightly reduce the frame rate in order to highly reduce the lag. Mainly useful"Configure for python3.6
edit openpose/CMakeLists.txt
option(BUILD_PYTHON "Build OpenPose python." ON)
find_package(PythonInterp 3.6 REQUIRED)
find_package(PythonLibs 3.6 REQUIRED)edit openpose/3rdparty/caffe/CMakeLists.txt
set(python_version "3.6.8" CACHE STRING "Specify which Python version to use")edit openpose/3rdparty/caffe/cmake/Dependencies.cmake
if(BUILD_python)
  if(NOT "${python_version}" VERSION_LESS "3.0.0")
    # use python3
    find_package(PythonInterp 3.6)
    find_package(PythonLibs 3.6)Configure for RTX2060 CUDA_ARCH: compute75
cp openpose/3rdparty/caffe/Makefile.config.Ubuntu16_cuda8.example to openpose/3rdparty/caffe/Makefile.config and edit openpose/3rdparty/caffe/Makefile.config
CUDA_ARCH := -gencode arch=compute_30,code=sm_30 \
        -gencode arch=compute_35,code=sm_35 \
        -gencode arch=compute_50,code=sm_50 \
        -gencode arch=compute_52,code=sm_52 \
        -gencode arch=compute_60,code=sm_60 \
        -gencode arch=compute_61,code=sm_61 \
        -gencode arch=compute_61,code=compute_61 \
        -gencode arch=compute_75,code=sm_75 \
        -gencode arch=compute_75,code=compute_75Cuda.cmake set arch +75 for rtx2060
set(Caffe_known_gpu_archs "30 35 50 52 60 61 75")if u use your submodules, remember to replace the commit version id in openpose/CMakelists.txt
Build
~/Documents/openpose (master) $ mkdir build
~/Documents/openpose (master) $ cd build
~/Documents/openpose/build (master) $ cmake ..
~/Documents/openpose/build (master) $ make -j12Test
cd openpose/build/python/openpose
python3.6
import pyopenposeDeploy
add a module named openpose to your project
openpose
    --- __init__.py
    --- pyopenpose.cpython-36m-x86_64-linux-gnu.so