xxx222
xxx222

Reputation: 3244

How can I reset all the data on the Tensorboard in Tensorflow?

I tried to delete the log file, but I can't even find the file I defined under the logdir path, how am I going to reset the graph every time I rerun my code? That confuses me a lot!

The graph are now stacked on previous graphs, which makes no sense to the final output.

Upvotes: 1

Views: 8473

Answers (2)

Jacob Stern
Jacob Stern

Reputation: 4587

If old runs still show up even after deleting their log directory, try restarting tensorboard, and they should disappear.

Upvotes: 0

Phillip Bock
Phillip Bock

Reputation: 1889

What I do is:

Every run gets a new named subdir of the the logdir path defined in the script as in:

/path-to-you-tb-dir/this_run_name/

Then start your code and (re)start tensorboard with first

fuser 6006/tcp -k

and then

tensorboard --logdir /path-to-you-tb-dir/

Now you'll have a sub dir for each run and a plot accordingly. You can delete selectively (by deleting the particular subdir)

Upvotes: 2

Related Questions