  
  from lib.aligner import get_align_mat
  from lib.utils import add_alpha_channel
  
  class Convert():
      def __init__(self, encoder, trainer,
                   blur_size=2, seamless_clone=False, mask_type="facehullandrect",
                   erosion_kernel_size=None, match_histogram=False, sharpen_image=None,
                   draw_transparent=False, **kwargs):
 
</s> remove     def __init__(self, encoder, trainer, blur_size=2, seamless_clone=False, mask_type="facehullandrect", erosion_kernel_size=None, match_histogram=False, sharpen_image=None, draw_transparent=False, **kwargs):
 </s> add     def __init__(self, encoder, trainer,
                 blur_size=2, seamless_clone=False, mask_type="facehullandrect",
                 erosion_kernel_size=None, match_histogram=False, sharpen_image=None,
                 draw_transparent=False, **kwargs):
 </s> remove from ._base import Detector, dlib
 </s> add from ._base import Detector, dlib, logger </s> remove from lib.utils import rotate_image_by_angle, rotate_landmarks
 </s> add from lib.utils import rotate_landmarks

logger = logging.getLogger(__name__)  # pylint: disable=invalid-name </s> remove from lib.detect_blur import is_blurry
from lib.FaceFilter import FaceFilter as FilterFunc
 </s> add from lib.face_filter import FaceFilter as FilterFunc
logger = logging.getLogger(__name__)  # pylint: disable=invalid-name



  
  from lib.aligner import get_align_mat
  from lib.utils import add_alpha_channel
  
logger = logging.getLogger(__name__)  # pylint: disable=invalid-name


  class Convert():
      def __init__(self, encoder, trainer,
                   blur_size=2, seamless_clone=False, mask_type="facehullandrect",
                   erosion_kernel_size=None, match_histogram=False, sharpen_image=None,
                   draw_transparent=False, **kwargs):
keep keep keep add 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