Sign inSign up

wiseosho/openpose

By wiseosho

•Updated about 9 years ago

Docker Image to compile(run) Openpose library

Image
0

247

wiseosho/openpose repository overview

Base Image: nvidia/cuda:8.0-cudnn5-devel-ubuntu16.04

⁠Openpose docker Images

I am not affiliated with the people who develop OpenPose, just using their work. You need nvidia-docker to run this image.

⁠Openpose

OpenPose is a library for real-time multi-person keypoint detection and multi-threading written in C++ using OpenCV and Caffe*, authored by Gines Hidalgo, Zhe Cao, Tomas Simon, Shih-En Wei, Hanbyul Joo and Yaser Sheikh.

  • It uses Caffe, but the code is ready to be ported to other frameworks (Tensorflow, Torch, etc.). If you implement any of those, feel free to make a pull request!

⁠Tag Description

  • installed : environments to compile and run openpose library (as of 20170914)
  • jamin : compiled openpose library included ( inside the image)

⁠Commands

  • Allow access from the docker to the server display

sudo xhost +

  • Run container

nvidia-docker run -it
--net=host
-e DISPLAY
--name 'opnepose'
-v /tmp/.X11-unix:/tmp/.X11-unix
--privileged
wiseosho/openpose:installed
/bin/bash

  • Options :

--net=host : set container to use the host network

-e DISPLAY : export host's DISPLAY into container environment

-v /tmp/.X11-unix:/tmp/.X11-unix : mount the host's X11 socket

--privileged : get privilege for host system (Need if you are to access webcam, modify if you are aware of the more secure way.)

⁠Inside the container

1. jamin : compiled openpose included
  • Move into the complied folder

cd /Downloads/openpose

  • Testrun openpose(WebCam)

./build/examples/openpose/openpose.bin

2. installed : Download openpose and compile
  • Pull the openpose
  • Inside the openpose folder, Compile

bash ./ubuntu/install_caffe_and_openpose_if_cuda8.sh

  • Test run (WebCam)

./build/examples/openpose/openpose.bin

⁠Brief description on Image

  • Base Image : nvidia/cuda:8.0-cudnn5-devel-ubuntu16.04
  1. Installed packages

libopencv-dev libatlas-base-dev libprotobuf-dev libleveldb-dev libsnappy-dev libopencv-dev libhdf5-serial-dev protobuf-compiler --no-install-recommends libboost-all-dev git lsb-release apt-get install python-pip apt-get install wget

  1. Python Pakckage Location Error.

During the compilation, python tried to install and import numpy, but from wrong location. I hope somebody could add those paths into the environment vars (PYTHON_INCLUDE) set in Makefile.config I edited to include the paths, but did not work. Instead, I copied the packages into the /usr/lib

cp -rf /usr/local/lib/python2.7/dist-packages/* /usr/lib/python2.7/dist-packages/

⁠References

Tag summary

Content type

Image

Digest

Size

2.2 GB

Last updated

about 9 years ago

docker pull wiseosho/openpose:jamin