Are you sure you want to delete this access key?
nvidia-smi
command checks the available GPU memory in Ubuntu).Note: This requirements assume the default configuration (i.e. --net_resolution "656x368"
and num_scales 1
). You might need more (with a greater net resolution and/or number of scales) or less resources (with smaller net resolution and/or using the MPI and MPI_4 models).
apt-get install libopencv-dev
.# OPENCV_VERSION := 3
on the file Makefile.config.Ubuntu14.example
(for Ubuntu 14) and/or Makefile.config.Ubuntu16.example
(for Ubuntu 15 or 16). In addition, OpenCV 3 does not incorporate the opencv_contrib
module by default. Assuming you have manually installed it and you need to use it, append opencv_contrib
at the end of the line LIBRARIES += opencv_core opencv_highgui opencv_imgproc
in the Makefile
file.chmod u+x install_caffe_and_openpose.sh
./install_caffe_and_openpose.sh
Alternatively, if you want to use CUDA 7 and/or avoid using sh scripts, install the Caffe prerequisites and then run these lines:
### Install Caffe ###
cd 3rdparty/caffe/
# Select your desired Makefile file (run only one of the next 4 commands)
cp Makefile.config.Ubuntu14_cuda_7.example Makefile.config # Ubuntu 14, cuda 7
cp Makefile.config.Ubuntu14.example Makefile.config # Ubuntu 14, cuda 8
cp Makefile.config.Ubuntu16_cuda_7.example Makefile.config # Ubuntu 16, cuda 7
cp Makefile.config.Ubuntu16.example Makefile.config # Ubuntu 16, cuda 8
# Compile Caffe
make distribute -j${number_of_cpus}
### Install OpenPose ###
cd ../../models/
./getModels.sh # It just downloads the Caffe trained models
cd ..
# Same file cp command as the one used for Caffe
cp Makefile.config.Ubuntu14_cuda_7.example Makefile.config
make all -j${number_of_cpus}
NOTE: If you want to use your own Caffe distribution, follow the steps on Custom Caffe
section and later re-compile the OpenPose library:
chmod u+x install_openpose.sh
./install_openpose.sh
Note: These steps only need to be performed once. If you are interested in making changes to the OpenPose library, you can simply recompile it with:
make clean
make all -j$(NUM_CORES)
We slightly modified some Caffe compilation flags and minor details. In case you want to use your own Caffe distribution, these are the files we added and modified:
install_caffe_and_openpose.sh
; as well as Makefile.config.Ubuntu14.example
, Makefile.config.Ubuntu16.example
, Makefile.config.Ubuntu14_cuda_7.example
and Makefile.config.Ubuntu16_cuda_7.example
(extracted from Makefile.config.example
).Makefile.config.example
, data/
, examples/
(editing the Makefile distribute section to avoid using this folder) and models/
.make distribute
in your Caffe version and modify the Caffe directory variable in our Makefile config file: ./Makefile.config.UbuntuX.example
(where X is 14 or 16 depending on your Ubuntu version), set the CAFFE_DIR
parameter to the path where both the include
and lib
Caffe folders are located.Press p or to see the previous file or, n or to see the next file
Are you sure you want to delete this access key?
Are you sure you want to delete this access key?
Are you sure you want to delete this access key?
Are you sure you want to delete this access key?