seancook / docker-openpose-cpu

Dockerfile for CPU-only OpenPose
12 stars 8 forks source link

Dockerfile for OpenPose CPU-only

Overview

The goal of this Dockerfile is to build OpenPose with the purpose of using the openpose/openpose.bin example. I couldn't find a working CPU-only variant for Docker, so I created this to enable local testing.

What it does

Building


Pull down the Dockerfile. Then run:

$ docker build . -f Dockerfile.cpuonly -t "seancook/openpose-cpu"

Troubleshooting

Usage


A note about memory

If you run the container and see the message 'Killed', or it silently fails, you need to update the available memory for docker containers. See here for more information.

To test the container:

# basic usage, runs --help
$ docker run seancook/openpose-cpu:latest

To perform inference on a directory of images:

# performs inference using example images and saves them to working directory
$ docker run -v`pwd`:/data -it seancook/openpose-cpu -display 0 -image_dir /data -write_images /data