          return face_count
  
  
  class Reformat():
      """ Reformat Alignment file """
      def __init__(self, alignments, arguments):
          self.verbose = arguments.verbose
          self.alignments = alignments
 
</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.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)):
    def select_valid_faces(self, frame):
        """ Return valid faces for extraction """
        faces = self.extracted_faces.get_faces_for_frame(frame)
        if self.type != "large":
            return faces
        valid_faces = list()
        sizes = self.extracted_faces.get_roi_size_for_frame(frame)
        for idx, size in enumerate(sizes):
            if size >= self.extracted_faces.size:
                valid_faces.append(faces[idx])
        return valid_faces
          return face_count
  
    def select_valid_faces(self, frame):
        """ Return valid faces for extraction """
        faces = self.extracted_faces.get_faces_for_frame(frame)
        if self.type != "large":
            return faces
        valid_faces = list()
        sizes = self.extracted_faces.get_roi_size_for_frame(frame)
        for idx, size in enumerate(sizes):
            if size >= self.extracted_faces.size:
                valid_faces.append(faces[idx])
        return valid_faces
  
  class Reformat():
      """ Reformat Alignment file """
      def __init__(self, alignments, arguments):
          self.verbose = arguments.verbose
          self.alignments = alignments
keep add keep 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