  import tensorflow as tf
  from keras.backend.tensorflow_backend import set_session
  from tqdm import tqdm
  
  from scripts.fsmedia import Alignments, Images, PostProcess, Utils
  from lib.serializer import get_serializer
  from lib.convert import Converter
  from lib.faces_detect import DetectedFace
  from lib.gpu_stats import GPUStats
  from lib.image import read_image_hash
 
</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
 </s> add  </s> remove from scripts.fsmedia import Alignments, PostProcess, Utils
 </s> add from scripts.fsmedia import Alignments, PostProcess, finalize </s> remove from lib.gui.custom_widgets import ContextMenu
 </s> add  </s> remove from lib.gui.control_helper import set_slider_rounding
 </s> add from lib.gui.control_helper import ControlPanel, ControlPanelOption
from scripts.fsmedia import Alignments, Images, PostProcess, finalize
  import tensorflow as tf
  from keras.backend.tensorflow_backend import set_session
  from tqdm import tqdm
  
from scripts.fsmedia import Alignments, Images, PostProcess, finalize
  from lib.serializer import get_serializer
  from lib.convert import Converter
  from lib.faces_detect import DetectedFace
  from lib.gpu_stats import GPUStats
  from lib.image import read_image_hash
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 
scripts/convert.py