              # Don't reload an already aligned face
              logger.trace("Skipping alignment calculation for already aligned face")
          else:
              logger.trace("Loading aligned face: (size: %s, dtype: %s)", size, dtype)
              padding = int(size * self._extract_ratio) // 2
              self.aligned["size"] = size
              self.aligned["padding"] = padding
              self.aligned["matrix"] = get_align_mat(self)
              self.aligned["face"] = None
          if image is not None and self.aligned["face"] is None:
 
</s> remove             self.aligned["padding"] = padding
 </s> add             self.aligned["padding"] = self._padding_from_coverage(size, coverage_ratio) </s> remove                 padding)
 </s> add                 self.aligned["padding"]) </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         adjusted_ratio = coverage_ratio - (1 - self._extract_ratio)
        padding = round((size * adjusted_ratio) / 2)
 </s> add         padding = int((size * (coverage_ratio - 0.625)) / 2) </s> remove         face = np.clip(face[:, :, :3] / 255., 0., 1.)
 </s> add 
              # Don't reload an already aligned face
              logger.trace("Skipping alignment calculation for already aligned face")
          else:
              logger.trace("Loading aligned face: (size: %s, dtype: %s)", size, dtype)

              self.aligned["size"] = size
              self.aligned["padding"] = padding
              self.aligned["matrix"] = get_align_mat(self)
              self.aligned["face"] = None
          if image is not None and self.aligned["face"] is None:
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