          self._filelist = self._get_filelist()
          self._indices = self._get_indices()
  
          self._predictor = Predict(queue_manager.get_queue("preview_predict_in"),
                                    sample_size,
                                    arguments)
          self._app._display.set_centering(self._predictor.centering)
          self.generate()
  
          logger.debug("Initialized %s", self.__class__.__name__)
 
</s> remove         retval = dict(input=input_shape[0][1], output=output_shape[-1][1])
 </s> add         retval = {"input": input_shape[0][1], "output": output_shape[-1][1]} </s> remove         logger.debug("Batchsize: %s", batchsize)
 </s> add 
                                  self._sample_size,
          self._filelist = self._get_filelist()
          self._indices = self._get_indices()
  
          self._predictor = Predict(queue_manager.get_queue("preview_predict_in"),
                                  self._sample_size,
                                    arguments)
          self._app._display.set_centering(self._predictor.centering)
          self.generate()
  
          logger.debug("Initialized %s", self.__class__.__name__)
keep keep keep keep replace keep keep keep keep keep
 bugfix: Preview tool Don't error if too few images 
tools/preview/preview.py