Home | History | Annotate | Download | only in python

Lines Matching refs:images

15 """Utility file for visualizing generated images."""
35 """Arrange a minibatch of images into a grid to form a single image.
38 input_tensor: Tensor. Minibatch of images to format, either 4D
48 Tensor representing a single image in which the input images have been
83 def _validate_images(images):
84 for img in images:
88 raise ValueError("image_reshaper only supports 1 or 3 channel images.")
92 def image_reshaper(images, num_cols=None):
96 laid out in a nearly-square tiling pattern (e.g. 11 images will lead to a
100 images: Image data to summarize. Can be an RGB or grayscale image, a list of
101 such images, or a set of RGB images concatenated along the depth
106 the number of images.
112 if isinstance(images, ops.Tensor):
113 images = array_ops.unstack(images)
114 _validate_images(images)
116 num_images = len(images)
120 rows = [images[x:x+num_columns] for x in range(0, num_images, num_columns)]
126 rows[-1].extend([array_ops.zeros_like(images[-1])] * num_short)