Sign inSign up

vin8/openpose_vin

By vin8

Updated about 3 years ago

Openpose

Image
0

122

vin8/openpose_vin repository overview

#After Pulling the Docker image(tag - v8 )

#RUN THIS COMMAND IN YOUR TERMINAL: sudo xhost +si:localuser:root

#RUN THE DOCKER IMAGE

docker run --gpus all -e DISPLAY=$DISPLAY --env NVIDIA_VISIBLE_DEVICES=all --env NVIDIA_DRIVER_CAPABILITIES=all --env DISPLAY -v /tmp/.X11-unix:/tmp/.X11-unix -v /dev:/dev --net=host --privileged --device=/dev/video0:/dev/video0 -it vin8/openpose_vin:final /bin/bash

#EXPLANATION OF ABOVE COMMAND

The -v option is used to make directories or files from the host machine available inside the container.

docker run is used to start a new Docker container from an image.

--gpus all ::is used to make all available NVIDIA GPUs on the host machine accessible to the container.

-e DISPLAY=$DISPLAY ::sets an environment variable in the container to the value of the $DISPLAY environment variable on the host machine. This is necessary to allow the container to display graphical output on the host machine's X11 display server.

--env NVIDIA_VISIBLE_DEVICES=all ::sets an environment variable in the container to make all NVIDIA GPUs visible to OpenPose.

--env NVIDIA_DRIVER_CAPABILITIES=all ::sets an environment variable in the container to specify that all driver capabilities are available.

--env DISPLAY ::sets the DISPLAY environment variable in the container.

-v /tmp/.X11-unix:/tmp/.X11-unix ::mounts the X11 UNIX socket directory on the host machine to the same directory in the container, which allows the container to access the host machine's X11 display server.

-v /dev:/dev ::mounts the /dev directory on the host machine to the same directory in the container, which allows the container to access the host machine's devices.

--net=host ::sets the network mode of the container to "host", which allows the container to access the host machine's network interfaces.

--privileged ::gives the container full access to the host machine's system resources.

--device=/dev/video0:/dev/video0 ::allows the container to access the host machine's video capture device /dev/video0. --device=/dev/video0 will share the first video device with the container.

-it openpose_vin:latest /bin/bash ::starts a Bash shell in the container for interactive use.

In summary, this command sets up a Docker container with all the necessary environment variables, network settings, and device access to run the OpenPose application on the host machine's GPUs and capture video from the host machine's camera.

Tag summary

Content type

Image

Digest

sha256:47579fcdc

Size

4.3 GB

Last updated

about 3 years ago

docker pull vin8/openpose_vin:final