  import logging
  import os
  from pathlib import Path
  
  import cv2
  import imageio
  
 
</s> remove """ Holds the classes for the 3 main Faceswap 'media' objects for
    input (extract) and output (convert) tasks. Those being:
            Images
            Faces
            Alignments"""
 </s> add """ Helper functions for :mod:`~scripts.extract` and :mod:`~scripts.convert`.

Holds the classes for the 2 main Faceswap 'media' objects: Images and Alignments.

Holds optional pre/post processing functions for convert and extract.
""" </s> remove import cv2
 </s> add  </s> remove from cv2 import imwrite  # pylint:disable=no-name-in-module
 </s> add import cv2 </s> remove """ The script to run the convert process of faceswap """
 </s> add """ Main entry point to the convert process of FaceSwap """ </s> remove """ Converter for faceswap.py
    Based on: https://gist.github.com/anonymous/d3815aba83a8f79779451262599b0955
    found on https://www.reddit.com/r/deepfakes/ """
 </s> add """ Converter for Faceswap """
import sys
  import logging
  import os
import sys
  from pathlib import Path
  
  import cv2
  import imageio
  
keep add 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/fsmedia.py