          """ Process the conversion """
          logger.debug("Starting Conversion")
          # queue_manager.debug_monitor(5)
          try:
              self.convert_images()
              self.disk_io.save_thread.join()
              queue_manager.terminate_queues()
  
              Utils.finalize(self.images.images_found,
                             self.predictor.faces_count,
                             self.predictor.verify_output)
 
</s> remove         """ Process the conversion """
 </s> add         """ The entry point for triggering the Conversion Process.

        Should only be called from  :class:`lib.cli.ScriptExecutor`
        """ </s> remove             Utils.finalize(self.images.images_found,
                           self.predictor.faces_count,
                           self.predictor.verify_output)
 </s> add             finalize(self._images.images_found,
                     self._predictor.faces_count,
                     self._predictor.verify_output) </s> remove             queue_manager.add_queue(qname, self.queue_size)
 </s> add             queue_manager.add_queue(qname, self._queue_size) </s> remove                 self.args.scaling,
                disable_logging=disable_logging)(configfile=self.configfile, config=config)
        logger.debug("Loaded plugins: %s", self.adjustments)

    def process(self, in_queue, out_queue, completion_queue=None):
        """ Process items from the queue """
        logger.debug("Starting convert process. (in_queue: %s, out_queue: %s, completion_queue: "
                     "%s)", in_queue, out_queue, completion_queue)
 </s> add                 self._args.scaling,
                disable_logging=disable_logging)(configfile=self._configfile, config=config)
        logger.debug("Loaded plugins: %s", self._adjustments)

    def process(self, in_queue, out_queue):
        """ Main convert process.

        Takes items from the in queue, runs the relevant adjustments, patches faces to final frame
        and outputs patched frame to the out queue.

        Parameters
        ----------
        in_queue: :class:`queue.Queue`
            The output from :class:`scripts.convert.Predictor`. Contains detected faces from the
            Faceswap model as well as the frame to be patched.
        out_queue: :class:`queue.Queue`
            The queue to place patched frames into for writing by one of Faceswap's
            :mod:`plugins.convert.writer` plugins.
        """
        logger.debug("Starting convert process. (in_queue: %s, out_queue: %s)",
                     in_queue, out_queue) </s> remove         """ Update config with selected values """
 </s> add         """ Update :attr:`config` with the currently selected values from the GUI. """
            self._convert_images()
            self._disk_io.save_thread.join()
          """ Process the conversion """
          logger.debug("Starting Conversion")
          # queue_manager.debug_monitor(5)
          try:
            self._convert_images()
            self._disk_io.save_thread.join()
            self._convert_images()
            self._disk_io.save_thread.join()
              queue_manager.terminate_queues()
  
              Utils.finalize(self.images.images_found,
                             self.predictor.faces_count,
                             self.predictor.verify_output)
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/convert.py