TensorBoard无法正常工作

时间:2016-03-12 18:01:24

标签: tensorflow tensorboard

我能够很好地使用TensorFlow。但我根本无法使用TensorBoard。我按照tensorflow.org' Visualizing Learning page上的说明进行操作。

当我跑步时

tensorboard --logdir=/tmp/mnist_logs --debug

我得到以下

INFO:tensorflow:TensorBoard is in debug mode.
INFO:tensorflow:Starting TensorBoard in directory /private/tmp/mnist_logs
INFO:tensorflow:TensorBoard path_to_run is: {'/tmp/mnist_logs': None}
INFO:tensorflow:Adding events from directory /tmp/mnist_logs
INFO:tensorflow:Constructing EventAccumulator for /tmp/mnist_logs
DEBUG:tensorflow:Opening a record reader pointing at /tmp/mnist_logs/events.out.tfevents.1457792617.Rafaels-MacBook-Air
WARNING:tensorflow:IOError [Errno 2] No such file or directory: '/usr/local/lib/python3.5/site-packages/tensorflow/tensorboard/TAG' on path /usr/local/lib/python3.5/site-packages/tensorflow/tensorboard/TAG
WARNING:tensorflow:Unable to read TensorBoard tag
Starting TensorBoard  on port 6006
(You can navigate to http://0.0.0.0:6006)
DEBUG:tensorflow:No more events in /tmp/mnist_logs/events.out.tfevents.1457792617.Rafaels-MacBook-Air
INFO:tensorflow:No more files in /tmp/mnist_logs
DEBUG:tensorflow:No more events in /tmp/mnist_logs/events.out.tfevents.1457792617.Rafaels-MacBook-Air
INFO:tensorflow:No more files in /tmp/mnist_logs
INFO:tensorflow:Multiplexer done loading. Load took 0.9 secs

如果我唠叨http://0.0.0.0:6006,我会看到一个空白的白页。

[Stack:OSX,Google Chrome,Python 3,通过pip安装的TensorFlow]

2 个答案:

答案 0 :(得分:19)

尝试导航到localhost:6006(相当于http://127.0.0.1:6006/)。

它对我来说很好,而http://0.0.0.0:6006没有结果。

答案 1 :(得分:0)

我在TensorBoard 1.4上遇到了类似的问题(启动时没有错误,浏览器中没有黑页)。在我的例子中,它有助于使用--host

将主机显式设置为127.0.0.1