          reader.close()
          return frame
  
  
  class PostProcess():
      """ Optional post processing tasks """
      def __init__(self, arguments):
          logger.debug("Initializing %s", self.__class__.__name__)
          self.args = arguments
          self.actions = self.set_actions()
          logger.debug("Initialized %s", self.__class__.__name__)
 
</s> remove         self.args = arguments
        self.actions = self.set_actions()
 </s> add         self._args = arguments
        self._actions = self._set_actions() </s> remove         self.args = arguments
        self.is_video = self.check_input_folder()
        self.input_images = self.get_input_images()
        self.images_found = self.count_images()
 </s> add         self._args = arguments
        self._is_video = self._check_input_folder()
        self._input_images = self._get_input_images()
        self._images_found = self._count_images() </s> remove     """ Holds the full frames/images """
 </s> add     """ Handles the loading of frames from a folder of images or a video file for extract
    and convert processes.

    Parameters
    ----------
    arguments: :class:`argparse.Namespace`
        The command line arguments that were passed to Faceswap
    """ </s> remove         self.args = arguments
        self.is_extract = is_extract
        folder, filename = self.set_folder_filename(input_is_video)
        super().__init__(folder,
                         filename=filename)
 </s> add         self._args = arguments
        self._is_extract = is_extract
        folder, filename = self._set_folder_filename(input_is_video)
        super().__init__(folder, filename=filename) </s> remove     def set_actions(self):
        """ Compile the actions to be performed into a list """
        postprocess_items = self.get_items()
 </s> add     def _set_actions(self):
        """ Compile the requested actions to be performed into a list

        Returns
        -------
        list
            The list of :class:`PostProcessAction` to be performed
        """
        postprocess_items = self._get_items()
class PostProcess():  # pylint:disable=too-few-public-methods
    """ Optional pre/post processing tasks for convert and extract.

    Builds a pipeline of actions that have optionally been requested to be performed
    in this session.

    Parameters
    ----------
    arguments: :class:`argparse.Namespace`
        The command line arguments that were passed to Faceswap
    """
          reader.close()
          return frame
  
  
class PostProcess():  # pylint:disable=too-few-public-methods
    """ Optional pre/post processing tasks for convert and extract.

    Builds a pipeline of actions that have optionally been requested to be performed
    in this session.

    Parameters
    ----------
    arguments: :class:`argparse.Namespace`
        The command line arguments that were passed to Faceswap
    """
class PostProcess():  # pylint:disable=too-few-public-methods
    """ Optional pre/post processing tasks for convert and extract.

    Builds a pipeline of actions that have optionally been requested to be performed
    in this session.

    Parameters
    ----------
    arguments: :class:`argparse.Namespace`
        The command line arguments that were passed to Faceswap
    """
      def __init__(self, arguments):
          logger.debug("Initializing %s", self.__class__.__name__)
          self.args = arguments
          self.actions = self.set_actions()
          logger.debug("Initialized %s", self.__class__.__name__)
keep keep keep keep replace 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/fsmedia.py