1. 程式人生 > >TensorFlow學習_(3)

TensorFlow學習_(3)

spec current -s log文件 menu png rec dashboard one

在實際運行tensorboard的時候出現 No dashboards are active for the current data set.

官方文檔:

My TensorBoard isn‘t showing any data! What‘s wrong?

First, check that the directory passed to --logdir is correct. You can also verify this by navigating to the Scalars dashboard (under the "Inactive" menu) and looking for the log directory path at the bottom of the left sidebar.

If you‘re loading from the proper path, make sure that event files are present. TensorBoard will recursively walk its logdir, it‘s fine if the data is nested under a subdirectory. Ensure the following shows at least one result:

find DIRECTORY_PATH | grep tfevents

You can also check that the event files actually have data by running tensorboard in inspect mode to inspect the contents of your event files.

tensorboard --inspect --logdir DIRECTORY_PATH

首先檢查logdir的路徑是否正確,也要看scalars那個指標(我連頁面都打不開,哪看的到Scalars)!!!

路徑要是正確的話,數據會在你寫的文件目錄的子目錄裏

技術分享圖片

我在這裏用的path=‘./log‘ 相當於在該目錄下建立了一個log子目錄

但我用cmd運行的時候,出現了這樣一個問題,給的網址根本打不開

技術分享圖片

後來我嘗試把路徑改成這樣

技術分享圖片

想當與把log文件夾具體路徑寫在logdir的後面,該鏈接可以正常打開!

TensorFlow學習_(3)