              raise ValueError("{} group_method not found.".format(group_method))
  
          return self.splice_lists(img_list, temp_list)
  
      def _convert_color(self, imgs, same_size, method):
          """ Helper function to convert colorspaces """
  
          if method.endswith('gray'):
              conversion = np.array([[0.0722], [0.7152], [0.2126]])
          else:
 
</s> remove         input_dir = self.args.input_dir
 </s> add  </s> remove         return {"image": image,
                "filename": filename,
                "detected_faces": [face]}
 </s> add         return ExtractMedia(filename, image, detected_faces=[face]) </s> remove         """ Set the image to a dict for alignment """
 </s> add         """ Set the image to an ExtractMedia object for alignment """ </s> remove         kwargs = dict(in_queue=queue_manager.get_queue("in"),
                      out_queue=queue_manager.get_queue("out"),
                      queue_size=8)
        aligner = PluginLoader.get_aligner("fan")(normalize_method="hist")
        aligner.batchsize = 1  # TODO Put batches at a time or load from alignment file
        aligner.initialize(**kwargs)
        aligner.start()
 </s> add         extractor = Extractor(None, "fan", None, normalize_method="hist")
        extractor.set_batchsize("align", 1)
        extractor.launch()
        return extractor
    @staticmethod
    def _convert_color(imgs, same_size, method):
              raise ValueError("{} group_method not found.".format(group_method))
  
          return self.splice_lists(img_list, temp_list)
  
    @staticmethod
    def _convert_color(imgs, same_size, method):
          """ Helper function to convert colorspaces """
  
          if method.endswith('gray'):
              conversion = np.array([[0.0722], [0.7152], [0.2126]])
          else:
keep keep keep keep replace keep keep keep keep keep
 Bugfix: Sort by Yaw - Use Pipeline for landmarks 
tools/sort.py