  
          if self.args.scaling != "none" and self.args.scaling is not None:
              self.adjustments["scaling"] = PluginLoader.get_converter(
                  "scaling",
                  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)
          while True:
              items = in_queue.get()
              if items == "EOF":
                  logger.debug("EOF Received")
                  logger.debug("Patch queue finished")
 
</s> remove         if self.args.scaling != "none" and self.args.scaling is not None:
            self.adjustments["scaling"] = PluginLoader.get_converter(
 </s> add         if self._args.scaling != "none" and self._args.scaling is not None:
            self._adjustments["scaling"] = PluginLoader.get_converter( </s> remove                 self.args.color_adjustment,
                disable_logging=disable_logging)(configfile=self.configfile, config=config)
 </s> add                 self._args.color_adjustment,
                disable_logging=disable_logging)(configfile=self._configfile, config=config) </s> remove         if self.args.color_adjustment != "none" and self.args.color_adjustment is not None:
            self.adjustments["color"] = PluginLoader.get_converter(
 </s> add         if self._args.color_adjustment != "none" and self._args.color_adjustment is not None:
            self._adjustments["color"] = PluginLoader.get_converter( </s> remove     """ Predict faces from incoming queue """
 </s> add     """ Obtains the output from the Faceswap model.

    Parameters
    ----------
    in_queue: :class:`queue.Queue`
        The queue that contains images and detected faces for feeding the model
    queue_size: int
        The maximum size of the input queue
    arguments: :class:`argparse.Namespace`
        The arguments that were passed to the convert process as generated from Faceswap's command
        line arguments
    """ </s> remove             while idx < self.sample_size:
                logger.debug("Predicting face %s of %s", idx + 1, self.sample_size)
                items = self.predictor.out_queue.get()
 </s> add             while idx < self._sample_size:
                logger.debug("Predicting face %s of %s", idx + 1, self._sample_size)
                items = self._predictor.out_queue.get()
                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)
  
          if self.args.scaling != "none" and self.args.scaling is not None:
              self.adjustments["scaling"] = PluginLoader.get_converter(
                  "scaling",
                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)
                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)
                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)
                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)
                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)
                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)
                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)
                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)
          while True:
              items = in_queue.get()
              if items == "EOF":
                  logger.debug("EOF Received")
                  logger.debug("Patch queue finished")
keep keep keep keep replace replace replace replace replace replace 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 
lib/convert.py