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

cant see camera output as it only works with --display 0 #6

Open
rsrini7 opened this issue Aug 21, 2019 · 2 comments
Open

cant see camera output as it only works with --display 0 #6

rsrini7 opened this issue Aug 21, 2019 · 2 comments

Comments

@rsrini7
Copy link

rsrini7 commented Aug 21, 2019

./build/examples/openpose/openpose.bin --render_pose 0 --display 0 --write_json output2/
- It generates json, but cant see the GUI. Any way ?

./build/examples/openpose/openpose.bin --flir_camera --3d --number_people_max 1
- Steps for 3-D ?
OpenPose CMake must be compiled with the USE_FLIR_CAMERA flag in order to use the
FLIR camera.

@aruiplex
Copy link

aruiplex commented Dec 7, 2021

Because it is in the docker container. Therefore, there are no display screen. The --display 0 is necessary.

@dcbark01
Copy link

Here's how I run my container to get the display to output properly. (Note: I'm elevating the privileges of the container to have access to the host, so be aware of the security implications that has.)

docker container run -it --rm --gpus all -e NVIDIA_VISIBLE_DEVICES=0 --privileged --network=host --ipc=host \
  -v /tmp/.X11-unix:/tmp/.X11-unix -e DISPLAY=$DISPLAY \
  -v $HOME/.Xauthority:/root/.Xauthority -e XAUTHORITY=/root/.Xauthority -e QT_X11_NO_MITSHM=1 \
  -v ${BUILD_DIR}/data:/mnt/data  \
  -v ${BUILD_DIR}/output:/mnt/output  \
  --name openpose \
  openpose:latest /bin/bash

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

3 participants