How to use tensorboard
井民全, Jing, mqjing@gmail.com
Google doc: This Document
Back to the Main Page
先別談細節, 先讓 tensorboard 跑起來玩一下. 會動了, 你就可以閱讀接下來的 [Further Reading] 文章.
Fig. A tensorboard running example.
TL;DR
這份文件讓你在最短時間, 不需要動大腦的就可以玩 tensorboard.
用圖形化的方式觀察你的 tensorflow 模型的訓練收斂情況.
Before you do anything
Show Me the Example
Step 1: Download the Minist Source with Summary Code
Step 2: Run the Training and Testing Process
Command
python minist_with_summaries.py
E.g.
Step 3: Run the Tensorboard
Command
tensorboard --logdir=/tmp/tensorflow/mnist
Got Error
Traceback (most recent call last):
File "/home/jing/anaconda3/envs/tensorflow/bin/tensorboard", line 4, in
import tensorflow.tensorboard.tensorboard
ImportError: No module named 'tensorflow.tensorboard'
|
Workaround
Modify the tensorboard script
~/anaconda3/envs/tensorflow/bin/tensorboard
Reference
|
Run tensorboard
tensorboard --logdir=/tmp/tensorflow/mnist
Verification
Open http://jing-VirtualBox:6006
E.g.