Tensorboard Error: No Dashboards Are Active For Current Data Set
Solution 1:
Your issue may be related to the drive you are attempting to start tensorboard
from and the drive your logdir
is on. Tensorboard
uses a colon to separate the optional run name and the path in the logdir flag, so your path is being interpreted as \path\to\output\folder with name C.
This can be worked around by either starting tensorboard
from the same drive as your log directory or by providing an explicit run name, e.g. logdir=mylogs:C:\path\to\output\folder
See here for reference to the issue.
Solution 2:
In case of Windows,I got a workaround.
cd /path/to/log
tensorboard --logdir=./
Here you can use path as normal. Keep in mind not to give spaces with it as logdir = ./.
This gave me an error:
No dashboards are active for the current data set. Probable causes: - You haven’t written any data to your event files. - TensorBoard can’t find your event files.
Solution 3:
In Windows 10, this command works
tensorboard --logdir=training/
Here training is the directory where output files are written. Please note it does not have any quotes and has a slash (/) at the end. Both are important.
Solution 4:
Try this instead:
tensorboard --logdir="C:\path\to\output\folder"
Solution 5:
Well, you have several issues with your code.
- You are creating a summary writer (
tf.summary.FileWriter
) but you don't actually write anything with it.print(sess.run(b))
has nothing to do with tensorboard if you expected this to has some effect on it. It just prints the value ofb
- You don't create and
summary
object to connect some value with. - You are probably entering wrong folder for tensorboard.
More analytically:
- You need a summary object to write a summary. For example a
tf.summary.scalar
to write a scalar to a summary. Something liketf.summary.scalar("b_value", b)
to write the value ofb
to a summary. - Then you actually need to run your summary operation into a session to get it working, like:
summary = sess.run(summary_scalar)
. - Write the value with the writer you defined previously:
writer.add_summary(summary)
. - Now there is something to see in tensorboard, using
tensorboard --logdir=output
in a terminal - In general use you will probably need
tf.summary.merge_all()
to pass torun
in order to gather all your summaries together.
Hope this helps.
Post a Comment for "Tensorboard Error: No Dashboards Are Active For Current Data Set"