12

我可以很好地使用 TensorFlow。但我还不能使用 TensorBoard。我正在按照 tensorflow.org 的可视化学习页面上的说明进行操作。

当我跑

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,我会看到一个空白的白页。

[堆栈:通过 pip 安装的 OSX、Google Chrome、Python 3、TensorFlow]

4

2 回答 2

27

Try navigating to localhost:6006 instead (equivalent to http://127.0.0.1:6006/).

It works fine for me while http://0.0.0.0:6006 yields no result.

于 2016-06-17T14:24:26.350 回答
1

我在 TensorBoard 1.4 上遇到了类似的问题(启动时没有错误,但浏览器中出现黑页)。就我而言,它有助于使用 --host 将主机明确设置为 127.0.0.1

于 2018-02-09T12:38:06.283 回答