tf.contrib.gan.eval.add_image_comparison_summaries
tf.contrib.gan.eval.summaries.add_image_comparison_summaries
tf.contrib.gan.eval.add_image_comparison_summaries( gan_model, num_comparisons=2, display_diffs=False )
Defined in tensorflow/contrib/gan/python/eval/python/summaries_impl.py
.
Adds image summaries to compare triplets of images.
The first image is the generator input, the second is the generator output, and the third is the real data. This style of comparison is useful for image translation problems, where the generator input is a corrupted image, the generator output is the reconstruction, and the real data is the target.
gan_model
: A GANModel tuple.num_comparisons
: The number of image triplets to display.display_diffs
: Also display the difference between generated and target.ValueError
: If real data, generated data, and generator inputs aren't images.ValueError
: If the generator input, real, and generated data aren't all the same size.
© 2018 The TensorFlow Authors. All rights reserved.
Licensed under the Creative Commons Attribution License 3.0.
Code samples licensed under the Apache 2.0 License.
https://www.tensorflow.org/api_docs/python/tf/contrib/gan/eval/add_image_comparison_summaries