              print('Failed to convert image: {}. Reason: {}'.format(filename, e))
  
      def prepare_images(self):
          for filename in self.read_directory():
              print('Preparing %s' % (filename))
              image = cv2.imread(filename)
              yield filename, image, self.get_faces(image)
 
</s> remove             print('Processing %s' % (filename))
 </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 
        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         if 'Rect' in self.maskType:
            face_src = numpy.ones(new_face.shape,dtype=float) 
 </s> add         if 'rect' in self.mask_type:
            face_src = numpy.ones(new_face.shape,dtype=float)
 </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'

              print('Failed to convert image: {}. Reason: {}'.format(filename, e))
  
      def prepare_images(self):
          for filename in self.read_directory():

              image = cv2.imread(filename)
              yield filename, image, self.get_faces(image)
keep keep keep keep replace 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