I am running py-fast-rcnn with cuDNN enabled in the g2.8xlarge instance of EC-2 with the Ubuntu 14.04 operating system. Everything compiled and seems to work fine. I enter the remote instance via:
ssh -X -i "<key.pem>" ubuntu@ <IP address>
I also enter the command: export DISPLAY=:0
Running ./tools/demo.py The result looks good:
Loaded network /home/ubuntu/py-faster-rcnn/data/faster_rcnn_models/VGG16_faster_rcnn_final.caffemodel ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Demo for data/demo/000456.jpg Detection took 0.543s for 300 object proposals ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Demo for data/demo/000542.jpg Detection took 0.506s for 161 object proposals ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Demo for data/demo/001150.jpg Detection took 0.507s for 194 object proposals ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Demo for data/demo/001763.jpg Detection took 0.507s for 196 object proposals ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Demo for data/demo/004545.jpg Detection took 0.541s for 300 object proposals
But the graphical output does not appear in my XQuartz window.
Has anyone else solved this? You need to figure out how to use AWS equipment, but with local visualization capabilities. Checked here, but I could not solve my problem: BVLC / caffe # 861
EDIT
Here are links to my remote sshd_config and local ssh_config .
The following are the results of the requested tests on a remote AWS server:
$ echo $DISPLAY localhost:10.0
and
$ DISPLAY=localhost:10.0 xhost && echo success access control enabled, only authorized clients can connect success
UPDATE
Executing the xeyes and xcalc on the remote computer after applying the above steps leads to the expected result (eyes, first, the calculator in the second) on the local client. This is probably a problem with python. Start searching there.
SOLUTION - UPDATE OF PYTHON LIBRARIES
After verifying that my system was configured to support X11 forwarding with the guidance of those who responded to this post, I focused on conducting a series of python tests to see if matplotlib works matplotlib with X11. You can verify this yourself by running this script interactively . If xcalc and xeyes are working properly, but this script is causing an error, the problem lies in python / matplotlib .
Since then I fixed the problem, so I donβt have the error that appeared on hand, but the steps to fix it on Ubuntu 14.04, g2.8xlarge EC2 were as follows:
- Install gobject python:
sudo apt-get install python-gobject-dev - Install python-tk:
sudo apt-get install python-tk - Install pygtk:
wget http://ftp.gnome.org/pub/GNOME/sources/pygtk/2.24/pygtk-2.24.0.tar.gztar -xvzf pygtk-2.24.0.tar.gzcd pygtk-2.24.0./configuremakesudo make installcd
- If
matplotlib was installed using the package manager, for example. pip , uninstall it and reinstall from source:sudo pip uninstall matplotlibgit clone https://github.com/matplotlib/matplotlib.gitcd matplotlibsudo python setup.py installcd
- Not sure if this is necessary, but
sudo apt-get install xorg openbox successfully executed.
After completing the above steps, python ./tools/demo.py with the root directory py-faster-rcnn returns the expected images of the bounding fields and class probabilities.