doc/installation/1_prerequisites.md
These tips are very important and avoid many bugs:
models/pose/body_25/.models/pose/coco/.models/pose/mpi/.models/face/.models/hand/.Anaconda should not be installed on your system or should be deactivated. Anaconda includes a Protobuf version that is incompatible with Caffe. Either you uninstall anaconda and install protobuf via apt-get, or you deactivate Conda with the command conda deactivate (twice if you are not in the base environment).
Install CMake GUI:
sudo apt-get install cmake-qt-gui.sudo apt-get install cmake-qt-gui provokes some compiling errors. Required CMake version >= 3.12.
sudo apt purge cmake-qt-gui.sudo apt install libssl-dev.sudo apt-get install qtbase5-dev.Latest Release of CMake Unix/Linux Source from the CMake download website, called cmake-X.X.X.tar.gz../configure --qt-gui. Make sure no error occurred../bootstrap && make -j`nproc` && sudo make install -j`nproc` . Make sure no error occurred.cmake-gui, you will have to replace that line by {CMAKE_FOLDER_PATH}/bin/cmake-gui.sudo apt-get install cmake-qt-gui. Note: If you prefer to use CMake through the command line, see doc/installation/0_index.md#CMake-Command-Line-Configuration-(Ubuntu-Only).Nvidia GPU version prerequisites:
sudo mokutil --import PATH_TO_PUBLIC_KEY manually if automatic install failed.sudo bash ./scripts/ubuntu/install_cuda.sh if you are not too familiar with CUDA. If you are, then you could also do one of the following instead:
Architecture named x86_64, and we personally recommend the Installer Type named runfile (local). Then, follow the Nvidia website installation instructions. When installing, make sure to enable the symbolic link in usr/local/cuda to minimize potential future errors. If the (Nvidia) drivers were installed manually, untick the "install driver" option.sudo ./scripts/ubuntu/install_cuda.sh (if Ubuntu 16 or 14 and for Graphic cards up to 10XX) or alternatively download and install it from their website.cuDNN Library for Linux (x86_64)):
sudo ./scripts/ubuntu/install_cudnn_up_to_Ubuntu16.sh (if Ubuntu 16 or 14 and for Graphic cards up to 10XX) or alternatively download it from their website./usr/local/cuda-{version}/ in Ubuntu and C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v{version}\ in Windows.OpenCL / AMD GPU version prerequisites (only if you do not have an Nvidia GPU and want to run on AMD graphic cards):
sudo apt-get install libviennacl-dev.Install Caffe, OpenCV, and Caffe prerequisites:
sudo apt-get install libopencv-dev. You could also use your own compiled OpenCV version.sudo bash ./scripts/ubuntu/install_deps.sh after installing your desired CUDA and cuDNN versions.sudo apt install protobuf-compiler libgoogle-glog-dev.sudo apt install libboost-all-dev libhdf5-dev libatlas-base-dev.Python prerequisites (optional, only if you plan to use the Python API): python-dev, Numpy (for array management), and OpenCV (for image loading).
# Python 3 (default and recommended)
sudo apt-get install python3-dev
sudo pip3 install numpy opencv-python
# Python 2
sudo apt-get install python-dev
sudo pip install numpy opencv-python
brew, install it by running bash scripts/osx/install_brew.sh on your terminal.brew install --cask cmake.bash scripts/osx/install_deps.sh.NOTE: These instructions are only required when compiling OpenPose from source. If you simply wanna use the OpenPose binaries for Windows, skip this step.
Latest Release of CMake Windows win64-x64 Installer from the CMake download website, called cmake-X.X.X-win64-x64.msi.CUDA_TOOLKIT_ROOT_DIR not found or specified or any other CUDA component missing, then: 1) Re-install Visual Studio 2015; 2) Reboot your PC; 3) Re-install CUDA (in this order!).C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v{version} in Windows and /usr/local/cuda-{version}/ in Ubuntu.3rdparty/windows/ so that CMake does not try to download them again.3rdparty/windows/caffe/.3rdparty/windows/caffe_cpu/.3rdparty/windows/caffe_opencl/.3rdparty/windows/caffe3rdparty/.3rdparty/windows/opencv/.sudo pip install numpy opencv-python