Skip to content

Instantly share code, notes, and snippets.

@t5ujiri
Last active August 27, 2018 08:54
Show Gist options
  • Save t5ujiri/50098fc026389914e0401710b1b34ae9 to your computer and use it in GitHub Desktop.
Save t5ujiri/50098fc026389914e0401710b1b34ae9 to your computer and use it in GitHub Desktop.
docker-openpose
FROM nvidia/cuda:9.0-cudnn6-devel
RUN apt-get update -y && apt-get upgrade -y
RUN apt-get install wget unzip lsof apt-utils lsb-core -y
RUN apt-get install libatlas-base-dev -y
RUN apt-get install libopencv-dev python-opencv python-pip -y
RUN wget https://github.com/CMU-Perceptual-Computing-Lab/openpose/archive/v1.3.0.zip \
unzip openpose-1.3.0.zip; rm openpose-1.3.0.zip
WORKDIR openpose-1.3.0
RUN sed -i -e "s/sudo chmod +x \$1//g" ubuntu/install_caffe_and_openpose_if_cuda8.sh; \
sed -i "s/sudo chmod +x \$1//g" ubuntu/install_openpose_if_cuda8.sh; \
sed -i "s/sudo -H//g" 3rdparty/caffe/install_caffe_if_cuda8.sh; \
sed -i "s/sudo//g" 3rdparty/caffe/install_caffe_if_cuda8.sh; \
sync; sleep 1; ./ubuntu/install_caffe_and_openpose_if_cuda8.sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment