Unable to open Tensorboard in browser

2019-03-16 14:31发布

问题:

I am following google cloud machine learning tutorial and I am unable to Launch TensorBoard

I've followed the steps in the above tutorial (also set up my environment using docker container) until typing the below command in the terminal

tensorboard --logdir=data/ --port=8080

Where the terminal outputs the below prompt

Starting TensorBoard 29 on port 8080
(You can navigate to http://172.17.0.2:8080)

When I visit http://172.17.0.2:8080 in my browser I see nothing (the server where this page is located is not responding).

Can someone please advice how I can launch Tensor Board ?

回答1:

Had the same problem this morning. Solved it with

tensorboard --logdir=data/ --host localhost --port 8088

Navigated the browser to http://localhost:8088



回答2:

It looks like the port 8080 is not open on your machine.
You can check it with this command line tool: netstat -a.

To open a specific port on google cloud platform, see this answer from SO.



回答3:

If you are using Google Cloud Shell you have to click on icon placed in upper left of shell window.



回答4:

I don't know if that's the case, but tensorboard has some visualization problems in several browsers. Try to connect to http://172.17.0.2:8080 with a different browser (for example, on my macbook, safari doesn't work very well with tensorboard and I use google Chrome).



回答5:

as stated by 'rodrigo-silveira'

tensorboard --logdir=data/ --host localhost --port 8088

this works for me as well. just change the name of graph directory. here the directory is data/

writer = tf.summary.FileWriter( 'logs', sess.graph )

here, the directory is logs, so when I typed below command in cmd, below window appeared.

tensorboard --logdir=data/ --host localhost --port 8088

this is the window pop up