记录使用可视化学习Tensorboard遇到的问题
错误信息
(tensorflow) D:\07 python\DeepLearning\tmp\summary>tensorboard --logdir=test
W0408 10:06:01.781227 18412 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.
W0408 10:06:01.782227 18412 plugin_event_accumulator.py:302] Found more than one metagraph event per run. Overwriting the metagraph with the newest event.
W0408 10:06:01.796236 18412 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.
W0408 10:06:01.796236 18412 plugin_event_accumulator.py:302] Found more than one metagraph event per run. Overwriting the metagraph with the newest event.
TensorBoard 1.13.1 at http://DESKTOP-327Q2O9:6006 (Press CTRL+C to quit)
Traceback (most recent call last):
File "c:\users\wzh\appdata\local\programs\python\python37\lib\runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "c:\users\wzh\appdata\local\programs\python\python37\lib\runpy.py", line 85, in _run_code
exec(code, run_globals)
File "C:\Users\wzh\AppData\Local\Programs\Python\Python37\Scripts\tensorboard.exe\__main__.py", line 9, in <module>
File "c:\users\wzh\appdata\local\programs\python\python37\lib\site-packages\tensorboard\main.py", line 57, in run_main
app.run(tensorboard.main, flags_parser=tensorboard.configure)
File "c:\users\wzh\appdata\local\programs\python\python37\lib\site-packages\absl\app.py", line 300, in run
_run_main(main, args)
File "c:\users\wzh\appdata\local\programs\python\python37\lib\site-packages\absl\app.py", line 251, in _run_main
sys.exit(main(argv))
File "c:\users\wzh\appdata\local\programs\python\python37\lib\site-packages\tensorboard\program.py", line 228, in main
self._register_info(server)
File "c:\users\wzh\appdata\local\programs\python\python37\lib\site-packages\tensorboard\program.py", line 274, in _register_info
manager.write_info_file(info)
File "c:\users\wzh\appdata\local\programs\python\python37\lib\site-packages\tensorboard\manager.py", line 269, in write_info_file
payload = "%s\n" % _info_to_string(tensorboard_info)
File "c:\users\wzh\appdata\local\programs\python\python37\lib\site-packages\tensorboard\manager.py", line 129, in _info_to_string
for k in _TENSORBOARD_INFO_FIELDS
File "c:\users\wzh\appdata\local\programs\python\python37\lib\site-packages\tensorboard\manager.py", line 129, in <dictcomp>
for k in _TENSORBOARD_INFO_FIELDS
File "c:\users\wzh\appdata\local\programs\python\python37\lib\site-packages\tensorboard\manager.py", line 51, in <lambda>
(dt - datetime.datetime.fromtimestamp(0)).total_seconds()),
OSError: [Errno 22] Invalid argument
是tensorboar的版本出了问题。
解决方法:把Tensorboard的版本降到1.12.1
具体实现:pip uninstall tensorboard 先卸载原有的tensorboard
pip install tensorboard==1.12.1 安装1.12.1版本的tensorboard
输入给定网址后显示拒绝访问
改为输入http://localhost:6006就正常显示了