今天在学习关于tensorboard的使用的时候出现了几个问题:
问题一:
No dashboards are active for the current data set.
Probable causes:
- You haven’t written any data to your event files.
- TensorBoard can’t find your event files.
If you’re new to using TensorBoard, and want to find out how to add data and set up your event files, check out the README and perhaps the TensorBoard tutorial.
If you think TensorBoard is configured properly, please see the section of the README devoted to missing data problems and consider filing an issue on GitHub.
Last reload: not yet loaded
Data location: .\logs
出现这个问题可能是 没有指定到文件存放路径或者 是输入格式有问题。
一、运行代码
wirter = tf.summary.FileWriter("logs/",sess.graph)
会在代码文件的目录下生成一个文件夹 logs ,接着我们在终端上运行Tensorboard
不要输入成 tensorboard --logdir=‘logs/‘
注意是: tensorboard --logdir=logs(这两个引号可能就是问题出现的原因)
二、可能是因为没有指定好路径
可以先在终端打开logs文件所在的文件夹,然后输入 tensorboard --logdir=logs
问题二:
TensorBoard
Inactive
直接在谷歌浏览器输入:http://localhost:6006/
然后就解决啦!
参考博客:https://blog.csdn.net/Shadow_heaven/article/details/88840995
原文地址:https://www.cnblogs.com/smile321/p/11232635.html