Created
April 9, 2018 13:22
-
-
Save asantos2000/f697341d479df240f839c1f1bc6f536b to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| #Reference: https://github.com/tzutalin/labelImg | |
| #change en1 (wifi) for your connected network interface | |
| export IP=$(ifconfig en1 | grep inet | awk '$1=="inet" {print $2}') | |
| export DISPLAY=$IP:0 | |
| xhost +$IP | |
| docker run -it \ | |
| -e DISPLAY=$DISPLAY \ | |
| --workdir="/home/$USER" \ | |
| --volume="/Users/$USER:/home/$USER" \ | |
| -v /tmp/.X11-unix:/tmp/.X11-unix:ro \ | |
| tzutalin/py2qt4 | |
| #Inside the container run | |
| #make qt4py2;./labelImg.py |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It's quite slow, but works.