Change images slider step in TensorBoard

前端 未结 3 1814
独厮守ぢ
独厮守ぢ 2021-02-02 11:06

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

相关标签:
3条回答
  • 2021-02-02 11:53

    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

    0 讨论(0)
  • 2021-02-02 11:59

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

    0 讨论(0)
  • 2021-02-02 12:02

    This question is covered in the FAQ:

    Is my data being downsampled? Am I really seeing all the data?

    TensorBoard uses reservoir sampling to downsample your data so that it can be loaded into RAM. You can modify the number of elements it will keep per tag in tensorboard/backend/application.py. See this StackOverflow question for some more information.

    0 讨论(0)
提交回复
热议问题