          logger.debug("Loaded filter images: %s", {k: v["type"] for k, v in retval.items()})
          return retval
  
      # Extraction pipeline
      def align_faces(self, detector_name, aligner_name, multiprocess):
          """ Use the requested detectors to retrieve landmarks for filter images """
          extractor = Extractor(detector_name, aligner_name, multiprocess=multiprocess)
          self.run_extractor(extractor)
          del extractor
          self.load_aligned_face()
 
</s> remove         extractor = Extractor(detector_name, aligner_name, multiprocess=multiprocess)
 </s> add         extractor = Extractor(detector_name,
                              aligner_name,
                              masker_name,
                              multiprocess=multiprocess)
 </s> remove                      [tgt.shape for tgt_images in target_batch for tgt in tgt_images])
 </s> add                      [tgt_images.shape[1:] for tgt_images in target_batch]) </s> remove                 padding)
 </s> add                 self.aligned["padding"]) </s> remove     def _separate_target_mask(batch):
 </s> add     def _separate_target_mask(size_list_of_batches): </s> remove         retval = bool(self.model.training_opts.get("mask_type", None))
 </s> add         retval = (self.model.training_opts.get("replicate_input_mask", False) or
                  self.model.training_opts.get("penalized_mask_loss", True))
    def align_faces(self, detector_name, aligner_name, masker_name, multiprocess):

          logger.debug("Loaded filter images: %s", {k: v["type"] for k, v in retval.items()})
          return retval
  
      # Extraction pipeline
    def align_faces(self, detector_name, aligner_name, masker_name, multiprocess):
          """ Use the requested detectors to retrieve landmarks for filter images """
          extractor = Extractor(detector_name, aligner_name, multiprocess=multiprocess)
          self.run_extractor(extractor)
          del extractor
          self.load_aligned_face()
keep keep keep keep replace keep keep keep keep keep
 Smart Mask Exposure for Extraction & Training (#831)

Smart Masks - Initial Commit 
lib/face_filter.py