          self.images = images
          self.config = config
          self.target = None
          self.samples = None
          self.masks = None
  
          generator = self.load_generator()
          self.feed = generator.minibatch_ab(images, batch_size, self.side)
  
          self.preview_feed = None
 
</s> remove         self.set_preview_feed()
 </s> add  </s> remove             self.masks = None
 </s> add  </s> remove         masks = masks if masks is not None else self.masks
        samples = samples if samples is not None else self.samples
        retval = [samples[0:num_images], images[0:num_images], masks[0:num_images]]
 </s> add         retval = [samples[0:num_images]] if samples is not None else [self.samples[0:num_images]]
        if self.use_mask:
            retval.extend(tgt[0:num_images] for tgt in images)
        else:
            retval.extend(images[0:num_images]) </s> remove     def compile_sample(self, batch_size, samples=None, images=None, masks=None):
 </s> add     def compile_sample(self, batch_size, samples=None, images=None):
        self.mask = None
          self.images = images
          self.config = config
          self.target = None
          self.samples = None
        self.mask = None
  
          generator = self.load_generator()
          self.feed = generator.minibatch_ab(images, batch_size, self.side)
  
          self.preview_feed = None
keep keep keep keep replace keep keep keep keep keep
 Serialize masks to alignments file

- Add new serializers (npy + compressed)
- Remove Serializer option from cli
- Revert get_aligned call in scripts/extract
- Default alignments to compressed
- Size masks to 128px and compress
- Remove mask thresholding/blur from generation code
- Add Mask class to lib/faces_detect
- Revert debug landmarks to aligned face
- Revert non-extraction code to staging version 
plugins/train/trainer/_base.py