  
      def process(self):
          """ Perform the extraction process """
          logger.info('Starting, this may take a while...')
          Utils.set_verbosity(self.args.loglevel)
          # queue_manager.debug_monitor(1)
          self.threaded_io("load")
          save_thread = self.threaded_io("save")
          self.run_extraction()
          save_thread.join()
          self.alignments.save()
 
</s> remove     """ Face filter for extraction """
    def __init__(self, reference_file_paths, nreference_file_paths, threshold=0.6):
 </s> add     """ Face filter for extraction
        NB: we take only first face, so the reference file should only contain one face. """

    def __init__(self, reference_file_paths, nreference_file_paths, detector, aligner, loglevel,
                 multiprocess=False, threshold=0.4):
 </s> remove         super().__init__(model_filename=model_filename, colorspace="RGB", input_size=128, **kwargs)
 </s> add         super().__init__(git_model_id=git_model_id,
                         model_filename=model_filename,
                         colorspace="RGB",
                         input_size=128,
                         **kwargs) </s> remove     @property
    def _model_id(self):
        """ Return a mapping of model names to model ids as stored in github """
        ids = {
            # EXTRACT (SECTION 1)
            "face-alignment-network_2d4": 0,
            "cnn-facial-landmark": 1,
            "mtcnn_det": 2,
            "s3fd": 3,
            "resnet_ssd": 4,
            # TRAIN (SECTION 2)
            # CONVERT (SECTION 3)
            }
        return ids[self._model_name]

 </s> add 
        # queue_manager.debug_monitor(3)
  
      def process(self):
          """ Perform the extraction process """
          logger.info('Starting, this may take a while...')
        # queue_manager.debug_monitor(3)
        # queue_manager.debug_monitor(3)
          self.threaded_io("load")
          save_thread = self.threaded_io("save")
          self.run_extraction()
          save_thread.join()
          self.alignments.save()
keep keep keep keep replace replace keep keep keep keep keep
 Face filter vgg face (#724)

* Implement extraction pipeline

* Face filter to vgg_face. Resume partial model downloads

* On-the-fly conversion to extraction pipeline

* Move git model ids from get_model to model definition 
scripts/extract.py