          self.previewoutput = None
          self.previewtrain = dict()
  
      @staticmethod
      def get_images(imgpath):
          """ Get the images stored within the given directory """
 
</s> remove         logger.trace("Getting images: '%s'", imgpath)
 </s> add         logger.debug("Getting images: '%s'", imgpath) </s> remove         logger.trace("Loading Training preview images")
 </s> add         logger.debug("Loading Training preview images") </s> remove         filenames, samples = self.get_preview_samples(imagefiles, num_images, thumbnail_size)
        show_image = self.place_previews(samples, frame_dims)
        logger.trace("Displaying preview: '%s'", filenames)
 </s> add         self.load_images_to_cache(imagefiles, frame_dims, thumbnail_size)
        if imagefiles == [gui_preview]:
            # Delete the preview image so that the main scripts know to output another
            logger.debug("Deleting preview image")
            os.remove(imagefiles[0])
        show_image = self.place_previews(frame_dims)
        logger.debug("Displaying preview: '%s'", self.previewcache["filenames"]) </s> remove         logger.trace("Samples shape: %s", samples.shape)
 </s> add         logger.debug("Samples shape: %s", samples.shape)
        self.previewcache = dict(modified=None,  # cache for extract and convert
                                 images=None,
                                 filenames=list(),
                                 placeholder=None)
          self.previewoutput = None
          self.previewtrain = dict()
        self.previewcache = dict(modified=None,  # cache for extract and convert
                                 images=None,
                                 filenames=list(),
                                 placeholder=None)
  
      @staticmethod
      def get_images(imgpath):
          """ Get the images stored within the given directory """
keep add keep keep keep keep
 GUI: Preview for convert

Display preview when outputting to a stream container (e.g. video, gif) 
lib/gui/utils.py