-
Notifications
You must be signed in to change notification settings - Fork 146
Running GibsonEnv on headless server
Fei Xia edited this page Oct 1, 2018
·
6 revisions
-
How to run GibsonEnv in headless mode if I have X server running?
-
Follow these steps:
- Install nvidia-docker2 dependencies following the starter guide. Install
x11vnc
withsudo apt-get install x11vnc
. - Have xserver running on your host machine, and run
x11vnc
on DISPLAY :0. docker run --runtime=nvidia -ti --rm -e DISPLAY -v /tmp/.X11-unix/X0:/tmp/.X11-unix/X0 -v <host path to dataset folder>:/root/mount/gibson/gibson/assets/dataset <gibson image name>
- Run gibson with
python <gibson example or training>
inside docker. - Visit your
host:5900
and you should be able to see the GUI.
- Install nvidia-docker2 dependencies following the starter guide. Install
-
How to run GibsonEnv in headless mode if I don't have X server running?
-
Follow these steps:
- Build your own docker image or pull from
xf1280/gibson:0.3.1
. - Run with
docker run --runtime=nvidia -ti --rm -p 5001:5001 -v <host path to dataset folder>:/root/mount/gibson/gibson/assets/dataset gibson
Note that we don't need to setDISPLAY
variable and pass/tmp/.X11-unix/X0
to container anymore, but we open 5001 port for visualization. - In docker image, change the configuration file, set
display_ui
tofalse
andmode
toheadless
. - open
tmux
, in one tab, runpython <the gibson file you want to run
; in another tab runpython gibson/utils/web_ui.py 5552
. - See the rendering in
host:5001
- Build your own docker image or pull from