Tensorboard --logdir=logs 无法显示图像的处理办法,亲测有效!

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: Apr 18, 2021, 2:56:06 PM
Log directory: \logs
问题描述:Tensorboard --logdir=logs 无法显示图像的处理办法,亲测有效!_第1张图片
参照好多博客都没解决这个问题(查看端口,更新tensorboard版本,把=换成“”,把6006换成其他端口,更改路径都试过,对我来说都没解决)

解决办法:

tensorboard --logdir="torch learning\logs"#注意要是双引号,而且路径不能单单是logs,还要包括logs的上级目录或者写成\logs

也可以使用全局路径:“D:\pythonProject\torch learning\logs”

tensorboard --logdir="logs"
tensorboard --logdir='logs'
tensorboard --logdir=logs
tensorboard --logdir=\logs
tensorboard --logdir=D:\pythonProject\torch learning\logs
#无论是全局路径还是相对路径,以上的命令我的电脑上都会报错或者不出图
tensorboard --logdir="\logs"
tensorboard --logdir="torch learning\logs"
tensorboard --logdir="D:\pythonProject\torch learning\logs"
#以上命令都可以

总结:这个问题搞了好几个小时,很是头疼,不知道因为版本问题还是什么问题,用双引号(单引号不行)""引号里面写logs的路径,如果只索引logs需要在前面加上\

你可能感兴趣的:(笔记,cmd,python,tensorflow,pytorch)