TensorFlow学习_(3)

本文介绍了TensorBoard在使用过程中可能出现的显示问题及解决方案,重点在于如何确保logdir路径设置正确,以及如何验证路径下的事件文件是否存在有效数据。

在实际运行tensorboard的时候出现 No dashboards are active for the current data set.

 

官方文档:

My TensorBoard isn't showing any data! What's wrong?

First, check that the directory passed to --logdir is correct. You can also verify this by navigating to the Scalars dashboard (under the "Inactive" menu) and looking for the log directory path at the bottom of the left sidebar.

If you're loading from the proper path, make sure that event files are present. TensorBoard will recursively walk its logdir, it's fine if the data is nested under a subdirectory. Ensure the following shows at least one result:

find DIRECTORY_PATH | grep tfevents

You can also check that the event files actually have data by running tensorboard in inspect mode to inspect the contents of your event files.

tensorboard --inspect --logdir DIRECTORY_PATH

首先检查logdir的路径是否正确,也要看scalars那个指标(我连页面都打不开,哪看的到Scalars)!!!

路径要是正确的话,数据会在你写的文件目录的子目录里

我在这里用的path='./log' 相当于在该目录下建立了一个log子目录

但我用cmd运行的时候,出现了这样一个问题,给的网址根本打不开

后来我尝试把路径改成这样

想当与把log文件夹具体路径写在logdir的后面,该链接可以正常打开!

转载于:https://www.cnblogs.com/AlexHaiY/p/9323149.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值