          if self.mask_function:
              batch_shape.append((self.batchsize, self.model_output_size, self.model_output_size, 1))
  
          load_process = FixedProducerDispatcher(
              self.load_batches,
              batch_shape,
              args=(images, side, is_timelapse, do_shuffle, batchsize))
          load_process.start()
          logger.debug("Batching to queue: (side: '%s', is_timelapse: %s)", side, is_timelapse)
          return self.minibatch(side, is_timelapse, load_process)
  
 
</s> remove             self.samples.images[side] = batcher.compile_sample(self.batch_size)
            if timelapse_kwargs:
 </s> add             if do_preview:
                self.samples.images[side] = batcher.compile_sample(self.batch_size)
            if do_timelapse: </s> remove         batch = self.get_next(is_preview_iteration)
 </s> add         batch = self.get_next(do_preview) </s> remove             loss[side] = batcher.train_one_batch(is_preview_iteration)
            if not is_preview_iteration:
 </s> add             loss[side] = batcher.train_one_batch(do_preview)
            if not do_preview and not do_timelapse:
            method=self.load_batches,
            shapes=batch_shape,
            in_queue=queue_in,
            out_queue=queue_out,
          if self.mask_function:
              batch_shape.append((self.batchsize, self.model_output_size, self.model_output_size, 1))
  
          load_process = FixedProducerDispatcher(
            method=self.load_batches,
            shapes=batch_shape,
            in_queue=queue_in,
            out_queue=queue_out,
            method=self.load_batches,
            shapes=batch_shape,
            in_queue=queue_in,
            out_queue=queue_out,
              args=(images, side, is_timelapse, do_shuffle, batchsize))
          load_process.start()
          logger.debug("Batching to queue: (side: '%s', is_timelapse: %s)", side, is_timelapse)
          return self.minibatch(side, is_timelapse, load_process)
  
keep keep keep keep replace replace keep keep keep keep keep
 Minor FixedProducerDispatcher changes. Fix timelapse bug 
lib/training_data.py