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

Tensorboard dropping messages? #191

Closed
thedch opened this issue Jul 20, 2018 · 5 comments
Closed

Tensorboard dropping messages? #191

thedch opened this issue Jul 20, 2018 · 5 comments

Comments

@thedch
Copy link

thedch commented Jul 20, 2018

Hi -- thanks for writing this!

I ran this script:

from tensorboardX import SummaryWriter
from datetime import datetime

current_time = datetime.now().strftime('%b%d_%H-%M-%S')
writer = SummaryWriter(log_dir='/home/daniel/logs/'+current_time)

for i in range(100):
    writer.add_text('TAGHERE', 'testStringHere' + str(i))

and the tensorboard output is this:
screen shot 2018-07-20 at 12 52 56 pm

It seems like the majority of the messages are being dropped. Let me know if I'm doing something wrong, thanks! 😄

@thedch thedch changed the title Tensorboard missing message? Tensorboard dropping messages? Jul 20, 2018
@thedch
Copy link
Author

thedch commented Jul 20, 2018

I updated the script to fix a few issues, but still having the same issue:

from tensorboardX import SummaryWriter
from datetime import datetime

current_time = datetime.now().strftime('%b%d_%H-%M-%S')
writer = SummaryWriter(log_dir='/home/daniel/logs/'+current_time)

for i in range(100):
    writer.add_text('TAGHERE', 'testStringHere' + str(i), i) # use global step

writer.close() # close the writer

screen shot 2018-07-20 at 2 15 50 pm

@zplizzi
Copy link

zplizzi commented Jul 27, 2018

Try installing from source like mentioned in #180.

@lanpa
Copy link
Owner

lanpa commented Jul 30, 2018

install from source dont work, I will looking into this, thanks.

@zplizzi
Copy link

zplizzi commented Jul 30, 2018

Yeah, this started happening for me again. It actually looks like it's somehow overwriting data. For example, if I'm logging every step, I'll see data for step 1, and then when step 2 is printed, the output of step 1 disappears and is replaced by the output of step 2. This occurs most of the time, but sometimes the older output stays instead of being replaced, thus resulting in the appearance of intermittent logging.

@lanpa lanpa added the bug label Aug 4, 2018
@lanpa
Copy link
Owner

lanpa commented Aug 4, 2018

Found the reason!
see #44

the default event_accumulator.TENSORS is 10, which is too small.
changing that to a bigger number like 100 fixes this.

@lanpa lanpa removed the bug label Aug 4, 2018
@lanpa lanpa closed this as completed Sep 19, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants