[英]Tensorflow Tensorboard default port
Is there a way to change the default port ( 6006
) on TensorBoard so we could open multiple TensorBoards?有没有办法更改 TensorBoard 上的默认端口(
6006
),以便我们可以打开多个 TensorBoard? Maybe an option like --port="8008"
?也许像
--port="8008"
这样的选项?
事实上,有一个选项可以更改默认端口...
tensorboard --logdir=/tmp --port=8008
You should provide a port flag ( --port=6007
).您应该提供一个端口标志(
--port=6007
)。
But I am here to explain how you can find it and other flags without any documentation.但我在这里解释如何在没有任何文档的情况下找到它和其他标志。 Almost all command line tools have a flag
-h
or --help
which shows all possible flags this tool allows.几乎所有的命令行工具都有一个标志
-h
或--help
来显示这个工具允许的所有可能的标志。
By running it you will see information about a port flag and that --logdir
allows you to通过运行它,您将看到有关端口标志的信息,并且
--logdir
允许您
also pass a comma separated list of log directories
还传递一个逗号分隔的日志目录列表
and you can also inspect separate event-files and tags with --event_file
and --tag
flags您还可以使用
--event_file
和--tag
标志检查单独的事件文件和标签
If you are already in the directory where TensorFlow writes its logs, you should specify the port first:如果您已经在 TensorFlow 写入日志的目录中,您应该首先指定端口:
tensorboard --port=6007 --logdir runs
If you are feeding a directory to logdir
, then the order doesn't matter.如果您将目录提供给
logdir
,则顺序无关紧要。 (I am using TensorBaord 1.8) (我使用的是 TensorBaord 1.8)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.