          # else:
          #     self.erosion_kernel = None
  
          self.erosion_kernel = None
          self.blurSize = 2
          self.seamlessClone = False
          self.maskType = 'Rect' # Choose in 'FaceHullAndRect','FaceHull','Rect'
  
      def patch_image( self, image, face_detected ):
          size = 64
          image_size = image.shape[1], image.shape[0]
  
 
</s> remove         # if args.erosionKernelSize > 0:
        #     self.erosion_kernel = cv2.getStructuringElement(cv2.MORPH_ELLIPSE,(args.erosionKernelSize,args.erosionKernelSize))
        # else:
        #     self.erosion_kernel = None

 </s> add  </s> remove          
        self.use_smooth_mask=True
        self.use_avg_color_adjust=True
 </s> add         
        self.use_smooth_mask = smooth_mask
        self.use_avg_color_adjust = avg_color_adjust </s> remove     def __init__(self, encoder):
 </s> add     def __init__(self, encoder, blur_size=2, seamless_clone=False, mask_type="facehullandrect", erosion_kernel_size=None, **kwargs):
 </s> remove         if self.seamlessClone:
 </s> add         if self.seamless_clone:
 </s> remove         if self.blurSize!=0:
            image_mask = cv2.blur(image_mask,(self.blurSize,self.blurSize))
 </s> add         if self.blur_size!=0:
            image_mask = cv2.blur(image_mask,(self.blur_size,self.blur_size))

        if erosion_kernel_size is not None:
            self.erosion_kernel = cv2.getStructuringElement(cv2.MORPH_ELLIPSE,(erosion_kernel_size,erosion_kernel_size))

        self.blur_size = blur_size
        self.seamless_clone = seamless_clone
        self.mask_type = mask_type.lower() # Choose in 'FaceHullAndRect','FaceHull','Rect'

          # else:
          #     self.erosion_kernel = None
  
          self.erosion_kernel = None
        if erosion_kernel_size is not None:
            self.erosion_kernel = cv2.getStructuringElement(cv2.MORPH_ELLIPSE,(erosion_kernel_size,erosion_kernel_size))

        self.blur_size = blur_size
        self.seamless_clone = seamless_clone
        self.mask_type = mask_type.lower() # Choose in 'FaceHullAndRect','FaceHull','Rect'
        if erosion_kernel_size is not None:
            self.erosion_kernel = cv2.getStructuringElement(cv2.MORPH_ELLIPSE,(erosion_kernel_size,erosion_kernel_size))

        self.blur_size = blur_size
        self.seamless_clone = seamless_clone
        self.mask_type = mask_type.lower() # Choose in 'FaceHullAndRect','FaceHull','Rect'
        if erosion_kernel_size is not None:
            self.erosion_kernel = cv2.getStructuringElement(cv2.MORPH_ELLIPSE,(erosion_kernel_size,erosion_kernel_size))

        self.blur_size = blur_size
        self.seamless_clone = seamless_clone
        self.mask_type = mask_type.lower() # Choose in 'FaceHullAndRect','FaceHull','Rect'
  
      def patch_image( self, image, face_detected ):
          size = 64
          image_size = image.shape[1], image.shape[0]
  
keep keep keep keep replace replace replace keep keep keep keep keep
 extended arguments for convert.py (#89)

* extended arguments for convert re https://github.com/deepfakes/faceswap/issues/85

* helptext for extended arguments.

* changed default mask type to facehullandrect 
plugins/Convert_Masked.py