                                                                     new_face,
                                                                     image_mask,
                                                                     image_size)
              self.seamless_clone = False  # Alpha channel not supported in seamless
          base_image = numpy.copy( image )
          new_image = numpy.copy( image )
  
          cv2.warpAffine( new_face, mat, image_size, new_image, cv2.WARP_INVERSE_MAP | cv2.INTER_CUBIC, cv2.BORDER_TRANSPARENT )
  
          if self.sharpen_image == "bsharpen":
              # Sharpening using filter2D
 
</s> remove         cv2.warpAffine( new_face, mat, image_size, new_image, cv2.WARP_INVERSE_MAP | cv2.INTER_CUBIC, cv2.BORDER_TRANSPARENT )
 </s> add         cv2.warpAffine(new_face,
                       mat,
                       image_size,
                       new_image,
                       cv2.WARP_INVERSE_MAP | cv2.INTER_CUBIC,
                       cv2.BORDER_TRANSPARENT)
 </s> remove             face_src = numpy.ones(new_face.shape,dtype=float)
            cv2.warpAffine( face_src, mat, image_size, face_mask, cv2.WARP_INVERSE_MAP | cv2.INTER_CUBIC, cv2.BORDER_TRANSPARENT )

        hull_mask = numpy.zeros(image.shape,dtype=float)
 </s> add             face_src = numpy.ones(new_face.shape, dtype=float)
            cv2.warpAffine(face_src,
                           mat,
                           image_size,
                           face_mask,
                           cv2.WARP_INVERSE_MAP | cv2.INTER_CUBIC, cv2.BORDER_TRANSPARENT)

        hull_mask = numpy.zeros(image.shape, dtype=float)
 </s> remove         face_mask = numpy.zeros(image.shape,dtype=float)
 </s> add         face_mask = numpy.zeros(image.shape, dtype=float)
 </s> remove         image_mask = self.get_image_mask( image, new_face, face_detected.landmarks_as_xy(), mat, image_size )
 </s> add         image_mask = self.get_image_mask(image,
                                         new_face,
                                         face_detected.landmarks_as_xy,
                                         mat,
                                         image_size)
 </s> remove             hull = cv2.convexHull( numpy.array( landmarks ).reshape((-1,2)).astype(int) ).flatten().reshape( (-1,2) )
            cv2.fillConvexPoly( hull_mask,hull,(1,1,1) )
 </s> add             hull = cv2.convexHull(
                numpy.array(landmarks).reshape((-1, 2)).astype(int)).flatten().reshape((-1, 2))
            cv2.fillConvexPoly(hull_mask, hull, (1, 1, 1))

        base_image = numpy.copy(image)
        new_image = numpy.copy(image)

                                                                     new_face,
                                                                     image_mask,
                                                                     image_size)
              self.seamless_clone = False  # Alpha channel not supported in seamless
        base_image = numpy.copy(image)
        new_image = numpy.copy(image)
        base_image = numpy.copy(image)
        new_image = numpy.copy(image)
  
          cv2.warpAffine( new_face, mat, image_size, new_image, cv2.WARP_INVERSE_MAP | cv2.INTER_CUBIC, cv2.BORDER_TRANSPARENT )
  
          if self.sharpen_image == "bsharpen":
              # Sharpening using filter2D
keep keep keep keep replace replace keep keep keep keep keep
 Logging (#541)

* Convert prints to logger. Further logging improvements. Tidy  up

* Fix system verbosity. Allow SystemExit

* Fix reload extract bug

* Child Traceback handling

* Safer shutdown procedure

* Add shutdown event to queue manager

* landmarks_as_xy > property. GUI notes + linting. Aligner bugfix

* fix FaceFilter. Enable nFilter when no Filter is supplied

* Fix blurry face filter

* Continue on IO error. Better error handling

* Explicitly print stack trace tocrash log

* Windows Multiprocessing bugfix

* Add git info and conda version to crash log

* Windows/Anaconda mp bugfix

* Logging fixes for training 
plugins/convert/Convert_Masked.py