OpenPose

This uses Singularity containers, so you should refer to that page first for general information.

OpenPose has been compiled against OpenBlas, Caffe, CUDA and cuDNN. Image is based on a nvidia/cuda:10.1-cudnn7-devel-ubuntu18.04 docker image.

Dockerfile for this image is available here.

Within the container OpenPose is installed under /opt/openpose. Due to the way the libraries are organized, singularity_wrapper changes the working directory to /opt/openpose.

Running OpenPose example

One can run this example with srun:

wget https://raw.githubusercontent.com/AaltoSciComp/scicomp-docs/master/triton/examples/openpose/openpose.sh
module load singularity-openpose
sbatch openpose.slrm

Example sbatch script is shown below.

#!/bin/bash
#SBATCH -t 00:10:00
#SBATCH -n 1
#SBATCH --gres=gpu:1
#SBATCH --mem=8G

module load singularity-openpose/v1.5.1

# Print out usage flags
singularity_wrapper exec openpose --help

# Run example
singularity_wrapper exec openpose --video /opt/openpose/examples/media/video.avi --display 0 --write_video $(pwd)/openpose.avi