tensorboard可视化建模

(一)发现执行问题
PS D:\PycharmProjects\PyCharm> tensorboard
tensorboard : 无法将“tensorboard”项识别为 cmdlet、函数、脚本文件或可运行程序的名称。请检查名称的拼写,如果包括路径,
请确保路径正确,然后再试一次。
(二)原因及修改
这是tensorboard执行程序没有在环境变量中。首先需要找到tensorboard.exe,然后将其路径放到系统变量path中。我的tensorboard已经下载,安装好。在C:\Users\jsg\Anaconda3\Scripts中找到tensorboard.exe。然后加到环境变量


(三)打开shell命令窗口
然后,在logs所在的路径下,按住shift,右键执行“在此处执行打开powershell命令”,

PS D:\PycharmProjects\PyCharm> tensorboard --logdir=logs
c:\users\jsg\anaconda3\lib\site-packages\h5py\__init__.py:36: FutureWarning: Conversion of the second argument of issubdtype from `float` to `np.floating` is deprecated. In future, it will be treated as `np.float64 == np.dtype(float).type`.
  from ._conv import register_converters as _register_converters
2018-06-18 00:11:52.326924: I T:\src\github\tensorflow\tensorflow\core\platform\cpu_feature_guard.cc:140] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2
W0618 00:11:52.382046 Reloader tf_logging.py:121] 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.
W0618 00:11:52.391038 Reloader tf_logging.py:121] Found more than one metagraph event per run. Overwriting the metagraph with the newest event.
W0618 00:11:52.402575 Reloader tf_logging.py:121] 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.
W0618 00:11:52.412099 Reloader tf_logging.py:121] Found more than one metagraph event per run. Overwriting the metagraph with the newest event.
W0618 00:11:52.422130 Reloader tf_logging.py:121] 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.
W0618 00:11:52.431152 Reloader tf_logging.py:121] Found more than one metagraph event per run. Overwriting the metagraph with the newest event.
W0618 00:11:52.450235 Reloader tf_logging.py:121] 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.
W0618 00:11:52.455216 Reloader tf_logging.py:121] Found more than one metagraph event per run. Overwriting the metagraph with the newest event.
W0618 00:11:52.516460 Reloader tf_logging.py:121] 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.
W0618 00:11:52.519725 Reloader tf_logging.py:121] Found more than one metagraph event per run. Overwriting the metagraph with the newest event.
TensorBoard 1.8.0 at http://SRC-DT:6006 (Press CTRL+C to quit)

(四)查看
然后,将 http://SRC-DT:6006拷贝到谷歌浏览器进行查看。

猜你喜欢

转载自blog.csdn.net/weixin_42052460/article/details/80722025