2016-12-15 281 views
3

我使用Tensorflow在Windows,但是當我嘗試推出Tensorboard開放http://localhost:6006瀏覽器顯示空白頁Tensorflow Tensorboard在Windows上顯示空白頁

我已經加入了代碼行 writer = tf.train.SummaryWriter('mypath/my_graph', sess.graph)

我Tensorflow模型並推出tensorboard與 tensorboard --logdir="mypath/my_graph"

這裏的控制檯輸出:

enter image description here

以下mrry建議我已更新至0.12.0rc1,現在顯示Tensorboard頁面,但不幸的是我看不到任何圖形,並且缺少左側面板以手動上傳圖形文件,我可以在某些屏幕截圖中看到的官方指南。

enter image description here

也試過用

writer = tf.summary.FileWriter('mypath/my_graph', sess.graph) 

以下棄用提示

編輯

我已經找到了問題。如果我啓動tensorboard --logdir="mypath/my_graph"如果以管理員身份運行控制檯,TensorBoard無法加載路徑並始終查看默認用戶路徑C:\Users\andrew\mygraph\中的圖形文件(如果我以用戶身份運行控制檯或C:\Windows\System32)。這是一個錯誤,應該修復。

+0

哪個TensorFlow的版本,您使用的

tensorboard --logdir = \家\用戶\圖? 0.12.0rc0有一個已知問題,但它應該固定在0.12.0rc1。 – mrry

+0

我正好使用版本0.12.0 rc0 – AndreaF

+0

您使用'writer'編寫的日誌文件中是否有任何內容?一個常見的錯誤是在不調用'writer.close()'或'writer.flush()'的情況下退出。 – mrry

回答

2

Windows上的TensorFlow的0.12.0rc0(Release Candidate 0)版本包含TensorBoard的破碎版本。我們最近發佈了一個新版本(0.12.0rc1,Release Candidate 1),其中包含Windows上TensorBoard的修補程序。您可以按照instructions for installing the latest release on Windows進行升級,或者在命令提示符下輸入pip install --upgrade tensorflow

+0

我已更新,現在我可以看到TensorBoard頁面,但張量局似乎無法找到我的圖形定義文件。查看更新的問題。 – AndreaF

+1

如果您的摘要在,例如「E:\ tf \ summaries」,在Windows中啓動cmd,然後運行「E:」,然後運行「tensorboard --logdir = \ tf \ summaries」 –

0

Ubuntu的我們可以使用:

tensorboard --logdir =/home/user中/圖/

的Windows我們必須在命令提示符下切換到該目錄,其中圖文件被放置,然後使用:\