本文介绍了Tensorboard 错误:当前数据集没有活动的仪表板的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用 Tensorboard,但是每次我使用 Tensorflow 运行任何程序时,当我转到 localhost:6006 查看可视化效果时都会出现错误

I am trying to use Tensorboard but every time I run any program with Tensorflow, I get an error when I go to localhost:6006 to view the Visualization

这是我的代码

a = tf.add(1, 2,)
b = tf.multiply(a, 3)

with tf.Session() as sess:
    writer = tf.summary.FileWriter("output", sess.graph)
    print(sess.run(b))
    writer.close()

当我转到命令提示符并输入时

When I go to the command prompt and enter

tensorboard --logdir=C:\path\to\output\folder

它返回

TensorBoard 0.1.8 at http://MYCOMP:6006 (Press CTRL+C to quit)

当我去 localhost:6006 时,它说

When I go to localhost:6006 it states

当前数据集没有活动的仪表板.可能的原因:- 您尚未将任何数据写入事件文件.- TensorBoard 找不到您的事件文件.

我看过这个链接(Tensorboard:当前数据集没有活动的仪表板)但它似乎没有解决这个问题

I have looked at this link (Tensorboard: No dashboards are active for the current data set) but it doesn't seem to fix this issue

我在 Windows 10 上运行这个

And I am running this on Windows 10

我该怎么做才能解决这个问题?我是否在命令提示符中为 Tensorboard 提供了正确的路径?

What do I do to fix this issue? Am I giving the right path for Tensorboard in the command prompt?

提前致谢

推荐答案

您的问题可能与您尝试启动 tensorboard 的驱动器和 logdir 的驱动器有关> 已开启.Tensorboard 使用冒号分隔可选的运行名称和 logdir 标志中的路径,因此您的路径被解释为名称为 C 的 \path\to\output\folder.

Your issue may be related to the drive you are attempting to start tensorboard from and the drive your logdir is on. Tensorboard uses a colon to separate the optional run name and the path in the logdir flag, so your path is being interpreted as \path\to\output\folder with name C.

这可以通过从与日志目录相同的驱动器启动 tensorboard 或提供明确的运行名称来解决,例如logdir=mylogs:C:\path\to\output\folder

This can be worked around by either starting tensorboard from the same drive as your log directory or by providing an explicit run name, e.g. logdir=mylogs:C:\path\to\output\folder

请参阅此处以了解问题.

这篇关于Tensorboard 错误:当前数据集没有活动的仪表板的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-15 21:27