Tensorflow Tensorboard on Windows shows a blank page

6.3k views Asked by At

I'm using Tensorflow on Windows but when I try to launch Tensorboard opening http://localhost:6006 the browser shows a blank page

I have added the codeline writer = tf.train.SummaryWriter('mypath/my_graph', sess.graph)

to my Tensorflow model and launched tensorboard with tensorboard --logdir="mypath/my_graph"

Here the console output:

enter image description here

Following mrry suggestion I have updated to 0.12.0rc1 and now the Tensorboard page is shown but unfortunately I cannot see any graph, and is missing also the left panel to upload a graph file manually that I can see in some screenshots of the official guide.

enter image description here

Tried also to use

writer = tf.summary.FileWriter('mypath/my_graph', sess.graph)

following the deprecation hint

EDIT

I have found the problem. If I launch tensorboard --logdir="mypath/my_graph" TensorBoard is unable to load the path and looks always for the graph files in the default user path C:\Users\andrew\mygraph\ if I run console as user or C:\Windows\System32 if I run console as administrator. This is a bug and should be fixed.

2

There are 2 answers

0
Reeves On

In ubuntu we can use:

tensorboard --logdir=/home/user/graph/

In Windows we have to change the command prompt to the directory in which the graph file is placed and then use:

tensorboard --logdir=\home\user\graph\

2
mrry On

The 0.12.0rc0 (Release Candidate 0) release of TensorFlow on Windows contains a broken version of TensorBoard. We recently made a new release (0.12.0rc1, Release Candidate 1) that contains a fix for TensorBoard on Windows. You can upgrade by following the instructions for installing the latest release on Windows, or simply typing pip install --upgrade tensorflow at the command prompt.