Last active
March 9, 2021 03:04
-
-
Save zldrobit/9acdddfd497479d487cfe58aba66c288 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
nvidia-docker run --rm -it --name yolo_deepsort -v /home/utiva/workspace:/workspace \ | |
-e DISPLAY=$DISPLAY -v /tmp/.X11-unix:/tmp/.X11-unix:ro \ | |
-e QT_X11_NO_MITSHM=1 \ | |
-e NVIDIA_DRIVER_CAPABILITIES='compute,utility,display' \ | |
--privileged --device=/dev/video0:/dev/video0 --ipc=host\ | |
--device /dev/apex_0:/dev/apex_0 \ | |
-v /dev/bus/usb:/dev/bus/usb \ | |
${1:-zldrobit/yolo-deepsort} /bin/bash | |
# in supervisor: | |
# xhost +si:localuser:root | |
# ref: | |
# https://gernotklingler.com/blog/howto-get-hardware-accelerated-opengl-support-docker/ | |
# https://unix.stackexchange.com/a/589269/405059 | |
# M.2 Edge TPU: | |
# https://github.com/google-coral/edgetpu/issues/125#issuecomment-642806176 | |
# USB: | |
# https://stackoverflow.com/questions/24225647/docker-a-way-to-give-access-to-a-host-usb-or-serial-device/24231872#24231872 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment