  
  import cv2
  import numpy as np
  
  from lib.model import masks as model_masks
  from plugins.convert._config import Config
  
  logger = logging.getLogger(__name__)  # pylint: disable=invalid-name
  
  
 
</s> remove import cv2
 </s> add  </s> remove from lib.model import masks as model_masks
from ._base import Adjustment, BlurMask, logger
 </s> add from ._base import Adjustment, logger </s> remove from cv2 import imwrite  # pylint:disable=no-name-in-module
 </s> add import cv2 </s> remove from lib.model.masks import get_available_masks, get_default_mask
 </s> add  </s> remove from scripts.fsmedia import Alignments, PostProcess, Utils
 </s> add from scripts.fsmedia import Alignments, PostProcess, finalize
  
  import cv2
  import numpy as np
  

  from plugins.convert._config import Config
  
  logger = logging.getLogger(__name__)  # pylint: disable=invalid-name
  
  
keep keep keep keep replace keep keep keep keep keep
 Smart Masks to Convert (#957)

- scripts.convert - Use Smart Masks for Convert
    * Make on-the-fly conversion an explicit option

- Move BlurMask to lib.faces_detect

- tools.preview - Fix for smart masks
    * Subclass from tk.Tk
    * Options to lib.gui.control_helper
    *variable cleanup

- lib.logger - Demote more tensorflow deprecation messages

- Documentation:
    * lib.faces_detect.BlurMask
    * plugins.convert.mask
    * lib.convert
    * scripts.convert
    * scripts.fsmedia
    * tools.preview 
plugins/convert/mask/_base.py