CMU-Perceptual-Computing-Lab / openpose

OpenPose: Real-time multi-person keypoint detection library for body, face, hands, and foot estimation
https://cmu-perceptual-computing-lab.github.io/openpose
Other
31.36k stars 7.87k forks source link

How to install Openpose without using cmake-gui in Linux? #2314

Open RevelationH opened 2 months ago

RevelationH commented 2 months ago

I wish to install the openpose in Linux such as Ubuntu. Unfortunately, all I can do is use the console command to interact with the installation, which means I can't use an interactive interface such as cmake-gui to finish the installation. Alternatively, I use cmake .. -DBUILD_PYTHON=ON to install it. However, according to my experience installing openpose in Windows successfully, it seems like I need further to point the python executable link such as python.exe if I use conda to handle the environment. Therefore, I failed to install it.

Any help will be appreciated in advance!!!

HeaIn commented 1 month ago

Looks like using conda is not preferred as written in this link.

I installed Openpose in Ubuntu 20.04.6 (cuda11.8, cudnn8) by using following commands.

apt-get -y --no-install-recommends upgrade && \
    apt-get install -y --no-install-recommends \
    build-essential \
    cmake \
    git \
    libatlas-base-dev \
    libprotobuf-dev \
    libleveldb-dev \
    libsnappy-dev \
    libhdf5-serial-dev \
    protobuf-compiler \
    libboost-all-dev \
    libgflags-dev \
    libgoogle-glog-dev \
    liblmdb-dev \
    pciutils \
    python3-setuptools \
    python3-dev \
    python3-pip \
    opencl-headers \
    ocl-icd-opencl-dev \
    libviennacl-dev \
    libcanberra-gtk-module \
    libopencv-dev

python3 -m pip install \
    numpy \
    protobuf \
    opencv-python

git clone https://github.com/CMU-Perceptual-Computing-Lab/openpose.git && \
    mkdir -p openpose/build && \
    cd openpose/build && \
    cmake .. && \
    make -j`nproc`