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

Problem while running PoseCNN in docker container #36

Closed
Unnon97 opened this issue Feb 8, 2023 · 4 comments
Closed

Problem while running PoseCNN in docker container #36

Unnon97 opened this issue Feb 8, 2023 · 4 comments

Comments

@Unnon97
Copy link

Unnon97 commented Feb 8, 2023

Hello,
I was trying to set up PoseCNN in a docker container in a PC with RTX 4090 GPU. Using Ubuntu 20.04 image with nvidia driver 525.85, cuda version 11.6 and torch==1.12.0+cu116, python 3.8.10, pip 20.0.2, I have built Eigen and Sophus libraries inside the container by cloning https://gitlab.com/libeigen/eigen.git(--branch=3.4) and https://github.com/yuxng/Sophus.git.

Everything is built but when I run the ./experiments/scripts/ycb_video_train.sh command with slight modifications, I get the error:

libEGL warning: DRI2: failed to create dri screen
libEGL warning: DRI2: failed to create dri screen
Unable to initialize EGL
Command '['/deps/PoseCNN/tools/../ycb_render/build/test_device', '0']' returned non-zero exit status 1.
Traceback (most recent call last):
File "./tools/train_net.py", line 141, in
cfg.renderer = YCBRenderer(width=cfg.TRAIN.SYN_WIDTH, height=cfg.TRAIN.SYN_HEIGHT, render_marker=False)
File "/deps/PoseCNN/tools/../ycb_render/ycb_renderer.py", line 88, in init
self.r = CppYCBRenderer.CppYCBRenderer(width, height, get_available_devices()[gpu_id])
IndexError: list index out of range

@Unnon97 Unnon97 changed the title Problem while compiling PoseCNN in docker container Problem while running PoseCNN in docker container Feb 8, 2023
@Unnon97 Unnon97 closed this as completed Feb 10, 2023
@Unnon97
Copy link
Author

Unnon97 commented Feb 10, 2023

The specific docker container needs to be cudagl image from docker hub instead of any other cuda based image.

@valentinhendrik
Copy link

How did you overcome the problem with THC/THC.h error? Did you edit the concerning files?

@Unnon97
Copy link
Author

Unnon97 commented Feb 22, 2023

Yes I had to modify the ROIAlign.cu file and save it in my Posecnn directory. I used this link to refer to the changes required.
https://blog.csdn.net/weixin_44487231/article/details/119759792 ( Its in chinese but code replacements can be understood)

@valentinhendrik
Copy link

Yes I had to modify the ROIAlign.cu file and save it in my Posecnn directory. I used this link to refer to the changes required. https://blog.csdn.net/weixin_44487231/article/details/119759792 ( Its in chinese but code replacements can be understood)

I did actually find someone writing in english with the exact same approach, but that helps me to be sure the error I currently get is in no connection to my changes in the file! Thank you anyway

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

2 participants