Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added Dockerfile and instructions for creating Docker image #1102

Closed
wants to merge 1 commit into from

Conversation

tlkh
Copy link

@tlkh tlkh commented Feb 23, 2019

Hi everyone, I am a very inexperienced contributor so criticism is welcome. I noticed #12 but the status of that seems a little uncertain. Hence, I decided to give this a shot.

I'm proposing that we create a Dockerfile that will tackle OpenPose + Python bindings + GPU acceleration (CUDA), since this is a common configuration yet is more tricky to get right.

Here are the changes made in the commit:

  • Added Dockerfile
  • Building OpenPose with the Python bindings (something the other proposed Docker image lacks)
  • Added folder for support files for building the Docker image
  • Instructions outlined in a README in said folder
  • A command + script that tests the import to ensure that it is working in the container.

I believe this is helpful, but if my contribution standard is not up to bar please do give any feedback or advice.

Thank you and have a nice day!

@gineshidalgo99 gineshidalgo99 added the enhancement New feature or request label Feb 23, 2019
@gineshidalgo99
Copy link
Member

Thanks! I won't be able to review it in the short run, but it is a welcome PR and I will eventually check it!

@gineshidalgo99 gineshidalgo99 mentioned this pull request Feb 23, 2019
@esemeniuc
Copy link
Contributor

I've made a much simpler image with a newer version of CUDA here: https://github.com/esemeniuc/openpose-docker
Its working with the python interface as well

@gineshidalgo99
Copy link
Member

I will close this, but I have added a link to both of your Docker files in our doc/installation.md (will be pushed in the next commit), together with the many other Docker files people shared. Thanks for the help!

And feel free to post newer Dockerfiles in here, I will keep adding them to that file :)

@neonb88
Copy link
Contributor

neonb88 commented Sep 4, 2019

As of Wed Sep 4 04:41:10 UTC 2019, @esemeniuc 's docker implementation is giving me the error

Starting OpenPose demo...
Configuring OpenPose...
Starting thread(s)...
Auto-detecting all available GPUs... Detected 1 GPU(s), using 1 of them starting at GPU 0.
./build/examples/openpose/openpose.bin: symbol lookup error: /openpose/build/src/openpose/libopenpose.so.1.4.0: undefined symbol: _ZN5caffe3NetIfE21CopyTrainedLayersFromERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE

I believe this is an issue with Ubuntu 18.04 due to the comment here, but I'm not 100% sure. If anyone tries his docker image and manages to fix the issue, please let me know.

There might be a way to find a proper version of that shared object file libopenpose.so.1.4.0 and make OpenPose work on esemeniuc's docker, but I don't know what it is. Again, please notify the rest of the internet if you find a solution

Cheers,
Nathan

@kjacks21
Copy link

@neonb88 what did you run to cause the issue? I used the cwaffles/openpose-python image via the following command listed on the Docker page

docker run -it --rm --runtime=nvidia -e NVIDIA_VISIBLE_DEVICES=0 cwaffles/openpose-python

And was able to run the openpose demo without displaying a video (necessary or else you'll get an Unable to init server: Could not connect: Connection refused error).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants