benchmarks icon indicating copy to clipboard operation
benchmarks copied to clipboard

How to use tensorboard to save preprocessed images?

Open yezifeiafei opened this issue 6 years ago • 2 comments

It doesn't work in --summary_verbosity=3 --save_summaries_steps=20 --train_dir=mydir. IMAGES page shows "No image data was found".

I think the developer here can help this issue. Thanks very much.

yezifeiafei avatar Jul 06 '18 11:07 yezifeiafei

This is a bug in tf_cnn_benchmarks. When calling tf.data.Dataset.map(...) on a function, the function is wrapped in a Defun. Unfortunately, summaries created in Defuns are not part of the default Graph, and so tf_cnn_benchmarks will not collect them.

As a workaround, you can pass --use_datasets=false --datasets_use_prefetch=false.

@mrry, do you know how to collect summaries for summaries created in the function passed to tf.data.Dataset.map(...)?

reedwm avatar Jul 09 '18 19:07 reedwm

@reedwm You should be able to do this using tf.contrib.summary.image() (the equivalent "V2" summary op).

mrry avatar Jul 16 '18 17:07 mrry