          self.feed["size"] = size
          self.feed["padding"] = self._padding_from_coverage(size, coverage_ratio)
          self.feed["matrix"] = get_align_mat(self)
  
          face = AlignerExtract().transform(image, self.feed["matrix"], size, self.feed["padding"])
          face = np.clip(face[:, :, :3] / 255., 0., 1.)
          self.feed["face"] = face if dtype is None else face.astype(dtype)
  
          logger.trace("Loaded feed face. (face_shape: %s, matrix: %s)",
                       self.feed_face.shape, self._feed_matrix)
  
 
</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                 padding)
 </s> add                 self.aligned["padding"]) </s> remove             padding = int(size * self._extract_ratio) // 2
 </s> add  </s> remove             src_face = detected_face.reference_face
 </s> add             src_face = detected_face.reference_face / np.array(255.0, dtype="float32")
        face = AlignerExtract().transform(image,
                                          self.feed["matrix"],
                                          size,
                                          self.feed["padding"])
          self.feed["size"] = size
          self.feed["padding"] = self._padding_from_coverage(size, coverage_ratio)
          self.feed["matrix"] = get_align_mat(self)
  
        face = AlignerExtract().transform(image,
                                          self.feed["matrix"],
                                          size,
                                          self.feed["padding"])
        face = AlignerExtract().transform(image,
                                          self.feed["matrix"],
                                          size,
                                          self.feed["padding"])
          self.feed["face"] = face if dtype is None else face.astype(dtype)
  
          logger.trace("Loaded feed face. (face_shape: %s, matrix: %s)",
                       self.feed_face.shape, self._feed_matrix)
  
keep keep keep keep replace replace keep keep keep keep keep
 Smart Mask Exposure for Extraction & Training (#831)

Smart Masks - Initial Commit 
lib/faces_detect.py