          """ Output the frame's faces to file """
          face_count = 0
          frame_fullname = frame["frame_fullname"]
          frame_name = frame["frame_name"]
          faces = self.extracted_faces.get_faces_for_frame(frame_fullname)
          for idx, face in enumerate(faces):
              output = "{}_{}{}".format(frame_name, str(idx), ".png")
              self.frames.save_image(self.faces_dir, output, face)
              face_count += 1
          return face_count
 
</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.items:
 </s> add         for frame in tqdm(self.items, total=len(self.items)): </s> remove         detected_faces = self.tighten_bounding_box(detected_faces, points)
 </s> add         detected_faces = self.recalculate_bounding_box(detected_faces, points) </s> remove             boundary = (np.amin(pts[0]), np.amin(pts[1]),
                        np.amax(pts[0]), np.amax(pts[1]))
 </s> add             boundary = [np.amin(pts[0]), np.amin(pts[1]),
                        np.amax(pts[0]), np.amax(pts[1])]
        faces = self.select_valid_faces(frame_fullname)

          """ Output the frame's faces to file """
          face_count = 0
          frame_fullname = frame["frame_fullname"]
          frame_name = frame["frame_name"]
        faces = self.select_valid_faces(frame_fullname)

          for idx, face in enumerate(faces):
              output = "{}_{}{}".format(frame_name, str(idx), ".png")
              self.frames.save_image(self.faces_dir, output, face)
              face_count += 1
          return face_count
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 
tools/lib_alignments/jobs.py