  class Mask(Masker):
      """ Neural network to process face image into a segmentation mask of the face """
      def __init__(self, **kwargs):
          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)
  
          self.name = "BiSeNet - Face Parsing"
          self.input_size = 512
 
</s> remove         model_filename = "bisnet_face_parsing_v1.h5"
 </s> add         model_filename = f"bisnet_face_parsing_v{'2' if self._is_faceswap else '1'}.h5" </s> remove         mean = (0.485, 0.456, 0.406)
        std = (0.229, 0.224, 0.225)
 </s> add         mean = (0.384, 0.314, 0.279) if self._is_faceswap else (0.485, 0.456, 0.406)
        std = (0.324, 0.286, 0.275) if self._is_faceswap else (0.229, 0.224, 0.225) </s> remove             retval.append(17)
 </s> add             retval.append(3 if self._is_faceswap else 17)
        self._is_faceswap = 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 = 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)
  
          self.name = "BiSeNet - Face Parsing"
          self.input_size = 512
keep keep add keep keep keep keep keep keep
 Bisenet-FP - Improved weights for masker (#1210)

* Add option to load faceswap trained weights

* Switch to original weights if fs weights not present

* typofix 
plugins/extract/mask/bisenet_fp.py