          self.image = image[self.top: self.bottom,
                             self.left: self.right]
  
      # <<< Aligned Face methods and properties >>> #
      def load_aligned(self, image, size=256, dtype=None):
          """ Align a face from a given image.
  
          Aligning a face is a relatively expensive task and is not required for all uses of
          the :class:`~lib.faces_detect.DetectedFace` object, so call this function explicitly to
          load an aligned face.
 
</s> remove         self.image = image[self.top: self.bottom,
 </s> add         self.face = image[self.top: self.bottom, </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             padding = int(size * self._extract_ratio) // 2
 </s> add  </s> remove         retval = self._is_parallel or self.phase == "align"
 </s> add         retval = self._is_parallel or self.phase == "mask" </s> remove         for task in ("extract_detect_in", "extract_align_in", "extract_align_out"):
 </s> add         tasks = ["extract_detect_in", "extract_align_in", "extract_mask_in", "extract_mask_out"]
        for task in tasks:
    def load_aligned(self, image, size=256, coverage_ratio=1.0, dtype=None):
          self.image = image[self.top: self.bottom,
                             self.left: self.right]
  
      # <<< Aligned Face methods and properties >>> #
    def load_aligned(self, image, size=256, coverage_ratio=1.0, dtype=None):
          """ Align a face from a given image.
  
          Aligning a face is a relatively expensive task and is not required for all uses of
          the :class:`~lib.faces_detect.DetectedFace` object, so call this function explicitly to
          load an aligned 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