question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Passing multiple logdirs doesn't work (and raises warning about "Conflict for name")

See original GitHub issue

These work:

tensorboard --logdir logs/foo
tensorboard --logdir logs/bar
tensorboard --logdir a:logs/foo,b:logs/bar

But when I run this:

tensorboard --logdir logs/foo,logs/bar

I get a warning like this repeatedly printed:

WARNING:tensorflow:Conflict for name .: old path /home/colin/src/myproject/logs/foo, new path /home/colin/src/myproject/logs/bar

In tensorboard, only one run is shown.

I installed tensorflow-tensorboard using pip, and the version is 0.1.2

(I tried debugging, but the warning gets raised in a separate daemon thread, and I wasn’t able to figure out how to get pdb to attach to it)

Issue Analytics

  • State:open
  • Created 6 years ago
  • Comments:14 (6 by maintainers)

github_iconTop GitHub Comments

4reactions
wchargincommented, Jul 6, 2017

@colinmorris you can attach pdb as follows:

diff --git a/tensorboard/backend/event_processing/event_multiplexer.py b/tensorboard/backend/event_processing/event_multiplexer.py
index 8a71f82..66e576a 100644
--- a/tensorboard/backend/event_processing/event_multiplexer.py
+++ b/tensorboard/backend/event_processing/event_multiplexer.py
@@ -124,6 +124,7 @@ class EventMultiplexer(object):
         if name in self._paths and self._paths[name] != path:
           # TODO(danmane) - Make it impossible to overwrite an old path with
           # a new path (just give the new path a distinct name)
+          import pdb; pdb.set_trace()  # XXX BREAKPOINT
           tf.logging.warning('Conflict for name %s: old path %s, new path %s',
                              name, self._paths[name], path)
         tf.logging.info('Constructing EventAccumulator for %s', path)

(You must invoke with bazel-bin/tensorboard/tensorboard --logdir /tmp/a,/tmp/b rather than bazel run tensorboard -- --logdir /tmp/a,/tmp/b.)

3reactions
shwangcommented, Jun 6, 2020

Here’s a simple way to make this work that avoids the overlapping run names issue.

We could add another flag --log_dir_multi [log_dir1] [log_dir2] ....

It errors if the --log_dir option is also present. To process this flag, Tensorboard first makes a temporary directory $gather_dir. Then Tensorboard makes a symlinks all the log dirs in $gather_dir/[log_dir#]. Finally Tensorboard proceeds as if we ran tensorboard --log_dir $gather_dir.

The run names will look as if you ran tensorboard --log_dir . but only with the selected log dirs.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How do display different runs in TensorBoard? - Stack Overflow
logdir is for telling tensorboard to search iterativly for all runs. If you want to give a name for each run and constraine...
Read more >
Warnings and Errors - Oracle Help Center
Cause: The specified log directory for the connection does not match the log directory that was specified when the database was created. Impact:...
Read more >
Stable Baselines Documentation - Read the Docs
Stable Baselines Documentation, Release 2.10.3a0. 2. User Guide ... docker run -it --rm --network host --ipc=host --name test --mount ...
Read more >
https://perldoc.perl.org/5.22.1/perldiag.txt
Perhaps you didn't do an open(), or did it in another package. ... C<\x08> might indicate that you meant something different, so the...
Read more >
1. Foreman 3.1 Manual
The installer in particular will conflict with a Puppet Enterprise installation. It is recommended that Foreman is installed using Puppet “open source”.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found