|View source on GitHub|
A reshaped summary image.
tf.contrib.gan.eval.image_reshaper( images, num_cols=None )
Returns an image that will contain all elements in the list and will be laid out in a nearly-square tiling pattern (e.g. 11 images will lead to a 3x4 tiled image).
images: Image data to summarize. Can be an RGB or grayscale image, a list of such images, or a set of RGB images concatenated along the depth dimension. The shape of each image is assumed to be [batch_size, height, width, depth].
num_cols: (Optional) If provided, this is the number of columns in the final output image grid. Otherwise, the number of columns is determined by the number of images.
A summary image matching the input with automatic tiling if needed. Output shape is [1, height, width, channels].