benchmarks
benchmarks copied to clipboard
How to use tensorboard to save preprocessed images?
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.
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 You should be able to do this using tf.contrib.summary.image()
(the equivalent "V2" summary op).