      def smooth_box(old_face, new_face):
          """ Perform gaussian blur on the edges of the output rect """
          crop = slice(0, width)
          mask = np.zeros_like(new_face)
          mask[erode, erode] = 1.0
          mask = cv2.GaussianBlur(mask,  # pylint: disable=no-member
                                  (window, window),
 
</s> remove         width, height, _ = new_face.shape
 </s> add  </s> remove         mask[height // 15:-height // 15, width // 15:-width // 15, :] = 255
 </s> add         mask[erode, erode] = 1.0 </s> remove                                 (15, 15),
                                10)
        new_face[crop, crop] = (mask / 255 * new_face +
                                (1 - mask / 255) * old_face)
 </s> add                                 (window, window),
                                sigma)
        new_face[crop, crop] = (mask * new_face + (1.0 - mask ) * old_face) </s> remove         masked = new_image  # * image_mask
 </s> add  </s> remove                 blur = cv2.GaussianBlur(masked, (0, 0), 3.0)  # pylint: disable=no-member
                masked = cv2.addWeighted(masked,  # pylint: disable=no-member
 </s> add                 blur = cv2.GaussianBlur(new_image, (0, 0), 3.0)  # pylint: disable=no-member
                new_image = cv2.addWeighted(new_image,  # pylint: disable=no-member
		erode = slice(new_face.shape[0] // 15, -new_face.shape[0] // 15)
		sigma = new_face.shape[0] / 16 # 10 for the default 160 size
		window = int(np.ceil(sigma * 3))
		window = window + 1 if window % 2 == 0 else window
      def smooth_box(old_face, new_face):
          """ Perform gaussian blur on the edges of the output rect """
          crop = slice(0, width)
		erode = slice(new_face.shape[0] // 15, -new_face.shape[0] // 15)
		sigma = new_face.shape[0] / 16 # 10 for the default 160 size
		window = int(np.ceil(sigma * 3))
		window = window + 1 if window % 2 == 0 else window
          mask = np.zeros_like(new_face)
          mask[erode, erode] = 1.0
          mask = cv2.GaussianBlur(mask,  # pylint: disable=no-member
                                  (window, window),
keep keep add keep keep keep keep
 auto smooth edges size and clarify naming 
plugins/convert/masked.py