codes/Python/p04-advanced/1-conditional-DCGAN/conditional-DCGAN.py
def plot_images(images, subplot_shape):
    '''
    depict images in a single plot

    Args:
        images: np.array of images
        subplot_shape: layout of subplot
    '''
    plt.style.use('ggplot')
    fig, axes = plt.subplots(*subplot_shape)
    for image, ax in zip(images, axes.flatten()):
        ax.imshow(image.reshape(img_w, img_h), vmin=-1., vmax=1., cmap='gray')
        ax.axis('off')
    plt.show()

    depict images in a single plot

    Args:
        images: np.array of images
        subplot_shape: layout of subplot
    
depict images in a single plot
depict images in a single plot
def plot_images(images, subplot_shape):
    plt.style.use('ggplot')
    fig, axes = plt.subplots(*subplot_shape)
    for image, ax in zip(images, axes.flatten()):
        ax.imshow(image.reshape(img_w, img_h), vmin=-1., vmax=1., cmap='gray')
        ax.axis('off')
    plt.show()
def plot_images ( images , subplot_shape ) : plt . style . use ( 'ggplot' ) fig , axes = plt . subplots ( * subplot_shape ) for image , ax in zip ( images , axes . flatten ( ) ) : ax . imshow ( image . reshape ( img_w , img_h ) , vmin = - 1. , vmax = 1. , cmap = 'gray' ) ax . axis ( 'off' ) plt . show ( )
depict images in a single plot
depict images in a single plot
'''
    depict images in a single plot

    Args:
        images: np.array of images
        subplot_shape: layout of subplot
    '''
images
np.array of images
np . array of images
subplot_shape
layout of subplot
layout of subplot