tensorflow / tensorflow/tensorboard

`--samples_per_plugin "images=0"` is documented to show all images, but shows no images at all

Open
#5,550 2 comments 0 reactions 1 assignee View on GitHub

@japie1235813 is already working on this.

Since Feb 3, 2022.

stat:awaiting tensorflower type:bug
Dominant language
TypeScript
Stars
7.2k
Forks
1.7k
Avg merge
4d 22h
Merged PRs (30d)
1

Description

The TB 2.8.0 help says I can pass --samples_per_plugin "images=0" to show all images, but that actually shows none at all.

tensorboard --help

--samples_per_plugin 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.

import tensorflow as tf

with tf.summary.create_file_writer("tmp").as_default():
    tf.summary.image("Random image", tf.random.normal((1, 28, 28, 1)), step=0)
tensorboard --logdir tmp # shows the image
tensorboard --logdir tmp --samples_per_plugin "images=1" # shows the image
tensorboard --logdir tmp --samples_per_plugin "images=0" # does not show the image - this is the bug.

image

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.