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

Dockerfile or Docker image Requirement #30

Open
AlexHu123 opened this issue Dec 11, 2019 · 10 comments
Open

Dockerfile or Docker image Requirement #30

AlexHu123 opened this issue Dec 11, 2019 · 10 comments

Comments

@AlexHu123
Copy link

Thanks for your great work!
I find it difficult to configure the environment, would it be possible for you to release a dockerfile or docker image? Thanks in advance~

@wtnan2003
Copy link

@AlexHu123 Have you solve the fussy environmental work? a docker image would be helpful

@AlexHu123
Copy link
Author

Thanks for your reply! I have solved the environmental work. It is quite tricky and needs to be careful at every step~ If having time, I may write a blog on how to install it, and will let you know as reference~

@wtnan2003
Copy link

@AlexHu123 Hi,I meet some problem:

Root Directory: /home/nd/MonocularTotalCapture/data
Sequence Name: example_dance
run_pipeline.sh: line 58: 16476 Segmentation fault  (core dumped) 
./build/run_fitting --root_dirs $dataDir --seqName $seqName --start 1 --end $((numFrame +1)) --stage 1 --imageOF                                                       

Detail in
issue 33#

Have you also meet the problem before?
Any help would be greatly appreciated.

@neccam
Copy link
Contributor

neccam commented Jan 27, 2020

See PR #35 for the docker image

@cbsudux
Copy link

cbsudux commented May 19, 2020

@neccam I'm building your image and I keep running into Caffe not found. Either turn on the BUILD_CAFFE option or specify the path of Caffe includes and libs using -DCaffe_INCLUDE_DIRS and -DCaffe_LIBS.

This happens when building OpenPose :
cmake -DCaffe_INCLUDE_DIRS=$CAFFE_ROOT/build/install/include \ -DCaffe_LIBS=$CAFFE_ROOT/build/install/lib/libcaffe.so \ -DBUILD_CAFFE=OFF \ -DDOWNLOAD_BODY_COCO_MODEL=ON \ -DDOWNLOAD_BODY_MPI_MODEL=ON \ .. &&

DCaffe_INCLUDE_DIRS=$CAFFE_ROOT/build/install/include and -DCaffe_LIBS=$CAFFE_ROOT/build/install/lib/libcaffe.so` don't seem to be recognized by cmake.

What do I do?

@neccam
Copy link
Contributor

neccam commented May 19, 2020

It should work as is, but I will have a look into it.
In the meantime, it would be good to know if anyone else has a similar issue.

@cbsudux
Copy link

cbsudux commented May 19, 2020

This seems to be an issue with OpenPose. Have a look at this issue : CMU-Perceptual-Computing-Lab/openpose#1575

It's an issue with building openpose with pre-built caffe. Is there a reason you build caffe first and then openpose? You seem to make a few changes to the caffe makefile in the dockerfile.

@cbsudux
Copy link

cbsudux commented May 20, 2020

Update. Solved it by using the previous OpenPose release.
@neccam Does the visualization work if I'm running the container on a remote server?

@neccam
Copy link
Contributor

neccam commented May 20, 2020

Great, can you share what you have changed so that others can also benefit?

Depends on how you access to the remote server. My best guess would be to setup a ssh deamon inside the docker container and ssh -x to it. But I haven't tried this.

@cbsudux
Copy link

cbsudux commented May 20, 2020

Couple of changes:

  • git reset --hard d78ae77 OpenPose commit on Jan 20th. Assumed this would be the one you used
  • Add these flags. -DCUDA_ARCH=Manual -DCUDA_ARCH_BIN="50 52 60 61" -DCUDA_ARCH_PTX="50 52 60 61". Cuda 9.0 doesn't work on a GPU with compute capability of 7.5 (T4, RTX series) OpenPose builds for all cc's and the build fails. So manually specify.

Here's the code block. Copy and replace in DockerFile.

ENV OPENPOSE_ROOT=/opt/openpose WORKDIR $OPENPOSE_ROOT RUN git clone https://github.com/CMU-Perceptual-Computing-Lab/openpose.git . && \ git reset --hard d78ae77 && \ sed -i 's/set(Caffe_known_gpu_archs "${KEPLER} ${MAXWELL} ${PASCAL} ${VOLTA} ${TURING}")/set(Caffe_known_gpu_archs "${KEPLER} ${MAXWELL} ${PASCAL}")/' /opt/openpose/cmake/Cuda.cmake && \ mkdir build && cd build && \ cmake -DCaffe_LIBS=$CAFFE_ROOT/build/install/lib/libcaffe.so \ -DCaffe_INCLUDE_DIRS=$CAFFE_ROOT/build/install/include \ -DBUILD_CAFFE=OFF \ -DDOWNLOAD_BODY_COCO_MODEL=ON \ -DDOWNLOAD_BODY_MPI_MODEL=ON \ -DCUDA_ARCH=Manual -DCUDA_ARCH_BIN="50 52 60 61" -DCUDA_ARCH_PTX="50 52 60 61" .. && \ make all -j8 && \ make install

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

No branches or pull requests

4 participants