我試圖在TensorFlow 0.7.1中使用TensorBoard顯示Google的Inception v3模型,但無法這樣做。該TensorBoard圖表選項卡攤位無法使用TensorFlow在TensorBoard中直觀顯示Inception v3模型0.7.1
Data : Reading graph.pbtxt
我下載了一個未使用tar打包的inception v3 model的聲明。圖形protobuffer在/tmp/imagenet/classify_image_graph_def.pb
。
這裏是我的代碼轉儲模式:
import os
import os.path
import tensorflow as tf
from tensorflow.python.platform import gfile
INCEPTION_LOG_DIR = '/tmp/inception_v3_log'
if not os.path.exists(INCEPTION_LOG_DIR):
os.makedirs(INCEPTION_LOG_DIR)
with tf.Session() as sess:
model_filename = '/tmp/imagenet/classify_image_graph_def.pb'
with gfile.FastGFile(model_filename, 'rb') as f:
graph_def = tf.GraphDef()
graph_def.ParseFromString(f.read())
_ = tf.import_graph_def(graph_def, name='')
writer = tf.train.SummaryWriter(INCEPTION_LOG_DIR, graph_def)
writer.close()
這轉儲稱爲events.out.tfevents.1456423256.[hostname]
(相同大小的圖形protobuffer)一個91 MB的文件,似乎圖是在那裏的地方。
我跑TensorBoard如下:
tensorboard --logdir /tmp/inception_v3_log
導致圖形頁面上的掛上述加載條。
中的Chrome的JavaScript控制檯收益率這個錯誤:我以爲
Uncaught TypeError: Cannot read property '0' of undefined
相關的事實,圖表丟失。
我已經在OS X 10.11.3上使用Chrome 48.0.2564.116(64位)與TensorFlow 0.7.1一起使用Bazel構建的Python 3和TensorFlow 0.7.1構建Python 2,並通過pip與Python 2完全相同的結果。
我也驗證了我可以可視化與mnist_with_summaries example生成的圖形,所以這是專門與盜夢空間模型的問題。
官方的地方報告TensorFlow錯誤是[GitHub上的問題(https://github.com/tensorflow/tensorflow/issues) –
謝謝@GuyCoder,我創建了一個正式的問題: https://github.com/tensorflow/tensorflow/issues/1287 –