Dockerfile_openpose 1.86 KB
Newer Older
tilman's avatar
tilman committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
FROM ubuntu
ARG DEBIAN_FRONTEND=noninteractive
ENV TZ=Europe/Berlin

RUN apt-get -y update &&\
    apt-get install -y curl wget libopencv-dev git cmake build-essential libatlas-base-dev libprotobuf-dev \
        libleveldb-dev libsnappy-dev libhdf5-serial-dev protobuf-compiler libgflags-dev \
        libgoogle-glog-dev liblmdb-dev python-setuptools python-dev python-pip \
        opencl-headers ocl-icd-opencl-dev libviennacl-dev \
        python python3 python3-setuptools python3-dev python3-pip &&\
    apt-get install -y --no-install-recommends libboost-all-dev &&\
    pip install --upgrade numpy protobuf opencv-python &&\
    pip3 install --upgrade numpy protobuf opencv-python &&\
    git clone https://github.com/CMU-Perceptual-Computing-Lab/openpose /opt/openpose

RUN ls -lisah . &&\
    pwd &&\
    python3 -V &&\
    pip3 -V &&\
    python -V &&\
    pip -V

#RUN cd /opt/openpose && git submodule update --init --recursive --remote
#RUN mkdir -p /opt/openpose/models/pose/body_25 && cd /opt/openpose/models/pose/body_25 && wget http://posefs1.perception.cs.cmu.edu/OpenPose/models/pose/body_25/pose_iter_584000.caffemodel
#RUN mkdir -p /opt/openpose/models/face && cd /opt/openpose/models/face && wget http://posefs1.perception.cs.cmu.edu/OpenPose/models/face/pose_iter_116000.caffemodel
#RUN mkdir -p /opt/openpose/models/hand && cd /opt/openpose/models/hand && wget http://posefs1.perception.cs.cmu.edu/OpenPose/models/hand/pose_iter_102000.caffemodel 
#RUN ls -lisah /opt/openpose/models &&\
#    ls -lisah /opt/openpose/models/pose/body_25 &&\
#    ls -lisah /opt/openpose/models/face  &&\
#    ls -lisah /opt/openpose/models/hand 
RUN mkdir -p /opt/openpose/build && cd /opt/openpose/build && pwd &&\
    cmake -DGPU_MODE=CPU_ONLY -DBUILD_PYTHON=ON -DDOWNLOAD_BODY_25_MODEL=OFF -DDOWNLOAD_BODY_COCO_MODEL=OFF -DDOWNLOAD_FACE_MODEL=OFF -DDOWNLOAD_HAND_MODEL=OFF .. &&\
    make -j`nproc`