[tensorboard]常见系列错误,ValueError: GetLogdirSubdirectories: path exists and is not a directory解决方法及防坑指南

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/slz0813/article/details/82563037

很久没有用tensorboard查看图类结构,结果使用 tensorboard  --logdir 时一直报 ValueError: GetLogdirSubdirectories: path exists and is not a directory 错误。查了半小时帖子(强迫症),发现自己犯了个低级错误 logdir=  log文件所在文件夹目录,而不是指向该文件,其实通过错误字也可以发现该问题原因。该贴没有太多营养,仅为了防坑,如果有同类问题的同学,解决方案自取。

总结如下:

tensorboard 正确使用命令(linux,win同理):

tensorboard  --logdir= 你的log文件所在的目录,注意不是log文件!是目录!

如:tensorboard  --logdir=./logs/

1、ValueError: GetLogdirSubdirectories: path exists and is not a directory错误

解决方法:注意是log文件所在目录地址,不是log文件

2、ValueError: GetLogdirSubdirectories: path exists and is not a directory 错误

解决方法:注意是 “--”    “tensorboard logdir=”"tensorboard -logdir"都存在错误会出现该报错

3、其他问题,请检查tensorboard版本,可能由版本所致。

猜你喜欢

转载自blog.csdn.net/slz0813/article/details/82563037