                     "\nYou should lower the number of processes in use by either setting the "
                     "'singleprocess' flag (-sp) or lowering the number of parallel jobs (-j).")
              raise FaceswapError(msg) from err
  
      def convert_images(self):
          """ Convert the images """
          logger.debug("Converting images")
          save_queue = queue_manager.get_queue("convert_out")
          patch_queue = queue_manager.get_queue("patch")
          self.patch_threads = MultiThread(self.converter.process, patch_queue, save_queue,
                                           thread_count=self.pool_processes, name="patch")
 
</s> remove         self.patch_threads = MultiThread(self.converter.process, patch_queue, save_queue,
                                         thread_count=self.pool_processes, name="patch")
 </s> add         self._patch_threads = MultiThread(self._converter.process, patch_queue, save_queue,
                                          thread_count=self._pool_processes, name="patch") </s> remove         self.patch_threads.start()
 </s> add         self._patch_threads.start() </s> remove     def pool_processes(self):
        """ return the maximum number of pooled processes to use """
        if self.args.singleprocess:
 </s> add     def _pool_processes(self):
        """ int: The number of threads to run in parallel. Based on user options and number of
        available processors. """
        if self._args.singleprocess: </s> remove     def count_images(self):
        """ Number of images or frames """
        if self.is_video:
            retval = int(count_frames(self.args.input_dir, fast=True))
 </s> add     @property
    def is_video(self):
        """bool: ``True`` if the input is a video file otherwise ``False``. """
        return self._is_video

    @property
    def input_images(self):
        """str or list: Path to the video file if the input is a video otherwise list of
        image paths. """
        return self._input_images

    @property
    def images_found(self):
        """int: The number of frames that exist in the video file, or the folder of images. """
        return self._images_found

    def _count_images(self):
        """ Get the number of Frames from a video file or folder of images.

        Returns
        -------
        int
            The number of frames in the image source
        """
        if self._is_video:
            retval = int(count_frames(self._args.input_dir, fast=True)) </s> remove     def get_indices(self):
        """ Returns a list of 'self.sample_size' evenly sized partition indices
            pertaining to the filtered file list """
 </s> add     def _get_indices(self):
        """ Get indices for each sample group.

        Obtain :attr:`self.sample_size` evenly sized groups of indices
        pertaining to the filtered :attr:`self._file_list`

        Returns
        -------
        list
            list of indices relating to the filtered file list, split into groups
        """
    def _convert_images(self):
        """ Start the multi-threaded patching process, monitor all threads for errors and join on
        completion. """
                     "\nYou should lower the number of processes in use by either setting the "
                     "'singleprocess' flag (-sp) or lowering the number of parallel jobs (-j).")
              raise FaceswapError(msg) from err
  
    def _convert_images(self):
        """ Start the multi-threaded patching process, monitor all threads for errors and join on
        completion. """
    def _convert_images(self):
        """ Start the multi-threaded patching process, monitor all threads for errors and join on
        completion. """
          logger.debug("Converting images")
          save_queue = queue_manager.get_queue("convert_out")
          patch_queue = queue_manager.get_queue("patch")
          self.patch_threads = MultiThread(self.converter.process, patch_queue, save_queue,
                                           thread_count=self.pool_processes, name="patch")
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