Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Text plugin only renders some + most recent events #945

Closed
sleighsoft opened this issue Feb 5, 2018 · 9 comments
Closed

Text plugin only renders some + most recent events #945

sleighsoft opened this issue Feb 5, 2018 · 9 comments

Comments

@sleighsoft
Copy link

sleighsoft commented Feb 5, 2018

I have a neural network that generates text during ~356.000 steps.

Every 50.000 steps I save a summary containing a table of text (100 rows, 5 columns).

When running tensorboard it only displays the results of the last step.

I create the output like this:

from tensorboard import summary as tb_summary

summary_protobuf = tb_summary.text_pb('label', [['c0', ''c1', 'c2', 'c3', 'c4']] * 100)
summary_writer.add_summary(summary_protobuf, global_step=step)
summary_writer.flush()

Sometimes tensorboard also throws this on the commandline:

Exception ignored in: <function _get_module_lock.<locals>.cb at 0x7f48cbe09378>
Traceback (most recent call last):
  File "<frozen importlib._bootstrap>", line 174, in cb
KeyError: ('markdown.extensions.tables',)
@sleighsoft sleighsoft changed the title Text plugin only renders most recent events Text plugin only renders some + most recent events Feb 5, 2018
@nfelt
Copy link
Collaborator

nfelt commented Feb 8, 2018

Hm, is it just displaying the last step or also "some" events in addition? If you run tensorboard with the --inspect flag against the same data, what does it show?

Re: the KeyError, that's pretty strange. Is that the full stacktrace? At what point in running tensorboard does that appear?

Also, if you can provide your TensorBoard version (what it prints out when it starts up) that would help.

@nfelt nfelt self-assigned this Feb 8, 2018
@sleighsoft
Copy link
Author

sleighsoft commented Feb 8, 2018

  1. Let's say I have 350000 steps in total and I log every 10k steps. What I see in tensorboard is something similar to 20k, 150k, 350k. But it seems completely arbitrary. I can try with --inspect soon.
  2. That's all there is. It appears when changing to the Text plugin tab.
  3. Tensorboard 1.5.0

@nfelt
Copy link
Collaborator

nfelt commented Feb 8, 2018

Re: 1, that's probably just the result of reservoir sampling - it is "working as intended" at least right now but we are open to feature requests to make it more customizable. See #83.

Re: 2/3, I'll look into a bit. What platform/OS are you using?

@sleighsoft
Copy link
Author

I am on Windows 10.

@nfelt
Copy link
Collaborator

nfelt commented Feb 14, 2018

Re: the KeyError, it looks like perhaps that's related to https://bugs.python.org/issue31070 versus something specific to the text plugin. What is your full 3-digit python version? If it's less than 3.6.3, upgrading to 3.6.3 or higher might fix your issue.

@sleighsoft
Copy link
Author

3.6.2. I'll give it a try

@sleighsoft
Copy link
Author

Haven't had that issue with 3.6.2

@nfelt
Copy link
Collaborator

nfelt commented Mar 29, 2018

Did you mean 3.6.3? I'll go ahead and close this since it sounds like the issue may be resolved, but feel free to reopen if that's not the case.

@nfelt
Copy link
Collaborator

nfelt commented Jun 15, 2018

FYI, PR #1138 added a --samples_per_plugin flag that can be used to set the number of samples retained on a per-plugin basis. So e.g. --samples_per_plugin=text=100 should set the text dashboard to retain 100 samples for each series.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants