Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to run py-faster-rcnn with X11 forwarding #212

Closed
aaronpolhamus opened this issue Jun 6, 2016 · 2 comments
Closed

How to run py-faster-rcnn with X11 forwarding #212

aaronpolhamus opened this issue Jun 6, 2016 · 2 comments

Comments

@aaronpolhamus
Copy link

aaronpolhamus commented Jun 6, 2016

I'm running py-faster-rcnn with cuDNN enabled on a g2.8xlarge EC-2 instance with Ubuntu 14.04 operating system. Everything's compiled and seems to be working fine. I log in to 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 output 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 graphical output is not rendered in my XQuartz window.

Has anyone else solved this? Need to figure out how to use AWS hardware but with local visualization capabilities. Checked here, but I wasn't able to solve my problem: BVLC/caffe#861

@ricepot100
Copy link

If you install xshell with xmanager, you could config the xshell:
File-->Connection--->SSH--->Tunneling--->X11 Forwarding, check select the "Forward X11 connections to: "--->Xmanager

@aaronpolhamus
Copy link
Author

so the problem was actually related to matplotlib. see StackExchange for the process that I went through to get this all running: http://stackoverflow.com/questions/37663127/how-to-run-py-faster-rcnn-with-x11-forwarding

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants