无法打开tensorboard 0.0.0:6006或localhost:6006

2024-09-28 20:59:58 发布

您现在位置:Python中文网/ 问答频道 /正文

当我在cmd中使用tensorboard和win10时

D:\ python document\tensorflow>;tensorboard--logdir=D:\ python document\tensorflow 在http://0.0.0.0:6006开始张力板b'47'

但当我打开网页时,它显示

“拨号tcp 0.0.0.0:6006:connectex:请求的地址在其上下文中无效。”

我试过localhost:6006,结果显示

“未找到标量数据。”

那我现在该怎么办


Tags: gtcmdlocalhosthttp网页地址tensorflowdocument
2条回答

请参阅tensorflow issue#9701

在命令提示符下运行tensorboard --logdir=YOUR_LOG_DIR --host=127.0.0.1, 在chrome中输入localhost:6006,这对我很有用(Win10,anaconda4.3.16,python3.5.3,tensorflow1.1.0)。

@Johnson Lai的解决方案(tensorboard --logdir=YOUR_LOG_DIR --host=127.0.0.1)是有效的,只需在命令尾部添加--host=127.0.0.1

但是你应该用你自己的log dir代替log_dir

提示:log dir中,日志文件(文件夹)喜欢run-20180422085300


这是我的测试!

在任意位置启动你的命令:

运行commondtensorboard --logdir [your log dir] --host=127.0.0.1

或者

使用log dir或commond启动命令cd [your log dir]

运行commondtensorboard --logdir ./ --host=127.0.0.1

我更喜欢第二种方法!

相关问题 更多 >