build/lib/video_autoencoder/AuxiliaryFunctions.py
def show_batch(clips_batch):
    """Show image with landmarks for a batch of samples."""
    if clips_batch.device != "cpu":
        clips_batch = clips_batch.cpu()
    batch_size = clips_batch.shape[0]
    clip_size = clips_batch.shape[2]
    for i in range(batch_size):
        plt.subplot(1,batch_size,i+1)
        frame = clips_batch[i, :, 1, :, :]  # Clip number, color channel, frame number, height, width
        frame = get_plottable_frame(frame)
        plt.axis('off')
        plt.ioff()
        plt.imshow(frame, cmap='gray')
Show image with landmarks for a batch of samples.
Show image with landmarks for a batch of samples.
Show image with landmarks for a batch of samples .
def show_batch(clips_batch):
    if clips_batch.device != "cpu":
        clips_batch = clips_batch.cpu()
    batch_size = clips_batch.shape[0]
    clip_size = clips_batch.shape[2]
    for i in range(batch_size):
        plt.subplot(1,batch_size,i+1)
        frame = clips_batch[i, :, 1, :, :]  
        frame = get_plottable_frame(frame)
        plt.axis('off')
        plt.ioff()
        plt.imshow(frame, cmap='gray')
def show_batch ( clips_batch ) : if clips_batch . device != "cpu" : clips_batch = clips_batch . cpu ( ) batch_size = clips_batch . shape [ 0 ] clip_size = clips_batch . shape [ 2 ] for i in range ( batch_size ) : plt . subplot ( 1 , batch_size , i + 1 ) frame = clips_batch [ i , : , 1 , : , : ] frame = get_plottable_frame ( frame ) plt . axis ( 'off' ) plt . ioff ( ) plt . imshow ( frame , cmap = 'gray' )
Show image with landmarks for a batch of samples.
Show image with landmarks for a batch of samples .
"""Show image with landmarks for a batch of samples.""" # Clip number, color channel, frame number, height, width
clips_batch