Git Product home page Git Product logo

openpose-docker's Introduction

openpose-docker

My Docker image for OpenPose.

The original Dockerfile is from here.

Changes from orginal

  • base image to nvidia/cuda:11.1.1-cudnn8-devel-ubuntu20.04.

  • install cmake via apt.

  • qtbase5-dev not installed.

Enviornment

Only critical ones.

  • Hardware

    GPU : GeForce RTX 2060 SUPER
    

    Turing architecture.

  • OS

    Ubuntu 20.04.2 LTS
    
  • nvidia-driver

    nvidia-driver-460
    

Usage

  • Build image and wait.

    This will take some time...

    docker-compose build
  • Add volumes to docker-compose.yml

  • Exec

    In terminal.

    docker-compose up -d
    docker-compose exec openpose bash

    In container.
    --display 0 is needed.
    See the docs for the options.

    openpose.bin --display 0 <other options>
  • or Run

    --display 0 is needed.
    See the docs for the options.

    docker-compose run --rm openpose openpose.bin --display 0 <other options>

Problems I came across

template
message

When.
Why.
How to fix.
What I did.


nvcc fatal   : Unsupported gpu architecture 'compute_80'

Occurred when building the docker image.
Error by nvidia-toolkit version not compatible with some GPU architectures.
Use a higher version.
Changed base image to use CUDA11.1.1 from CUDA10.0.


CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
        CUDA_cublas_device_LIBRARY (ADVANCED)

Occurred when building the docker image.
Error by cmake with versions between 3.8 to 3.11. This is also mentioned in the official docs.
Update cmake to >=3.12 or use ubuntu20.04 which defaults cmake to 3.16.
Changed base image to use ubuntu20.04 from ubuntu18.04


Cuda check failed (804 vs. 0): forward compatibility was attempted on non supported HW

Occurred when running openpose.bin inside the container.
Error by mismatch of nvidia-driver and the installed CUDA version.
Update to a driver that fits the installed CUDA version.
Reinstalled nvidia-driver to 460 from 450 on my local device.


Unable to init server: Could not connect: Connection refused

Occurred when running openpose.bin inside the container.
Error because trying to use GUI stuff inside the container.
Disable GUI.
Pass --display 0 option when running.


A lot of Warnings when building caffe and openpose

Occurred when building docker image.
Warnings because building for every known GPU architectures including deprecated ones.
It still works.
Docker cannot access to GPU devices when build. Tried to specify it but did not work.

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.