                                           thread_count=self.pool_processes, name="patch")
  
          self.patch_threads.start()
          while True:
              self.check_thread_error()
              if self.disk_io.completion_event.is_set():
                  logger.debug("DiskIO completion event set. Joining Pool")
                  break
              if self.patch_threads.completed():
                  logger.debug("All patch threads completed")
                  break
 
</s> remove             if self.patch_threads.completed():
 </s> add             if self._patch_threads.completed(): </s> remove         self.patch_threads.start()
 </s> add         self._patch_threads.start() </s> remove         self.patch_threads.join()
 </s> add         self._patch_threads.join() </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             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._check_thread_error()
            if self._disk_io.completion_event.is_set():
                                           thread_count=self.pool_processes, name="patch")
  
          self.patch_threads.start()
          while True:
            self._check_thread_error()
            if self._disk_io.completion_event.is_set():
            self._check_thread_error()
            if self._disk_io.completion_event.is_set():
                  logger.debug("DiskIO completion event set. Joining Pool")
                  break
              if self.patch_threads.completed():
                  logger.debug("All patch threads completed")
                  break
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