      def detect_faces(self, image):
          """ Detect faces in rgb image """
          self.detected_faces = None
          detected_faces, points = detect_face(image, **self.kwargs)
          detected_faces = self.tighten_bounding_box(detected_faces, points)
          self.detected_faces = [dlib.rectangle(int(face[0]), int(face[1]),
                                                int(face[2]), int(face[3]))
                                 for face in detected_faces]
  
      @staticmethod
 
</s> remove     def tighten_bounding_box(faces, landmarks):
        """ Tighten the bounding box for Face Alignment.
 </s> add     def recalculate_bounding_box(faces, landmarks):
        """ Recalculate the bounding box for Face Alignment. </s> remove         faces = self.extracted_faces.get_faces_for_frame(frame_fullname)
 </s> add         faces = self.select_valid_faces(frame_fullname)
 </s> remove         for frame in self.items:
 </s> add         for frame in tqdm(self.items, total=len(self.items)): </s> remove         for frame in self.alignments.alignments.keys():
 </s> add         for frame in tqdm(self.alignments.alignments.keys(),
                          total=len(self.alignments.count)):
        detected_faces = self.recalculate_bounding_box(detected_faces, points)
      def detect_faces(self, image):
          """ Detect faces in rgb image """
          self.detected_faces = None
          detected_faces, points = detect_face(image, **self.kwargs)
        detected_faces = self.recalculate_bounding_box(detected_faces, points)
          self.detected_faces = [dlib.rectangle(int(face[0]), int(face[1]),
                                                int(face[2]), int(face[3]))
                                 for face in detected_faces]
  
      @staticmethod
keep keep keep keep replace keep keep keep keep keep
 Alignments tool: Extract non-upsized. MTCNN Detector changes (#508)

* Manual alignments: Add progress bars to check task

* Alignments Tool: Extract faces that haven't been upscaled

* MTCNN Update. Center on landmarks 
lib/face_alignment/detectors.py