Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save asantos2000/f697341d479df240f839c1f1bc6f536b to your computer and use it in GitHub Desktop.

Select an option

Save asantos2000/f697341d479df240f839c1f1bc6f536b to your computer and use it in GitHub Desktop.
#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
@asantos2000
Copy link
Author

It's quite slow, but works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment