Last active
August 15, 2019 06:42
-
-
Save Mahedi-61/3207d740dc452d0d8d53b3d52b676816 to your computer and use it in GitHub Desktop.
installing openpose at CentOS 7 server machine
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Openpose required CMake version >= 3.12 | |
# remove previous verison | |
sudo yum remove cmake | |
# set new version | |
version=3.14 | |
build=6 | |
# download and install | |
mkdir ~/temp | |
cd ~/temp | |
wget https://cmake.org/files/v$version/cmake-$version.$build.tar.gz | |
tar -xzvf cmake-$version.$build.tar.gz | |
cd cmake-$version.$build/ | |
# install cmake | |
sudo ./bootstrap | |
sudo make -j4 | |
sudo make install | |
# The first step is to clone the OpenPose repository. | |
git clone https://github.com/CMU-Perceptual-Computing-Lab/openpose | |
# CMake Command Line Configuration | |
cd openpose | |
mkdir build | |
cd build | |
# You need to install python, pip and other ML packages (see my other gist) | |
# You need to install opencv install from source (see my other gist) | |
# You need to install caffe install (see my other gist) | |
# cmake | |
cmake -DOpenCV_CONFIG_FILE=/usr/local/share/OpenCV/OpenCVConfig.cmake \ | |
-DCaffe_INCLUDE_DIRS=/home/user1/software/caffe/distribute/include \ | |
-DCaffe_LIBS=/home/user1/software/caffe/build/lib/libcaffe.so -DBUILD_CAFFE=OFF .. | |
# Finally, build the project by running the following commands. | |
make -j`nproc` | |
sudo make install |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment