Giter Club home page Giter Club logo

snacks-hacks-openpose's Introduction

Introduction

This is the companion repo for our 5th Snacks & Hacks meetup

How to build

The following command will build an image with the tag snacks-hacks-openpose:latest. There are 2 flavors, CPU or GPU (Cuda10):

docker build -t snacks-hacks-openpose:latest https://raw.githubusercontent.com/Anchormen/snacks-hacks-openpose/{BRANCH}/Dockerfile.cpu

or for GPU:

docker build -t snacks-hacks-openpose:latest https://raw.githubusercontent.com/Anchormen/snacks-hacks-openpose/{BRANCH}/Dockerfile.cuda10_1.gpu

How to run

From your host system run the following to add all users to X:

xhost local: or xhost +

Run the following command for starting the image build under the snacks-hacks-openpose:latest, the CPU version requires the repository to be mounted as a volume under /opt/anchormen

docker run -v /tmp/.X11-unix:/tmp/.X11-unix -v /dev/snd:/dev/snd -v ${REPO_PATH}/snacks-hacks-openpose:/opt/anchormen -e DISPLAY=$DISPLAY --device=/dev/video0:/dev/video0 -it snacks-hacks-openpose:latest

or for GPU:

docker run --runtime=nvidia --ipc=host -v /tmp/.X11-unix:/tmp/.X11-unix -v /dev/snd:/dev/snd -e DISPLAY=$DISPLAY --device=/dev/video0:/dev/video0 -it snacks-hacks-openpose:latest

The following part: /tmp/.X11-unix:/tmp/.X11-unix -e DISPLAY=$DISPLAY, is for mapping the display from docker to the host screen.

Now you should be in the container's shell.

Start the demo:

python3 demo.py

snacks-hacks-openpose's People

Stargazers

 avatar

Watchers

James Cloos avatar Jeroen Vlek avatar  avatar Corne Versloot avatar Angel Sevilla Camins avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.