model.py
def show_image(self, image):
    '''
    image is in [height width depth]
    '''
    plt.subplot(1, 1, 1)
    y_dim = image.shape[0]
    x_dim = image.shape[1]
    if self.c_dim > 1:
      plt.imshow(image, interpolation='nearest')
    else:
      plt.imshow(image.reshape(y_dim, x_dim), cmap='Greys', interpolation='nearest')
    plt.axis('off')
    plt.show()

    image is in [height width depth]
    
image is in [height width depth]
image is in [ height width depth ]
def show_image(self, image):
    plt.subplot(1, 1, 1)
    y_dim = image.shape[0]
    x_dim = image.shape[1]
    if self.c_dim > 1:
      plt.imshow(image, interpolation='nearest')
    else:
      plt.imshow(image.reshape(y_dim, x_dim), cmap='Greys', interpolation='nearest')
    plt.axis('off')
    plt.show()
def show_image ( self , image ) : plt . subplot ( 1 , 1 , 1 ) y_dim = image . shape [ 0 ] x_dim = image . shape [ 1 ] if self . c_dim > 1 : plt . imshow ( image , interpolation = 'nearest' ) else : plt . imshow ( image . reshape ( y_dim , x_dim ) , cmap = 'Greys' , interpolation = 'nearest' ) plt . axis ( 'off' ) plt . show ( )
image is in [height width depth]
image is in [ height width depth ]
'''
    image is in [height width depth]
    '''
self
image