在windows启动TensorBoard感觉不是很友好,各种问题。
网上也有其他一些相应的解决办法,我这里在列举两个你可能(墙内)搜不到的问题。
先讲启动TensorBoard的方法:
cmd 进入虚拟环境,必须是已激活的虚拟环境,比如我用的一个虚拟环境 (venv)E:\python\venv,看到前面那个’(venv)'说明是已经激活的虚拟环境。
如果你是用Anaconda自建的环境的话,直接菜单输入Prompt就直接OK。
此时在命令行输入tensorboard --logdir ./ --host localhost。第一个参数’–logdir ./’ 表示使用当前目录,第二个参数‘-- host localhost’ 表示位置为本地主机。
如果不能自动启动,在浏览器输入“https://localhost:6006”即可
可能遇到的问题一:
W0723 17:52:33.198802 15096 plugin_event_accumulator.py:294] Found more than one graph event per run, or there was a metagraph containing a graph_def, as well as one or more graph events. Overwriting the graph with the newest event.
W0723 17:52:33.199800 15096 plugin_event_accumulator.py:302] Found more than one metagraph event per run. Overwriting the metagraph with the newest event.
W0723 17:52:33.250769 15096 plugin_event_

在Windows上使用虚拟环境启动TensorBoard可能会遇到一些问题,如错误提示等。解决方法包括:删除TensorBoard生成的流图并重新运行程序,或回退TensorBoard版本到1.12.2,因为1.13.1可能存在Windows上的bug。另外,更新Python版本也可能有助于解决问题。若还有其他问题,可尝试搜索或寻求社区讨论。
最低0.47元/天 解锁文章
5023

被折叠的 条评论
为什么被折叠?



