          logger.debug("Got batchsize: %s", batchsize)
          return batchsize
  
      @staticmethod
      def set_tf_allow_growth():
          """ Allow TensorFlow to manage VRAM growth """
          # pylint: disable=no-member
          # TODO Move this temporary fix somewhere more appropriate
          logger.debug("Setting Tensorflow 'allow_growth' option")
          config = tf.ConfigProto()
          config.gpu_options.allow_growth = True
 
</s> remove         # TODO Move this temporary fix somewhere more appropriate
 </s> add  </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 load_model(self):
        """ Load the model requested for conversion """
 </s> add     def _load_model(self):
        """ Load the Faceswap model.

        Returns
        -------
        :mod:`plugins.train.model` plugin
            The trained model in the specified model folder
        """ </s> remove         erosion_kernel = cv2.getStructuringElement(  # pylint: disable=no-member
            cv2.MORPH_ELLIPSE,  # pylint: disable=no-member
            (kernel_size, kernel_size))
 </s> add         erosion_kernel = cv2.getStructuringElement(cv2.MORPH_ELLIPSE, (kernel_size, kernel_size)) </s> remove     def get_erosion_kernel(self, mask):
        """ Get the erosion kernel """
 </s> add     def _get_erosion_kernel(self, mask):
        """ Get the erosion kernel.

        Parameters
        ----------
        mask: :class:`numpy.ndarray`
            The mask to be eroded or dilated

        Returns
        -------
        :class:`numpy.ndarray`
            The erosion kernel to be used for erosion/dilation
        """
    def _set_tf_allow_growth():
        """ Enables the TensorFlow configuration option "allow_growth".

        TODO Move this temporary fix somewhere more appropriate
        """
          logger.debug("Got batchsize: %s", batchsize)
          return batchsize
  
      @staticmethod
    def _set_tf_allow_growth():
        """ Enables the TensorFlow configuration option "allow_growth".

        TODO Move this temporary fix somewhere more appropriate
        """
    def _set_tf_allow_growth():
        """ Enables the TensorFlow configuration option "allow_growth".

        TODO Move this temporary fix somewhere more appropriate
        """
          # pylint: disable=no-member
          # TODO Move this temporary fix somewhere more appropriate
          logger.debug("Setting Tensorflow 'allow_growth' option")
          config = tf.ConfigProto()
          config.gpu_options.allow_growth = True
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