          self.feed = generator.minibatch_ab(images, batch_size, self.side)
  
          self.preview_feed = None
          self.timelapse_feed = None
          self.set_preview_feed()
  
      def load_generator(self):
          """ Pass arguments to TrainingDataGenerator and return object """
          logger.debug("Loading generator: %s", self.side)
          input_size = self.model.input_shape[0]
 
</s> remove         self.masks = None
 </s> add         self.mask = None </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): </s> remove         self.target = batch["targets"][self.model.largest_face_index]
        self.masks = batch["masks"][0]
 </s> add         self.target = [batch["targets"][self.model.largest_face_index]]
        if self.use_mask:
            self.target += [batch["masks"]] </s> remove             self.masks = None
 </s> add 
          self.feed = generator.minibatch_ab(images, batch_size, self.side)
  
          self.preview_feed = None
          self.timelapse_feed = None

  
      def load_generator(self):
          """ Pass arguments to TrainingDataGenerator and return object """
          logger.debug("Loading generator: %s", self.side)
          input_size = self.model.input_shape[0]
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