      def load(self, *args):  # pylint: disable=unused-argument
          """ Load the images with detected_faces"""
          logger.debug("Load Images: Start")
          idx = 0
          for filename, image in self.images.load():
              idx += 1
              if self.load_queue.shutdown.is_set():
                  logger.debug("Load Queue: Stop signal received. Terminating")
                  break
              if image is None or (not image.any() and image.ndim not in (2, 3)):
 
</s> remove             if self.load_queue.shutdown.is_set():
 </s> add             if self._queues["load"].shutdown.is_set(): </s> remove     def load(self, *args):  # pylint: disable=unused-argument
        """ Load the images with detected_faces"""
 </s> add     def _load(self, *args):  # pylint: disable=unused-argument
        """ Load frames from disk.

        In a background thread:
            * Loads frames from disk.
            * Discards or passes through cli selected skipped frames
            * Pairs the frame with its :class:`~lib.faces_detect.DetectedFace` objects
            * Performs any pre-processing actions
            * Puts the frame and detected faces to the load queue
        """ </s> remove         write_preview = self.args.redirect_gui and self.writer.is_stream
        preview_image = os.path.join(self.writer.output_folder, ".gui_preview.jpg")
 </s> add         write_preview = self._args.redirect_gui and self._writer.is_stream
        preview_image = os.path.join(self._writer.output_folder, ".gui_preview.jpg") </s> remove             item = self.save_queue.get()
 </s> add             item = self._queues["save"].get() </s> remove         for idx in tqdm(range(self.total_count), desc="Converting", file=sys.stdout):
            if self.save_queue.shutdown.is_set():
 </s> add         for idx in tqdm(range(self._total_count), desc="Converting", file=sys.stdout):
            if self._queues["save"].shutdown.is_set():
        for filename, image in self._images.load():
      def load(self, *args):  # pylint: disable=unused-argument
          """ Load the images with detected_faces"""
          logger.debug("Load Images: Start")
          idx = 0
        for filename, image in self._images.load():
              idx += 1
              if self.load_queue.shutdown.is_set():
                  logger.debug("Load Queue: Stop signal received. Terminating")
                  break
              if image is None or (not image.any() and image.ndim not in (2, 3)):
keep keep keep keep 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