2016-02-25 52 views
3

我試圖在TensorFlow 0.7.1中使用TensorBoard顯示Google的Inception v3模型,但無法這樣做。該TensorBoard圖表選項卡攤位無法使用TensorFlow在TensorBoard中直觀顯示Inception v3模型0.7.1

Data : Reading graph.pbtxt

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生成的圖形,所以這是專門與盜夢空間模型的問題。

+1

官方的地方報告TensorFlow錯誤是[GitHub上的問題(https://github.com/tensorflow/tensorflow/issues) –

+0

謝謝@GuyCoder,我創建了一個正式的問題: https://github.com/tensorflow/tensorflow/issues/1287 –

回答

0

丹尼爾,

我不知道你提到的protobuffer的東西,但我想你可能要卸載的protobuf並重新安裝tensorflow。

在我從tensorflow v0.6升級到v0.7.1後(在Ubuntu上),我發現了下面的帖子,當我在啓動tensorboard時遇到問題。

我認爲protobuf存在問題。談到這裏:https://github.com/tensorflow/tensorflow/issues/1134#issuecomment-185279000

我結束了卸載protobuf並重新安裝tensorboard。現在我可以啓動董事會並查看我的圖表。祝你好運! :)

相關問題