Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Change images slider step in TensorBoard

TensorBoard 1.1.0's images history. I would like to set the slider's position (on top of the black image with 7) more precisely, to be able to select any step. Now I can only select e.g. between steps 2050 or 2810. Is that possible?

Maybe a place in sources where the 10 constant is hardcoded?

  • enter image description here
like image 573
Mikhail M Avatar asked May 03 '17 15:05

Mikhail M


Video Answer


2 Answers

I answered this question over there "TensorBoard doesn't show all data points", but this seems to be more popular so I will quote it here.

You don't have to change the source code for this, there is a flag called --samples_per_plugin.

Quoting from the help command

--samples_per_plugin: An optional comma separated list of plugin_name=num_samples pairs to explicitly specify how many samples to keep per tag for that plugin. For unspecified plugins, TensorBoard randomly downsamples logged summaries to reasonable values to prevent out-of-memory errors for long running jobs. This flag allows fine control over that downsampling. Note that 0 means keep all samples of that type. For instance, "scalars=500,images=0" keeps 500 scalars and all images. Most users should not need to set this flag. (default: '')

So if you want to have a slider of 100 images, use:

tensorboard --samples_per_plugin images=100

like image 145
Phúc Lê Avatar answered Sep 20 '22 08:09

Phúc Lê


I managed to do this by changing this line in TensorBoard backend

like image 25
antifriz Avatar answered Sep 22 '22 08:09

antifriz