  
  class Mask(Masker):
      """ Neural network to process face image into a segmentation mask of the face """
      def __init__(self, **kwargs):
          self._is_faceswap = self._check_weights_selection(kwargs.get("configfile"))
  
          git_model_id = 14
          model_filename = f"bisnet_face_parsing_v{'2' if self._is_faceswap else '1'}.h5"
          super().__init__(git_model_id=git_model_id, model_filename=model_filename, **kwargs)
  
 
</s> remove         retval = config.get("weights", "faceswap").lower() == "faceswap"
        return retval
 </s> add         is_faceswap = config.get("weights", "faceswap").lower() == "faceswap"
        version = 1 if not is_faceswap else 2 if config.get("include_hair") else 3
        return is_faceswap, version </s> remove         model_filename = f"bisnet_face_parsing_v{'2' if self._is_faceswap else '1'}.h5"
 </s> add         model_filename = f"bisnet_face_parsing_v{version}.h5" </s> remove         bool
            ``True`` if `faceswap` trained weights have been selected. ``False`` if `original`
            weights have been selected
 </s> add         tuple (bool, int)
            First position is ``True`` if `faceswap` trained weights have been selected.
            ``False`` if `original` weights have been selected.
            Second position is the version of the model to use (``1`` for non-faceswap, ``1`` if
            faceswap and full-head model is required. ``3`` if faceswap and full-face is required)
        self._is_faceswap, version = self._check_weights_selection(kwargs.get("configfile"))
  
  class Mask(Masker):
      """ Neural network to process face image into a segmentation mask of the face """
      def __init__(self, **kwargs):
        self._is_faceswap, version = self._check_weights_selection(kwargs.get("configfile"))
  
          git_model_id = 14
          model_filename = f"bisnet_face_parsing_v{'2' if self._is_faceswap else '1'}.h5"
          super().__init__(git_model_id=git_model_id, model_filename=model_filename, **kwargs)
  
keep keep keep keep replace keep keep keep keep keep
 bisenet-fp - Add face-centered trained weights 
plugins/extract/mask/bisenet_fp.py