  """ Masked converter for faceswap.py
      Based on: https://gist.github.com/anonymous/d3815aba83a8f79779451262599b0955
      found on https://www.reddit.com/r/deepfakes/ """
  
  import cv2
  import numpy
  
  from lib.aligner import get_align_mat
  from lib.utils import add_alpha_channel
 
</s> remove # Based on: https://gist.github.com/anonymous/d3815aba83a8f79779451262599b0955 found on https://www.reddit.com/r/deepfakes/
 </s> add #!/usr/bin/env python3
""" Masked converter for faceswap.py
    Based on: https://gist.github.com/anonymous/d3815aba83a8f79779451262599b0955
    found on https://www.reddit.com/r/deepfakes/ """

import logging

  """ Masked converter for faceswap.py
      Based on: https://gist.github.com/anonymous/d3815aba83a8f79779451262599b0955
      found on https://www.reddit.com/r/deepfakes/ """
  
import logging
  import cv2
  import numpy
  
  from lib.aligner import get_align_mat
  from lib.utils import add_alpha_channel
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