              final_faces.append(detected_face.to_alignment())
          self.alignments.data[os.path.basename(filename)] = final_faces
  
  
  class Plugins():
      """ Detector and Aligner Plugins and queues """
      def __init__(self, arguments):
          self.args = arguments
          self.detector = self.load_detector()
 
</s> remove             final_faces.append(face.to_alignment())
 </s> add             final_faces.append(detected_face.to_alignment()) </s> remove     def __init__(self, verbose=False, align_eyes=False, size=256, padding=48):
 </s> add     def __init__(self, verbose=False): </s> remove         self.size = size
        self.padding = padding
 </s> add  </s> remove         # Align Eyes
        align_eyes = False
        if hasattr(self.args, 'align_eyes'):
            align_eyes = self.args.align_eyes

        # Extracted Face Size
        size = 256
        if hasattr(self.args, 'size'):
            size = self.args.size

 </s> add 
    @staticmethod
    def align_face(image, face, align_eyes, size, padding=48):
        """ Align the detected face """
        detected_face = DetectedFace()
        detected_face.from_dlib_rect(face[0])
        detected_face.landmarksXY = face[1]
        detected_face.frame_dims = image.shape[:2]
        detected_face.load_aligned(image,
                                   size=size,
                                   padding=padding,
                                   align_eyes=align_eyes)
        return detected_face

              final_faces.append(detected_face.to_alignment())
          self.alignments.data[os.path.basename(filename)] = final_faces
  
    @staticmethod
    def align_face(image, face, align_eyes, size, padding=48):
        """ Align the detected face """
        detected_face = DetectedFace()
        detected_face.from_dlib_rect(face[0])
        detected_face.landmarksXY = face[1]
        detected_face.frame_dims = image.shape[:2]
        detected_face.load_aligned(image,
                                   size=size,
                                   padding=padding,
                                   align_eyes=align_eyes)
        return detected_face

  
  class Plugins():
      """ Detector and Aligner Plugins and queues """
      def __init__(self, arguments):
          self.args = arguments
          self.detector = self.load_detector()
keep keep add keep keep keep keep keep keep
 Remove DetectedFace object from plugins due to multiprocess error 
scripts/extract.py