1 pip install tensorboard
2 按然后开两个终端 一个终端输入tensorboard --logdir加你的文件名 回车 就会有一个网址出现
3 在另一个终端打开浏览器 然后输入网址
1 在这里开的终端
2 输入指令
3 显示如下
tensorboard --logdir loss
TensorFlow installation not found - running with reduced feature set.
Exception in thread Reloader:
Traceback (most recent call last):
File "/home/nk/anaconda3/lib/python3.7/threading.py", line 926, in _bootstrap_inner
self.run()
File "/home/nk/anaconda3/lib/python3.7/threading.py", line 870, in run
self._target(*self._args, **self._kwargs)
File "/home/nk/anaconda3/lib/python3.7/site-packages/tensorboard/backend/application.py", line 588, in _reload
multiplexer.Reload()
File "/home/nk/anaconda3/lib/python3.7/site-packages/tensorboard/backend/event_processing/plugin_event_multiplexer.py", line 246, in Reload
Worker()
File "/home/nk/anaconda3/lib/python3.7/site-packages/tensorboard/backend/event_processing/plugin_event_multiplexer.py", line 224, in Worker
accumulator.Reload()
File "/home/nk/anaconda3/lib/python3.7/site-packages/tensorboard/backend/event_processing/plugin_event_accumulator.py", line 177, in Reload
for event in self._generator.Load():
File "/home/nk/anaconda3/lib/python3.7/site-packages/tensorboard/backend/event_processing/directory_watcher.py", line 89, in Load
for event in self._LoadInternal():
File "/home/nk/anaconda3/lib/python3.7/site-packages/tensorboard/backend/event_processing/directory_watcher.py", line 117, in _LoadInternal
for event in self._loader.Load():
File "/home/nk/anaconda3/lib/python3.7/site-packages/tensorboard/backend/event_processing/event_file_loader.py", line 94, in Load
for record in super(EventFileLoader, self).Load():
File "/home/nk/anaconda3/lib/python3.7/site-packages/tensorboard/backend/event_processing/event_file_loader.py", line 71, in Load
self._reader.GetNext()
File "/home/nk/anaconda3/lib/python3.7/site-packages/tensorboard/compat/tensorflow_stub/pywrap_tensorflow.py", line 202, in GetNext
crc_header = struct.unpack('I', crc_header_str)
struct.error: unpack requires a buffer of 4 bytes
Serving TensorBoard on localhost; to expose to the network, use a proxy or pass --bind_all
TensorBoard 2.1.0 at http://localhost:6010/ (Press CTRL+C to quit)
出图如下
http:.....06/
报错如下