              faces = self.faces.get_faces_alignments(filename, image)
              if not faces:
                  continue
  
              yield filename, image, faces
  
      def check_alignments(self, filename):
          """ If we have no alignments for this image, skip it """
          have_alignments = self.faces.have_face(filename)
          if not have_alignments:
 
</s> remove     def check_alignments(self, filename):
 </s> add     def check_alignments(self, frame): </s> remove         have_alignments = self.faces.have_face(filename)
 </s> add         have_alignments = self.alignments.frame_exists(frame) </s> remove                        "skipping".format(os.path.basename(filename)))
 </s> add                        "skipping".format(frame)) </s> remove             image = Utils.cv2_read_write('read', filename)
            faces = self.faces.get_faces_alignments(filename, image)
            if not faces:
 </s> add             frame = os.path.basename(filename)
            if self.extract_faces:
                convert_item = self.detect_faces(filename)
            else:
                convert_item = self.alignments_faces(filename, frame)

            if not convert_item: </s> remove                 for idx, face in faces:
 </s> add                 for idx, face in enumerate(faces):
        for rawface in faces:
            face = DetectedFace()
            face.from_alignment(rawface, image=image)
            detected_faces.append(face)
        return image, detected_faces
              faces = self.faces.get_faces_alignments(filename, image)
              if not faces:
                  continue
  
        for rawface in faces:
            face = DetectedFace()
            face.from_alignment(rawface, image=image)
            detected_faces.append(face)
        return image, detected_faces
  
      def check_alignments(self, filename):
          """ If we have no alignments for this image, skip it """
          have_alignments = self.faces.have_face(filename)
          if not have_alignments:
keep keep keep keep replace keep keep keep keep keep
 Extraction - Speed improvements (#522) (#523)

* Extraction - Speed improvements (#522)

* Initial Plugin restructure

* Detectors to plugins. Detector speed improvements

* Re-implement dlib aligner, remove models, FAN to TF. Parallel processing

* Update manual, update convert, implement parallel/serial switching

* linting + fix cuda check (setup.py). requirements update keras 2.2.4

* Add extract size option. Fix dlib hog init

* GUI: Increase tooltip width

* Update alignment tool to support new DetectedFace

* Add skip existing faces option

* Fix sort tool to new plugin structure

* remove old align plugin

* fix convert -skip faces bug

* Fix convert skipping no faces frames

* Convert - draw onto transparent layer

* Fix blur threshold bug

* fix skip_faces convert bug

* Fix training 
scripts/convert.py