          # Remove start and end values to get a list divisible by self.sample_size
          no_files = len(self._filelist)
          crop = no_files % self._sample_size
          top_tail = list(range(no_files))[
              crop // 2:no_files - (crop - (crop // 2))]
          # Partition the indices
          size = len(top_tail)
          retval = [top_tail[start:start + size // self._sample_size]
 
</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                                   sample_size,
 </s> add                                   self._sample_size, </s> remove         logger.debug("Batchsize: %s", batchsize)
 </s> add 
        self._sample_size = min(self._sample_size, no_files)
          # Remove start and end values to get a list divisible by self.sample_size
          no_files = len(self._filelist)
        self._sample_size = min(self._sample_size, no_files)
          crop = no_files % self._sample_size
          top_tail = list(range(no_files))[
              crop // 2:no_files - (crop - (crop // 2))]
          # Partition the indices
          size = len(top_tail)
          retval = [top_tail[start:start + size // self._sample_size]
keep add keep keep keep keep keep keep
 bugfix: Preview tool Don't error if too few images 
tools/preview/preview.py