                            UpSampling2D, ZeroPadding2D)
  
  from lib.model.session import KSession
  from ._base import Masker, logger
  
  
  class Mask(Masker):
      """ Neural network to process face image into a segmentation mask of the face """
      def __init__(self, **kwargs):
 
</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         info="Whether to include glasses within the face mask. NB: excluding glasses will mask "
             "out the lenses as well as the frames.",
 </s> add         info="Whether to include glasses within the face mask.\n\tFor 'original' weights "
             "excluding glasses will mask out the lenses as well as the frames.\n\tFor 'faceswap' "
             "weights, the model has been trained to mask out lenses if eyes cannot be seen (i.e. "
             "dark sunglasses) or just the frames if the eyes can be seen. ",
from plugins.extract._base import _get_config
                            UpSampling2D, ZeroPadding2D)
  
  from lib.model.session import KSession
from plugins.extract._base import _get_config
  from ._base import Masker, logger
  
  
  class Mask(Masker):
      """ Neural network to process face image into a segmentation mask of the face """
      def __init__(self, **kwargs):
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