      def _load_mask(self,
                     masker: Optional[str],
                     image_is_aligned: bool,
                     configfile: Optional[str]) -> Optional["Masker"]:
          """ Set global arguments and load masker plugin """
          if masker is None or masker.lower() == "none":
              logger.debug("No masker selected. Returning None")
              return None
          masker_name = masker.replace("-", "_").lower()
          logger.debug("Loading Masker: '%s'", masker_name)
 
</s> remove                    image_is_aligned: bool,
 </s> add  </s> remove                                                       image_is_aligned=image_is_aligned,
 </s> add  </s> remove     image_is_aligned: bool, optional
        Used to set the :attr:`plugins.extract.mask.image_is_aligned` attribute. Indicates to the
        masker that the fed in image is an aligned face rather than a frame. Default: ``False``
 </s> add  </s> remove         # Face Filter post processing
        if ((hasattr(self._args, "filter") and self._args.filter is not None) or
                (hasattr(self._args, "nfilter") and
                 self._args.nfilter is not None)):

            if hasattr(self._args, "detector"):
                detector = self._args.detector.replace("-", "_").lower()
            else:
                detector = "cv2_dnn"
            if hasattr(self._args, "aligner"):
                aligner = self._args.aligner.replace("-", "_").lower()
            else:
                aligner = "cv2_dnn"

            face_filter = dict(detector=detector,
                               aligner=aligner,
                               multiprocess=not self._args.singleprocess)
            filter_lists = {}
            if hasattr(self._args, "ref_threshold"):
                face_filter["ref_threshold"] = self._args.ref_threshold
            for filter_type in ('filter', 'nfilter'):
                filter_args = getattr(self._args, filter_type, None)
                filter_args = None if not filter_args else filter_args
                filter_lists[filter_type] = filter_args
            face_filter["filter_lists"] = filter_lists
            postprocess_items["FaceFilter"] = {"kwargs": face_filter}

 </s> add 
        """ Set global arguments and load masker plugin

        Parameters
        ----------
        masker: str or ``none``
            The name of the masker plugin to use or ``None`` if no masker
        configfile: str
            Full path to custom config.ini file or ``None`` to use default

        Returns
        -------
        :class:`~plugins.extract.mask._base.Masker` or ``None``
            The masker plugin to use or ``None`` if no masker selected
        """
      def _load_mask(self,
                     masker: Optional[str],
                     image_is_aligned: bool,
                     configfile: Optional[str]) -> Optional["Masker"]:
        """ Set global arguments and load masker plugin

        Parameters
        ----------
        masker: str or ``none``
            The name of the masker plugin to use or ``None`` if no masker
        configfile: str
            Full path to custom config.ini file or ``None`` to use default

        Returns
        -------
        :class:`~plugins.extract.mask._base.Masker` or ``None``
            The masker plugin to use or ``None`` if no masker selected
        """
          if masker is None or masker.lower() == "none":
              logger.debug("No masker selected. Returning None")
              return None
          masker_name = masker.replace("-", "_").lower()
          logger.debug("Loading Masker: '%s'", masker_name)
keep keep keep keep replace keep keep keep keep keep
 Update Face Filter
  - Remove old face filter
  - plugins.extract.pipeline: Expose plugins directly
  - Change `is_aligned` from plugin level to ExtractMedia level
  - Allow extract pipeline to take faceswap aligned images
  - Add ability for recognition plugins to accept aligned faces as input
  - Add face filter to recognition plugin
  - Move extractor pipeline IO ops to own class 
plugins/extract/pipeline.py