GAN/Architectures/models/gan.py
def grid_plot(examples, dimensions=(10, 10), figsize=(10, 10), cmap='gray_r'):
        """create a grid plot of multiple images"""
        pyplot.figure(figsize=figsize)
        for i in range(dimensions[0] * dimensions[1]):
            pyplot.subplot(dimensions[0], dimensions[1], 1 + i)
            pyplot.axis('off')
            pyplot.imshow(np.squeeze(examples[i]), interpolation='nearest', cmap=cmap)
        pyplot.tight_layout()
        pyplot.show()
create a grid plot of multiple images
create a grid plot of multiple images
create a grid plot of multiple images
def grid_plot(examples, dimensions=(10, 10), figsize=(10, 10), cmap='gray_r'):
        pyplot.figure(figsize=figsize)
        for i in range(dimensions[0] * dimensions[1]):
            pyplot.subplot(dimensions[0], dimensions[1], 1 + i)
            pyplot.axis('off')
            pyplot.imshow(np.squeeze(examples[i]), interpolation='nearest', cmap=cmap)
        pyplot.tight_layout()
        pyplot.show()
def grid_plot ( examples , dimensions = ( 10 , 10 ) , figsize = ( 10 , 10 ) , cmap = 'gray_r' ) : pyplot . figure ( figsize = figsize ) for i in range ( dimensions [ 0 ] * dimensions [ 1 ] ) : pyplot . subplot ( dimensions [ 0 ] , dimensions [ 1 ] , 1 + i ) pyplot . axis ( 'off' ) pyplot . imshow ( np . squeeze ( examples [ i ] ) , interpolation = 'nearest' , cmap = cmap ) pyplot . tight_layout ( ) pyplot . show ( )
create a grid plot of multiple images
create a grid plot of multiple images
"""create a grid plot of multiple images"""
examples
dimensions
figsize
cmap