              face = AlignerExtract().transform(
                  image,
                  self.aligned["matrix"],
                  size,
                  padding)
              self.aligned["face"] = face if dtype is None else face.astype(dtype)
  
          logger.trace("Loaded aligned face: %s", {k: str(v) if isinstance(v, np.ndarray) else v
                                                   for k, v in self.aligned.items()
                                                   if k != "face"})
 
</s> remove         face = np.clip(face[:, :, :3] / 255., 0., 1.)
 </s> add  </s> remove             self.aligned["padding"] = padding
 </s> add             self.aligned["padding"] = self._padding_from_coverage(size, coverage_ratio) </s> remove         face = AlignerExtract().transform(image, self.feed["matrix"], size, self.feed["padding"])
        face = np.clip(face[:, :, :3] / 255., 0., 1.)
 </s> add         face = AlignerExtract().transform(image,
                                          self.feed["matrix"],
                                          size,
                                          self.feed["padding"]) </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 = int(size * self._extract_ratio) // 2
 </s> add 
                self.aligned["padding"])
              face = AlignerExtract().transform(
                  image,
                  self.aligned["matrix"],
                  size,
                self.aligned["padding"])
              self.aligned["face"] = face if dtype is None else face.astype(dtype)
  
          logger.trace("Loaded aligned face: %s", {k: str(v) if isinstance(v, np.ndarray) else v
                                                   for k, v in self.aligned.items()
                                                   if k != "face"})
keep keep keep keep replace keep keep keep keep keep
 Smart Mask Exposure for Extraction & Training (#831)

Smart Masks - Initial Commit 
lib/faces_detect.py