          self._loader = loader(arguments.input)
          self._faces_saver: Optional[ImagesSaver] = None
  
          self._alignments = self._get_alignments(arguments)
          self._extractor = extractor
          self._set_correct_mask_type()
          self._extractor_input_thread = self._feed_extractor()
  
          logger.debug("Initialized %s", self.__class__.__name__)
  
 
</s> remove             if extractor is not None:
                extractor.launch()

            mask = _Mask(arguments, extractor)
            mask.process()

            if extractor is not None:
                extractor.reset_phase_index()
 </s> add             if len(self._input_locations) > 1:
                proc = Process(target=self._run_mask_process, args=(arguments, ))
                proc.start()
                proc.join()
            else:
                self._run_mask_process(arguments) </s> remove         if self._args.processing == "output":
            logger.debug("Update type `output` selected. Not launching extractor")
            return None
        logger.debug("masker: %s", self._args.masker)
        extractor = Extractor(None, None, self._args.masker, exclude_gpus=self._args.exclude_gpus)
        logger.debug(extractor)
        return extractor
 </s> add         logger.debug("Starting process: (arguments: %s)", arguments)
        mask = _Mask(arguments)
        mask.process()
        logger.debug("Finished process: (arguments: %s)", arguments) </s> remove         extractor = self._get_extractor()
 </s> add  </s> remove     def __init__(self, arguments: Namespace, extractor: Optional[Extractor]) -> None:
        logger.debug("Initializing %s: (arguments: %s, extractor: %s)",
                     self.__class__.__name__, arguments, extractor)
 </s> add     def __init__(self, arguments: Namespace) -> None:
        logger.debug("Initializing %s: (arguments: %s)", self.__class__.__name__, arguments) </s> remove     extractor: :class:`plugins.extract.pipeline.Extractor`:
            The launched Extractor
 </s> add 
        self._extractor = self._get_extractor(arguments.exclude_gpus)
          self._loader = loader(arguments.input)
          self._faces_saver: Optional[ImagesSaver] = None
  
          self._alignments = self._get_alignments(arguments)
        self._extractor = self._get_extractor(arguments.exclude_gpus)
          self._set_correct_mask_type()
          self._extractor_input_thread = self._feed_extractor()
  
          logger.debug("Initialized %s", self.__class__.__name__)
  
keep keep keep keep replace keep keep keep keep keep
 bugfix: mask tool memory leak in batch-mode 
tools/mask/mask.py