      @staticmethod
      def rewrite_tf_deprecation(record):
          """ Change TF deprecation messages from WARNING to DEBUG """
          if record.levelno == 30 and (record.funcName == "_tfmw_add_deprecation_warning" or
                                       record.module == "deprecation"):
              record.levelno = 10
              record.levelname = "DEBUG"
          return record
  
  
 
</s> remove         if blur_kernel == 0 or blur_kernel % 2 == 1:
            self._blur_kernel = blur_kernel
        else:
            self._blur_kernel = blur_kernel + 1
 </s> add         if blur_type is not None:
            blur_kernel += 0 if blur_kernel == 0 or blur_kernel % 2 == 1 else 1
            self._blur["kernel"] = blur_kernel
            self._blur["type"] = blur_type
            self._blur["passes"] = blur_passes </s> remove     def get_batchsize(queue_size):
        """ Get the batchsize """
 </s> add     def _get_batchsize(queue_size):
        """ Get the batch size for feeding the model.

        Sets the batch size to 1 if inference is being run on CPU, otherwise the minimum of the
        :attr:`self._queue_size` and 16.

        Returns
        -------
        int
            The batch size that the model is to be fed at.
        """ </s> remove     def add_queue(self, task):
        """ Add the queue to queue_manager and set queue attribute """
 </s> add     def _add_queue(self, task):
        """ Add the queue to queue_manager and to :attr:`self._queues` for the given task.

        Parameters
        ----------
        task: {"load", "save"}
            The task that the queue is to be added for
        """ </s> remove         args = self.completion_event if task == "save" else None
        func = getattr(self, task)
 </s> add         args = self._completion_event if task == "save" else None
        func = getattr(self, "_{}".format(task)) </s> remove         for section in self.config.config.sections():
            if section == "writer":
 </s> add         for section in self._config.config.sections():
            if section.startswith("writer."):
                                     record.module in("deprecation", "deprecation_wrapper")):
      @staticmethod
      def rewrite_tf_deprecation(record):
          """ Change TF deprecation messages from WARNING to DEBUG """
          if record.levelno == 30 and (record.funcName == "_tfmw_add_deprecation_warning" or
                                     record.module in("deprecation", "deprecation_wrapper")):
              record.levelno = 10
              record.levelname = "DEBUG"
          return record
  
  
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 
lib/logger.py