Giter Site home page Giter Site logo

openpose_aci's Introduction

openpose_aci

Code and workflow for building OpenPose in Docker Hub and modifying it with Singularity Hub for use with PSU ACI HPC clusters.

NOTE: This is the GPU version of OpenPose, for the CPU-only version please refer to the appropriately labelled branch.

Quick Start

ssh into the PSU ACI HPC with X11 flags.

Start an interactive session using qsub. We need a lot of memory for the CPU version of OpenPose

qsub -A open -I -X -l walltime=24:00:00 -l nodes=5:ppn=10 -l pmem=20gb

From ACI pull the OpenPose image and shell into it.

singularity pull -n openpose_aci.simg shub://d-bohn/openpose_aci

singularity exec -n openpose_aci.simg /bin/bash

Finally, once inside the image you can run the example utilizing the following code:

cd /opt/openpose
mkdir data && mkdir data/poses

./build/examples/openpose/openpose.bin --video examples/media/video.avi --write_video ./data/result.avi --write_json ./data/poses --display 0

Image Builds

The OpenPose docker image was built on docker hub.

The OpenPose singularity image was built using the docker image base and converting it to a singularity image via singularity hub.

Setup for linking Github with Docker Hub and Singularity Hub can be found here:

The Singularity file specifies creating a Singularity-compatible image from the docker image, as well as adding access to folders within ACI, specifically:

# ACI mappings so you can access your files.
mkdir -p /storage/home
mkdir -p /storage/work
mkdir -p /gpfs/group

Notes

  • The OpenFace docker image is large (> 3.7GB). It is built on Ubuntu 16.04.

  • The current image is built with only CPU support, but can easily be adapted to include GPU support when that is available (see first two make flags in Dockerfile)

  • The CPU version is SLOW. The example above takes several minutes to execute. Runs at between 0.3 and 0.1 frames/second.

openpose_aci's People

Contributors

d-bohn avatar drewpolasky avatar

Watchers

 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.