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 data shown incomplete? #1258

Closed
linzhiqiu opened this issue Jun 24, 2018 · 5 comments
Closed

Text data shown incomplete? #1258

linzhiqiu opened this issue Jun 24, 2018 · 5 comments

Comments

@linzhiqiu
Copy link

I used tensorboard add_text() function to store the accuracy for every epoch; however in the end, only a limited number of texts are shown (for example, epoch 1->2->3->10->13->19->28 are shown, everything else is missing). How do I get all the data back? Is there a setting or anything that control the amount of text data to be shown?

@linzhiqiu linzhiqiu changed the title Why not all epochs data are shown? Text data shown incomplete? Jun 24, 2018
@nfelt
Copy link
Collaborator

nfelt commented Jun 25, 2018

Duplicate of #83

@nfelt nfelt marked this as a duplicate of #83 Jun 25, 2018
@nfelt
Copy link
Collaborator

nfelt commented Jun 25, 2018

This is a result of the automatic reservoir sampling behavior in TensorBoard which only keeps 10 text summaries by default. With TensorBoard 1.9 you can customize the number of summaries kept for the text plugin using the --samples_per_plugin flag introduced in #1138, e.g. --samples_per_plugin=text=100 should set the text dashboard to retain 100 samples for each series.

@nfelt nfelt closed this as completed Jun 25, 2018
@Harrypotterrrr
Copy link

@nfelt hi, I wonder if there is a way to keep indefinite number of the summary text, since I wish to store the model logging output, like the template Epoch: [%d/%d], Step: [%d/%d], time: %s/%s, loss: %.7f, psnr: %.4f, lr: %.2e for each step.
Thanks for your help.

@nfelt
Copy link
Collaborator

nfelt commented Oct 6, 2020

You can set the value to 0 to instruct TensorBoard to retain all steps; just be cautious since this means memory usage may be unbounded.

@Harrypotterrrr
Copy link

@nfelt Hi, Thanks for your reply. I have just modified my commands starting up the tensorboard as follows:

tensorboard --logdir ~/xxx/logs/ --samples_per_plugin='text=0,images=0,scalars=0'

but None of the text or images or scalars will show on the board, so I am wondering if there is something wrong with my understanding of the value 0 of these arguments.
My goal is just to set the tensorboard to show as much as the data it has.

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