          """int: Bottom point (in pixels) of face detection bounding box within the parent image """
          return self.y + self.h
  
      @property
      def _extract_ratio(self):
          """ float: The ratio of padding to add for training images """
          return 0.375
  
      def to_alignment(self):
          """  Return the detected face formatted for an alignments file
  
          returns
 
</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         self.image = image[self.top: self.bottom,
 </s> add         self.face = image[self.top: self.bottom, </s> remove     def align_face(self, faces, size, filename):
        """ Align the detected face and add the destination file path """
        final_faces = list()
        image = faces["image"]
        detected_faces = faces["detected_faces"]
        for face in detected_faces:
            face.load_aligned(image, size=size)
            final_faces.append({"file_location": self.output_dir / Path(filename).stem,
                                "face": face})
        faces["detected_faces"] = final_faces

 </s> add 
    def training_coverage(self):
        """ The coverage ratio to add for training images """
        return 1.0
          """int: Bottom point (in pixels) of face detection bounding box within the parent image """
          return self.y + self.h
  
      @property
    def training_coverage(self):
        """ The coverage ratio to add for training images """
        return 1.0
    def training_coverage(self):
        """ The coverage ratio to add for training images """
        return 1.0
    def training_coverage(self):
        """ The coverage ratio to add for training images """
        return 1.0
  
      def to_alignment(self):
          """  Return the detected face formatted for an alignments file
  
          returns
keep keep keep keep replace replace replace keep keep keep keep keep
 Smart Mask Exposure for Extraction & Training (#831)

Smart Masks - Initial Commit 
lib/faces_detect.py