          
      def convert(self, converter, item):
          try:
              (filename, image, faces) = item
              print('Processing %s' % (filename))
              for idx, face in faces:
                  image = converter.patch_image(image, face)
  
              output_file = self.output_dir / Path(filename).name
              cv2.imwrite(str(output_file), image)
 
</s> remove             print('Preparing %s' % (filename))
 </s> add  </s> remove 
        converter = PluginLoader.get_converter(conv_name)(model.converter(False))
 </s> add         converter = PluginLoader.get_converter(conv_name)(model.converter(False),
            blur_size=self.arguments.blur_size,
            seamless_clone=self.arguments.seamless_clone,
            mask_type=self.arguments.mask_type,
            erosion_kernel_size=self.arguments.erosion_kernel_size,
            smooth_mask=self.arguments.smooth_mask,
            avg_color_adjust=self.arguments.avg_color_adjust
        ) </s> remove         trainer = PluginLoader.get_trainer(self.arguments.trainer)(model,
 </s> add         trainer = PluginLoader.get_trainer(trainer)(model, </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         self.blurSize = 2
        self.seamlessClone = False
        self.maskType = 'Rect' # Choose in 'FaceHullAndRect','FaceHull','Rect'
 </s> add         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 convert(self, converter, item):
          try:
              (filename, image, faces) = item

              for idx, face in faces:
                  image = converter.patch_image(image, face)
  
              output_file = self.output_dir / Path(filename).name
              cv2.imwrite(str(output_file), image)
keep keep keep keep 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 
scripts/convert.py